OSDN Git Service

Merge "Update contextual asset bar assets to avoid 9-patch artifacts" into klp-dev
[android-x86/frameworks-base.git] / Android.mk
index 954d0a9..b0a27e4 100644 (file)
@@ -26,7 +26,10 @@ LOCAL_PATH := $(call my-dir)
 # TODO: find a more appropriate way to do this.
 framework_res_source_path := APPS/framework-res_intermediates/src
 
-# the library
+# Build the master framework library.
+# The framework contains too many method references (>64K) for poor old DEX.
+# So we first build the framework as a monolithic static library then split it
+# up into smaller pieces.
 # ============================================================
 include $(CLEAR_VARS)
 
@@ -39,14 +42,6 @@ LOCAL_SRC_FILES += \
        core/java/android/speech/tts/EventLogTags.logtags \
        core/java/android/webkit/EventLogTags.logtags \
 
-# The following filters out code we are temporarily not including at all.
-# TODO: Move AWT and beans (and associated harmony code) back into libcore.
-# TODO: Maybe remove javax.microedition entirely?
-# TODO: Move SyncML (org.mobilecontrol.*) into its own library.
-LOCAL_SRC_FILES := $(filter-out \
-                       org/mobilecontrol/% \
-                       ,$(LOCAL_SRC_FILES))
-
 ## READ ME: ########################################################
 ##
 ## When updating this list of aidl files, consider if that aidl is
@@ -78,8 +73,9 @@ LOCAL_SRC_FILES += \
        core/java/android/app/IThumbnailReceiver.aidl \
        core/java/android/app/IThumbnailRetriever.aidl \
        core/java/android/app/ITransientNotification.aidl \
+       core/java/android/app/IUiAutomationConnection.aidl \
        core/java/android/app/IUiModeManager.aidl \
-    core/java/android/app/IUserSwitchObserver.aidl \
+       core/java/android/app/IUserSwitchObserver.aidl \
        core/java/android/app/IWallpaperManager.aidl \
        core/java/android/app/IWallpaperManagerCallback.aidl \
        core/java/android/app/admin/IDevicePolicyManager.aidl \
@@ -99,12 +95,17 @@ LOCAL_SRC_FILES += \
        core/java/android/bluetooth/IBluetoothManager.aidl \
        core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
        core/java/android/bluetooth/IBluetoothPbap.aidl \
+       core/java/android/bluetooth/IBluetoothMap.aidl \
        core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
+       core/java/android/bluetooth/IBluetoothGatt.aidl \
+       core/java/android/bluetooth/IBluetoothGattCallback.aidl \
+       core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
        core/java/android/content/IClipboard.aidl \
        core/java/android/content/IContentService.aidl \
        core/java/android/content/IIntentReceiver.aidl \
        core/java/android/content/IIntentSender.aidl \
        core/java/android/content/IOnPrimaryClipChangedListener.aidl \
+       core/java/android/content/IAnonymousSyncAdapter.aidl \
        core/java/android/content/ISyncAdapter.aidl \
        core/java/android/content/ISyncContext.aidl \
        core/java/android/content/ISyncStatusObserver.aidl \
@@ -115,24 +116,40 @@ LOCAL_SRC_FILES += \
        core/java/android/content/pm/IPackageMoveObserver.aidl \
        core/java/android/content/pm/IPackageStatsObserver.aidl \
        core/java/android/database/IContentObserver.aidl \
+       core/java/android/hardware/ICameraService.aidl \
+       core/java/android/hardware/ICameraServiceListener.aidl \
+       core/java/android/hardware/ICamera.aidl \
+       core/java/android/hardware/ICameraClient.aidl \
+       core/java/android/hardware/IConsumerIrService.aidl \
+       core/java/android/hardware/IProCameraUser.aidl \
+       core/java/android/hardware/IProCameraCallbacks.aidl \
+       core/java/android/hardware/camera2/ICameraDeviceUser.aidl \
+       core/java/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
        core/java/android/hardware/ISerialManager.aidl \
        core/java/android/hardware/display/IDisplayManager.aidl \
        core/java/android/hardware/display/IDisplayManagerCallback.aidl \
        core/java/android/hardware/input/IInputManager.aidl \
        core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
+       core/java/android/hardware/location/IFusedLocationHardware.aidl \
+       core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
+       core/java/android/hardware/location/IGeofenceHardware.aidl \
+       core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
+       core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
        core/java/android/hardware/usb/IUsbManager.aidl \
        core/java/android/net/IConnectivityManager.aidl \
        core/java/android/net/INetworkManagementEventObserver.aidl \
-       core/java/android/net/IThrottleManager.aidl \
        core/java/android/net/INetworkPolicyListener.aidl \
        core/java/android/net/INetworkPolicyManager.aidl \
        core/java/android/net/INetworkStatsService.aidl \
        core/java/android/net/INetworkStatsSession.aidl \
        core/java/android/net/nsd/INsdManager.aidl \
-       core/java/android/nfc/INdefPushCallback.aidl \
+       core/java/android/nfc/IAppCallback.aidl \
        core/java/android/nfc/INfcAdapter.aidl \
        core/java/android/nfc/INfcAdapterExtras.aidl \
        core/java/android/nfc/INfcTag.aidl \
