The source code for the full Android stack is available from the Android Open Source Project site.
Other mirrored GPL and LGPL'd components are available at http://code.google.com/p/android/downloads/list
.
Notices for other licenses can be found within the SDK.
One of the best explanations for the reasoning behind releasing code under Apache2 can be found in a ArsTechnica article by Ryan Paul.