Home | History | Annotate | Download | only in base
      1 #
      2 # Copyright (C) 2008 The Android Open Source Project
      3 #
      4 # Licensed under the Apache License, Version 2.0 (the "License");
      5 # you may not use this file except in compliance with the License.
      6 # You may obtain a copy of the License at
      7 #
      8 #      http://www.apache.org/licenses/LICENSE-2.0
      9 #
     10 # Unless required by applicable law or agreed to in writing, software
     11 # distributed under the License is distributed on an "AS IS" BASIS,
     12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 # See the License for the specific language governing permissions and
     14 # limitations under the License.
     15 #
     16 LOCAL_PATH := $(call my-dir)
     17 
     18 # We have a special case here where we build the library's resources
     19 # independently from its code, so we need to find where the resource
     20 # class source got placed in the course of building the resources.
     21 # Thus, the magic here.
     22 # Also, this module cannot depend directly on the R.java file; if it
     23 # did, the PRIVATE_* vars for R.java wouldn't be guaranteed to be correct.
     24 # Instead, it depends on the R.stamp file, which lists the corresponding
     25 # R.java file as a prerequisite.
     26 # TODO: find a more appropriate way to do this.
     27 framework_res_source_path := APPS/framework-res_intermediates/src
     28 
     29 # Build the master framework library.
     30 # The framework contains too many method references (>64K) for poor old DEX.
     31 # So we first build the framework as a monolithic static library then split it
     32 # up into smaller pieces.
     33 # ============================================================
     34 include $(CLEAR_VARS)
     35 
     36 # FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
     37 LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS))
     38 
     39 # EventLogTags files.
     40 LOCAL_SRC_FILES += \
     41        core/java/android/content/EventLogTags.logtags \
     42        core/java/android/speech/tts/EventLogTags.logtags \
     43        core/java/android/webkit/EventLogTags.logtags \
     44 
     45 ## READ ME: ########################################################
     46 ##
     47 ## When updating this list of aidl files, consider if that aidl is
     48 ## part of the SDK API.  If it is, also add it to the list below that
     49 ## is preprocessed and distributed with the SDK.  This list should
     50 ## not contain any aidl files for parcelables, but the one below should
     51 ## if you intend for 3rd parties to be able to send those objects
     52 ## across process boundaries.
     53 ##
     54 ## READ ME: ########################################################
     55 LOCAL_SRC_FILES += \
     56 	core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl \
     57 	core/java/android/accessibilityservice/IAccessibilityServiceClient.aidl \
     58 	core/java/android/accounts/IAccountManager.aidl \
     59 	core/java/android/accounts/IAccountManagerResponse.aidl \
     60 	core/java/android/accounts/IAccountAuthenticator.aidl \
     61 	core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
     62 	core/java/android/app/IActivityController.aidl \
     63 	core/java/android/app/IActivityPendingResult.aidl \
     64 	core/java/android/app/IAlarmManager.aidl \
     65 	core/java/android/app/IBackupAgent.aidl \
     66 	core/java/android/app/IInstrumentationWatcher.aidl \
     67 	core/java/android/app/INotificationManager.aidl \
     68 	core/java/android/app/IProcessObserver.aidl \
     69 	core/java/android/app/ISearchManager.aidl \
     70 	core/java/android/app/ISearchManagerCallback.aidl \
     71 	core/java/android/app/IServiceConnection.aidl \
     72 	core/java/android/app/IStopUserCallback.aidl \
     73 	core/java/android/app/IThumbnailReceiver.aidl \
     74 	core/java/android/app/IThumbnailRetriever.aidl \
     75 	core/java/android/app/ITransientNotification.aidl \
     76 	core/java/android/app/IUiAutomationConnection.aidl \
     77 	core/java/android/app/IUiModeManager.aidl \
     78 	core/java/android/app/IUserSwitchObserver.aidl \
     79 	core/java/android/app/IWallpaperManager.aidl \
     80 	core/java/android/app/IWallpaperManagerCallback.aidl \
     81 	core/java/android/app/admin/IDevicePolicyManager.aidl \
     82 	core/java/android/app/backup/IBackupManager.aidl \
     83 	core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
     84 	core/java/android/app/backup/IRestoreObserver.aidl \
     85 	core/java/android/app/backup/IRestoreSession.aidl \
     86 	core/java/android/bluetooth/IBluetooth.aidl \
     87 	core/java/android/bluetooth/IBluetoothA2dp.aidl \
     88 	core/java/android/bluetooth/IBluetoothCallback.aidl \
     89 	core/java/android/bluetooth/IBluetoothHeadset.aidl \
     90 	core/java/android/bluetooth/IBluetoothHeadsetPhone.aidl \
     91 	core/java/android/bluetooth/IBluetoothHealth.aidl \
     92 	core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
     93 	core/java/android/bluetooth/IBluetoothInputDevice.aidl \
     94 	core/java/android/bluetooth/IBluetoothPan.aidl \
     95 	core/java/android/bluetooth/IBluetoothManager.aidl \
     96 	core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
     97 	core/java/android/bluetooth/IBluetoothPbap.aidl \
     98 	core/java/android/bluetooth/IBluetoothMap.aidl \
     99 	core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
    100 	core/java/android/bluetooth/IBluetoothGatt.aidl \
    101 	core/java/android/bluetooth/IBluetoothGattCallback.aidl \
    102 	core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
    103 	core/java/android/content/IClipboard.aidl \
    104 	core/java/android/content/IContentService.aidl \
    105 	core/java/android/content/IIntentReceiver.aidl \
    106 	core/java/android/content/IIntentSender.aidl \
    107 	core/java/android/content/IOnPrimaryClipChangedListener.aidl \
    108 	core/java/android/content/IAnonymousSyncAdapter.aidl \
    109 	core/java/android/content/ISyncAdapter.aidl \
    110 	core/java/android/content/ISyncContext.aidl \
    111 	core/java/android/content/ISyncStatusObserver.aidl \
    112 	core/java/android/content/pm/IPackageDataObserver.aidl \
    113 	core/java/android/content/pm/IPackageDeleteObserver.aidl \
    114 	core/java/android/content/pm/IPackageInstallObserver.aidl \
    115 	core/java/android/content/pm/IPackageManager.aidl \
    116 	core/java/android/content/pm/IPackageMoveObserver.aidl \
    117 	core/java/android/content/pm/IPackageStatsObserver.aidl \
    118 	core/java/android/database/IContentObserver.aidl \
    119 	core/java/android/hardware/ICameraService.aidl \
    120 	core/java/android/hardware/ICameraServiceListener.aidl \
    121 	core/java/android/hardware/ICamera.aidl \
    122 	core/java/android/hardware/ICameraClient.aidl \
    123 	core/java/android/hardware/IConsumerIrService.aidl \
    124 	core/java/android/hardware/IProCameraUser.aidl \
    125 	core/java/android/hardware/IProCameraCallbacks.aidl \
    126 	core/java/android/hardware/camera2/ICameraDeviceUser.aidl \
    127 	core/java/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
    128 	core/java/android/hardware/ISerialManager.aidl \
    129 	core/java/android/hardware/display/IDisplayManager.aidl \
    130 	core/java/android/hardware/display/IDisplayManagerCallback.aidl \
    131 	core/java/android/hardware/input/IInputManager.aidl \
    132 	core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
    133 	core/java/android/hardware/location/IFusedLocationHardware.aidl \
    134 	core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
    135 	core/java/android/hardware/location/IGeofenceHardware.aidl \
    136 	core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
    137 	core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
    138 	core/java/android/hardware/usb/IUsbManager.aidl \
    139 	core/java/android/net/IConnectivityManager.aidl \
    140 	core/java/android/net/INetworkManagementEventObserver.aidl \
    141 	core/java/android/net/INetworkPolicyListener.aidl \
    142 	core/java/android/net/INetworkPolicyManager.aidl \
    143 	core/java/android/net/INetworkStatsService.aidl \
    144 	core/java/android/net/INetworkStatsSession.aidl \
    145 	core/java/android/net/nsd/INsdManager.aidl \
    146 	core/java/android/nfc/IAppCallback.aidl \
    147 	core/java/android/nfc/INfcAdapter.aidl \
    148 	core/java/android/nfc/INfcAdapterExtras.aidl \
    149 	core/java/android/nfc/INfcTag.aidl \
    150 	core/java/android/nfc/INfcCardEmulation.aidl \
    151 	core/java/android/os/IBatteryPropertiesListener.aidl \
    152 	core/java/android/os/IBatteryPropertiesRegistrar.aidl \
    153 	core/java/android/os/ICancellationSignal.aidl \
    154 	core/java/android/os/IHardwareService.aidl \
    155 	core/java/android/os/IMessenger.aidl \
    156 	core/java/android/os/INetworkManagementService.aidl \
    157 	core/java/android/os/IPermissionController.aidl \
    158 	core/java/android/os/IPowerManager.aidl \
    159 	core/java/android/os/IRemoteCallback.aidl \
    160 	core/java/android/os/ISchedulingPolicyService.aidl \
    161 	core/java/android/os/IUpdateLock.aidl \
    162 	core/java/android/os/IUserManager.aidl \
    163 	core/java/android/os/IVibratorService.aidl \
    164 	core/java/android/service/notification/INotificationListener.aidl \
    165 	core/java/android/print/ILayoutResultCallback.aidl \
    166 	core/java/android/print/IPrinterDiscoveryObserver.aidl \
    167 	core/java/android/print/IPrintDocumentAdapter.aidl \
    168 	core/java/android/print/IPrintDocumentAdapterObserver.aidl \
    169 	core/java/android/print/IPrintJobStateChangeListener.aidl \
    170 	core/java/android/print/IPrintManager.aidl \
    171 	core/java/android/print/IPrintSpooler.aidl \
    172 	core/java/android/print/IPrintSpoolerCallbacks.aidl \
    173 	core/java/android/print/IPrintSpoolerClient.aidl \
    174 	core/java/android/print/IWriteResultCallback.aidl \
    175 	core/java/android/printservice/IPrintService.aidl \
    176 	core/java/android/printservice/IPrintServiceClient.aidl \
    177 	core/java/android/service/dreams/IDreamManager.aidl \
    178 	core/java/android/service/dreams/IDreamService.aidl \
    179 	core/java/android/service/wallpaper/IWallpaperConnection.aidl \
    180 	core/java/android/service/wallpaper/IWallpaperEngine.aidl \
    181 	core/java/android/service/wallpaper/IWallpaperService.aidl \
    182 	core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
    183 	core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
    184 	core/java/android/view/accessibility/IAccessibilityManager.aidl \
    185 	core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
    186 	core/java/android/view/IApplicationToken.aidl \
    187 	core/java/android/view/IAssetAtlas.aidl \
    188 	core/java/android/view/IMagnificationCallbacks.aidl \
    189 	core/java/android/view/IInputFilter.aidl \
    190 	core/java/android/view/IInputFilterHost.aidl \
    191 	core/java/android/view/IOnKeyguardExitResult.aidl \
    192 	core/java/android/view/IRotationWatcher.aidl \
    193 	core/java/android/view/IWindow.aidl \
    194 	core/java/android/view/IWindowFocusObserver.aidl \
    195 	core/java/android/view/IWindowId.aidl \
    196 	core/java/android/view/IWindowManager.aidl \
    197 	core/java/android/view/IWindowSession.aidl \
    198 	core/java/android/speech/IRecognitionListener.aidl \
    199 	core/java/android/speech/IRecognitionService.aidl \
    200 	core/java/android/speech/tts/ITextToSpeechCallback.aidl \
    201 	core/java/android/speech/tts/ITextToSpeechService.aidl \
    202 	core/java/com/android/internal/app/IAppOpsCallback.aidl \
    203 	core/java/com/android/internal/app/IAppOpsService.aidl \
    204 	core/java/com/android/internal/app/IBatteryStats.aidl \
    205 	core/java/com/android/internal/app/IProcessStats.aidl \
    206 	core/java/com/android/internal/app/IUsageStats.aidl \
    207 	core/java/com/android/internal/app/IMediaContainerService.aidl \
    208 	core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
    209 	core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
    210 	core/java/com/android/internal/backup/IBackupTransport.aidl \
    211 	core/java/com/android/internal/backup/IObbBackupService.aidl \
    212 	core/java/com/android/internal/policy/IFaceLockCallback.aidl \
    213 	core/java/com/android/internal/policy/IFaceLockInterface.aidl \
    214 	core/java/com/android/internal/policy/IKeyguardShowCallback.aidl \
    215 	core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
    216 	core/java/com/android/internal/policy/IKeyguardService.aidl \
    217 	core/java/com/android/internal/os/IDropBoxManagerService.aidl \
    218 	core/java/com/android/internal/os/IResultReceiver.aidl \
    219 	core/java/com/android/internal/statusbar/IStatusBar.aidl \
    220 	core/java/com/android/internal/statusbar/IStatusBarService.aidl \
    221 	core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
    222 	core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
    223 	core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
    224 	core/java/com/android/internal/textservice/ITextServicesManager.aidl \
    225 	core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
    226 	core/java/com/android/internal/view/IInputContext.aidl \
    227 	core/java/com/android/internal/view/IInputContextCallback.aidl \
    228 	core/java/com/android/internal/view/IInputMethod.aidl \
    229 	core/java/com/android/internal/view/IInputMethodClient.aidl \
    230 	core/java/com/android/internal/view/IInputMethodManager.aidl \
    231 	core/java/com/android/internal/view/IInputMethodSession.aidl \
    232 	core/java/com/android/internal/view/IInputSessionCallback.aidl \
    233 	core/java/com/android/internal/widget/ILockSettings.aidl \
    234 	core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
    235 	core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
    236 	keystore/java/android/security/IKeyChainAliasCallback.aidl \
    237 	keystore/java/android/security/IKeyChainService.aidl \
    238 	location/java/android/location/ICountryDetector.aidl \
    239 	location/java/android/location/ICountryListener.aidl \
    240 	location/java/android/location/IFusedProvider.aidl \
    241 	location/java/android/location/IGeocodeProvider.aidl \
    242 	location/java/android/location/IGeofenceProvider.aidl \
    243 	location/java/android/location/IGpsStatusListener.aidl \
    244 	location/java/android/location/IGpsStatusProvider.aidl \
    245 	location/java/android/location/ILocationListener.aidl \
    246 	location/java/android/location/ILocationManager.aidl \
    247 	location/java/android/location/IFusedGeofenceHardware.aidl \
    248 	location/java/android/location/IGpsGeofenceHardware.aidl \
    249 	location/java/android/location/INetInitiatedListener.aidl \
    250 	location/java/com/android/internal/location/ILocationProvider.aidl \
    251 	media/java/android/media/IAudioService.aidl \
    252 	media/java/android/media/IAudioFocusDispatcher.aidl \
    253 	media/java/android/media/IAudioRoutesObserver.aidl \
    254 	media/java/android/media/IMediaRouterClient.aidl \
    255 	media/java/android/media/IMediaRouterService.aidl \
    256 	media/java/android/media/IMediaScannerListener.aidl \
    257 	media/java/android/media/IMediaScannerService.aidl \
    258 	media/java/android/media/IRemoteControlClient.aidl \
    259 	media/java/android/media/IRemoteControlDisplay.aidl \
    260 	media/java/android/media/IRemoteDisplayCallback.aidl \
    261 	media/java/android/media/IRemoteDisplayProvider.aidl \
    262 	media/java/android/media/IRemoteVolumeObserver.aidl \
    263 	media/java/android/media/IRingtonePlayer.aidl \
    264 	telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
    265 	telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
    266 	telephony/java/com/android/internal/telephony/ITelephony.aidl \
    267 	telephony/java/com/android/internal/telephony/ITelephonyListener.aidl \
    268 	telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
    269 	telephony/java/com/android/internal/telephony/ISms.aidl \
    270 	telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
    271 	wifi/java/android/net/wifi/IWifiManager.aidl \
    272 	wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
    273 	packages/services/PacProcessor/com/android/net/IProxyService.aidl \
    274 	packages/services/Proxy/com/android/net/IProxyCallback.aidl \
    275 	packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
    276 
    277 # FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
    278 LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
    279 
    280 LOCAL_INTERMEDIATE_SOURCES := \
    281 			$(framework_res_source_path)/android/R.java \
    282 			$(framework_res_source_path)/android/Manifest.java \
    283 			$(framework_res_source_path)/com/android/internal/R.java
    284 
    285 LOCAL_NO_STANDARD_LIBRARIES := true
    286 LOCAL_JAVA_LIBRARIES := bouncycastle conscrypt core core-junit ext okhttp
    287 
    288 LOCAL_MODULE := framework-base
    289 
    290 LOCAL_JAR_EXCLUDE_FILES := none
    291 
    292 include $(BUILD_STATIC_JAVA_LIBRARY)
    293 
    294 # Make sure that R.java and Manifest.java are built before we build
    295 # the source for this library.
    296 framework_res_R_stamp := \
    297 	$(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
    298 $(full_classes_compiled_jar): $(framework_res_R_stamp)
    299 
    300 # Build part 1 of the framework library.
    301 # ============================================================
    302 include $(CLEAR_VARS)
    303 
    304 LOCAL_MODULE := framework
    305 LOCAL_MODULE_CLASS := JAVA_LIBRARIES
    306 LOCAL_NO_STANDARD_LIBRARIES := true
    307 LOCAL_STATIC_JAVA_LIBRARIES := framework-base
    308 LOCAL_DX_FLAGS := --core-library
    309 
    310 # Packages to include, use \* wildcard to include descendants.
    311 LOCAL_JAR_PACKAGES := android\*
    312 
    313 # List of classes and interfaces which should be loaded by the Zygote.
    314 LOCAL_JAVA_RESOURCE_FILES += $(LOCAL_PATH)/preloaded-classes
    315 
    316 include $(BUILD_JAVA_LIBRARY)
    317 framework_module := $(LOCAL_INSTALLED_MODULE)
    318 
    319 # Build part 2 of the framework library.
    320 # ============================================================
    321 include $(CLEAR_VARS)
    322 
    323 LOCAL_MODULE := framework2
    324 LOCAL_MODULE_CLASS := JAVA_LIBRARIES
    325 LOCAL_NO_STANDARD_LIBRARIES := true
    326 LOCAL_STATIC_JAVA_LIBRARIES := framework-base
    327 LOCAL_DX_FLAGS := --core-library
    328 
    329 # Packages to include, use \* wildcard to include descendants.
    330 LOCAL_JAR_PACKAGES := com\* javax\*
    331 
    332 include $(BUILD_JAVA_LIBRARY)
    333 framework2_module := $(LOCAL_INSTALLED_MODULE)
    334 
    335 # Make sure that all framework modules are installed when framework is.
    336 # ============================================================
    337 $(framework_module): | $(dir $(framework_module))framework-res.apk
    338 $(framework_module): | $(dir $(framework_module))framework2.jar
    339 
    340 framework_built := $(call java-lib-deps,framework framework2)
    341 
    342 # Copy AIDL files to be preprocessed and included in the SDK,
    343 # specified relative to the root of the build tree.
    344 # ============================================================
    345 include $(CLEAR_VARS)
    346 
    347 aidl_files := \
    348 	frameworks/base/core/java/android/accounts/IAccountManager.aidl \
    349 	frameworks/base/core/java/android/accounts/IAccountManagerResponse.aidl \
    350 	frameworks/base/core/java/android/accounts/IAccountAuthenticator.aidl \
    351 	frameworks/base/core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
    352 	frameworks/base/core/java/android/app/Notification.aidl \
    353 	frameworks/base/core/java/android/app/PendingIntent.aidl \
    354 	frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
    355 	frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
    356 	frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
    357 	frameworks/base/core/java/android/content/ComponentName.aidl \
    358 	frameworks/base/core/java/android/content/ContentValues.aidl \
    359 	frameworks/base/core/java/android/content/Intent.aidl \
    360 	frameworks/base/core/java/android/content/IntentSender.aidl \
    361 	frameworks/base/core/java/android/content/PeriodicSync.aidl \
    362 	frameworks/base/core/java/android/content/SyncRequest.aidl \
    363 	frameworks/base/core/java/android/content/SyncStats.aidl \
    364 	frameworks/base/core/java/android/content/res/Configuration.aidl \
    365 	frameworks/base/core/java/android/database/CursorWindow.aidl \
    366 	frameworks/base/core/java/android/hardware/location/GeofenceHardwareRequestParcelable.aidl \
    367 	frameworks/base/core/java/android/net/Uri.aidl \
    368 	frameworks/base/core/java/android/nfc/NdefMessage.aidl \
    369 	frameworks/base/core/java/android/nfc/NdefRecord.aidl \
    370 	frameworks/base/core/java/android/nfc/Tag.aidl \
    371 	frameworks/base/core/java/android/os/Bundle.aidl \
    372 	frameworks/base/core/java/android/os/DropBoxManager.aidl \
    373 	frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
    374 	frameworks/base/core/java/android/os/ParcelUuid.aidl \
    375 	frameworks/base/core/java/android/view/KeyEvent.aidl \
    376 	frameworks/base/core/java/android/view/MotionEvent.aidl \
    377 	frameworks/base/core/java/android/view/Surface.aidl \
    378 	frameworks/base/core/java/android/view/WindowManager.aidl \
    379 	frameworks/base/core/java/android/widget/RemoteViews.aidl \
    380 	frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
    381 	frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
    382 	frameworks/base/core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
    383 	frameworks/base/core/java/com/android/internal/textservice/ITextServicesManager.aidl \
    384 	frameworks/base/core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
    385 	frameworks/base/core/java/com/android/internal/view/IInputContext.aidl \
    386 	frameworks/base/core/java/com/android/internal/view/IInputMethod.aidl \
    387 	frameworks/base/core/java/com/android/internal/view/IInputMethodClient.aidl \
    388 	frameworks/base/core/java/com/android/internal/view/IInputMethodManager.aidl \
    389 	frameworks/base/core/java/com/android/internal/view/IInputMethodSession.aidl \
    390 	frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
    391 	frameworks/base/graphics/java/android/graphics/Rect.aidl \
    392 	frameworks/base/graphics/java/android/graphics/Region.aidl \
    393 	frameworks/base/location/java/android/location/Criteria.aidl \
    394 	frameworks/base/location/java/android/location/Geofence.aidl \
    395 	frameworks/base/location/java/android/location/Location.aidl \
    396 	frameworks/base/location/java/android/location/LocationRequest.aidl \
    397 	frameworks/base/location/java/android/location/FusedBatchOptions.aidl \
    398 	frameworks/base/location/java/com/android/internal/location/ProviderProperties.aidl \
    399 	frameworks/base/location/java/com/android/internal/location/ProviderRequest.aidl \
    400 	frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
    401 	frameworks/base/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
    402 	frameworks/base/telephony/java/com/android/internal/telephony/ITelephony.aidl \
    403 	frameworks/base/wifi/java/android/net/wifi/BatchedScanSettings.aidl \
    404 	frameworks/base/wifi/java/android/net/wifi/BatchedScanResult.aidl \
    405 
    406 gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
    407 $(gen): PRIVATE_SRC_FILES := $(aidl_files)
    408 ALL_SDK_FILES += $(gen)
    409 $(gen): $(aidl_files) | $(AIDL)
    410 		@echo Aidl Preprocess: $@
    411 		$(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
    412 
    413 # the documentation
    414 # ============================================================
    415 
    416 # TODO: deal with com/google/android/googleapps
    417 packages_to_document := \
    418 	android \
    419 	javax/microedition/khronos
    420 
    421 # Search through the base framework dirs for these packages.
    422 # The result will be relative to frameworks/base.
    423 fwbase_dirs_to_document := \
    424 	test-runner/src \
    425 	$(patsubst $(LOCAL_PATH)/%,%, \
    426 	  $(wildcard \
    427 	    $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
    428 	      $(addprefix $(dir)/, $(packages_to_document)) \
    429 	     ) \
    430 	   ) \
    431 	 )
    432 
    433 # include definition of libcore_to_document
    434 include libcore/Docs.mk
    435 
    436 # include definition of junit_to_document
    437 include external/junit/Common.mk
    438 
    439 non_base_dirs := \
    440 	../../external/apache-http/src/org/apache/http \
    441 	../opt/telephony/src/java/android/provider \
    442 	../opt/telephony/src/java/android/telephony \
    443 	../opt/telephony/src/java/android/telephony/gsm \
    444 	../opt/net/voip/src/java/android/net/rtp \
    445 	../opt/net/voip/src/java/android/net/sip
    446 
    447 # These are relative to frameworks/base
    448 dirs_to_check_apis := \
    449   $(fwbase_dirs_to_document) \
    450 	$(non_base_dirs)
    451 
    452 # These are relative to frameworks/base
    453 # FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
    454 dirs_to_document := \
    455 	$(dirs_to_check_apis) \
    456   $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS))
    457 
    458 # These are relative to frameworks/base
    459 html_dirs := \
    460 	$(FRAMEWORKS_BASE_SUBDIRS) \
    461 	$(non_base_dirs)
    462 
    463 # Common sources for doc check and api check
    464 common_src_files := \
    465 	$(call find-other-html-files, $(html_dirs)) \
    466 	$(addprefix ../../libcore/, $(call libcore_to_document, $(LOCAL_PATH)/../../libcore)) \
    467 	$(addprefix ../../external/junit/, $(call junit_to_document, $(LOCAL_PATH)/../../external/junit))
    468 
    469 # These are relative to frameworks/base
    470 framework_docs_LOCAL_SRC_FILES := \
    471 	$(call find-other-java-files, $(dirs_to_document)) \
    472 	$(common_src_files)
    473 
    474 # These are relative to frameworks/base
    475 framework_docs_LOCAL_API_CHECK_SRC_FILES := \
    476 	$(call find-other-java-files, $(dirs_to_check_apis)) \
    477 	$(common_src_files)
    478 
    479 # This is used by ide.mk as the list of source files that are
    480 # always included.
    481 INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
    482 
    483 framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
    484 	$(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
    485 
    486 framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
    487 	$(framework_res_source_path)/android/R.java \
    488 	$(framework_res_source_path)/android/Manifest.java \
    489 	$(framework_res_source_path)/com/android/internal/R.java
    490 
    491 framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
    492 	bouncycastle \
    493 	conscrypt \
    494 	core \
    495 	okhttp \
    496 	ext \
    497 	framework \
    498 	framework2 \
    499 	mms-common \
    500 	telephony-common \
    501 	voip-common
    502 
    503 framework_docs_LOCAL_JAVA_LIBRARIES := \
    504 	$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
    505 	$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
    506 
    507 framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
    508 framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
    509 # The since flag (-since N.xml API_LEVEL) is used to add API Level information
    510 # to the reference documentation. Must be in order of oldest to newest.
    511 framework_docs_LOCAL_DROIDDOC_OPTIONS := \
    512     -knowntags ./frameworks/base/docs/knowntags.txt \
    513     -since $(SRC_API_DIR)/1.xml 1 \
    514     -since $(SRC_API_DIR)/2.xml 2 \
    515     -since $(SRC_API_DIR)/3.xml 3 \
    516     -since $(SRC_API_DIR)/4.xml 4 \
    517     -since $(SRC_API_DIR)/5.xml 5 \
    518     -since $(SRC_API_DIR)/6.xml 6 \
    519     -since $(SRC_API_DIR)/7.xml 7 \
    520     -since $(SRC_API_DIR)/8.xml 8 \
    521     -since $(SRC_API_DIR)/9.xml 9 \
    522     -since $(SRC_API_DIR)/10.xml 10 \
    523     -since $(SRC_API_DIR)/11.xml 11 \
    524     -since $(SRC_API_DIR)/12.xml 12 \
    525     -since $(SRC_API_DIR)/13.xml 13 \
    526     -since $(SRC_API_DIR)/14.txt 14 \
    527     -since $(SRC_API_DIR)/15.txt 15 \
    528     -since $(SRC_API_DIR)/16.txt 16 \
    529     -since $(SRC_API_DIR)/17.txt 17 \
    530     -since $(SRC_API_DIR)/18.txt 18 \
    531     -since $(SRC_API_DIR)/19.txt 19 \
    532 		-werror -hide 113 \
    533 		-overview $(LOCAL_PATH)/core/java/overview.html
    534 
    535 framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
    536 	$(call intermediates-dir-for,JAVA_LIBRARIES,framework-base,,COMMON)
    537 
    538 framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
    539 	$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
    540 	$(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
    541 	$(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
    542 
    543 framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
    544     frameworks/base/docs/knowntags.txt
    545 
    546 sample_dir := development/samples/browseable
    547 new_sample_dir := developers/samples/android
    548 
    549 # Whitelist of valid groups, used for default TOC grouping. Each sample must
    550 # belong to one (and only one) group. Assign samples to groups by setting
    551 # a sample.group var to one of these groups in the sample's _index.jd.
    552 sample_groups := -samplegroup Background \
    553                  -samplegroup Connectivity \
    554                  -samplegroup Content \
    555                  -samplegroup Input \
    556                  -samplegroup Media \
    557                  -samplegroup Security \
    558                  -samplegroup Testing \
    559                  -samplegroup UI \
    560                  -samplegroup Views
    561 
    562 # the list here should match the list of samples included in the sdk samples package
    563 # (see development/build/sdk.atree)
    564 # remove htmlified samples for now -- samples are still available through the SDK
    565 web_docs_sample_code_flags := \
    566 		-hdf android.hasSamples 1 \
    567 		-samplecode $(sample_dir)/BasicAccessibility \
    568  		            samples/BasicAccessibility "" \
    569 		-samplecode $(sample_dir)/HorizontalPaging \
    570  		            samples/HorizontalPaging "" \
    571 		-samplecode $(sample_dir)/ShareActionProvider \
    572  		            samples/ShareActionProvider "" \
    573 		-samplecode $(sample_dir)/Styled \
    574  		            samples/Styled "" \
    575 		-samplecode $(sample_dir)/BasicAndroidKeyStore \
    576  		            samples/BasicAndroidKeyStore "" \
    577 		-samplecode $(sample_dir)/Basic \
    578  		            samples/Basic "" \
    579 		-samplecode $(sample_dir)/ImmersiveMode \
    580  		            samples/ImmersiveMode "" \
    581 		-samplecode $(sample_dir)/repeatingAlarm \
    582  		            samples/repeatingAlarm "" \
    583 		-samplecode $(sample_dir)/TextLinkify \
    584  		            samples/TextLinkify "" \
    585 		-samplecode $(sample_dir)/BasicMediaRouter \
    586  		            samples/BasicMediaRouter "" \
    587 		-samplecode $(sample_dir)/BasicMultitouch \
    588  		            samples/BasicMultitouch "" \
    589 		-samplecode $(sample_dir)/TextSwitcher \
    590  		            samples/TextSwitcher "" \
    591 		-samplecode $(sample_dir)/ActivityInstrumentation \
    592  		            samples/ActivityInstrumentation "" \
    593 		-samplecode $(sample_dir)/BorderlessButtons \
    594  		            samples/BorderlessButtons "" \
    595 		-samplecode $(sample_dir)/BasicNotifications \
    596  		            samples/BasicNotifications "" \
    597 		-samplecode $(sample_dir)/AdvancedImmersiveMode \
    598  		            samples/AdvancedImmersiveMode "" \
    599 		-samplecode $(sample_dir)/BluetoothLeGatt \
    600  		            samples/BluetoothLeGatt "" \
    601 		-samplecode $(sample_dir)/NetworkConnect \
    602  		            samples/NetworkConnect "" \
    603 		-samplecode $(sample_dir)/BasicNetworking \
    604  		            samples/BasicNetworking "" \
    605 		-samplecode $(sample_dir)/BasicMediaDecoder \
    606  		            samples/BasicMediaDecoder "" \
    607 		-samplecode $(sample_dir)/BasicImmersiveMode \
    608  		            samples/BasicImmersiveMode "" \
    609 		-samplecode $(sample_dir)/CustomChoiceList \
    610  		            samples/CustomChoiceList "" \
    611 		-samplecode $(sample_dir)/BasicContactables \
    612  		            samples/BasicContactables "" \
    613 		-samplecode $(sample_dir)/BasicGestureDetect \
    614  		            samples/BasicGestureDetect "" \
    615 		-samplecode $(sample_dir)/DoneBar \
    616  		            samples/DoneBar "" \
    617 		-samplecode $(sample_dir)/ListPopupMenu \
    618  		            samples/ListPopupMenu "" \
    619 		-samplecode $(sample_dir)/AppRestrictions \
    620  		            samples/AppRestrictions "" \
    621 		-samplecode $(sample_dir)/CustomNotifications \
    622  		            samples/CustomNotifications "" \
    623 		-samplecode $(sample_dir)/BasicSyncAdapter \
    624  		            samples/BasicSyncAdapter "" \
    625 		-samplecode $(sample_dir)/StorageClient \
    626  		            samples/StorageClient "" 
    627 #		-samplecode $(sample_dir)/StorageProvider \
    628 # 		            samples/StorageProvider "" 
    629 #       -samplecode $(sample_dir)/AndroidBeamDemo \
    630 # 		            samples/AndroidBeamDemo "Android Beam Demo" \
    631 # 		-samplecode $(sample_dir)/ApiDemos \
    632 # 		            samples/ApiDemos "API Demos" \
    633 # 		-samplecode $(sample_dir)/Support4Demos \
    634 # 		            samples/Support4Demos "API 4+ Support Demos" \
    635 # 		-samplecode $(sample_dir)/Support13Demos \
    636 # 		            samples/Support13Demos "API 13+ Support Demos" \
    637 # 		-samplecode $(sample_dir)/BackupRestore \
    638 # 		            samples/BackupRestore "Backup and Restore" \
    639 #		-samplecode $(sample_dir)/BluetoothChat \
    640 # 		            samples/BluetoothChat "Bluetooth Chat" \
    641 # 		-samplecode $(sample_dir)/BusinessCard \
    642 # 		            samples/BusinessCard "Business Card" \
    643 # 		-samplecode $(sample_dir)/ContactManager \
    644 # 		            samples/ContactManager "Contact Manager" \
    645 # 		-samplecode $(sample_dir)/CubeLiveWallpaper \
    646 # 		            samples/CubeLiveWallpaper "Cube Live Wallpaper" \
    647 # 		-samplecode $(sample_dir)/Home \
    648 # 		            samples/Home "Home" \
    649 # 		-samplecode $(sample_dir)/HoneycombGallery \
    650 # 		            samples/HoneycombGallery "Honeycomb Gallery" \
    651 # 		-samplecode $(sample_dir)/JetBoy \
    652 # 		            samples/JetBoy "JetBoy" \
    653 # 		-samplecode $(sample_dir)/KeyChainDemo \
    654 # 		            samples/KeyChainDemo "KeyChain Demo" \
    655 # 		-samplecode $(sample_dir)/LunarLander \
    656 # 		            samples/LunarLander "Lunar Lander" \
    657 # 		-samplecode $(sample_dir)/training/ads-and-ux \
    658 # 		            samples/training/ads-and-ux "Mobile Advertisement Integration" \
    659 # 		-samplecode $(sample_dir)/MultiResolution \
    660 # 		            samples/MultiResolution "Multiple Resolutions" \
    661 # 		-samplecode $(sample_dir)/training/multiscreen/newsreader \
    662 # 		            samples/newsreader "News Reader" \
    663 # 		-samplecode $(sample_dir)/NotePad \
    664 # 		            samples/NotePad "Note Pad" \
    665 # 		-samplecode $(sample_dir)/SpellChecker/SampleSpellCheckerService \
    666 # 		            samples/SpellChecker/SampleSpellCheckerService "Spell Checker Service" \
    667 # 		-samplecode $(sample_dir)/SpellChecker/HelloSpellChecker \
    668 # 		            samples/SpellChecker/HelloSpellChecker "Spell Checker Client" \
    669 # 		-samplecode $(sample_dir)/SampleSyncAdapter \
    670 # 		            samples/SampleSyncAdapter "Sample Sync Adapter" \
    671 # 		-samplecode $(sample_dir)/RandomMusicPlayer \
    672 # 		            samples/RandomMusicPlayer "Random Music Player" \
    673 # 		-samplecode $(sample_dir)/RenderScript \
    674 # 		            samples/RenderScript "RenderScript" \
    675 # 		-samplecode $(sample_dir)/SearchableDictionary \
    676 # 		            samples/SearchableDictionary "Searchable Dictionary v2" \
    677 # 		-samplecode $(sample_dir)/SipDemo \
    678 # 		            samples/SipDemo "SIP Demo" \
    679 # 		-samplecode $(sample_dir)/Snake \
    680 # 		            samples/Snake "Snake" \
    681 # 		-samplecode $(sample_dir)/SoftKeyboard \
    682 # 		            samples/SoftKeyboard "Soft Keyboard" \
    683 # 		-samplecode $(sample_dir)/Spinner  \
    684 # 		            samples/Spinner "Spinner" \
    685 # 		-samplecode $(sample_dir)/SpinnerTest \
    686 # 		            samples/SpinnerTest "SpinnerTest" \
    687 # 		-samplecode $(sample_dir)/StackWidget \
    688 # 		            samples/StackWidget "StackView Widget" \
    689 # 		-samplecode $(sample_dir)/TicTacToeLib  \
    690 # 		            samples/TicTacToeLib "TicTacToeLib" \
    691 # 		-samplecode $(sample_dir)/TicTacToeMain \
    692 # 		            samples/TicTacToeMain "TicTacToeMain" \
    693 # 		-samplecode $(sample_dir)/ToyVpn \
    694 # 		            samples/ToyVpn "Toy VPN Client" \
    695 # 		-samplecode $(sample_dir)/USB \
    696 # 		            samples/USB "USB" \
    697 # 		-samplecode $(sample_dir)/WeatherListWidget \
    698 # 		            samples/WeatherListWidget "Weather List Widget" \
    699 # 		-samplecode $(sample_dir)/WiFiDirectDemo \
    700 #                   samples/WiFiDirectDemo "Wi-Fi Direct Demo" \
    701 # 		-samplecode $(sample_dir)/Wiktionary \
    702 # 		            samples/Wiktionary "Wiktionary" \
    703 # 		-samplecode $(sample_dir)/WiktionarySimple \
    704 # 		            samples/WiktionarySimple "Wiktionary (Simplified)" \
    705 # 		-samplecode $(sample_dir)/VoiceRecognitionService \
    706 # 		            samples/VoiceRecognitionService "Voice Recognition Service" \
    707 # 		-samplecode $(sample_dir)/VoicemailProviderDemo \
    708 # 		            samples/VoicemailProviderDemo "Voicemail Provider Demo" \
    709 # 		-samplecode $(sample_dir)/XmlAdapters \
    710 # 		            samples/XmlAdapters "XML Adapters" \
    711 # 		-samplecode $(sample_dir)/TtsEngine \
    712 # 		            samples/TtsEngine "Text To Speech Engine" \
    713 # 		-samplecode $(sample_dir)/training/device-management-policy \
    714 # 		            samples/training/device-management-policy "Device Management Policy"
    715 
    716 
    717 ## SDK version identifiers used in the published docs
    718   # major[.minor] version for current SDK. (full releases only)
    719 framework_docs_SDK_VERSION:=4.4
    720   # release version (ie "Release x")  (full releases only)
    721 framework_docs_SDK_REL_ID:=1
    722 
    723 framework_docs_LOCAL_DROIDDOC_OPTIONS += \
    724 		-hdf sdk.version $(framework_docs_SDK_VERSION) \
    725 		-hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
    726 		-hdf sdk.preview 0 \
    727 
    728 # ====  the api stubs and current.xml ===========================
    729 include $(CLEAR_VARS)
    730 
    731 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
    732 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
    733 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
    734 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
    735 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
    736 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
    737 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
    738 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
    739 
    740 LOCAL_MODULE := api-stubs
    741 
    742 LOCAL_DROIDDOC_OPTIONS:=\
    743 		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
    744 		-stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src \
    745 		-api $(INTERNAL_PLATFORM_API_FILE) \
    746 		-nodocs
    747 
    748 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
    749 
    750 LOCAL_UNINSTALLABLE_MODULE := true
    751 
    752 include $(BUILD_DROIDDOC)
    753 
    754 # $(gen), i.e. framework.aidl, is also needed while building against the current stub.
    755 $(full_target): $(framework_built) $(gen)
    756 $(INTERNAL_PLATFORM_API_FILE): $(full_target)
    757 $(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
    758 
    759 # ====  the private api stubs ===================================
    760 include $(CLEAR_VARS)
    761 
    762 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
    763 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
    764 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
    765 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
    766 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
    767 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
    768 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
    769 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
    770 
    771 LOCAL_MODULE := private-api-stubs
    772 
    773 LOCAL_DROIDDOC_OPTIONS:=\
    774 		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
    775 		-stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_private_stubs_current_intermediates/src \
    776         -showAnnotation android.annotation.PrivateApi \
    777 		-nodocs
    778 
    779 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
    780 
    781 LOCAL_UNINSTALLABLE_MODULE := true
    782 
    783 include $(BUILD_DROIDDOC)
    784 
    785 # ====  check javadoc comments but don't generate docs ========
    786 include $(CLEAR_VARS)
    787 
    788 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
    789 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
    790 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
    791 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
    792 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
    793 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
    794 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
    795 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
    796 
    797 LOCAL_MODULE := doc-comment-check
    798 
    799 LOCAL_DROIDDOC_OPTIONS:=\
    800 		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
    801 		-parsecomments
    802 
    803 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
    804 
    805 LOCAL_UNINSTALLABLE_MODULE := true
    806 
    807 include $(BUILD_DROIDDOC)
    808 
    809 # $(gen), i.e. framework.aidl, is also needed while building against the current stub.
    810 $(full_target): $(framework_built) $(gen)
    811 
    812 # Run this for checkbuild
    813 .PHONY: checkbuild
    814 checkbuild: doc-comment-check-docs
    815 
    816 # ====  static html in the sdk ==================================
    817 include $(CLEAR_VARS)
    818 
    819 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
    820 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
    821 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
    822 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
    823 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
    824 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
    825 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
    826 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
    827 
    828 LOCAL_MODULE := offline-sdk
    829 
    830 LOCAL_DROIDDOC_OPTIONS:=\
    831 		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
    832 		-offlinemode \
    833 		-title "Android SDK" \
    834 		-proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
    835 		-todo $(OUT_DOCS)/$(LOCAL_MODULE)-docs-todo.html \
    836 		-sdkvalues $(OUT_DOCS) \
    837 		-hdf android.whichdoc offline
    838 #		$(web_docs_sample_code_flags)
    839 
    840 
    841 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
    842 
    843 include $(BUILD_DROIDDOC)
    844 
    845 static_doc_index_redirect := $(out_dir)/index.html
    846 $(static_doc_index_redirect): \
    847 	$(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP)
    848 	$(hide) mkdir -p $(dir $@)
    849 	$(hide) $(ACP) $< $@
    850 
    851 $(full_target): $(static_doc_index_redirect)
    852 $(full_target): $(framework_built)
    853 
    854 # ==== docs for the web (on the androiddevdocs app engine server) =======================
    855 include $(CLEAR_VARS)
    856 
    857 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
    858 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
    859 LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
    860 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
    861 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
    862 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
    863 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
    864 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
    865 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
    866 LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /intl/
    867 
    868 LOCAL_MODULE := online-sdk
    869 
    870 LOCAL_DROIDDOC_OPTIONS:= \
    871 		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
    872 		-toroot / \
    873 		-hdf android.whichdoc online \
    874 		$(sample_groups) \
    875 		$(web_docs_sample_code_flags)
    876 
    877 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
    878 
    879 include $(BUILD_DROIDDOC)
    880 
    881 # ==== docs for the web (on the devsite app engine server) =======================
    882 include $(CLEAR_VARS)
    883 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
    884 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
    885 LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
    886 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
    887 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
    888 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
    889 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
    890 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
    891 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
    892 # specify a second html input dir and an output path relative to OUT_DIR)
    893 LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
    894 
    895 LOCAL_MODULE := ds
    896 
    897 LOCAL_DROIDDOC_OPTIONS:= \
    898 		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
    899 		-devsite \
    900 		-toroot / \
    901 		-hdf android.whichdoc online \
    902 		-hdf devsite true
    903 #		$(web_docs_sample_code_flags)
    904 
    905 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
    906 
    907 include $(BUILD_DROIDDOC)
    908 
    909 # ==== docs that have all of the stuff that's @hidden =======================
    910 include $(CLEAR_VARS)
    911 
    912 LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
    913 LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
    914 LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
    915 LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
    916 LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
    917 LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
    918 LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
    919 LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
    920 
    921 LOCAL_MODULE := hidden
    922 LOCAL_DROIDDOC_OPTIONS:=\
    923 		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
    924 		-title "Android SDK - Including hidden APIs."
    925 #		-hidden
    926 
    927 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
    928 
    929 include $(BUILD_DROIDDOC)
    930 
    931 # Build ext.jar
    932 # ============================================================
    933 
    934 # NOTICE notes for non-obvious sections
    935 # apache-http - covered by the Apache Commons section.
    936 
    937 
    938 ext_dirs := \
    939 	../../external/nist-sip/java \
    940 	../../external/apache-http/src \
    941 	../../external/tagsoup/src \
    942 	../../external/libphonenumber/java/src
    943 
    944 ext_src_files := $(call all-java-files-under,$(ext_dirs))
    945 
    946 ext_res_dirs := \
    947 	../../external/libphonenumber/java/src
    948 
    949 # ====  the library  =========================================
    950 include $(CLEAR_VARS)
    951 
    952 LOCAL_SRC_FILES := $(ext_src_files)
    953 
    954 LOCAL_NO_STANDARD_LIBRARIES := true
    955 LOCAL_JAVA_LIBRARIES := core
    956 LOCAL_JAVA_RESOURCE_DIRS := $(ext_res_dirs)
    957 LOCAL_MODULE_TAGS := optional
    958 LOCAL_MODULE := ext
    959 
    960 LOCAL_DX_FLAGS := --core-library
    961 
    962 include $(BUILD_JAVA_LIBRARY)
    963 
    964 
    965 # Include subdirectory makefiles
    966 # ============================================================
    967 
    968 # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
    969 # team really wants is to build the stuff defined by this makefile.
    970 ifeq (,$(ONE_SHOT_MAKEFILE))
    971 include $(call first-makefiles-under,$(LOCAL_PATH))
    972 endif
    973