+       core/java/android/nfc/INfcCardEmulation.aidl \
+       core/java/android/os/IBatteryPropertiesListener.aidl \
+       core/java/android/os/IBatteryPropertiesRegistrar.aidl \
        core/java/android/os/ICancellationSignal.aidl \
        core/java/android/os/IHardwareService.aidl \
        core/java/android/os/IMessenger.aidl \
@@ -142,8 +159,21 @@ LOCAL_SRC_FILES += \
        core/java/android/os/IRemoteCallback.aidl \
        core/java/android/os/ISchedulingPolicyService.aidl \
        core/java/android/os/IUpdateLock.aidl \
-        core/java/android/os/IUserManager.aidl \
+       core/java/android/os/IUserManager.aidl \
        core/java/android/os/IVibratorService.aidl \
+       core/java/android/service/notification/INotificationListener.aidl \
+       core/java/android/print/ILayoutResultCallback.aidl \
+       core/java/android/print/IPrinterDiscoveryObserver.aidl \
+       core/java/android/print/IPrintDocumentAdapter.aidl \
+       core/java/android/print/IPrintDocumentAdapterObserver.aidl \
+       core/java/android/print/IPrintJobStateChangeListener.aidl \
+       core/java/android/print/IPrintManager.aidl \
+       core/java/android/print/IPrintSpooler.aidl \
+       core/java/android/print/IPrintSpoolerCallbacks.aidl \
+       core/java/android/print/IPrintSpoolerClient.aidl \
+       core/java/android/print/IWriteResultCallback.aidl \
+       core/java/android/printservice/IPrintService.aidl \
+       core/java/android/printservice/IPrintServiceClient.aidl \
        core/java/android/service/dreams/IDreamManager.aidl \
        core/java/android/service/dreams/IDreamService.aidl \
        core/java/android/service/wallpaper/IWallpaperConnection.aidl \
@@ -154,26 +184,36 @@ LOCAL_SRC_FILES += \
        core/java/android/view/accessibility/IAccessibilityManager.aidl \
        core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
        core/java/android/view/IApplicationToken.aidl \
-       core/java/android/view/IDisplayContentChangeListener.aidl \
+       core/java/android/view/IAssetAtlas.aidl \
+       core/java/android/view/IMagnificationCallbacks.aidl \
        core/java/android/view/IInputFilter.aidl \
        core/java/android/view/IInputFilterHost.aidl \
        core/java/android/view/IOnKeyguardExitResult.aidl \
        core/java/android/view/IRotationWatcher.aidl \
        core/java/android/view/IWindow.aidl \
+       core/java/android/view/IWindowFocusObserver.aidl \
+       core/java/android/view/IWindowId.aidl \
        core/java/android/view/IWindowManager.aidl \
        core/java/android/view/IWindowSession.aidl \
        core/java/android/speech/IRecognitionListener.aidl \
        core/java/android/speech/IRecognitionService.aidl \
        core/java/android/speech/tts/ITextToSpeechCallback.aidl \
        core/java/android/speech/tts/ITextToSpeechService.aidl \
+       core/java/com/android/internal/app/IAppOpsCallback.aidl \
+       core/java/com/android/internal/app/IAppOpsService.aidl \
        core/java/com/android/internal/app/IBatteryStats.aidl \
+       core/java/com/android/internal/app/IProcessStats.aidl \
        core/java/com/android/internal/app/IUsageStats.aidl \
        core/java/com/android/internal/app/IMediaContainerService.aidl \
        core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
        core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
        core/java/com/android/internal/backup/IBackupTransport.aidl \
+       core/java/com/android/internal/backup/IObbBackupService.aidl \
        core/java/com/android/internal/policy/IFaceLockCallback.aidl \
        core/java/com/android/internal/policy/IFaceLockInterface.aidl \
+       core/java/com/android/internal/policy/IKeyguardShowCallback.aidl \
+       core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
+       core/java/com/android/internal/policy/IKeyguardService.aidl \
        core/java/com/android/internal/os/IDropBoxManagerService.aidl \
        core/java/com/android/internal/os/IResultReceiver.aidl \
        core/java/com/android/internal/statusbar/IStatusBar.aidl \
@@ -186,10 +226,10 @@ LOCAL_SRC_FILES += \
        core/java/com/android/internal/view/IInputContext.aidl \
        core/java/com/android/internal/view/IInputContextCallback.aidl \
        core/java/com/android/internal/view/IInputMethod.aidl \
-       core/java/com/android/internal/view/IInputMethodCallback.aidl \
        core/java/com/android/internal/view/IInputMethodClient.aidl \
        core/java/com/android/internal/view/IInputMethodManager.aidl \
        core/java/com/android/internal/view/IInputMethodSession.aidl \
+       core/java/com/android/internal/view/IInputSessionCallback.aidl \
        core/java/com/android/internal/widget/ILockSettings.aidl \
        core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
        core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
@@ -197,35 +237,41 @@ LOCAL_SRC_FILES += \
        keystore/java/android/security/IKeyChainService.aidl \
        location/java/android/location/ICountryDetector.aidl \
        location/java/android/location/ICountryListener.aidl \
+       location/java/android/location/IFusedProvider.aidl \
        location/java/android/location/IGeocodeProvider.aidl \
