blob: f58caacf9434cc534c22bc78eb3c1bd04e23b9b6 [file] [log] [blame]
Bart Searsa8cc0582015-05-07 03:23:20 +00001#
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#
16LOCAL_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.
27framework_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
35# embedded builds use nothing in frameworks/base
36ifneq ($(ANDROID_BUILD_EMBEDDED),true)
37
38include $(CLEAR_VARS)
39
40# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
41LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS))
42
43# EventLogTags files.
44LOCAL_SRC_FILES += \
Rubin Xu75431fb2016-01-07 21:12:14 +000045 core/java/android/auditing/SecurityLogTags.logtags \
Bart Searsa8cc0582015-05-07 03:23:20 +000046 core/java/android/content/EventLogTags.logtags \
47 core/java/android/speech/tts/EventLogTags.logtags \
48 core/java/android/webkit/EventLogTags.logtags \
49 core/java/com/android/internal/logging/EventLogTags.logtags \
50
51## READ ME: ########################################################
52##
53## When updating this list of aidl files, consider if that aidl is
54## part of the SDK API. If it is, also add it to the list below that
55## is preprocessed and distributed with the SDK. This list should
56## not contain any aidl files for parcelables, but the one below should
57## if you intend for 3rd parties to be able to send those objects
58## across process boundaries.
59##
60## READ ME: ########################################################
61LOCAL_SRC_FILES += \
62 core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl \
63 core/java/android/accessibilityservice/IAccessibilityServiceClient.aidl \
64 core/java/android/accounts/IAccountManager.aidl \
65 core/java/android/accounts/IAccountManagerResponse.aidl \
66 core/java/android/accounts/IAccountAuthenticator.aidl \
67 core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
68 core/java/android/app/IActivityContainer.aidl \
69 core/java/android/app/IActivityContainerCallback.aidl \
70 core/java/android/app/IActivityController.aidl \
71 core/java/android/app/IActivityPendingResult.aidl \
Christopher Tate14a7bb02015-10-01 10:24:31 -070072 core/java/android/app/IAlarmCompleteListener.aidl \
73 core/java/android/app/IAlarmListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000074 core/java/android/app/IAlarmManager.aidl \
75 core/java/android/app/IAppTask.aidl \
76 core/java/android/app/ITaskStackListener.aidl \
77 core/java/android/app/IBackupAgent.aidl \
78 core/java/android/app/IInstrumentationWatcher.aidl \
79 core/java/android/app/INotificationManager.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000080 core/java/android/app/IProcessObserver.aidl \
81 core/java/android/app/ISearchManager.aidl \
82 core/java/android/app/ISearchManagerCallback.aidl \
83 core/java/android/app/IServiceConnection.aidl \
84 core/java/android/app/IStopUserCallback.aidl \
85 core/java/android/app/job/IJobCallback.aidl \
86 core/java/android/app/job/IJobScheduler.aidl \
87 core/java/android/app/job/IJobService.aidl \
88 core/java/android/app/ITransientNotification.aidl \
Dianne Hackbornd23e0d62015-05-15 16:36:12 -070089 core/java/android/app/IUidObserver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000090 core/java/android/app/IUiAutomationConnection.aidl \
91 core/java/android/app/IUiModeManager.aidl \
92 core/java/android/app/IUserSwitchObserver.aidl \
93 core/java/android/app/IWallpaperManager.aidl \
94 core/java/android/app/IWallpaperManagerCallback.aidl \
95 core/java/android/app/admin/IDevicePolicyManager.aidl \
Adrian Roosb5e47222015-08-14 15:53:06 -070096 core/java/android/app/trust/IStrongAuthTracker.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000097 core/java/android/app/trust/ITrustManager.aidl \
98 core/java/android/app/trust/ITrustListener.aidl \
99 core/java/android/app/backup/IBackupManager.aidl \
100 core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
101 core/java/android/app/backup/IRestoreObserver.aidl \
102 core/java/android/app/backup/IRestoreSession.aidl \
103 core/java/android/app/usage/IUsageStatsManager.aidl \
104 core/java/android/bluetooth/IBluetooth.aidl \
105 core/java/android/bluetooth/IBluetoothA2dp.aidl \
106 core/java/android/bluetooth/IBluetoothA2dpSink.aidl \
107 core/java/android/bluetooth/IBluetoothAvrcpController.aidl \
108 core/java/android/bluetooth/IBluetoothCallback.aidl \
109 core/java/android/bluetooth/IBluetoothProfileServiceConnection.aidl \
110 core/java/android/bluetooth/IBluetoothHeadset.aidl \
111 core/java/android/bluetooth/IBluetoothHeadsetPhone.aidl \
112 core/java/android/bluetooth/IBluetoothHealth.aidl \
113 core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
114 core/java/android/bluetooth/IBluetoothInputDevice.aidl \
115 core/java/android/bluetooth/IBluetoothPan.aidl \
116 core/java/android/bluetooth/IBluetoothManager.aidl \
117 core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
118 core/java/android/bluetooth/IBluetoothPbap.aidl \
119 core/java/android/bluetooth/IBluetoothMap.aidl \
120 core/java/android/bluetooth/IBluetoothSap.aidl \
121 core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
122 core/java/android/bluetooth/IBluetoothHeadsetClient.aidl \
123 core/java/android/bluetooth/IBluetoothGatt.aidl \
124 core/java/android/bluetooth/IBluetoothGattCallback.aidl \
125 core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
126 core/java/android/content/IClipboard.aidl \
127 core/java/android/content/IContentService.aidl \
128 core/java/android/content/IIntentReceiver.aidl \
129 core/java/android/content/IIntentSender.aidl \
130 core/java/android/content/IOnPrimaryClipChangedListener.aidl \
131 core/java/android/content/IRestrictionsManager.aidl \
132 core/java/android/content/ISyncAdapter.aidl \
133 core/java/android/content/ISyncContext.aidl \
134 core/java/android/content/ISyncServiceAdapter.aidl \
135 core/java/android/content/ISyncStatusObserver.aidl \
136 core/java/android/content/pm/ILauncherApps.aidl \
137 core/java/android/content/pm/IOnAppsChangedListener.aidl \
138 core/java/android/content/pm/IPackageDataObserver.aidl \
139 core/java/android/content/pm/IPackageDeleteObserver.aidl \
140 core/java/android/content/pm/IPackageDeleteObserver2.aidl \
141 core/java/android/content/pm/IPackageInstallObserver.aidl \
142 core/java/android/content/pm/IPackageInstallObserver2.aidl \
143 core/java/android/content/pm/IPackageInstaller.aidl \
144 core/java/android/content/pm/IPackageInstallerCallback.aidl \
145 core/java/android/content/pm/IPackageInstallerSession.aidl \
146 core/java/android/content/pm/IPackageManager.aidl \
147 core/java/android/content/pm/IPackageMoveObserver.aidl \
148 core/java/android/content/pm/IPackageStatsObserver.aidl \
Svetoslavf7c06eb2015-06-10 18:43:22 -0700149 core/java/android/content/pm/IOnPermissionsChangeListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000150 core/java/android/database/IContentObserver.aidl \
151 core/java/android/hardware/ICameraService.aidl \
152 core/java/android/hardware/ICameraServiceListener.aidl \
Ruben Brunk6664aee2015-05-19 17:20:24 -0700153 core/java/android/hardware/ICameraServiceProxy.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000154 core/java/android/hardware/ICamera.aidl \
155 core/java/android/hardware/ICameraClient.aidl \
156 core/java/android/hardware/IConsumerIrService.aidl \
157 core/java/android/hardware/camera2/ICameraDeviceUser.aidl \
158 core/java/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
159 core/java/android/hardware/ISerialManager.aidl \
160 core/java/android/hardware/display/IDisplayManager.aidl \
161 core/java/android/hardware/display/IDisplayManagerCallback.aidl \
162 core/java/android/hardware/display/IVirtualDisplayCallback.aidl \
Jim Millerbe675422015-05-11 20:45:25 -0700163 core/java/android/hardware/fingerprint/IFingerprintDaemon.aidl \
164 core/java/android/hardware/fingerprint/IFingerprintDaemonCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000165 core/java/android/hardware/fingerprint/IFingerprintService.aidl \
Jorim Jaggi3a464782015-08-28 16:59:13 -0700166 core/java/android/hardware/fingerprint/IFingerprintServiceLockoutResetCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000167 core/java/android/hardware/fingerprint/IFingerprintServiceReceiver.aidl \
168 core/java/android/hardware/hdmi/IHdmiControlCallback.aidl \
169 core/java/android/hardware/hdmi/IHdmiControlService.aidl \
170 core/java/android/hardware/hdmi/IHdmiDeviceEventListener.aidl \
171 core/java/android/hardware/hdmi/IHdmiHotplugEventListener.aidl \
172 core/java/android/hardware/hdmi/IHdmiInputChangeListener.aidl \
173 core/java/android/hardware/hdmi/IHdmiMhlVendorCommandListener.aidl \
174 core/java/android/hardware/hdmi/IHdmiRecordListener.aidl \
175 core/java/android/hardware/hdmi/IHdmiSystemAudioModeChangeListener.aidl \
176 core/java/android/hardware/hdmi/IHdmiVendorCommandListener.aidl \
177 core/java/android/hardware/input/IInputManager.aidl \
178 core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
Michael Wright39e5e942015-08-19 22:52:47 +0100179 core/java/android/hardware/input/ITabletModeChangedListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000180 core/java/android/hardware/location/IActivityRecognitionHardware.aidl \
destradaa6e2fe752015-06-23 17:25:53 -0700181 core/java/android/hardware/location/IActivityRecognitionHardwareClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000182 core/java/android/hardware/location/IActivityRecognitionHardwareSink.aidl \
183 core/java/android/hardware/location/IActivityRecognitionHardwareWatcher.aidl \
184 core/java/android/hardware/location/IFusedLocationHardware.aidl \
185 core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
186 core/java/android/hardware/location/IGeofenceHardware.aidl \
187 core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
188 core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
189 core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl \
190 core/java/android/hardware/usb/IUsbManager.aidl \
Paul Jensen49e3edf2015-05-22 10:50:39 -0400191 core/java/android/net/ICaptivePortal.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000192 core/java/android/net/IConnectivityManager.aidl \
193 core/java/android/net/IEthernetManager.aidl \
194 core/java/android/net/IEthernetServiceListener.aidl \
195 core/java/android/net/INetworkManagementEventObserver.aidl \
196 core/java/android/net/INetworkPolicyListener.aidl \
197 core/java/android/net/INetworkPolicyManager.aidl \
198 core/java/android/net/INetworkScoreCache.aidl \
199 core/java/android/net/INetworkScoreService.aidl \
200 core/java/android/net/INetworkStatsService.aidl \
201 core/java/android/net/INetworkStatsSession.aidl \
202 core/java/android/net/nsd/INsdManager.aidl \
203 core/java/android/nfc/IAppCallback.aidl \
204 core/java/android/nfc/INfcAdapter.aidl \
205 core/java/android/nfc/INfcAdapterExtras.aidl \
206 core/java/android/nfc/INfcTag.aidl \
207 core/java/android/nfc/INfcCardEmulation.aidl \
208 core/java/android/nfc/INfcUnlockHandler.aidl \
209 core/java/android/os/IBatteryPropertiesListener.aidl \
210 core/java/android/os/IBatteryPropertiesRegistrar.aidl \
211 core/java/android/os/ICancellationSignal.aidl \
212 core/java/android/os/IDeviceIdleController.aidl \
Yao Chenca5edbb2016-01-13 14:44:36 -0800213 core/java/android/os/IMaintenanceActivityListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000214 core/java/android/os/IMessenger.aidl \
215 core/java/android/os/INetworkActivityListener.aidl \
216 core/java/android/os/INetworkManagementService.aidl \
217 core/java/android/os/IPermissionController.aidl \
218 core/java/android/os/IProcessInfoService.aidl \
219 core/java/android/os/IPowerManager.aidl \
220 core/java/android/os/IRemoteCallback.aidl \
221 core/java/android/os/ISchedulingPolicyService.aidl \
222 core/java/android/os/IUpdateLock.aidl \
223 core/java/android/os/IUserManager.aidl \
224 core/java/android/os/IVibratorService.aidl \
225 core/java/android/security/IKeystoreService.aidl \
Zach Johnson42ecc9e2015-05-22 15:56:09 -0700226 core/java/android/service/carrier/ICarrierService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000227 core/java/android/service/carrier/ICarrierMessagingCallback.aidl \
228 core/java/android/service/carrier/ICarrierMessagingService.aidl \
229 core/java/android/service/gatekeeper/IGateKeeperService.aidl \
230 core/java/android/service/notification/INotificationListener.aidl \
231 core/java/android/service/notification/IStatusBarNotificationHolder.aidl \
232 core/java/android/service/notification/IConditionListener.aidl \
233 core/java/android/service/notification/IConditionProvider.aidl \
234 core/java/android/print/ILayoutResultCallback.aidl \
235 core/java/android/print/IPrinterDiscoveryObserver.aidl \
236 core/java/android/print/IPrintDocumentAdapter.aidl \
237 core/java/android/print/IPrintDocumentAdapterObserver.aidl \
238 core/java/android/print/IPrintJobStateChangeListener.aidl \
239 core/java/android/print/IPrintManager.aidl \
240 core/java/android/print/IPrintSpooler.aidl \
241 core/java/android/print/IPrintSpoolerCallbacks.aidl \
242 core/java/android/print/IPrintSpoolerClient.aidl \
243 core/java/android/print/IWriteResultCallback.aidl \
244 core/java/android/printservice/IPrintService.aidl \
245 core/java/android/printservice/IPrintServiceClient.aidl \
246 core/java/android/service/dreams/IDreamManager.aidl \
247 core/java/android/service/dreams/IDreamService.aidl \
248 core/java/android/service/persistentdata/IPersistentDataBlockService.aidl \
249 core/java/android/service/trust/ITrustAgentService.aidl \
250 core/java/android/service/trust/ITrustAgentServiceCallback.aidl \
251 core/java/android/service/voice/IVoiceInteractionService.aidl \
252 core/java/android/service/voice/IVoiceInteractionSession.aidl \
253 core/java/android/service/voice/IVoiceInteractionSessionService.aidl \
254 core/java/android/service/wallpaper/IWallpaperConnection.aidl \
255 core/java/android/service/wallpaper/IWallpaperEngine.aidl \
256 core/java/android/service/wallpaper/IWallpaperService.aidl \
257 core/java/android/service/chooser/IChooserTargetService.aidl \
258 core/java/android/service/chooser/IChooserTargetResult.aidl \
259 core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
260 core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
261 core/java/android/view/accessibility/IAccessibilityManager.aidl \
262 core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
263 core/java/android/view/IApplicationToken.aidl \
Jorim Jaggi2f7d2922015-10-29 13:08:29 +0100264 core/java/android/view/IAppTransitionAnimationSpecsFuture.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000265 core/java/android/view/IAssetAtlas.aidl \
Jorim Jaggia6c934e2015-12-21 13:22:31 +0100266 core/java/android/view/IDockedStackListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000267 core/java/android/view/IGraphicsStats.aidl \
268 core/java/android/view/IInputFilter.aidl \
269 core/java/android/view/IInputFilterHost.aidl \
270 core/java/android/view/IOnKeyguardExitResult.aidl \
271 core/java/android/view/IRotationWatcher.aidl \
272 core/java/android/view/IWindow.aidl \
273 core/java/android/view/IWindowFocusObserver.aidl \
274 core/java/android/view/IWindowId.aidl \
275 core/java/android/view/IWindowManager.aidl \
276 core/java/android/view/IWindowSession.aidl \
277 core/java/android/view/IWindowSessionCallback.aidl \
278 core/java/android/webkit/IWebViewUpdateService.aidl \
279 core/java/android/speech/IRecognitionListener.aidl \
280 core/java/android/speech/IRecognitionService.aidl \
281 core/java/android/speech/tts/ITextToSpeechCallback.aidl \
282 core/java/android/speech/tts/ITextToSpeechService.aidl \
283 core/java/com/android/internal/app/IAppOpsCallback.aidl \
284 core/java/com/android/internal/app/IAppOpsService.aidl \
285 core/java/com/android/internal/app/IAssistScreenshotReceiver.aidl \
286 core/java/com/android/internal/app/IBatteryStats.aidl \
Todd Kennedyb8a279e2015-11-18 09:59:47 -0800287 core/java/com/android/internal/app/IEphemeralResolver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000288 core/java/com/android/internal/app/IProcessStats.aidl \
289 core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl \
290 core/java/com/android/internal/app/IVoiceInteractionSessionShowCallback.aidl \
291 core/java/com/android/internal/app/IVoiceInteractor.aidl \
292 core/java/com/android/internal/app/IVoiceInteractorCallback.aidl \
293 core/java/com/android/internal/app/IVoiceInteractorRequest.aidl \
294 core/java/com/android/internal/app/IMediaContainerService.aidl \
295 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
296 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
297 core/java/com/android/internal/backup/IBackupTransport.aidl \
298 core/java/com/android/internal/backup/IObbBackupService.aidl \
Jorim Jaggi4cfdcf52015-07-09 12:13:59 -0700299 core/java/com/android/internal/policy/IKeyguardDrawnCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000300 core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
301 core/java/com/android/internal/policy/IKeyguardService.aidl \
302 core/java/com/android/internal/policy/IKeyguardStateCallback.aidl \
303 core/java/com/android/internal/os/IDropBoxManagerService.aidl \
304 core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl \
305 core/java/com/android/internal/os/IResultReceiver.aidl \
306 core/java/com/android/internal/statusbar/IStatusBar.aidl \
307 core/java/com/android/internal/statusbar/IStatusBarService.aidl \
308 core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
309 core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
310 core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
311 core/java/com/android/internal/textservice/ITextServicesManager.aidl \
312 core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
Vladislav Kaznacheev9149d2b2015-12-15 12:16:28 -0800313 core/java/com/android/internal/view/IDropPermissions.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000314 core/java/com/android/internal/view/IInputContext.aidl \
315 core/java/com/android/internal/view/IInputContextCallback.aidl \
316 core/java/com/android/internal/view/IInputMethod.aidl \
317 core/java/com/android/internal/view/IInputMethodClient.aidl \
318 core/java/com/android/internal/view/IInputMethodManager.aidl \
319 core/java/com/android/internal/view/IInputMethodSession.aidl \
320 core/java/com/android/internal/view/IInputSessionCallback.aidl \
321 core/java/com/android/internal/widget/ILockSettings.aidl \
322 core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
323 core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
324 keystore/java/android/security/IKeyChainAliasCallback.aidl \
325 keystore/java/android/security/IKeyChainService.aidl \
326 location/java/android/location/ICountryDetector.aidl \
327 location/java/android/location/ICountryListener.aidl \
328 location/java/android/location/IFusedProvider.aidl \
329 location/java/android/location/IGeocodeProvider.aidl \
330 location/java/android/location/IGeofenceProvider.aidl \
331 location/java/android/location/IGpsMeasurementsListener.aidl \
332 location/java/android/location/IGpsNavigationMessageListener.aidl \
333 location/java/android/location/IGpsStatusListener.aidl \
334 location/java/android/location/IGpsStatusProvider.aidl \
335 location/java/android/location/ILocationListener.aidl \
336 location/java/android/location/ILocationManager.aidl \
337 location/java/android/location/IFusedGeofenceHardware.aidl \
338 location/java/android/location/IGpsGeofenceHardware.aidl \
339 location/java/android/location/INetInitiatedListener.aidl \
340 location/java/com/android/internal/location/ILocationProvider.aidl \
341 media/java/android/media/IAudioService.aidl \
342 media/java/android/media/IAudioFocusDispatcher.aidl \
343 media/java/android/media/IAudioRoutesObserver.aidl \
344 media/java/android/media/IMediaHTTPConnection.aidl \
345 media/java/android/media/IMediaHTTPService.aidl \
Dongwon Kang2034a4c2015-12-14 21:57:34 +0900346 media/java/android/media/IMediaResourceMonitor.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000347 media/java/android/media/IMediaRouterClient.aidl \
348 media/java/android/media/IMediaRouterService.aidl \
349 media/java/android/media/IMediaScannerListener.aidl \
350 media/java/android/media/IMediaScannerService.aidl \
Jean-Michel Trivid3c71f02015-12-07 11:59:31 -0800351 media/java/android/media/IRecordingConfigDispatcher.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000352 media/java/android/media/IRemoteDisplayCallback.aidl \
353 media/java/android/media/IRemoteDisplayProvider.aidl \
354 media/java/android/media/IRemoteVolumeController.aidl \
355 media/java/android/media/IRemoteVolumeObserver.aidl \
356 media/java/android/media/IRingtonePlayer.aidl \
357 media/java/android/media/IVolumeController.aidl \
358 media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl \
Phil Burk7cd06c02015-09-03 14:37:03 -0700359 media/java/android/media/midi/IBluetoothMidiService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000360 media/java/android/media/midi/IMidiDeviceListener.aidl \
Mike Lockwoode0a6ca62015-06-04 13:43:56 -0700361 media/java/android/media/midi/IMidiDeviceOpenCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000362 media/java/android/media/midi/IMidiDeviceServer.aidl \
363 media/java/android/media/midi/IMidiManager.aidl \
364 media/java/android/media/projection/IMediaProjection.aidl \
365 media/java/android/media/projection/IMediaProjectionCallback.aidl \
366 media/java/android/media/projection/IMediaProjectionManager.aidl \
367 media/java/android/media/projection/IMediaProjectionWatcherCallback.aidl \
368 media/java/android/media/session/IActiveSessionsListener.aidl \
369 media/java/android/media/session/ISessionController.aidl \
370 media/java/android/media/session/ISessionControllerCallback.aidl \
371 media/java/android/media/session/ISession.aidl \
372 media/java/android/media/session/ISessionCallback.aidl \
373 media/java/android/media/session/ISessionManager.aidl \
374 media/java/android/media/tv/ITvInputClient.aidl \
375 media/java/android/media/tv/ITvInputHardware.aidl \
376 media/java/android/media/tv/ITvInputHardwareCallback.aidl \
377 media/java/android/media/tv/ITvInputManager.aidl \
378 media/java/android/media/tv/ITvInputManagerCallback.aidl \
379 media/java/android/media/tv/ITvInputService.aidl \
380 media/java/android/media/tv/ITvInputServiceCallback.aidl \
381 media/java/android/media/tv/ITvInputSession.aidl \
382 media/java/android/media/tv/ITvInputSessionCallback.aidl \
383 media/java/android/service/media/IMediaBrowserService.aidl \
384 media/java/android/service/media/IMediaBrowserServiceCallbacks.aidl \
385 telecomm/java/com/android/internal/telecom/IVideoCallback.aidl \
386 telecomm/java/com/android/internal/telecom/IVideoProvider.aidl \
387 telecomm/java/com/android/internal/telecom/IConnectionService.aidl \
388 telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl \
389 telecomm/java/com/android/internal/telecom/IInCallAdapter.aidl \
390 telecomm/java/com/android/internal/telecom/IInCallService.aidl \
391 telecomm/java/com/android/internal/telecom/ITelecomService.aidl \
392 telecomm/java/com/android/internal/telecom/RemoteServiceCallback.aidl \
393 telephony/java/com/android/ims/internal/IImsCallSession.aidl \
394 telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl \
395 telephony/java/com/android/ims/internal/IImsConfig.aidl \
396 telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl \
397 telephony/java/com/android/ims/internal/IImsEcbm.aidl \
398 telephony/java/com/android/ims/internal/IImsEcbmListener.aidl \
399 telephony/java/com/android/ims/internal/IImsService.aidl \
400 telephony/java/com/android/ims/internal/IImsStreamMediaSession.aidl \
401 telephony/java/com/android/ims/internal/IImsUt.aidl \
402 telephony/java/com/android/ims/internal/IImsUtListener.aidl \
403 telephony/java/com/android/ims/internal/IImsVideoCallCallback.aidl \
404 telephony/java/com/android/ims/internal/IImsVideoCallProvider.aidl \
405 telephony/java/com/android/ims/ImsConfigListener.aidl \
406 telephony/java/com/android/internal/telephony/ICarrierConfigLoader.aidl \
407 telephony/java/com/android/internal/telephony/IMms.aidl \
408 telephony/java/com/android/internal/telephony/IOnSubscriptionsChangedListener.aidl \
409 telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
410 telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
411 telephony/java/com/android/internal/telephony/ISms.aidl \
412 telephony/java/com/android/internal/telephony/ISub.aidl \
413 telephony/java/com/android/internal/telephony/ITelephony.aidl \
Pavel Zhamaitsiak14ef0952016-01-04 15:54:31 -0800414 telephony/java/com/android/internal/telephony/ITelephonyDebug.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000415 telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
416 telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
417 wifi/java/android/net/wifi/IWifiManager.aidl \
418 wifi/java/android/net/wifi/passpoint/IWifiPasspointManager.aidl \
Etan Cohen20d329b2015-09-29 13:49:02 -0700419 wifi/java/android/net/wifi/nan/IWifiNanEventListener.aidl \
420 wifi/java/android/net/wifi/nan/IWifiNanManager.aidl \
421 wifi/java/android/net/wifi/nan/IWifiNanSessionListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000422 wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
423 wifi/java/android/net/wifi/IWifiScanner.aidl \
424 wifi/java/android/net/wifi/IRttManager.aidl \
425 packages/services/PacProcessor/com/android/net/IProxyService.aidl \
426 packages/services/Proxy/com/android/net/IProxyCallback.aidl \
427 packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500428 core/java/android/service/quicksettings/IQSService.aidl \
429 core/java/android/service/quicksettings/IQSTileService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000430
431# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
Samuel Tan239951a2016-01-05 17:29:43 -0800432LOCAL_AIDL_INCLUDES += \
433 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) \
434 frameworks/native/aidl/binder
Bart Searsa8cc0582015-05-07 03:23:20 +0000435
436LOCAL_INTERMEDIATE_SOURCES := \
437 $(framework_res_source_path)/android/R.java \
438 $(framework_res_source_path)/android/Manifest.java \
439 $(framework_res_source_path)/com/android/internal/R.java
440
441LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000442LOCAL_JAVA_LIBRARIES := core-oj core-libart conscrypt okhttp core-junit bouncycastle ext
Bart Searsa8cc0582015-05-07 03:23:20 +0000443
444LOCAL_MODULE := framework
445
446LOCAL_DX_FLAGS := --core-library --multi-dex
447LOCAL_JACK_FLAGS := --multi-dex native
448
449LOCAL_RMTYPEDEFS := true
450
451include $(BUILD_JAVA_LIBRARY)
452framework_module := $(LOCAL_INSTALLED_MODULE)
453
454# Make sure that R.java and Manifest.java are built before we build
455# the source for this library.
456framework_res_R_stamp := \
457 $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
458$(full_classes_compiled_jar): $(framework_res_R_stamp)
459$(built_dex_intermediate): $(framework_res_R_stamp)
460
461$(framework_module): | $(dir $(framework_module))framework-res.apk
462
463framework_built := $(call java-lib-deps,framework)
464
465# Copy AIDL files to be preprocessed and included in the SDK,
466# specified relative to the root of the build tree.
467# ============================================================
468include $(CLEAR_VARS)
469
470aidl_files := \
471 frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
472 frameworks/base/telephony/java/android/telephony/SubscriptionInfo.aidl \
473 frameworks/base/telephony/java/android/telephony/CellInfo.aidl \
474 frameworks/base/telephony/java/android/telephony/SignalStrength.aidl \
475 frameworks/base/telephony/java/android/telephony/IccOpenLogicalChannelResponse.aidl \
476 frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.aidl \
Prerepa Viswanadham5c728992015-05-28 00:12:37 -0700477 frameworks/base/telephony/java/android/telephony/ModemActivityInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000478 frameworks/base/location/java/android/location/Location.aidl \
479 frameworks/base/location/java/android/location/Address.aidl \
480 frameworks/base/location/java/android/location/Criteria.aidl \
481 frameworks/base/media/java/android/media/MediaMetadata.aidl \
482 frameworks/base/media/java/android/media/MediaDescription.aidl \
483 frameworks/base/media/java/android/media/Rating.aidl \
484 frameworks/base/media/java/android/media/AudioAttributes.aidl \
485 frameworks/base/media/java/android/media/AudioFocusInfo.aidl \
486 frameworks/base/media/java/android/media/session/PlaybackState.aidl \
487 frameworks/base/media/java/android/media/session/MediaSession.aidl \
488 frameworks/base/media/java/android/media/tv/TvInputInfo.aidl \
489 frameworks/base/media/java/android/media/tv/TvTrackInfo.aidl \
490 frameworks/base/media/java/android/media/browse/MediaBrowser.aidl \
491 frameworks/base/wifi/java/android/net/wifi/ScanSettings.aidl \
Etan Cohen20d329b2015-09-29 13:49:02 -0700492 frameworks/base/wifi/java/android/net/wifi/nan/ConfigRequest.aidl \
493 frameworks/base/wifi/java/android/net/wifi/nan/PublishData.aidl \
494 frameworks/base/wifi/java/android/net/wifi/nan/SubscribeData.aidl \
495 frameworks/base/wifi/java/android/net/wifi/nan/PublishSettings.aidl \
496 frameworks/base/wifi/java/android/net/wifi/nan/SubscribeSettings.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000497 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pInfo.aidl \
498 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDeviceList.aidl \
499 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pConfig.aidl \
500 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDevice.aidl \
501 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pGroup.aidl \
502 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceRequest.aidl \
503 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceInfo.aidl \
504 frameworks/base/wifi/java/android/net/wifi/WpsInfo.aidl \
505 frameworks/base/wifi/java/android/net/wifi/ScanResult.aidl \
Jan Nordqvist52eb29f2015-09-22 15:54:32 -0700506 frameworks/base/wifi/java/android/net/wifi/ScanInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000507 frameworks/base/wifi/java/android/net/wifi/WifiEnterpriseConfig.aidl \
508 frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.aidl \
509 frameworks/base/wifi/java/android/net/wifi/WifiInfo.aidl \
510 frameworks/base/graphics/java/android/graphics/Region.aidl \
511 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
512 frameworks/base/graphics/java/android/graphics/Point.aidl \
513 frameworks/base/graphics/java/android/graphics/PointF.aidl \
514 frameworks/base/graphics/java/android/graphics/RectF.aidl \
515 frameworks/base/graphics/java/android/graphics/Rect.aidl \
Philip P. Moltmannbb9f6862015-12-01 14:44:24 -0800516 frameworks/base/graphics/java/android/graphics/drawable/Icon.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000517 frameworks/base/core/java/android/accounts/AuthenticatorDescription.aidl \
518 frameworks/base/core/java/android/accounts/Account.aidl \
Rubin Xud86d58c2015-05-05 16:57:37 +0100519 frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000520 frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \
521 frameworks/base/core/java/android/print/PageRange.aidl \
522 frameworks/base/core/java/android/print/PrintAttributes.aidl \
523 frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
524 frameworks/base/core/java/android/print/PrinterId.aidl \
525 frameworks/base/core/java/android/print/PrintJobInfo.aidl \
526 frameworks/base/core/java/android/print/PrinterInfo.aidl \
527 frameworks/base/core/java/android/print/PrintJobId.aidl \
528 frameworks/base/core/java/android/hardware/usb/UsbDevice.aidl \
529 frameworks/base/core/java/android/hardware/usb/UsbInterface.aidl \
530 frameworks/base/core/java/android/hardware/usb/UsbEndpoint.aidl \
531 frameworks/base/core/java/android/hardware/usb/UsbAccessory.aidl \
532 frameworks/base/core/java/android/os/Messenger.aidl \
533 frameworks/base/core/java/android/os/PatternMatcher.aidl \
534 frameworks/base/core/java/android/os/Message.aidl \
535 frameworks/base/core/java/android/os/UserHandle.aidl \
536 frameworks/base/core/java/android/os/ParcelUuid.aidl \
537 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
538 frameworks/base/core/java/android/os/ResultReceiver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000539 frameworks/base/core/java/android/os/WorkSource.aidl \
540 frameworks/base/core/java/android/os/DropBoxManager.aidl \
541 frameworks/base/core/java/android/os/Bundle.aidl \
542 frameworks/base/core/java/android/accessibilityservice/AccessibilityServiceInfo.aidl \
543 frameworks/base/core/java/android/net/Network.aidl \
544 frameworks/base/core/java/android/net/RouteInfo.aidl \
545 frameworks/base/core/java/android/net/NetworkInfo.aidl \
546 frameworks/base/core/java/android/net/IpPrefix.aidl \
547 frameworks/base/core/java/android/net/NetworkCapabilities.aidl \
548 frameworks/base/core/java/android/net/DhcpInfo.aidl \
549 frameworks/base/core/java/android/net/ProxyInfo.aidl \
550 frameworks/base/core/java/android/net/LinkProperties.aidl \
551 frameworks/base/core/java/android/net/Uri.aidl \
552 frameworks/base/core/java/android/net/NetworkRequest.aidl \
553 frameworks/base/core/java/android/net/LinkAddress.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700554 frameworks/base/core/java/android/view/Display.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000555 frameworks/base/core/java/android/view/InputDevice.aidl \
556 frameworks/base/core/java/android/view/InputEvent.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700557 frameworks/base/core/java/android/view/Surface.aidl \
558 frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000559 frameworks/base/core/java/android/view/inputmethod/InputMethodSubtype.aidl \
560 frameworks/base/core/java/android/view/inputmethod/CursorAnchorInfo.aidl \
561 frameworks/base/core/java/android/view/inputmethod/CompletionInfo.aidl \
562 frameworks/base/core/java/android/view/inputmethod/ExtractedText.aidl \
563 frameworks/base/core/java/android/view/inputmethod/EditorInfo.aidl \
564 frameworks/base/core/java/android/view/inputmethod/InputMethodInfo.aidl \
565 frameworks/base/core/java/android/view/inputmethod/CorrectionInfo.aidl \
566 frameworks/base/core/java/android/view/inputmethod/InputBinding.aidl \
567 frameworks/base/core/java/android/view/inputmethod/ExtractedTextRequest.aidl \
568 frameworks/base/core/java/android/view/DragEvent.aidl \
569 frameworks/base/core/java/android/view/KeyEvent.aidl \
570 frameworks/base/core/java/android/view/WindowManager.aidl \
571 frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
572 frameworks/base/core/java/android/view/MotionEvent.aidl \
573 frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
574 frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
575 frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
576 frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
577 frameworks/base/core/java/android/view/textservice/SpellCheckerSubtype.aidl \
578 frameworks/base/core/java/android/view/textservice/TextInfo.aidl \
579 frameworks/base/core/java/android/view/textservice/SpellCheckerInfo.aidl \
580 frameworks/base/core/java/android/view/textservice/SentenceSuggestionsInfo.aidl \
581 frameworks/base/core/java/android/view/textservice/SuggestionsInfo.aidl \
582 frameworks/base/core/java/android/service/carrier/CarrierIdentifier.aidl \
583 frameworks/base/core/java/android/service/carrier/MessagePdu.aidl \
584 frameworks/base/core/java/android/service/notification/StatusBarNotification.aidl \
585 frameworks/base/core/java/android/service/chooser/ChooserTarget.aidl \
586 frameworks/base/core/java/android/speech/tts/Voice.aidl \
587 frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000588 frameworks/base/core/java/android/app/Notification.aidl \
589 frameworks/base/core/java/android/app/NotificationManager.aidl \
590 frameworks/base/core/java/android/app/WallpaperInfo.aidl \
591 frameworks/base/core/java/android/app/AppOpsManager.aidl \
592 frameworks/base/core/java/android/app/ActivityManager.aidl \
593 frameworks/base/core/java/android/app/PendingIntent.aidl \
594 frameworks/base/core/java/android/app/AlarmManager.aidl \
595 frameworks/base/core/java/android/app/SearchableInfo.aidl \
596 frameworks/base/core/java/android/app/VoiceInteractor.aidl \
Dianne Hackborn69c6adc2015-06-02 10:52:59 -0700597 frameworks/base/core/java/android/app/assist/AssistContent.aidl \
598 frameworks/base/core/java/android/app/assist/AssistStructure.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000599 frameworks/base/core/java/android/app/job/JobParameters.aidl \
600 frameworks/base/core/java/android/app/job/JobInfo.aidl \
601 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
602 frameworks/base/core/java/android/content/ClipDescription.aidl \
603 frameworks/base/core/java/android/content/IntentFilter.aidl \
604 frameworks/base/core/java/android/content/Intent.aidl \
605 frameworks/base/core/java/android/content/res/Configuration.aidl \
606 frameworks/base/core/java/android/content/res/ObbInfo.aidl \
607 frameworks/base/core/java/android/content/RestrictionEntry.aidl \
608 frameworks/base/core/java/android/content/ClipData.aidl \
609 frameworks/base/core/java/android/content/SyncAdapterType.aidl \
610 frameworks/base/core/java/android/content/SyncRequest.aidl \
611 frameworks/base/core/java/android/content/PeriodicSync.aidl \
612 frameworks/base/core/java/android/content/SyncResult.aidl \
613 frameworks/base/core/java/android/content/pm/FeatureInfo.aidl \
614 frameworks/base/core/java/android/content/pm/InstrumentationInfo.aidl \
615 frameworks/base/core/java/android/content/pm/PackageInstaller.aidl \
616 frameworks/base/core/java/android/content/pm/ServiceInfo.aidl \
617 frameworks/base/core/java/android/content/pm/Signature.aidl \
618 frameworks/base/core/java/android/content/pm/ApplicationInfo.aidl \
619 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
620 frameworks/base/core/java/android/content/pm/ActivityInfo.aidl \
621 frameworks/base/core/java/android/content/pm/PackageInfo.aidl \
622 frameworks/base/core/java/android/content/pm/ResolveInfo.aidl \
623 frameworks/base/core/java/android/content/pm/ProviderInfo.aidl \
624 frameworks/base/core/java/android/content/pm/PackageStats.aidl \
625 frameworks/base/core/java/android/content/pm/PermissionGroupInfo.aidl \
626 frameworks/base/core/java/android/content/pm/LabeledIntent.aidl \
627 frameworks/base/core/java/android/content/ComponentName.aidl \
628 frameworks/base/core/java/android/content/SyncStats.aidl \
629 frameworks/base/core/java/android/content/ContentValues.aidl \
630 frameworks/base/core/java/android/content/SyncInfo.aidl \
631 frameworks/base/core/java/android/content/IntentSender.aidl \
632 frameworks/base/core/java/android/widget/RemoteViews.aidl \
633 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
634 frameworks/base/core/java/android/nfc/Tag.aidl \
635 frameworks/base/core/java/android/nfc/NdefRecord.aidl \
636 frameworks/base/core/java/android/nfc/NdefMessage.aidl \
637 frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
638 frameworks/base/core/java/android/bluetooth/le/AdvertiseSettings.aidl \
639 frameworks/base/core/java/android/bluetooth/le/ScanSettings.aidl \
640 frameworks/base/core/java/android/bluetooth/le/AdvertiseData.aidl \
641 frameworks/base/core/java/android/bluetooth/le/ScanFilter.aidl \
642 frameworks/base/core/java/android/bluetooth/le/ScanResult.aidl \
643 frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
644 frameworks/base/core/java/android/database/CursorWindow.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500645 frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
Samuel Tan239951a2016-01-05 17:29:43 -0800646 frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000647
648gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
649$(gen): PRIVATE_SRC_FILES := $(aidl_files)
650ALL_SDK_FILES += $(gen)
651$(gen): $(aidl_files) | $(AIDL)
652 @echo Aidl Preprocess: $@
653 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
654
655# the documentation
656# ============================================================
657
658# TODO: deal with com/google/android/googleapps
659packages_to_document := \
660 android \
661 javax/microedition/khronos \
662 org/apache/http/conn \
663 org/apache/http/params
664
665
666# Search through the base framework dirs for these packages.
667# The result will be relative to frameworks/base.
668fwbase_dirs_to_document := \
669 test-runner/src \
670 $(patsubst $(LOCAL_PATH)/%,%, \
671 $(wildcard \
672 $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
673 $(addprefix $(dir)/, $(packages_to_document)) \
674 ) \
675 ) \
676 )
677
678# include definition of libcore_to_document
679include libcore/Docs.mk
680
681# include definition of junit_to_document
682include external/junit/Common.mk
683
684non_base_dirs := \
685 ../opt/telephony/src/java/android/provider \
686 ../opt/telephony/src/java/android/telephony \
687 ../opt/telephony/src/java/android/telephony/gsm \
688 ../opt/net/voip/src/java/android/net/rtp \
689 ../opt/net/voip/src/java/android/net/sip
690
691# These are relative to frameworks/base
692dirs_to_check_apis := \
693 $(fwbase_dirs_to_document) \
694 $(non_base_dirs)
695
George Mountf6be9932015-12-03 07:39:55 -0800696###########################################################
697## Return all directories that have a 'NO_DOCS' file in
698## them, appending a '%' to them to form a pattern to
699## filter out files under those directories.
700## $(1): A list of base directories to look at.
701###########################################################
702define find-no-docs-pattern
703$(addsuffix %, $(dir $(foreach dir, $(1), $(shell cd $(LOCAL_PATH); find $(dir) -name NO_DOCS))))
704endef
705
Bart Searsa8cc0582015-05-07 03:23:20 +0000706# These are relative to frameworks/base
707# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
708dirs_to_document := \
709 $(dirs_to_check_apis) \
George Mounta340f072015-07-13 16:45:34 -0700710 $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
711 $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000712
George Mountf6be9932015-12-03 07:39:55 -0800713patterns_to_not_document := \
714 $(call find-no-docs-pattern, $(dirs_to_document))
715
Bart Searsa8cc0582015-05-07 03:23:20 +0000716# These are relative to frameworks/base
717html_dirs := \
718 $(FRAMEWORKS_BASE_SUBDIRS) \
719 $(non_base_dirs)
720
721# Common sources for doc check and api check
722common_src_files := \
723 $(call find-other-html-files, $(html_dirs)) \
Neil Fullerf9611142015-10-07 10:30:56 +0100724 $(addprefix ../../, $(libcore_to_document)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000725 $(addprefix ../../external/junit/, $(junit_to_document))
726
727# These are relative to frameworks/base
728framework_docs_LOCAL_SRC_FILES := \
George Mountf6be9932015-12-03 07:39:55 -0800729 $(filter-out $(patterns_to_not_document), $(call find-other-java-files, $(dirs_to_document))) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000730 $(common_src_files)
731
732# These are relative to frameworks/base
733framework_docs_LOCAL_API_CHECK_SRC_FILES := \
734 $(call find-other-java-files, $(dirs_to_check_apis)) \
735 $(common_src_files)
736
737# This is used by ide.mk as the list of source files that are
738# always included.
739INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
740
741framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
742 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
743
744framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
745 $(framework_res_source_path)/android/R.java \
746 $(framework_res_source_path)/android/Manifest.java \
747 $(framework_res_source_path)/com/android/internal/R.java
748
749framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000750 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000751 core-libart \
752 conscrypt \
753 bouncycastle \
754 okhttp \
755 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100756 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000757 framework \
758 telephony-common \
759 voip-common
760
761framework_docs_LOCAL_JAVA_LIBRARIES := \
762 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
763 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
764
765framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
766framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
767# The since flag (-since N.xml API_LEVEL) is used to add API Level information
768# to the reference documentation. Must be in order of oldest to newest.
769#
770# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
771# not be referenced in the documentation.
772framework_docs_LOCAL_DROIDDOC_OPTIONS := \
773 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100774 -knowntags ./libcore/known_oj_tags.txt \
Bart Searsa8cc0582015-05-07 03:23:20 +0000775 -hidePackage com.android.org.conscrypt \
776 -since $(SRC_API_DIR)/1.xml 1 \
777 -since $(SRC_API_DIR)/2.xml 2 \
778 -since $(SRC_API_DIR)/3.xml 3 \
779 -since $(SRC_API_DIR)/4.xml 4 \
780 -since $(SRC_API_DIR)/5.xml 5 \
781 -since $(SRC_API_DIR)/6.xml 6 \
782 -since $(SRC_API_DIR)/7.xml 7 \
783 -since $(SRC_API_DIR)/8.xml 8 \
784 -since $(SRC_API_DIR)/9.xml 9 \
785 -since $(SRC_API_DIR)/10.xml 10 \
786 -since $(SRC_API_DIR)/11.xml 11 \
787 -since $(SRC_API_DIR)/12.xml 12 \
788 -since $(SRC_API_DIR)/13.xml 13 \
789 -since $(SRC_API_DIR)/14.txt 14 \
790 -since $(SRC_API_DIR)/15.txt 15 \
791 -since $(SRC_API_DIR)/16.txt 16 \
792 -since $(SRC_API_DIR)/17.txt 17 \
793 -since $(SRC_API_DIR)/18.txt 18 \
794 -since $(SRC_API_DIR)/19.txt 19 \
795 -since $(SRC_API_DIR)/20.txt 20 \
796 -since $(SRC_API_DIR)/21.txt 21 \
797 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700798 -since $(SRC_API_DIR)/23.txt 23 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000799 -werror -hide 111 -hide 113 \
800 -overview $(LOCAL_PATH)/core/java/overview.html
801
802framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
803 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
804
805framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
806 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
807 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
808 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
809
810framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100811 frameworks/base/docs/knowntags.txt \
812 libcore/Docs.mk
Bart Searsa8cc0582015-05-07 03:23:20 +0000813
814samples_dir := development/samples/browseable
815
816# Whitelist of valid groups, used for default TOC grouping. Each sample must
817# belong to one (and only one) group. Assign samples to groups by setting
818# a sample.group var to one of these groups in the sample's _index.jd.
819sample_groups := -samplegroup Admin \
820 -samplegroup Background \
821 -samplegroup Connectivity \
822 -samplegroup Content \
823 -samplegroup Input \
824 -samplegroup Media \
825 -samplegroup Notification \
826 -samplegroup RenderScript \
827 -samplegroup Security \
828 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700829 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000830 -samplegroup Testing \
831 -samplegroup UI \
832 -samplegroup Views \
833 -samplegroup Wearable
834
835## SDK version identifiers used in the published docs
836 # major[.minor] version for current SDK. (full releases only)
Joe Fernandez1827e322015-08-12 19:45:22 -0700837framework_docs_SDK_VERSION:=6.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000838 # release version (ie "Release x") (full releases only)
839framework_docs_SDK_REL_ID:=1
840
841framework_docs_LOCAL_DROIDDOC_OPTIONS += \
842 -hdf sdk.version $(framework_docs_SDK_VERSION) \
843 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
844 -hdf sdk.preview 0
845
846# ==== the api stubs and current.xml ===========================
847include $(CLEAR_VARS)
848
849LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
850LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
851LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
852LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
853LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
854LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
855LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
856LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
857
858LOCAL_MODULE := api-stubs
859
Ying Wang0f92a2e2015-07-16 14:20:22 -0700860LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
861
Bart Searsa8cc0582015-05-07 03:23:20 +0000862LOCAL_DROIDDOC_OPTIONS:=\
863 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000864 -api $(INTERNAL_PLATFORM_API_FILE) \
865 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
866 -nodocs
867
868LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
869
870LOCAL_UNINSTALLABLE_MODULE := true
871
872include $(BUILD_DROIDDOC)
873
874# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
875$(full_target): $(framework_built) $(gen)
876$(INTERNAL_PLATFORM_API_FILE): $(full_target)
877$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
878
879# ==== the system api stubs ===================================
880include $(CLEAR_VARS)
881
882LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
883LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
884LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
885LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
886LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
887LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
888LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
889LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
890
891LOCAL_MODULE := system-api-stubs
892
Ying Wang0f92a2e2015-07-16 14:20:22 -0700893LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
894
Bart Searsa8cc0582015-05-07 03:23:20 +0000895LOCAL_DROIDDOC_OPTIONS:=\
896 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000897 -showAnnotation android.annotation.SystemApi \
898 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
899 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
900 -nodocs
901
902LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
903
904LOCAL_UNINSTALLABLE_MODULE := true
905
906include $(BUILD_DROIDDOC)
907
908# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
909$(full_target): $(framework_built) $(gen)
910$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
911$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
912
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000913# ==== the test api stubs ===================================
914include $(CLEAR_VARS)
915
916LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
917LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
918LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
919LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
920LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
921LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
922LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
923LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
924
925LOCAL_MODULE := test-api-stubs
926
927LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
928
929LOCAL_DROIDDOC_OPTIONS:=\
930 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
931 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
932 -showAnnotation android.annotation.TestApi \
933 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
934 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
935 -nodocs
936
937LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
938
939LOCAL_UNINSTALLABLE_MODULE := true
940
941include $(BUILD_DROIDDOC)
942
943# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
944$(full_target): $(framework_built) $(gen)
945$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
946$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
947
Bart Searsa8cc0582015-05-07 03:23:20 +0000948# ==== check javadoc comments but don't generate docs ========
949include $(CLEAR_VARS)
950
951LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
952LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
953LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
954LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
955LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
956LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
957LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
958LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
959
960LOCAL_MODULE := doc-comment-check
961
962LOCAL_DROIDDOC_OPTIONS:=\
963 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
964 -parsecomments
965
966LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
967
968LOCAL_UNINSTALLABLE_MODULE := true
969
970include $(BUILD_DROIDDOC)
971
972# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
973$(full_target): $(framework_built) $(gen)
974
975# Run this for checkbuild
976checkbuild: doc-comment-check-docs
977# Check comment when you are updating the API
978update-api: doc-comment-check-docs
979
980# ==== static html in the sdk ==================================
981include $(CLEAR_VARS)
982
983LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
984LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
985LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
986LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
987LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
988LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
989LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
990LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
991
992LOCAL_MODULE := offline-sdk
993
994LOCAL_DROIDDOC_OPTIONS:=\
995 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
996 -offlinemode \
997 -title "Android SDK" \
998 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
999 -todo $(OUT_DOCS)/$(LOCAL_MODULE)-docs-todo.html \
1000 -sdkvalues $(OUT_DOCS) \
1001 -hdf android.whichdoc offline
1002
1003LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1004
1005include $(BUILD_DROIDDOC)
1006
1007static_doc_index_redirect := $(out_dir)/index.html
1008$(static_doc_index_redirect): \
1009 $(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP)
1010 $(hide) mkdir -p $(dir $@)
1011 $(hide) $(ACP) $< $@
1012
1013$(full_target): $(static_doc_index_redirect)
1014$(full_target): $(framework_built)
1015
1016# ==== docs for the web (on the androiddevdocs app engine server) =======================
1017include $(CLEAR_VARS)
1018
1019LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1020LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1021LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1022LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1023LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1024LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1025LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1026LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1027LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1028LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1029
1030LOCAL_MODULE := online-sdk
1031
1032LOCAL_DROIDDOC_OPTIONS:= \
1033 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1034 -toroot / \
1035 -hdf android.whichdoc online \
1036 $(sample_groups) \
1037 -hdf android.hasSamples true \
1038 -samplesdir $(samples_dir)
1039
1040LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1041
1042include $(BUILD_DROIDDOC)
1043
1044# ==== docs for the web (on the androiddevdocs app engine server) =======================
1045# TODO: Fix the System API docs build.
1046ifneq ($(filter online-system-api-sdk-docs,$(MAKECMDGOALS)),)
1047include $(CLEAR_VARS)
1048
1049LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1050LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1051LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1052LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1053LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1054LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1055LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1056LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1057LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1058LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1059
1060LOCAL_MODULE := online-system-api-sdk
1061
1062LOCAL_DROIDDOC_OPTIONS:= \
1063 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1064 -showAnnotation android.annotation.SystemApi \
1065 -title "Android SDK - Including system APIs." \
1066 -toroot / \
1067 -hdf android.whichdoc online \
1068 $(sample_groups) \
1069 -hdf android.hasSamples true \
1070 -samplesdir $(samples_dir)
1071
1072LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1073# Don't build by default
1074LOCAL_UNINSTALLABLE_MODULE := true
1075
1076include $(BUILD_DROIDDOC)
1077endif # online-system-api-sdk-docs in make command line.
1078
1079# ==== docs for the web (on the devsite app engine server) =======================
1080include $(CLEAR_VARS)
1081LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1082LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1083LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1084LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1085LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1086LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1087LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1088LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1089LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1090# specify a second html input dir and an output path relative to OUT_DIR)
1091LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl/intl /
1092
1093LOCAL_MODULE := ds
1094
1095LOCAL_DROIDDOC_OPTIONS:= \
1096 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1097 -devsite \
1098 -toroot / \
1099 -hdf android.whichdoc online \
1100 -hdf devsite true
1101
1102LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1103
1104include $(BUILD_DROIDDOC)
1105
1106# ==== docs for the ndk =======================
1107include $(CLEAR_VARS)
1108LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1109LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1110LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1111LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1112LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1113LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1114LOCAL_DROIDDOC_HTML_DIR:=docs/html-ndk
1115LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1116LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1117# specify a second html input dir and an output path relative to OUT_DIR)
1118LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl/intl /
1119
1120LOCAL_MODULE := online-ndk
1121
1122LOCAL_DROIDDOC_OPTIONS:= \
1123 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1124 -toroot / \
1125 -hdf android.whichdoc online \
1126 $(sample_groups) \
1127 -hdf android.hasSamples true \
1128 -samplesdir $(samples_dir)
1129
Dirk Dougherty85dea522015-05-21 14:20:25 -07001130LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001131
1132include $(BUILD_DROIDDOC)
1133
1134
1135# ==== docs that have all of the stuff that's @hidden =======================
1136include $(CLEAR_VARS)
1137
1138LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1139LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1140LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1141LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1142LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1143LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1144LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1145LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1146
1147LOCAL_MODULE := hidden
1148LOCAL_DROIDDOC_OPTIONS:=\
1149 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1150 -title "Android SDK - Including hidden APIs."
1151# -hidden
1152
1153LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1154
1155include $(BUILD_DROIDDOC)
1156
1157# Build ext.jar
1158# ============================================================
1159
1160ext_dirs := \
1161 ../../external/nist-sip/java \
1162 ../../external/tagsoup/src \
1163
1164ext_src_files := $(call all-java-files-under,$(ext_dirs))
1165
1166# ==== the library =========================================
1167include $(CLEAR_VARS)
1168
1169LOCAL_SRC_FILES := $(ext_src_files)
1170
1171LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +00001172LOCAL_JAVA_LIBRARIES := core-oj core-libart
Bart Searsa8cc0582015-05-07 03:23:20 +00001173LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber-platform
1174LOCAL_MODULE_TAGS := optional
1175LOCAL_MODULE := ext
1176
1177LOCAL_DX_FLAGS := --core-library
1178
1179include $(BUILD_JAVA_LIBRARY)
1180
1181
1182# Include subdirectory makefiles
1183# ============================================================
1184
1185# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
1186# team really wants is to build the stuff defined by this makefile.
1187ifeq (,$(ONE_SHOT_MAKEFILE))
1188include $(call first-makefiles-under,$(LOCAL_PATH))
1189endif
1190
1191endif # ANDROID_BUILD_EMBEDDED