+       location/java/android/location/IGeofenceProvider.aidl \
        location/java/android/location/IGpsStatusListener.aidl \
        location/java/android/location/IGpsStatusProvider.aidl \
        location/java/android/location/ILocationListener.aidl \
        location/java/android/location/ILocationManager.aidl \
+       location/java/android/location/IFusedGeofenceHardware.aidl \
+       location/java/android/location/IGpsGeofenceHardware.aidl \
        location/java/android/location/INetInitiatedListener.aidl \
        location/java/com/android/internal/location/ILocationProvider.aidl \
        media/java/android/media/IAudioService.aidl \
        media/java/android/media/IAudioFocusDispatcher.aidl \
        media/java/android/media/IAudioRoutesObserver.aidl \
+       media/java/android/media/IMediaRouterClient.aidl \
+       media/java/android/media/IMediaRouterService.aidl \
        media/java/android/media/IMediaScannerListener.aidl \
        media/java/android/media/IMediaScannerService.aidl \
        media/java/android/media/IRemoteControlClient.aidl \
        media/java/android/media/IRemoteControlDisplay.aidl \
+       media/java/android/media/IRemoteDisplayCallback.aidl \
+       media/java/android/media/IRemoteDisplayProvider.aidl \
        media/java/android/media/IRemoteVolumeObserver.aidl \
        media/java/android/media/IRingtonePlayer.aidl \
        telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
        telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
        telephony/java/com/android/internal/telephony/ITelephony.aidl \
+       telephony/java/com/android/internal/telephony/ISms.aidl \
        telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
        telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
-       telephony/java/com/android/internal/telephony/IExtendedNetworkService.aidl \
        wifi/java/android/net/wifi/IWifiManager.aidl \
        wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
-       voip/java/android/net/sip/ISipSession.aidl \
-       voip/java/android/net/sip/ISipSessionListener.aidl \
-       voip/java/android/net/sip/ISipService.aidl
-#
-
+       packages/services/PacProcessor/com/android/net/IProxyService.aidl \
+       packages/services/Proxy/com/android/net/IProxyCallback.aidl \
+       packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
 
 # FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
 LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
@@ -236,34 +282,67 @@ LOCAL_INTERMEDIATE_SOURCES := \
                        $(framework_res_source_path)/com/android/internal/R.java
 
 LOCAL_NO_STANDARD_LIBRARIES := true
-LOCAL_JAVA_LIBRARIES := bouncycastle core core-junit ext
+LOCAL_JAVA_LIBRARIES := bouncycastle conscrypt core core-junit ext okhttp
+
+LOCAL_MODULE := framework-base
+
+LOCAL_JAR_EXCLUDE_FILES := none
+
+include $(BUILD_STATIC_JAVA_LIBRARY)
+
+# Make sure that R.java and Manifest.java are built before we build
+# the source for this library.
+framework_res_R_stamp := \
+       $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
+$(full_classes_compiled_jar): $(framework_res_R_stamp)
+
+# Build part 1 of the framework library.
+# ============================================================
+include $(CLEAR_VARS)
 
 LOCAL_MODULE := framework
 LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+LOCAL_NO_STANDARD_LIBRARIES := true
+LOCAL_STATIC_JAVA_LIBRARIES := framework-base
+LOCAL_DX_FLAGS := --core-library
+
+# Packages to include, use \* wildcard to include descendants.
+LOCAL_JAR_PACKAGES := android\*
 
 # List of classes and interfaces which should be loaded by the Zygote.
 LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes
 
-#LOCAL_JARJAR_RULES := $(LOCAL_PATH)/jarjar-rules.txt
+include $(BUILD_JAVA_LIBRARY)
+framework_module := $(LOCAL_INSTALLED_MODULE)
 
+# Build part 2 of the framework library.
+# ============================================================
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := framework2
+LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+LOCAL_NO_STANDARD_LIBRARIES := true
+LOCAL_STATIC_JAVA_LIBRARIES := framework-base
 LOCAL_DX_FLAGS := --core-library
 
-include $(BUILD_JAVA_LIBRARY)
+# Packages to include, use \* wildcard to include descendants.
+LOCAL_JAR_PACKAGES := com\* javax\*
 
-# Make sure that R.java and Manifest.java are built before we build
-# the source for this library.
-framework_res_R_stamp := \
-       $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
-$(full_classes_compiled_jar): $(framework_res_R_stamp)
+include $(BUILD_JAVA_LIBRARY)
+framework2_module := $(LOCAL_INSTALLED_MODULE)
 
-# Make sure that framework-res is installed when framework is.
-$(LOCAL_INSTALLED_MODULE): | $(dir $(LOCAL_INSTALLED_MODULE))framework-res.apk
+# Make sure that all framework modules are installed when framework is.
+# ============================================================
+$(framework_module): | $(dir $(framework_module))framework-res.apk
+$(framework_module): | $(dir $(framework_module))framework2.jar
 
-framework_built := $(call java-lib-deps,framework)
+framework_built := $(call java-lib-deps,framework framework2)
 
-# AIDL files to be preprocessed and included in the SDK,
-# relative to the root of the build tree.
+# Copy AIDL files to be preprocessed and included in the SDK,
+# specified relative to the root of the build tree.
 # ============================================================
+include $(CLEAR_VARS)
+
 aidl_files := \
        frameworks/base/core/java/android/accounts/IAccountManager.aidl \
        frameworks/base/core/java/android/accounts/IAccountManagerResponse.aidl \
@@ -271,15 +350,19 @@ aidl_files := \
        frameworks/base/core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
        frameworks/base/core/java/android/app/Notification.aidl \
        frameworks/base/core/java/android/app/PendingIntent.aidl \
+       frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
        frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
        frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
        frameworks/base/core/java/android/content/ComponentName.aidl \
+       frameworks/base/core/java/android/content/ContentValues.aidl \
        frameworks/base/core/java/android/content/Intent.aidl \
        frameworks/base/core/java/android/content/IntentSender.aidl \
        frameworks/base/core/java/android/content/PeriodicSync.aidl \
+       frameworks/base/core/java/android/content/SyncRequest.aidl \
        frameworks/base/core/java/android/content/SyncStats.aidl \
        frameworks/base/core/java/android/content/res/Configuration.aidl \
-       frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
+       frameworks/base/core/java/android/database/CursorWindow.aidl \
+       frameworks/base/core/java/android/hardware/location/GeofenceHardwareRequestParcelable.aidl \
        frameworks/base/core/java/android/net/Uri.aidl \
        frameworks/base/core/java/android/nfc/NdefMessage.aidl \
        frameworks/base/core/java/android/nfc/NdefRecord.aidl \
@@ -300,7 +383,6 @@ aidl_files := \
        frameworks/base/core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
        frameworks/base/core/java/com/android/internal/view/IInputContext.aidl \
        frameworks/base/core/java/com/android/internal/view/IInputMethod.aidl \
-       frameworks/base/core/java/com/android/internal/view/IInputMethodCallback.aidl \
        frameworks/base/core/java/com/android/internal/view/IInputMethodClient.aidl \
        frameworks/base/core/java/com/android/internal/view/IInputMethodManager.aidl \
        frameworks/base/core/java/com/android/internal/view/IInputMethodSession.aidl \
@@ -311,11 +393,14 @@ aidl_files := \
        frameworks/base/location/java/android/location/Geofence.aidl \
        frameworks/base/location/java/android/location/Location.aidl \
        frameworks/base/location/java/android/location/LocationRequest.aidl \
+       frameworks/base/location/java/android/location/FusedBatchOptions.aidl \
        frameworks/base/location/java/com/android/internal/location/ProviderProperties.aidl \
        frameworks/base/location/java/com/android/internal/location/ProviderRequest.aidl \
        frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
        frameworks/base/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
        frameworks/base/telephony/java/com/android/internal/telephony/ITelephony.aidl \
+       frameworks/base/wifi/java/android/net/wifi/BatchedScanSettings.aidl \
+       frameworks/base/wifi/java/android/net/wifi/BatchedScanResult.aidl \
 
 gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
 $(gen): PRIVATE_SRC_FILES := $(aidl_files)
@@ -352,8 +437,11 @@ include external/junit/Common.mk
 
 non_base_dirs := \
        ../../external/apache-http/src/org/apache/http \
+       ../opt/telephony/src/java/android/provider \
        ../opt/telephony/src/java/android/telephony \
        ../opt/telephony/src/java/android/telephony/gsm \
+       ../opt/net/voip/src/java/android/net/rtp \
+       ../opt/net/voip/src/java/android/net/sip
 
 # These are relative to frameworks/base
 dirs_to_check_apis := \
@@ -395,17 +483,25 @@ framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
        $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
 
 framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
-                       $(framework_res_source_path)/android/R.java \
-                       $(framework_res_source_path)/android/Manifest.java \
-                       $(framework_res_source_path)/com/android/internal/R.java
+       $(framework_res_source_path)/android/R.java \
+       $(framework_res_source_path)/android/Manifest.java \
+       $(framework_res_source_path)/com/android/internal/R.java
+
+framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
+       bouncycastle \
+       conscrypt \
+       core \
+       okhttp \
+       ext \
+       framework \
+       framework2 \
+       mms-common \
+       telephony-common \
+       voip-common
 
 framework_docs_LOCAL_JAVA_LIBRARIES := \
-                       bouncycastle \
-                       core \
-                       ext \
-                       framework \
-                       mms-common \
-                       telephony-common \
+       $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
+       $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
 
 framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
 framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
@@ -413,135 +509,213 @@ framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
 # to the reference documentation. Must be in order of oldest to newest.
 framework_docs_LOCAL_DROIDDOC_OPTIONS := \
     -knowntags ./frameworks/base/docs/knowntags.txt \
-    -since ./frameworks/base/api/1.xml 1 \
-    -since ./frameworks/base/api/2.xml 2 \
-    -since ./frameworks/base/api/3.xml 3 \
-    -since ./frameworks/base/api/4.xml 4 \
-    -since ./frameworks/base/api/5.xml 5 \
-    -since ./frameworks/base/api/6.xml 6 \
-    -since ./frameworks/base/api/7.xml 7 \
-    -since ./frameworks/base/api/8.xml 8 \
-    -since ./frameworks/base/api/9.xml 9 \
-    -since ./frameworks/base/api/10.xml 10 \
-    -since ./frameworks/base/api/11.xml 11 \
-    -since ./frameworks/base/api/12.xml 12 \
-    -since ./frameworks/base/api/13.xml 13 \
-    -since ./frameworks/base/api/14.txt 14 \
-    -since ./frameworks/base/api/15.txt 15 \
-    -since ./frameworks/base/api/16.txt 16 \
-    -since ./frameworks/base/api/17.txt 17 \
+    -since $(SRC_API_DIR)/1.xml 1 \
+    -since $(SRC_API_DIR)/2.xml 2 \
+    -since $(SRC_API_DIR)/3.xml 3 \
+    -since $(SRC_API_DIR)/4.xml 4 \
+    -since $(SRC_API_DIR)/5.xml 5 \
+    -since $(SRC_API_DIR)/6.xml 6 \
+    -since $(SRC_API_DIR)/7.xml 7 \
+    -since $(SRC_API_DIR)/8.xml 8 \
+    -since $(SRC_API_DIR)/9.xml 9 \
+    -since $(SRC_API_DIR)/10.xml 10 \
+    -since $(SRC_API_DIR)/11.xml 11 \
+    -since $(SRC_API_DIR)/12.xml 12 \
+    -since $(SRC_API_DIR)/13.xml 13 \
+    -since $(SRC_API_DIR)/14.txt 14 \
+    -since $(SRC_API_DIR)/15.txt 15 \
+    -since $(SRC_API_DIR)/16.txt 16 \
+    -since $(SRC_API_DIR)/17.txt 17 \
+    -since $(SRC_API_DIR)/18.txt 18 \
+    -since $(SRC_API_DIR)/19.txt 19 \
                -werror -hide 113 \
                -overview $(LOCAL_PATH)/core/java/overview.html
 
-framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
+framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
+       $(call intermediates-dir-for,JAVA_LIBRARIES,framework-base,,COMMON)
+
+framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
+       $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
+       $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
+       $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
 
 framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
     frameworks/base/docs/knowntags.txt
 
-sample_dir := development/samples
+sample_dir := development/samples/browseable
+new_sample_dir := developers/samples/android
+
+# Whitelist of valid groups, used for default TOC grouping. Each sample must
+# belong to one (and only one) group. Assign samples to groups by setting
+# a sample.group var to one of these groups in the sample's _index.jd.
+sample_groups := -samplegroup Background \
+                 -samplegroup Connectivity \
+                 -samplegroup Content \
+                 -samplegroup Input \
+                 -samplegroup Media \
+                 -samplegroup Security \
+                 -samplegroup Testing \
+                 -samplegroup UI \
+                 -samplegroup Views
 
 # the list here should match the list of samples included in the sdk samples package
 # (see development/build/sdk.atree)
 # remove htmlified samples for now -- samples are still available through the SDK
-web_docs_sample_code_flags := \
+web_docs_sample_code_flags := \
                -hdf android.hasSamples 1 \
-               -samplecode $(sample_dir)/AccelerometerPlay \
-                           resources/samples/AccelerometerPlay "Accelerometer Play" \
-               -samplecode $(sample_dir)/ActionBarCompat \
-                           resources/samples/ActionBarCompat "Action Bar Compatibility" \
-                -samplecode $(sample_dir)/AndroidBeamDemo \
-                           resources/samples/AndroidBeamDemo "Android Beam Demo" \
-               -samplecode $(sample_dir)/ApiDemos \
-                           resources/samples/ApiDemos "API Demos" \
-               -samplecode $(sample_dir)/Support4Demos \
-                           resources/samples/Support4Demos "API 4+ Support Demos" \
-               -samplecode $(sample_dir)/Support13Demos \
-                           resources/samples/Support13Demos "API 13+ Support Demos" \
-               -samplecode $(sample_dir)/BackupRestore \
-                           resources/samples/BackupRestore "Backup and Restore" \
-               -samplecode $(sample_dir)/BluetoothChat \
-                           resources/samples/BluetoothChat "Bluetooth Chat" \
-               -samplecode $(sample_dir)/BluetoothHDP \
-                           resources/samples/BluetoothHDP "Bluetooth HDP Demo" \
-               -samplecode $(sample_dir)/BusinessCard \
-                           resources/samples/BusinessCard "Business Card" \
-               -samplecode $(sample_dir)/ContactManager \
-                           resources/samples/ContactManager "Contact Manager" \
-               -samplecode $(sample_dir)/CubeLiveWallpaper \
-                           resources/samples/CubeLiveWallpaper "Cube Live Wallpaper" \
-               -samplecode $(sample_dir)/Home \
-                           resources/samples/Home "Home" \
-               -samplecode $(sample_dir)/HoneycombGallery \
-                           resources/samples/HoneycombGallery "Honeycomb Gallery" \
-               -samplecode $(sample_dir)/JetBoy \
-                           resources/samples/JetBoy "JetBoy" \
-               -samplecode $(sample_dir)/KeyChainDemo \
-                           resources/samples/KeyChainDemo "KeyChain Demo" \
-               -samplecode $(sample_dir)/LunarLander \
-                           resources/samples/LunarLander "Lunar Lander" \
-               -samplecode $(sample_dir)/training/ads-and-ux \
-                           resources/samples/training/ads-and-ux "Mobile Advertisement Integration" \
-               -samplecode $(sample_dir)/MultiResolution \
-                           resources/samples/MultiResolution "Multiple Resolutions" \
-               -samplecode $(sample_dir)/training/multiscreen/newsreader \
-                           resources/samples/newsreader "News Reader" \
-               -samplecode $(sample_dir)/NotePad \
-                           resources/samples/NotePad "Note Pad" \
-               -samplecode $(sample_dir)/SpellChecker/SampleSpellCheckerService \
-                           resources/samples/SpellChecker/SampleSpellCheckerService "Spell Checker Service" \
-               -samplecode $(sample_dir)/SpellChecker/HelloSpellChecker \
-                           resources/samples/SpellChecker/HelloSpellChecker "Spell Checker Client" \
-               -samplecode $(sample_dir)/SampleSyncAdapter \
-                           resources/samples/SampleSyncAdapter "Sample Sync Adapter" \
-               -samplecode $(sample_dir)/RandomMusicPlayer \
-                           resources/samples/RandomMusicPlayer "Random Music Player" \
-               -samplecode $(sample_dir)/RenderScript \
-                           resources/samples/RenderScript "RenderScript" \
-               -samplecode $(sample_dir)/SearchableDictionary \
-                           resources/samples/SearchableDictionary "Searchable Dictionary v2" \
-               -samplecode $(sample_dir)/SipDemo \
-                           resources/samples/SipDemo "SIP Demo" \
-               -samplecode $(sample_dir)/Snake \
-                           resources/samples/Snake "Snake" \
-               -samplecode $(sample_dir)/SoftKeyboard \
-                           resources/samples/SoftKeyboard "Soft Keyboard" \
-               -samplecode $(sample_dir)/Spinner  \
-                           resources/samples/Spinner "Spinner" \
-               -samplecode $(sample_dir)/SpinnerTest \
-                           resources/samples/SpinnerTest "SpinnerTest" \
-               -samplecode $(sample_dir)/StackWidget \
-                           resources/samples/StackWidget "StackView Widget" \
-               -samplecode $(sample_dir)/TicTacToeLib  \
-                           resources/samples/TicTacToeLib "TicTacToeLib" \
-               -samplecode $(sample_dir)/TicTacToeMain \
-                           resources/samples/TicTacToeMain "TicTacToeMain" \
-               -samplecode $(sample_dir)/ToyVpn \
-                           resources/samples/ToyVpn "Toy VPN Client" \
-               -samplecode $(sample_dir)/USB \
-                           resources/samples/USB "USB" \
-               -samplecode $(sample_dir)/WeatherListWidget \
-                           resources/samples/WeatherListWidget "Weather List Widget" \
-               -samplecode $(sample_dir)/WiFiDirectDemo \
-                            resources/samples/WiFiDirectDemo "Wi-Fi Direct Demo" \
-               -samplecode $(sample_dir)/Wiktionary \
-                           resources/samples/Wiktionary "Wiktionary" \
-               -samplecode $(sample_dir)/WiktionarySimple \
-                           resources/samples/WiktionarySimple "Wiktionary (Simplified)" \
-               -samplecode $(sample_dir)/VoiceRecognitionService \
-                           resources/samples/VoiceRecognitionService "Voice Recognition Service" \
-               -samplecode $(sample_dir)/VoicemailProviderDemo \
-                           resources/samples/VoicemailProviderDemo "Voicemail Provider Demo" \
-               -samplecode $(sample_dir)/XmlAdapters \
-                           resources/samples/XmlAdapters "XML Adapters" \
-               -samplecode $(sample_dir)/TtsEngine \
-                           resources/samples/TtsEngine "Text To Speech Engine" \
-               -samplecode $(sample_dir)/training/device-management-policy \
-                           resources/samples/training/device-management-policy "Device Management Policy"
+               -samplecode $(sample_dir)/BasicAccessibility \
+                           samples/BasicAccessibility "" \
+               -samplecode $(sample_dir)/HorizontalPaging \
+                           samples/HorizontalPaging "" \
+               -samplecode $(sample_dir)/ShareActionProvider \
+                           samples/ShareActionProvider "" \
+               -samplecode $(sample_dir)/Styled \
+                           samples/Styled "" \
+               -samplecode $(sample_dir)/BasicAndroidKeyStore \
+                           samples/BasicAndroidKeyStore "" \
+               -samplecode $(sample_dir)/Basic \
+                           samples/Basic "" \
+               -samplecode $(sample_dir)/ImmersiveMode \
+                           samples/ImmersiveMode "" \
+               -samplecode $(sample_dir)/repeatingAlarm \
+                           samples/repeatingAlarm "" \
+               -samplecode $(sample_dir)/TextLinkify \
+                           samples/TextLinkify "" \
+               -samplecode $(sample_dir)/BasicMediaRouter \
+                           samples/BasicMediaRouter "" \
+               -samplecode $(sample_dir)/BasicMultitouch \
+                           samples/BasicMultitouch "" \
+               -samplecode $(sample_dir)/TextSwitcher \
+                           samples/TextSwitcher "" \
+               -samplecode $(sample_dir)/ActivityInstrumentation \
+                           samples/ActivityInstrumentation "" \
+               -samplecode $(sample_dir)/BorderlessButtons \
+                           samples/BorderlessButtons "" \
+               -samplecode $(sample_dir)/BasicNotifications \
+                           samples/BasicNotifications "" \
+               -samplecode $(sample_dir)/AdvancedImmersiveMode \
+                           samples/AdvancedImmersiveMode "" \
+               -samplecode $(sample_dir)/BluetoothLeGatt \
+                           samples/BluetoothLeGatt "" \
+               -samplecode $(sample_dir)/NetworkConnect \
+                           samples/NetworkConnect "" \
+               -samplecode $(sample_dir)/BasicNetworking \
+                           samples/BasicNetworking "" \
+               -samplecode $(sample_dir)/BasicMediaDecoder \
+                           samples/BasicMediaDecoder "" \
+               -samplecode $(sample_dir)/BasicImmersiveMode \
+                           samples/BasicImmersiveMode "" \
+               -samplecode $(sample_dir)/CustomChoiceList \
+                           samples/CustomChoiceList "" \
+               -samplecode $(sample_dir)/BasicContactables \
+                           samples/BasicContactables "" \
+               -samplecode $(sample_dir)/BasicGestureDetect \
+                           samples/BasicGestureDetect "" \
+               -samplecode $(sample_dir)/DoneBar \
+                           samples/DoneBar "" \
+               -samplecode $(sample_dir)/ListPopupMenu \
+                           samples/ListPopupMenu "" \
+               -samplecode $(sample_dir)/AppRestrictions \
+                           samples/AppRestrictions "" \
+               -samplecode $(sample_dir)/CustomNotifications \
+                           samples/CustomNotifications "" \
+               -samplecode $(sample_dir)/BasicSyncAdapter \
+                           samples/BasicSyncAdapter "" \
+               -samplecode $(sample_dir)/StorageClient \
+                           samples/StorageClient "" 
+#              -samplecode $(sample_dir)/StorageProvider \
+#                          samples/StorageProvider "" 
+#       -samplecode $(sample_dir)/AndroidBeamDemo \
+#                          samples/AndroidBeamDemo "Android Beam Demo" \
+#              -samplecode $(sample_dir)/ApiDemos \
+#                          samples/ApiDemos "API Demos" \
+#              -samplecode $(sample_dir)/Support4Demos \
+#                          samples/Support4Demos "API 4+ Support Demos" \
+#              -samplecode $(sample_dir)/Support13Demos \
+#                          samples/Support13Demos "API 13+ Support Demos" \
+#              -samplecode $(sample_dir)/BackupRestore \
+#                          samples/BackupRestore "Backup and Restore" \
+#              -samplecode $(sample_dir)/BluetoothChat \
+#                          samples/BluetoothChat "Bluetooth Chat" \
+#              -samplecode $(sample_dir)/BusinessCard \
+#                          samples/BusinessCard "Business Card" \
+#              -samplecode $(sample_dir)/ContactManager \
+#                          samples/ContactManager "Contact Manager" \
+#              -samplecode $(sample_dir)/CubeLiveWallpaper \
+#                          samples/CubeLiveWallpaper "Cube Live Wallpaper" \
+#              -samplecode $(sample_dir)/Home \
+#                          samples/Home "Home" \
+#              -samplecode $(sample_dir)/HoneycombGallery \
+#                          samples/HoneycombGallery "Honeycomb Gallery" \
+#              -samplecode $(sample_dir)/JetBoy \
+#                          samples/JetBoy "JetBoy" \
+#              -samplecode $(sample_dir)/KeyChainDemo \
+#                          samples/KeyChainDemo "KeyChain Demo" \
+#              -samplecode $(sample_dir)/LunarLander \
+#                          samples/LunarLander "Lunar Lander" \
+#              -samplecode $(sample_dir)/training/ads-and-ux \
+#                          samples/training/ads-and-ux "Mobile Advertisement Integration" \
+#              -samplecode $(sample_dir)/MultiResolution \
+#                          samples/MultiResolution "Multiple Resolutions" \
+#              -samplecode $(sample_dir)/training/multiscreen/newsreader \
+#                          samples/newsreader "News Reader" \
+#              -samplecode $(sample_dir)/NotePad \
+#                          samples/NotePad "Note Pad" \
+#              -samplecode $(sample_dir)/SpellChecker/SampleSpellCheckerService \
+#                          samples/SpellChecker/SampleSpellCheckerService "Spell Checker Service" \
+#              -samplecode $(sample_dir)/SpellChecker/HelloSpellChecker \
+#                          samples/SpellChecker/HelloSpellChecker "Spell Checker Client" \
+#              -samplecode $(sample_dir)/SampleSyncAdapter \
+#                          samples/SampleSyncAdapter "Sample Sync Adapter" \
+#              -samplecode $(sample_dir)/RandomMusicPlayer \
+#                          samples/RandomMusicPlayer "Random Music Player" \
+#              -samplecode $(sample_dir)/RenderScript \
+#                          samples/RenderScript "RenderScript" \
+#              -samplecode $(sample_dir)/SearchableDictionary \
+#                          samples/SearchableDictionary "Searchable Dictionary v2" \
+#              -samplecode $(sample_dir)/SipDemo \
+#                          samples/SipDemo "SIP Demo" \
+#              -samplecode $(sample_dir)/Snake \
+#                          samples/Snake "Snake" \
+#              -samplecode $(sample_dir)/SoftKeyboard \
+#                          samples/SoftKeyboard "Soft Keyboard" \
+#              -samplecode $(sample_dir)/Spinner  \
+#                          samples/Spinner "Spinner" \
+#              -samplecode $(sample_dir)/SpinnerTest \
+#                          samples/SpinnerTest "SpinnerTest" \
+#              -samplecode $(sample_dir)/StackWidget \
+#                          samples/StackWidget "StackView Widget" \
+#              -samplecode $(sample_dir)/TicTacToeLib  \
+#                          samples/TicTacToeLib "TicTacToeLib" \
+#              -samplecode $(sample_dir)/TicTacToeMain \
+#                          samples/TicTacToeMain "TicTacToeMain" \
+#              -samplecode $(sample_dir)/ToyVpn \
+#                          samples/ToyVpn "Toy VPN Client" \
+#              -samplecode $(sample_dir)/USB \
+#                          samples/USB "USB" \
+#              -samplecode $(sample_dir)/WeatherListWidget \
+#                          samples/WeatherListWidget "Weather List Widget" \
+#              -samplecode $(sample_dir)/WiFiDirectDemo \
+#                   samples/WiFiDirectDemo "Wi-Fi Direct Demo" \
+#              -samplecode $(sample_dir)/Wiktionary \
+#                          samples/Wiktionary "Wiktionary" \
+#              -samplecode $(sample_dir)/WiktionarySimple \
+#                          samples/WiktionarySimple "Wiktionary (Simplified)" \
+#              -samplecode $(sample_dir)/VoiceRecognitionService \
+#                          samples/VoiceRecognitionService "Voice Recognition Service" \
+#              -samplecode $(sample_dir)/VoicemailProviderDemo \
+#                          samples/VoicemailProviderDemo "Voicemail Provider Demo" \
+#              -samplecode $(sample_dir)/XmlAdapters \
+#                          samples/XmlAdapters "XML Adapters" \
+#              -samplecode $(sample_dir)/TtsEngine \
+#                          samples/TtsEngine "Text To Speech Engine" \
+#              -samplecode $(sample_dir)/training/device-management-policy \
+#                          samples/training/device-management-policy "Device Management Policy"
 
 
 ## SDK version identifiers used in the published docs
   # major[.minor] version for current SDK. (full releases only)
-framework_docs_SDK_VERSION:=4.2
+framework_docs_SDK_VERSION:=4.4
   # release version (ie "Release x")  (full releases only)
 framework_docs_SDK_REL_ID:=1
 
@@ -555,11 +729,11 @@ include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
-LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
+LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
-LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
+LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
 
 LOCAL_MODULE := api-stubs
@@ -608,7 +782,9 @@ include $(BUILD_DROIDDOC)
 # $(gen), i.e. framework.aidl, is also needed while building against the current stub.
 $(full_target): $(framework_built) $(gen)
 
-droidcore: doc-comment-check-docs
+# Run this for checkbuild
+.PHONY: checkbuild
+checkbuild: doc-comment-check-docs
 
 # ====  static html in the sdk ==================================
 include $(CLEAR_VARS)
@@ -626,13 +802,13 @@ LOCAL_MODULE := offline-sdk
 
 LOCAL_DROIDDOC_OPTIONS:=\
                $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
-                $(web_docs_sample_code_flags) \
-                -offlinemode \
+               -offlinemode \
                -title "Android SDK" \
                -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
                -todo $(OUT_DOCS)/$(LOCAL_MODULE)-docs-todo.html \
                -sdkvalues $(OUT_DOCS) \
                -hdf android.whichdoc offline
+#              $(web_docs_sample_code_flags)
 
 
 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
@@ -660,23 +836,21 @@ LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
+LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /intl/
 
 LOCAL_MODULE := online-sdk
 
 LOCAL_DROIDDOC_OPTIONS:= \
                $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
-               $(web_docs_sample_code_flags) \
                -toroot / \
                -hdf android.whichdoc online \
-               -hdf template.showLanguageMenu true
+               $(sample_groups) \
+               $(web_docs_sample_code_flags)
 
 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
 
 include $(BUILD_DROIDDOC)
 
-# explicitly specify that online-sdk depends on framework-res and any generated docs
-$(full_target): framework-res-package-target
-
 # ==== docs for the web (on the devsite app engine server) =======================
 include $(CLEAR_VARS)
 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
@@ -695,25 +869,22 @@ LOCAL_MODULE := ds
 
 LOCAL_DROIDDOC_OPTIONS:= \
                $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
-               $(web_docs_sample_code_flags) \
                -devsite \
                -toroot / \
                -hdf android.whichdoc online \
                -hdf devsite true
+#              $(web_docs_sample_code_flags)
 
 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
 
 include $(BUILD_DROIDDOC)
 
-# explicitly specify that ds depends on framework-res and any generated docs
-$(full_target): framework-res-package-target
-
 # ==== docs that have all of the stuff that's @hidden =======================
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
-LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES) framework
+LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)