blob: f875be23a8a9921de7131ddc705e2fe21f706bfb [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 += \
Michal Karpinski6235a942016-03-15 12:07:23 +000045 core/java/android/app/admin/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 \
Sergey Poromovfe06bf62015-12-15 16:26:23 +0100100 core/java/android/app/backup/IBackupObserver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000101 core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
102 core/java/android/app/backup/IRestoreObserver.aidl \
103 core/java/android/app/backup/IRestoreSession.aidl \
104 core/java/android/app/usage/IUsageStatsManager.aidl \
105 core/java/android/bluetooth/IBluetooth.aidl \
106 core/java/android/bluetooth/IBluetoothA2dp.aidl \
107 core/java/android/bluetooth/IBluetoothA2dpSink.aidl \
108 core/java/android/bluetooth/IBluetoothAvrcpController.aidl \
109 core/java/android/bluetooth/IBluetoothCallback.aidl \
110 core/java/android/bluetooth/IBluetoothProfileServiceConnection.aidl \
111 core/java/android/bluetooth/IBluetoothHeadset.aidl \
112 core/java/android/bluetooth/IBluetoothHeadsetPhone.aidl \
113 core/java/android/bluetooth/IBluetoothHealth.aidl \
114 core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
115 core/java/android/bluetooth/IBluetoothInputDevice.aidl \
116 core/java/android/bluetooth/IBluetoothPan.aidl \
117 core/java/android/bluetooth/IBluetoothManager.aidl \
118 core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
119 core/java/android/bluetooth/IBluetoothPbap.aidl \
Joseph Pirozzocfa8a642016-03-04 13:02:54 -0800120 core/java/android/bluetooth/IBluetoothPbapClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000121 core/java/android/bluetooth/IBluetoothMap.aidl \
122 core/java/android/bluetooth/IBluetoothSap.aidl \
123 core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
124 core/java/android/bluetooth/IBluetoothHeadsetClient.aidl \
125 core/java/android/bluetooth/IBluetoothGatt.aidl \
126 core/java/android/bluetooth/IBluetoothGattCallback.aidl \
127 core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
128 core/java/android/content/IClipboard.aidl \
129 core/java/android/content/IContentService.aidl \
130 core/java/android/content/IIntentReceiver.aidl \
131 core/java/android/content/IIntentSender.aidl \
132 core/java/android/content/IOnPrimaryClipChangedListener.aidl \
133 core/java/android/content/IRestrictionsManager.aidl \
134 core/java/android/content/ISyncAdapter.aidl \
135 core/java/android/content/ISyncContext.aidl \
136 core/java/android/content/ISyncServiceAdapter.aidl \
137 core/java/android/content/ISyncStatusObserver.aidl \
138 core/java/android/content/pm/ILauncherApps.aidl \
139 core/java/android/content/pm/IOnAppsChangedListener.aidl \
Andreas Gampea8908752015-11-10 08:58:14 -0800140 core/java/android/content/pm/IOtaDexopt.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000141 core/java/android/content/pm/IPackageDataObserver.aidl \
142 core/java/android/content/pm/IPackageDeleteObserver.aidl \
143 core/java/android/content/pm/IPackageDeleteObserver2.aidl \
144 core/java/android/content/pm/IPackageInstallObserver.aidl \
145 core/java/android/content/pm/IPackageInstallObserver2.aidl \
146 core/java/android/content/pm/IPackageInstaller.aidl \
147 core/java/android/content/pm/IPackageInstallerCallback.aidl \
148 core/java/android/content/pm/IPackageInstallerSession.aidl \
149 core/java/android/content/pm/IPackageManager.aidl \
150 core/java/android/content/pm/IPackageMoveObserver.aidl \
151 core/java/android/content/pm/IPackageStatsObserver.aidl \
Svetoslavf7c06eb2015-06-10 18:43:22 -0700152 core/java/android/content/pm/IOnPermissionsChangeListener.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800153 core/java/android/content/pm/IShortcutService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000154 core/java/android/database/IContentObserver.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800155 ../av/camera/aidl/android/hardware/ICameraService.aidl \
156 ../av/camera/aidl/android/hardware/ICameraServiceListener.aidl \
157 ../av/camera/aidl/android/hardware/ICameraServiceProxy.aidl \
158 ../av/camera/aidl/android/hardware/ICamera.aidl \
159 ../av/camera/aidl/android/hardware/ICameraClient.aidl \
160 ../av/camera/aidl/android/hardware/camera2/ICameraDeviceUser.aidl \
161 ../av/camera/aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000162 core/java/android/hardware/IConsumerIrService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000163 core/java/android/hardware/ISerialManager.aidl \
164 core/java/android/hardware/display/IDisplayManager.aidl \
165 core/java/android/hardware/display/IDisplayManagerCallback.aidl \
166 core/java/android/hardware/display/IVirtualDisplayCallback.aidl \
Jim Millerbe675422015-05-11 20:45:25 -0700167 core/java/android/hardware/fingerprint/IFingerprintDaemon.aidl \
168 core/java/android/hardware/fingerprint/IFingerprintDaemonCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000169 core/java/android/hardware/fingerprint/IFingerprintService.aidl \
Jorim Jaggi3a464782015-08-28 16:59:13 -0700170 core/java/android/hardware/fingerprint/IFingerprintServiceLockoutResetCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000171 core/java/android/hardware/fingerprint/IFingerprintServiceReceiver.aidl \
172 core/java/android/hardware/hdmi/IHdmiControlCallback.aidl \
173 core/java/android/hardware/hdmi/IHdmiControlService.aidl \
174 core/java/android/hardware/hdmi/IHdmiDeviceEventListener.aidl \
175 core/java/android/hardware/hdmi/IHdmiHotplugEventListener.aidl \
176 core/java/android/hardware/hdmi/IHdmiInputChangeListener.aidl \
177 core/java/android/hardware/hdmi/IHdmiMhlVendorCommandListener.aidl \
178 core/java/android/hardware/hdmi/IHdmiRecordListener.aidl \
179 core/java/android/hardware/hdmi/IHdmiSystemAudioModeChangeListener.aidl \
180 core/java/android/hardware/hdmi/IHdmiVendorCommandListener.aidl \
181 core/java/android/hardware/input/IInputManager.aidl \
182 core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
Michael Wright39e5e942015-08-19 22:52:47 +0100183 core/java/android/hardware/input/ITabletModeChangedListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000184 core/java/android/hardware/location/IActivityRecognitionHardware.aidl \
destradaa6e2fe752015-06-23 17:25:53 -0700185 core/java/android/hardware/location/IActivityRecognitionHardwareClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000186 core/java/android/hardware/location/IActivityRecognitionHardwareSink.aidl \
187 core/java/android/hardware/location/IActivityRecognitionHardwareWatcher.aidl \
188 core/java/android/hardware/location/IFusedLocationHardware.aidl \
189 core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
190 core/java/android/hardware/location/IGeofenceHardware.aidl \
191 core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
192 core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
Ashutosh Joshi1d1ac542016-01-18 17:19:27 -0800193 core/java/android/hardware/location/IContextHubCallback.aidl \
194 core/java/android/hardware/location/IContextHubService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000195 core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl \
196 core/java/android/hardware/usb/IUsbManager.aidl \
Paul Jensen49e3edf2015-05-22 10:50:39 -0400197 core/java/android/net/ICaptivePortal.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000198 core/java/android/net/IConnectivityManager.aidl \
Pavel Zhamaitsiak02b3e6b2016-02-03 10:39:44 -0800199 core/java/android/net/IConnectivityMetricsLogger.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000200 core/java/android/net/IEthernetManager.aidl \
201 core/java/android/net/IEthernetServiceListener.aidl \
202 core/java/android/net/INetworkManagementEventObserver.aidl \
203 core/java/android/net/INetworkPolicyListener.aidl \
204 core/java/android/net/INetworkPolicyManager.aidl \
205 core/java/android/net/INetworkScoreCache.aidl \
206 core/java/android/net/INetworkScoreService.aidl \
207 core/java/android/net/INetworkStatsService.aidl \
208 core/java/android/net/INetworkStatsSession.aidl \
209 core/java/android/net/nsd/INsdManager.aidl \
210 core/java/android/nfc/IAppCallback.aidl \
211 core/java/android/nfc/INfcAdapter.aidl \
212 core/java/android/nfc/INfcAdapterExtras.aidl \
213 core/java/android/nfc/INfcTag.aidl \
214 core/java/android/nfc/INfcCardEmulation.aidl \
Yoshinobu Itoc52adfe2016-01-22 18:14:18 +0900215 core/java/android/nfc/INfcFCardEmulation.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000216 core/java/android/nfc/INfcUnlockHandler.aidl \
217 core/java/android/os/IBatteryPropertiesListener.aidl \
218 core/java/android/os/IBatteryPropertiesRegistrar.aidl \
219 core/java/android/os/ICancellationSignal.aidl \
220 core/java/android/os/IDeviceIdleController.aidl \
Polina Bondarenkof8754ac2016-02-12 20:38:23 +0100221 core/java/android/os/IHardwarePropertiesManager.aidl \
Yao Chenca5edbb2016-01-13 14:44:36 -0800222 core/java/android/os/IMaintenanceActivityListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000223 core/java/android/os/IMessenger.aidl \
224 core/java/android/os/INetworkActivityListener.aidl \
225 core/java/android/os/INetworkManagementService.aidl \
226 core/java/android/os/IPermissionController.aidl \
227 core/java/android/os/IProcessInfoService.aidl \
Jeff Sharkeybd91e2f2016-03-22 15:32:31 -0600228 core/java/android/os/IProgressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000229 core/java/android/os/IPowerManager.aidl \
Tao Baoe8a403d2015-12-31 07:44:55 -0800230 core/java/android/os/IRecoverySystem.aidl \
231 core/java/android/os/IRecoverySystemProgressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000232 core/java/android/os/IRemoteCallback.aidl \
233 core/java/android/os/ISchedulingPolicyService.aidl \
234 core/java/android/os/IUpdateLock.aidl \
235 core/java/android/os/IUserManager.aidl \
236 core/java/android/os/IVibratorService.aidl \
237 core/java/android/security/IKeystoreService.aidl \
Zach Johnson42ecc9e2015-05-22 15:56:09 -0700238 core/java/android/service/carrier/ICarrierService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000239 core/java/android/service/carrier/ICarrierMessagingCallback.aidl \
240 core/java/android/service/carrier/ICarrierMessagingService.aidl \
241 core/java/android/service/gatekeeper/IGateKeeperService.aidl \
242 core/java/android/service/notification/INotificationListener.aidl \
243 core/java/android/service/notification/IStatusBarNotificationHolder.aidl \
244 core/java/android/service/notification/IConditionListener.aidl \
245 core/java/android/service/notification/IConditionProvider.aidl \
Ruben Brunke24b9a62016-02-16 21:38:24 -0800246 core/java/android/service/vr/IVrListener.aidl \
Ruben Brunkc7be3be2016-04-01 17:07:51 -0700247 core/java/android/service/vr/IVrManager.aidl \
248 core/java/android/service/vr/IVrStateCallbacks.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000249 core/java/android/print/ILayoutResultCallback.aidl \
250 core/java/android/print/IPrinterDiscoveryObserver.aidl \
251 core/java/android/print/IPrintDocumentAdapter.aidl \
252 core/java/android/print/IPrintDocumentAdapterObserver.aidl \
253 core/java/android/print/IPrintJobStateChangeListener.aidl \
Philip P. Moltmann66c96592016-02-24 11:32:43 -0800254 core/java/android/print/IPrintServicesChangeListener.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700255 core/java/android/printservice/recommendation/IRecommendationsChangeListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000256 core/java/android/print/IPrintManager.aidl \
257 core/java/android/print/IPrintSpooler.aidl \
258 core/java/android/print/IPrintSpoolerCallbacks.aidl \
259 core/java/android/print/IPrintSpoolerClient.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700260 core/java/android/printservice/recommendation/IRecommendationServiceCallbacks.aidl \
261 core/java/android/printservice/recommendation/IRecommendationService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000262 core/java/android/print/IWriteResultCallback.aidl \
263 core/java/android/printservice/IPrintService.aidl \
264 core/java/android/printservice/IPrintServiceClient.aidl \
265 core/java/android/service/dreams/IDreamManager.aidl \
266 core/java/android/service/dreams/IDreamService.aidl \
267 core/java/android/service/persistentdata/IPersistentDataBlockService.aidl \
268 core/java/android/service/trust/ITrustAgentService.aidl \
269 core/java/android/service/trust/ITrustAgentServiceCallback.aidl \
270 core/java/android/service/voice/IVoiceInteractionService.aidl \
271 core/java/android/service/voice/IVoiceInteractionSession.aidl \
272 core/java/android/service/voice/IVoiceInteractionSessionService.aidl \
273 core/java/android/service/wallpaper/IWallpaperConnection.aidl \
274 core/java/android/service/wallpaper/IWallpaperEngine.aidl \
275 core/java/android/service/wallpaper/IWallpaperService.aidl \
276 core/java/android/service/chooser/IChooserTargetService.aidl \
277 core/java/android/service/chooser/IChooserTargetResult.aidl \
278 core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
279 core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
280 core/java/android/view/accessibility/IAccessibilityManager.aidl \
281 core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
282 core/java/android/view/IApplicationToken.aidl \
Jorim Jaggi2f7d2922015-10-29 13:08:29 +0100283 core/java/android/view/IAppTransitionAnimationSpecsFuture.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000284 core/java/android/view/IAssetAtlas.aidl \
Jorim Jaggia6c934e2015-12-21 13:22:31 +0100285 core/java/android/view/IDockedStackListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000286 core/java/android/view/IGraphicsStats.aidl \
287 core/java/android/view/IInputFilter.aidl \
288 core/java/android/view/IInputFilterHost.aidl \
289 core/java/android/view/IOnKeyguardExitResult.aidl \
290 core/java/android/view/IRotationWatcher.aidl \
291 core/java/android/view/IWindow.aidl \
292 core/java/android/view/IWindowFocusObserver.aidl \
293 core/java/android/view/IWindowId.aidl \
294 core/java/android/view/IWindowManager.aidl \
295 core/java/android/view/IWindowSession.aidl \
296 core/java/android/view/IWindowSessionCallback.aidl \
297 core/java/android/webkit/IWebViewUpdateService.aidl \
298 core/java/android/speech/IRecognitionListener.aidl \
299 core/java/android/speech/IRecognitionService.aidl \
300 core/java/android/speech/tts/ITextToSpeechCallback.aidl \
301 core/java/android/speech/tts/ITextToSpeechService.aidl \
302 core/java/com/android/internal/app/IAppOpsCallback.aidl \
303 core/java/com/android/internal/app/IAppOpsService.aidl \
304 core/java/com/android/internal/app/IAssistScreenshotReceiver.aidl \
305 core/java/com/android/internal/app/IBatteryStats.aidl \
Todd Kennedyb8a279e2015-11-18 09:59:47 -0800306 core/java/com/android/internal/app/IEphemeralResolver.aidl \
Arunesh Mishraa772e5f2016-01-25 10:33:11 -0800307 core/java/com/android/internal/app/ISoundTriggerService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000308 core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl \
309 core/java/com/android/internal/app/IVoiceInteractionSessionShowCallback.aidl \
310 core/java/com/android/internal/app/IVoiceInteractor.aidl \
311 core/java/com/android/internal/app/IVoiceInteractorCallback.aidl \
312 core/java/com/android/internal/app/IVoiceInteractorRequest.aidl \
313 core/java/com/android/internal/app/IMediaContainerService.aidl \
Joe Onorato4eb64fd2016-03-21 15:30:09 -0700314 core/java/com/android/internal/app/procstats/IProcessStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000315 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
316 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
317 core/java/com/android/internal/backup/IBackupTransport.aidl \
318 core/java/com/android/internal/backup/IObbBackupService.aidl \
Jorim Jaggi4cfdcf52015-07-09 12:13:59 -0700319 core/java/com/android/internal/policy/IKeyguardDrawnCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000320 core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
321 core/java/com/android/internal/policy/IKeyguardService.aidl \
322 core/java/com/android/internal/policy/IKeyguardStateCallback.aidl \
Muyuan Li94ce94e2016-02-24 16:20:54 -0800323 core/java/com/android/internal/policy/IShortcutService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000324 core/java/com/android/internal/os/IDropBoxManagerService.aidl \
325 core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl \
326 core/java/com/android/internal/os/IResultReceiver.aidl \
327 core/java/com/android/internal/statusbar/IStatusBar.aidl \
328 core/java/com/android/internal/statusbar/IStatusBarService.aidl \
329 core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
330 core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
331 core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
332 core/java/com/android/internal/textservice/ITextServicesManager.aidl \
333 core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
Vladislav Kaznacheev9149d2b2015-12-15 12:16:28 -0800334 core/java/com/android/internal/view/IDropPermissions.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000335 core/java/com/android/internal/view/IInputContext.aidl \
336 core/java/com/android/internal/view/IInputContextCallback.aidl \
337 core/java/com/android/internal/view/IInputMethod.aidl \
338 core/java/com/android/internal/view/IInputMethodClient.aidl \
339 core/java/com/android/internal/view/IInputMethodManager.aidl \
340 core/java/com/android/internal/view/IInputMethodSession.aidl \
341 core/java/com/android/internal/view/IInputSessionCallback.aidl \
342 core/java/com/android/internal/widget/ILockSettings.aidl \
343 core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
344 core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
345 keystore/java/android/security/IKeyChainAliasCallback.aidl \
346 keystore/java/android/security/IKeyChainService.aidl \
347 location/java/android/location/ICountryDetector.aidl \
348 location/java/android/location/ICountryListener.aidl \
349 location/java/android/location/IFusedProvider.aidl \
350 location/java/android/location/IGeocodeProvider.aidl \
351 location/java/android/location/IGeofenceProvider.aidl \
Lifu Tang30f95a72016-01-07 23:20:38 -0800352 location/java/android/location/IGnssStatusListener.aidl \
353 location/java/android/location/IGnssStatusProvider.aidl \
Lifu Tang818aa2c2016-02-01 01:52:00 -0800354 location/java/android/location/IGnssMeasurementsListener.aidl \
355 location/java/android/location/IGnssNavigationMessageListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000356 location/java/android/location/ILocationListener.aidl \
357 location/java/android/location/ILocationManager.aidl \
358 location/java/android/location/IFusedGeofenceHardware.aidl \
359 location/java/android/location/IGpsGeofenceHardware.aidl \
360 location/java/android/location/INetInitiatedListener.aidl \
361 location/java/com/android/internal/location/ILocationProvider.aidl \
362 media/java/android/media/IAudioService.aidl \
363 media/java/android/media/IAudioFocusDispatcher.aidl \
364 media/java/android/media/IAudioRoutesObserver.aidl \
365 media/java/android/media/IMediaHTTPConnection.aidl \
366 media/java/android/media/IMediaHTTPService.aidl \
Dongwon Kang2034a4c2015-12-14 21:57:34 +0900367 media/java/android/media/IMediaResourceMonitor.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000368 media/java/android/media/IMediaRouterClient.aidl \
369 media/java/android/media/IMediaRouterService.aidl \
370 media/java/android/media/IMediaScannerListener.aidl \
371 media/java/android/media/IMediaScannerService.aidl \
Jean-Michel Trivid3c71f02015-12-07 11:59:31 -0800372 media/java/android/media/IRecordingConfigDispatcher.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000373 media/java/android/media/IRemoteDisplayCallback.aidl \
374 media/java/android/media/IRemoteDisplayProvider.aidl \
375 media/java/android/media/IRemoteVolumeController.aidl \
376 media/java/android/media/IRemoteVolumeObserver.aidl \
377 media/java/android/media/IRingtonePlayer.aidl \
378 media/java/android/media/IVolumeController.aidl \
379 media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl \
Phil Burk7cd06c02015-09-03 14:37:03 -0700380 media/java/android/media/midi/IBluetoothMidiService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000381 media/java/android/media/midi/IMidiDeviceListener.aidl \
Mike Lockwoode0a6ca62015-06-04 13:43:56 -0700382 media/java/android/media/midi/IMidiDeviceOpenCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000383 media/java/android/media/midi/IMidiDeviceServer.aidl \
384 media/java/android/media/midi/IMidiManager.aidl \
385 media/java/android/media/projection/IMediaProjection.aidl \
386 media/java/android/media/projection/IMediaProjectionCallback.aidl \
387 media/java/android/media/projection/IMediaProjectionManager.aidl \
388 media/java/android/media/projection/IMediaProjectionWatcherCallback.aidl \
389 media/java/android/media/session/IActiveSessionsListener.aidl \
390 media/java/android/media/session/ISessionController.aidl \
391 media/java/android/media/session/ISessionControllerCallback.aidl \
392 media/java/android/media/session/ISession.aidl \
393 media/java/android/media/session/ISessionCallback.aidl \
394 media/java/android/media/session/ISessionManager.aidl \
395 media/java/android/media/tv/ITvInputClient.aidl \
396 media/java/android/media/tv/ITvInputHardware.aidl \
397 media/java/android/media/tv/ITvInputHardwareCallback.aidl \
398 media/java/android/media/tv/ITvInputManager.aidl \
399 media/java/android/media/tv/ITvInputManagerCallback.aidl \
400 media/java/android/media/tv/ITvInputService.aidl \
401 media/java/android/media/tv/ITvInputServiceCallback.aidl \
402 media/java/android/media/tv/ITvInputSession.aidl \
403 media/java/android/media/tv/ITvInputSessionCallback.aidl \
404 media/java/android/service/media/IMediaBrowserService.aidl \
405 media/java/android/service/media/IMediaBrowserServiceCallbacks.aidl \
Sailesh Nepal1bef3392016-01-24 18:21:53 -0800406 telecomm/java/com/android/internal/telecom/ICallScreeningAdapter.aidl \
407 telecomm/java/com/android/internal/telecom/ICallScreeningService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000408 telecomm/java/com/android/internal/telecom/IVideoCallback.aidl \
409 telecomm/java/com/android/internal/telecom/IVideoProvider.aidl \
410 telecomm/java/com/android/internal/telecom/IConnectionService.aidl \
411 telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl \
412 telecomm/java/com/android/internal/telecom/IInCallAdapter.aidl \
413 telecomm/java/com/android/internal/telecom/IInCallService.aidl \
414 telecomm/java/com/android/internal/telecom/ITelecomService.aidl \
415 telecomm/java/com/android/internal/telecom/RemoteServiceCallback.aidl \
416 telephony/java/com/android/ims/internal/IImsCallSession.aidl \
417 telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl \
418 telephony/java/com/android/ims/internal/IImsConfig.aidl \
419 telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl \
420 telephony/java/com/android/ims/internal/IImsEcbm.aidl \
421 telephony/java/com/android/ims/internal/IImsEcbmListener.aidl \
Anju Mathapatif604fc32016-03-10 12:57:21 -0800422 telephony/java/com/android/ims/internal/IImsExternalCallStateListener.aidl \
423 telephony/java/com/android/ims/internal/IImsMultiEndpoint.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000424 telephony/java/com/android/ims/internal/IImsService.aidl \
425 telephony/java/com/android/ims/internal/IImsStreamMediaSession.aidl \
426 telephony/java/com/android/ims/internal/IImsUt.aidl \
427 telephony/java/com/android/ims/internal/IImsUtListener.aidl \
428 telephony/java/com/android/ims/internal/IImsVideoCallCallback.aidl \
429 telephony/java/com/android/ims/internal/IImsVideoCallProvider.aidl \
Pavel Zhamaitsiakcfedd202016-03-18 16:09:50 -0700430 telephony/java/com/android/ims/internal/uce/uceservice/IUceService.aidl \
431 telephony/java/com/android/ims/internal/uce/uceservice/IUceListener.aidl \
432 telephony/java/com/android/ims/internal/uce/options/IOptionsService.aidl \
433 telephony/java/com/android/ims/internal/uce/options/IOptionsListener.aidl \
434 telephony/java/com/android/ims/internal/uce/presence/IPresenceService.aidl \
435 telephony/java/com/android/ims/internal/uce/presence/IPresenceListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000436 telephony/java/com/android/ims/ImsConfigListener.aidl \
437 telephony/java/com/android/internal/telephony/ICarrierConfigLoader.aidl \
438 telephony/java/com/android/internal/telephony/IMms.aidl \
439 telephony/java/com/android/internal/telephony/IOnSubscriptionsChangedListener.aidl \
440 telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
441 telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
442 telephony/java/com/android/internal/telephony/ISms.aidl \
443 telephony/java/com/android/internal/telephony/ISub.aidl \
444 telephony/java/com/android/internal/telephony/ITelephony.aidl \
445 telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
446 telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
447 wifi/java/android/net/wifi/IWifiManager.aidl \
Etan Cohen20d329b2015-09-29 13:49:02 -0700448 wifi/java/android/net/wifi/nan/IWifiNanEventListener.aidl \
449 wifi/java/android/net/wifi/nan/IWifiNanManager.aidl \
450 wifi/java/android/net/wifi/nan/IWifiNanSessionListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000451 wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
452 wifi/java/android/net/wifi/IWifiScanner.aidl \
453 wifi/java/android/net/wifi/IRttManager.aidl \
454 packages/services/PacProcessor/com/android/net/IProxyService.aidl \
455 packages/services/Proxy/com/android/net/IProxyCallback.aidl \
456 packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500457 core/java/android/service/quicksettings/IQSService.aidl \
458 core/java/android/service/quicksettings/IQSTileService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000459
Tao Baobdc77362016-01-19 15:52:28 -0800460# The following are native binders that need to go with the native component
461# at system/update_engine/binder_bindings/. Use relative path to refer to them.
462LOCAL_SRC_FILES += \
463 ../../system/update_engine/binder_bindings/android/os/IUpdateEngine.aidl \
464 ../../system/update_engine/binder_bindings/android/os/IUpdateEngineCallback.aidl \
465
466LOCAL_AIDL_INCLUDES += system/update_engine/binder_bindings
467
Bart Searsa8cc0582015-05-07 03:23:20 +0000468# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
Samuel Tan239951a2016-01-05 17:29:43 -0800469LOCAL_AIDL_INCLUDES += \
470 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) \
471 frameworks/native/aidl/binder
Bart Searsa8cc0582015-05-07 03:23:20 +0000472
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800473LOCAL_AIDL_INCLUDES += \
474 frameworks/av/camera/aidl \
Robin Lee10606942016-03-30 18:52:40 +0100475 frameworks/native/aidl/gui \
476 system/netd/server/binder
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800477
Bart Searsa8cc0582015-05-07 03:23:20 +0000478LOCAL_INTERMEDIATE_SOURCES := \
479 $(framework_res_source_path)/android/R.java \
480 $(framework_res_source_path)/android/Manifest.java \
481 $(framework_res_source_path)/com/android/internal/R.java
482
483LOCAL_NO_STANDARD_LIBRARIES := true
Neil Fuller801f90e2016-02-18 13:57:43 +0000484LOCAL_JAVA_LIBRARIES := core-oj core-libart core-lambda-stubs conscrypt okhttp core-junit bouncycastle ext
Chris Wren77781d32016-01-11 14:49:26 -0500485LOCAL_STATIC_JAVA_LIBRARIES := framework-protos
Bart Searsa8cc0582015-05-07 03:23:20 +0000486
487LOCAL_MODULE := framework
488
489LOCAL_DX_FLAGS := --core-library --multi-dex
490LOCAL_JACK_FLAGS := --multi-dex native
491
492LOCAL_RMTYPEDEFS := true
493
494include $(BUILD_JAVA_LIBRARY)
495framework_module := $(LOCAL_INSTALLED_MODULE)
496
497# Make sure that R.java and Manifest.java are built before we build
498# the source for this library.
499framework_res_R_stamp := \
500 $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
501$(full_classes_compiled_jar): $(framework_res_R_stamp)
502$(built_dex_intermediate): $(framework_res_R_stamp)
503
504$(framework_module): | $(dir $(framework_module))framework-res.apk
505
506framework_built := $(call java-lib-deps,framework)
507
508# Copy AIDL files to be preprocessed and included in the SDK,
509# specified relative to the root of the build tree.
510# ============================================================
511include $(CLEAR_VARS)
512
513aidl_files := \
514 frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
515 frameworks/base/telephony/java/android/telephony/SubscriptionInfo.aidl \
516 frameworks/base/telephony/java/android/telephony/CellInfo.aidl \
517 frameworks/base/telephony/java/android/telephony/SignalStrength.aidl \
518 frameworks/base/telephony/java/android/telephony/IccOpenLogicalChannelResponse.aidl \
519 frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.aidl \
Prerepa Viswanadham5c728992015-05-28 00:12:37 -0700520 frameworks/base/telephony/java/android/telephony/ModemActivityInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000521 frameworks/base/location/java/android/location/Location.aidl \
522 frameworks/base/location/java/android/location/Address.aidl \
523 frameworks/base/location/java/android/location/Criteria.aidl \
524 frameworks/base/media/java/android/media/MediaMetadata.aidl \
525 frameworks/base/media/java/android/media/MediaDescription.aidl \
526 frameworks/base/media/java/android/media/Rating.aidl \
527 frameworks/base/media/java/android/media/AudioAttributes.aidl \
528 frameworks/base/media/java/android/media/AudioFocusInfo.aidl \
529 frameworks/base/media/java/android/media/session/PlaybackState.aidl \
530 frameworks/base/media/java/android/media/session/MediaSession.aidl \
531 frameworks/base/media/java/android/media/tv/TvInputInfo.aidl \
532 frameworks/base/media/java/android/media/tv/TvTrackInfo.aidl \
533 frameworks/base/media/java/android/media/browse/MediaBrowser.aidl \
534 frameworks/base/wifi/java/android/net/wifi/ScanSettings.aidl \
Etan Cohen20d329b2015-09-29 13:49:02 -0700535 frameworks/base/wifi/java/android/net/wifi/nan/ConfigRequest.aidl \
536 frameworks/base/wifi/java/android/net/wifi/nan/PublishData.aidl \
537 frameworks/base/wifi/java/android/net/wifi/nan/SubscribeData.aidl \
538 frameworks/base/wifi/java/android/net/wifi/nan/PublishSettings.aidl \
539 frameworks/base/wifi/java/android/net/wifi/nan/SubscribeSettings.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000540 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pInfo.aidl \
541 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDeviceList.aidl \
542 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pConfig.aidl \
543 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDevice.aidl \
544 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pGroup.aidl \
545 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceRequest.aidl \
546 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceInfo.aidl \
547 frameworks/base/wifi/java/android/net/wifi/WpsInfo.aidl \
548 frameworks/base/wifi/java/android/net/wifi/ScanResult.aidl \
Vinit Deshpandea772f0c2016-01-27 19:05:24 -0800549 frameworks/base/wifi/java/android/net/wifi/PasspointManagementObjectDefinition.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000550 frameworks/base/wifi/java/android/net/wifi/WifiEnterpriseConfig.aidl \
551 frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.aidl \
552 frameworks/base/wifi/java/android/net/wifi/WifiInfo.aidl \
553 frameworks/base/graphics/java/android/graphics/Region.aidl \
554 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
555 frameworks/base/graphics/java/android/graphics/Point.aidl \
556 frameworks/base/graphics/java/android/graphics/PointF.aidl \
557 frameworks/base/graphics/java/android/graphics/RectF.aidl \
558 frameworks/base/graphics/java/android/graphics/Rect.aidl \
Philip P. Moltmannbb9f6862015-12-01 14:44:24 -0800559 frameworks/base/graphics/java/android/graphics/drawable/Icon.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000560 frameworks/base/core/java/android/accounts/AuthenticatorDescription.aidl \
561 frameworks/base/core/java/android/accounts/Account.aidl \
Rubin Xud86d58c2015-05-05 16:57:37 +0100562 frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000563 frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \
564 frameworks/base/core/java/android/print/PageRange.aidl \
565 frameworks/base/core/java/android/print/PrintAttributes.aidl \
566 frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
567 frameworks/base/core/java/android/print/PrinterId.aidl \
568 frameworks/base/core/java/android/print/PrintJobInfo.aidl \
569 frameworks/base/core/java/android/print/PrinterInfo.aidl \
570 frameworks/base/core/java/android/print/PrintJobId.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700571 frameworks/base/core/java/android/printservice/recommendation/RecommendationInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000572 frameworks/base/core/java/android/hardware/usb/UsbDevice.aidl \
573 frameworks/base/core/java/android/hardware/usb/UsbInterface.aidl \
574 frameworks/base/core/java/android/hardware/usb/UsbEndpoint.aidl \
575 frameworks/base/core/java/android/hardware/usb/UsbAccessory.aidl \
576 frameworks/base/core/java/android/os/Messenger.aidl \
577 frameworks/base/core/java/android/os/PatternMatcher.aidl \
578 frameworks/base/core/java/android/os/Message.aidl \
579 frameworks/base/core/java/android/os/UserHandle.aidl \
580 frameworks/base/core/java/android/os/ParcelUuid.aidl \
581 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
582 frameworks/base/core/java/android/os/ResultReceiver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000583 frameworks/base/core/java/android/os/WorkSource.aidl \
584 frameworks/base/core/java/android/os/DropBoxManager.aidl \
585 frameworks/base/core/java/android/os/Bundle.aidl \
586 frameworks/base/core/java/android/accessibilityservice/AccessibilityServiceInfo.aidl \
587 frameworks/base/core/java/android/net/Network.aidl \
588 frameworks/base/core/java/android/net/RouteInfo.aidl \
589 frameworks/base/core/java/android/net/NetworkInfo.aidl \
590 frameworks/base/core/java/android/net/IpPrefix.aidl \
591 frameworks/base/core/java/android/net/NetworkCapabilities.aidl \
592 frameworks/base/core/java/android/net/DhcpInfo.aidl \
593 frameworks/base/core/java/android/net/ProxyInfo.aidl \
594 frameworks/base/core/java/android/net/LinkProperties.aidl \
595 frameworks/base/core/java/android/net/Uri.aidl \
596 frameworks/base/core/java/android/net/NetworkRequest.aidl \
597 frameworks/base/core/java/android/net/LinkAddress.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700598 frameworks/base/core/java/android/view/Display.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000599 frameworks/base/core/java/android/view/InputDevice.aidl \
600 frameworks/base/core/java/android/view/InputEvent.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800601 frameworks/native/aidl/gui/android/view/Surface.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700602 frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000603 frameworks/base/core/java/android/view/inputmethod/InputMethodSubtype.aidl \
604 frameworks/base/core/java/android/view/inputmethod/CursorAnchorInfo.aidl \
605 frameworks/base/core/java/android/view/inputmethod/CompletionInfo.aidl \
606 frameworks/base/core/java/android/view/inputmethod/ExtractedText.aidl \
607 frameworks/base/core/java/android/view/inputmethod/EditorInfo.aidl \
608 frameworks/base/core/java/android/view/inputmethod/InputMethodInfo.aidl \
609 frameworks/base/core/java/android/view/inputmethod/CorrectionInfo.aidl \
610 frameworks/base/core/java/android/view/inputmethod/InputBinding.aidl \
611 frameworks/base/core/java/android/view/inputmethod/ExtractedTextRequest.aidl \
612 frameworks/base/core/java/android/view/DragEvent.aidl \
613 frameworks/base/core/java/android/view/KeyEvent.aidl \
614 frameworks/base/core/java/android/view/WindowManager.aidl \
615 frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
616 frameworks/base/core/java/android/view/MotionEvent.aidl \
617 frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
618 frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
619 frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
620 frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
621 frameworks/base/core/java/android/view/textservice/SpellCheckerSubtype.aidl \
622 frameworks/base/core/java/android/view/textservice/TextInfo.aidl \
623 frameworks/base/core/java/android/view/textservice/SpellCheckerInfo.aidl \
624 frameworks/base/core/java/android/view/textservice/SentenceSuggestionsInfo.aidl \
625 frameworks/base/core/java/android/view/textservice/SuggestionsInfo.aidl \
626 frameworks/base/core/java/android/service/carrier/CarrierIdentifier.aidl \
627 frameworks/base/core/java/android/service/carrier/MessagePdu.aidl \
628 frameworks/base/core/java/android/service/notification/StatusBarNotification.aidl \
629 frameworks/base/core/java/android/service/chooser/ChooserTarget.aidl \
630 frameworks/base/core/java/android/speech/tts/Voice.aidl \
631 frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000632 frameworks/base/core/java/android/app/Notification.aidl \
633 frameworks/base/core/java/android/app/NotificationManager.aidl \
634 frameworks/base/core/java/android/app/WallpaperInfo.aidl \
635 frameworks/base/core/java/android/app/AppOpsManager.aidl \
636 frameworks/base/core/java/android/app/ActivityManager.aidl \
637 frameworks/base/core/java/android/app/PendingIntent.aidl \
638 frameworks/base/core/java/android/app/AlarmManager.aidl \
639 frameworks/base/core/java/android/app/SearchableInfo.aidl \
640 frameworks/base/core/java/android/app/VoiceInteractor.aidl \
Dianne Hackborn69c6adc2015-06-02 10:52:59 -0700641 frameworks/base/core/java/android/app/assist/AssistContent.aidl \
642 frameworks/base/core/java/android/app/assist/AssistStructure.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000643 frameworks/base/core/java/android/app/job/JobParameters.aidl \
644 frameworks/base/core/java/android/app/job/JobInfo.aidl \
645 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
646 frameworks/base/core/java/android/content/ClipDescription.aidl \
647 frameworks/base/core/java/android/content/IntentFilter.aidl \
648 frameworks/base/core/java/android/content/Intent.aidl \
649 frameworks/base/core/java/android/content/res/Configuration.aidl \
650 frameworks/base/core/java/android/content/res/ObbInfo.aidl \
651 frameworks/base/core/java/android/content/RestrictionEntry.aidl \
652 frameworks/base/core/java/android/content/ClipData.aidl \
653 frameworks/base/core/java/android/content/SyncAdapterType.aidl \
654 frameworks/base/core/java/android/content/SyncRequest.aidl \
655 frameworks/base/core/java/android/content/PeriodicSync.aidl \
656 frameworks/base/core/java/android/content/SyncResult.aidl \
657 frameworks/base/core/java/android/content/pm/FeatureInfo.aidl \
658 frameworks/base/core/java/android/content/pm/InstrumentationInfo.aidl \
659 frameworks/base/core/java/android/content/pm/PackageInstaller.aidl \
660 frameworks/base/core/java/android/content/pm/ServiceInfo.aidl \
661 frameworks/base/core/java/android/content/pm/Signature.aidl \
662 frameworks/base/core/java/android/content/pm/ApplicationInfo.aidl \
663 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
664 frameworks/base/core/java/android/content/pm/ActivityInfo.aidl \
665 frameworks/base/core/java/android/content/pm/PackageInfo.aidl \
666 frameworks/base/core/java/android/content/pm/ResolveInfo.aidl \
667 frameworks/base/core/java/android/content/pm/ProviderInfo.aidl \
668 frameworks/base/core/java/android/content/pm/PackageStats.aidl \
669 frameworks/base/core/java/android/content/pm/PermissionGroupInfo.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800670 frameworks/base/core/java/android/content/pm/ShortcutInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000671 frameworks/base/core/java/android/content/pm/LabeledIntent.aidl \
672 frameworks/base/core/java/android/content/ComponentName.aidl \
673 frameworks/base/core/java/android/content/SyncStats.aidl \
674 frameworks/base/core/java/android/content/ContentValues.aidl \
675 frameworks/base/core/java/android/content/SyncInfo.aidl \
676 frameworks/base/core/java/android/content/IntentSender.aidl \
677 frameworks/base/core/java/android/widget/RemoteViews.aidl \
678 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
679 frameworks/base/core/java/android/nfc/Tag.aidl \
680 frameworks/base/core/java/android/nfc/NdefRecord.aidl \
681 frameworks/base/core/java/android/nfc/NdefMessage.aidl \
682 frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
683 frameworks/base/core/java/android/bluetooth/le/AdvertiseSettings.aidl \
684 frameworks/base/core/java/android/bluetooth/le/ScanSettings.aidl \
685 frameworks/base/core/java/android/bluetooth/le/AdvertiseData.aidl \
686 frameworks/base/core/java/android/bluetooth/le/ScanFilter.aidl \
687 frameworks/base/core/java/android/bluetooth/le/ScanResult.aidl \
688 frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
689 frameworks/base/core/java/android/database/CursorWindow.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500690 frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
Samuel Tan239951a2016-01-05 17:29:43 -0800691 frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
Robin Lee10606942016-03-30 18:52:40 +0100692 system/netd/server/binder/android/net/UidRange.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000693
694gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
695$(gen): PRIVATE_SRC_FILES := $(aidl_files)
696ALL_SDK_FILES += $(gen)
697$(gen): $(aidl_files) | $(AIDL)
698 @echo Aidl Preprocess: $@
699 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
700
701# the documentation
702# ============================================================
703
704# TODO: deal with com/google/android/googleapps
705packages_to_document := \
706 android \
707 javax/microedition/khronos \
708 org/apache/http/conn \
709 org/apache/http/params
710
711
712# Search through the base framework dirs for these packages.
713# The result will be relative to frameworks/base.
714fwbase_dirs_to_document := \
715 test-runner/src \
716 $(patsubst $(LOCAL_PATH)/%,%, \
717 $(wildcard \
718 $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
719 $(addprefix $(dir)/, $(packages_to_document)) \
720 ) \
721 ) \
722 )
723
724# include definition of libcore_to_document
725include libcore/Docs.mk
726
727# include definition of junit_to_document
728include external/junit/Common.mk
729
730non_base_dirs := \
731 ../opt/telephony/src/java/android/provider \
732 ../opt/telephony/src/java/android/telephony \
733 ../opt/telephony/src/java/android/telephony/gsm \
734 ../opt/net/voip/src/java/android/net/rtp \
735 ../opt/net/voip/src/java/android/net/sip
736
737# These are relative to frameworks/base
738dirs_to_check_apis := \
739 $(fwbase_dirs_to_document) \
740 $(non_base_dirs)
741
George Mountf6be9932015-12-03 07:39:55 -0800742###########################################################
743## Return all directories that have a 'NO_DOCS' file in
744## them, appending a '%' to them to form a pattern to
745## filter out files under those directories.
746## $(1): A list of base directories to look at.
747###########################################################
748define find-no-docs-pattern
749$(addsuffix %, $(dir $(foreach dir, $(1), $(shell cd $(LOCAL_PATH); find $(dir) -name NO_DOCS))))
750endef
751
Bart Searsa8cc0582015-05-07 03:23:20 +0000752# These are relative to frameworks/base
753# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
754dirs_to_document := \
755 $(dirs_to_check_apis) \
George Mounta340f072015-07-13 16:45:34 -0700756 $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
757 $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000758
George Mountf6be9932015-12-03 07:39:55 -0800759patterns_to_not_document := \
760 $(call find-no-docs-pattern, $(dirs_to_document))
761
Bart Searsa8cc0582015-05-07 03:23:20 +0000762# These are relative to frameworks/base
763html_dirs := \
764 $(FRAMEWORKS_BASE_SUBDIRS) \
765 $(non_base_dirs)
766
767# Common sources for doc check and api check
768common_src_files := \
769 $(call find-other-html-files, $(html_dirs)) \
Neil Fullerf9611142015-10-07 10:30:56 +0100770 $(addprefix ../../, $(libcore_to_document)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000771 $(addprefix ../../external/junit/, $(junit_to_document))
772
773# These are relative to frameworks/base
774framework_docs_LOCAL_SRC_FILES := \
George Mountf6be9932015-12-03 07:39:55 -0800775 $(filter-out $(patterns_to_not_document), $(call find-other-java-files, $(dirs_to_document))) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000776 $(common_src_files)
777
778# These are relative to frameworks/base
779framework_docs_LOCAL_API_CHECK_SRC_FILES := \
780 $(call find-other-java-files, $(dirs_to_check_apis)) \
781 $(common_src_files)
782
783# This is used by ide.mk as the list of source files that are
784# always included.
785INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
786
787framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
788 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
789
790framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
791 $(framework_res_source_path)/android/R.java \
792 $(framework_res_source_path)/android/Manifest.java \
793 $(framework_res_source_path)/com/android/internal/R.java
794
795framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000796 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000797 core-libart \
798 conscrypt \
799 bouncycastle \
800 okhttp \
801 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100802 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000803 framework \
804 telephony-common \
805 voip-common
806
807framework_docs_LOCAL_JAVA_LIBRARIES := \
808 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
809 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
810
811framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
812framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
813# The since flag (-since N.xml API_LEVEL) is used to add API Level information
814# to the reference documentation. Must be in order of oldest to newest.
815#
816# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
817# not be referenced in the documentation.
818framework_docs_LOCAL_DROIDDOC_OPTIONS := \
819 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100820 -knowntags ./libcore/known_oj_tags.txt \
Bart Searsa8cc0582015-05-07 03:23:20 +0000821 -hidePackage com.android.org.conscrypt \
822 -since $(SRC_API_DIR)/1.xml 1 \
823 -since $(SRC_API_DIR)/2.xml 2 \
824 -since $(SRC_API_DIR)/3.xml 3 \
825 -since $(SRC_API_DIR)/4.xml 4 \
826 -since $(SRC_API_DIR)/5.xml 5 \
827 -since $(SRC_API_DIR)/6.xml 6 \
828 -since $(SRC_API_DIR)/7.xml 7 \
829 -since $(SRC_API_DIR)/8.xml 8 \
830 -since $(SRC_API_DIR)/9.xml 9 \
831 -since $(SRC_API_DIR)/10.xml 10 \
832 -since $(SRC_API_DIR)/11.xml 11 \
833 -since $(SRC_API_DIR)/12.xml 12 \
834 -since $(SRC_API_DIR)/13.xml 13 \
835 -since $(SRC_API_DIR)/14.txt 14 \
836 -since $(SRC_API_DIR)/15.txt 15 \
837 -since $(SRC_API_DIR)/16.txt 16 \
838 -since $(SRC_API_DIR)/17.txt 17 \
839 -since $(SRC_API_DIR)/18.txt 18 \
840 -since $(SRC_API_DIR)/19.txt 19 \
841 -since $(SRC_API_DIR)/20.txt 20 \
842 -since $(SRC_API_DIR)/21.txt 21 \
843 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700844 -since $(SRC_API_DIR)/23.txt 23 \
Joe Fernandez89f385d2016-03-08 21:22:11 -0800845 -since ./frameworks/base/api/current.txt N \
Bart Searsa8cc0582015-05-07 03:23:20 +0000846 -werror -hide 111 -hide 113 \
847 -overview $(LOCAL_PATH)/core/java/overview.html
848
849framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
850 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
851
852framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
853 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
854 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
855 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
856
857framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100858 frameworks/base/docs/knowntags.txt \
859 libcore/Docs.mk
Bart Searsa8cc0582015-05-07 03:23:20 +0000860
861samples_dir := development/samples/browseable
862
863# Whitelist of valid groups, used for default TOC grouping. Each sample must
864# belong to one (and only one) group. Assign samples to groups by setting
865# a sample.group var to one of these groups in the sample's _index.jd.
866sample_groups := -samplegroup Admin \
867 -samplegroup Background \
868 -samplegroup Connectivity \
869 -samplegroup Content \
870 -samplegroup Input \
871 -samplegroup Media \
872 -samplegroup Notification \
873 -samplegroup RenderScript \
874 -samplegroup Security \
875 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700876 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000877 -samplegroup Testing \
878 -samplegroup UI \
879 -samplegroup Views \
880 -samplegroup Wearable
881
882## SDK version identifiers used in the published docs
883 # major[.minor] version for current SDK. (full releases only)
Joe Fernandez1827e322015-08-12 19:45:22 -0700884framework_docs_SDK_VERSION:=6.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000885 # release version (ie "Release x") (full releases only)
886framework_docs_SDK_REL_ID:=1
887
888framework_docs_LOCAL_DROIDDOC_OPTIONS += \
smain@google.com7aca8be2016-03-10 14:13:30 -0800889 -hdf sdk.codename N \
smain@google.com269aa4e2016-03-10 15:37:58 -0800890 -hdf sdk.preview.version 2 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000891 -hdf sdk.version $(framework_docs_SDK_VERSION) \
892 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
smain@google.com269aa4e2016-03-10 15:37:58 -0800893 -hdf sdk.preview 1
Bart Searsa8cc0582015-05-07 03:23:20 +0000894
895# ==== the api stubs and current.xml ===========================
896include $(CLEAR_VARS)
897
898LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
899LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
900LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
901LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
902LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
903LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
904LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
905LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
906
907LOCAL_MODULE := api-stubs
908
Ying Wang0f92a2e2015-07-16 14:20:22 -0700909LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
910
Bart Searsa8cc0582015-05-07 03:23:20 +0000911LOCAL_DROIDDOC_OPTIONS:=\
912 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000913 -api $(INTERNAL_PLATFORM_API_FILE) \
914 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
915 -nodocs
916
917LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
918
919LOCAL_UNINSTALLABLE_MODULE := true
920
921include $(BUILD_DROIDDOC)
922
923# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
924$(full_target): $(framework_built) $(gen)
925$(INTERNAL_PLATFORM_API_FILE): $(full_target)
926$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
927
928# ==== the system api stubs ===================================
929include $(CLEAR_VARS)
930
931LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
932LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
933LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
934LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
935LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
936LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
937LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
938LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
939
940LOCAL_MODULE := system-api-stubs
941
Ying Wang0f92a2e2015-07-16 14:20:22 -0700942LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
943
Bart Searsa8cc0582015-05-07 03:23:20 +0000944LOCAL_DROIDDOC_OPTIONS:=\
945 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000946 -showAnnotation android.annotation.SystemApi \
947 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
948 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
949 -nodocs
950
951LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
952
953LOCAL_UNINSTALLABLE_MODULE := true
954
955include $(BUILD_DROIDDOC)
956
957# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
958$(full_target): $(framework_built) $(gen)
959$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
960$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
961
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000962# ==== the test api stubs ===================================
963include $(CLEAR_VARS)
964
965LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
966LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
967LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
968LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
969LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
970LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
971LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
972LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
973
974LOCAL_MODULE := test-api-stubs
975
976LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
977
978LOCAL_DROIDDOC_OPTIONS:=\
979 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
980 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
981 -showAnnotation android.annotation.TestApi \
982 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
983 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
984 -nodocs
985
986LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
987
988LOCAL_UNINSTALLABLE_MODULE := true
989
990include $(BUILD_DROIDDOC)
991
992# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
993$(full_target): $(framework_built) $(gen)
994$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
995$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
996
Bart Searsa8cc0582015-05-07 03:23:20 +0000997# ==== check javadoc comments but don't generate docs ========
998include $(CLEAR_VARS)
999
1000LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1001LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1002LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1003LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1004LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1005LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1006LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1007LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1008
1009LOCAL_MODULE := doc-comment-check
1010
1011LOCAL_DROIDDOC_OPTIONS:=\
1012 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1013 -parsecomments
1014
1015LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1016
1017LOCAL_UNINSTALLABLE_MODULE := true
1018
1019include $(BUILD_DROIDDOC)
1020
1021# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1022$(full_target): $(framework_built) $(gen)
1023
1024# Run this for checkbuild
1025checkbuild: doc-comment-check-docs
1026# Check comment when you are updating the API
1027update-api: doc-comment-check-docs
1028
1029# ==== static html in the sdk ==================================
1030include $(CLEAR_VARS)
1031
1032LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1033LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1034LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1035LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1036LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1037LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1038LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1039LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1040
1041LOCAL_MODULE := offline-sdk
1042
1043LOCAL_DROIDDOC_OPTIONS:=\
1044 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1045 -offlinemode \
1046 -title "Android SDK" \
1047 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
smain@google.com00de8c52016-03-07 18:38:08 -08001048 -sdkvalues $(OUT_DOCS) \
1049 -hdf android.whichdoc offline \
1050 -referenceonly
1051
smain@google.comf7b6dad2016-03-22 14:17:55 -07001052LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
smain@google.com00de8c52016-03-07 18:38:08 -08001053
1054include $(BUILD_DROIDDOC)
1055
1056static_doc_index_redirect := $(out_dir)/index.html
1057$(static_doc_index_redirect): \
smain@google.com278fb0d2016-03-09 14:16:07 -08001058 $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
smain@google.com00de8c52016-03-07 18:38:08 -08001059 $(hide) mkdir -p $(dir $@)
1060 $(hide) $(ACP) $< $@
1061
1062$(full_target): $(static_doc_index_redirect)
1063$(full_target): $(framework_built)
1064
smain@google.com7aca8be2016-03-10 14:13:30 -08001065
Bart Searsa8cc0582015-05-07 03:23:20 +00001066# ==== docs for the web (on the androiddevdocs app engine server) =======================
1067include $(CLEAR_VARS)
1068
1069LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1070LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1071LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1072LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1073LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1074LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1075LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1076LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1077LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1078LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1079
1080LOCAL_MODULE := online-sdk
1081
1082LOCAL_DROIDDOC_OPTIONS:= \
1083 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1084 -toroot / \
1085 -hdf android.whichdoc online \
1086 $(sample_groups) \
1087 -hdf android.hasSamples true \
1088 -samplesdir $(samples_dir)
1089
1090LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1091
1092include $(BUILD_DROIDDOC)
1093
1094# ==== docs for the web (on the androiddevdocs app engine server) =======================
1095# TODO: Fix the System API docs build.
1096ifneq ($(filter online-system-api-sdk-docs,$(MAKECMDGOALS)),)
1097include $(CLEAR_VARS)
1098
1099LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1100LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1101LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1102LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1103LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1104LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1105LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1106LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1107LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1108LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1109
1110LOCAL_MODULE := online-system-api-sdk
1111
1112LOCAL_DROIDDOC_OPTIONS:= \
1113 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1114 -showAnnotation android.annotation.SystemApi \
1115 -title "Android SDK - Including system APIs." \
1116 -toroot / \
1117 -hdf android.whichdoc online \
1118 $(sample_groups) \
1119 -hdf android.hasSamples true \
1120 -samplesdir $(samples_dir)
1121
1122LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1123# Don't build by default
1124LOCAL_UNINSTALLABLE_MODULE := true
1125
1126include $(BUILD_DROIDDOC)
1127endif # online-system-api-sdk-docs in make command line.
1128
1129# ==== docs for the web (on the devsite app engine server) =======================
1130include $(CLEAR_VARS)
1131LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1132LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1133LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1134LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1135LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1136LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1137LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1138LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1139LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1140# specify a second html input dir and an output path relative to OUT_DIR)
1141LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl/intl /
1142
1143LOCAL_MODULE := ds
1144
1145LOCAL_DROIDDOC_OPTIONS:= \
1146 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1147 -devsite \
1148 -toroot / \
1149 -hdf android.whichdoc online \
1150 -hdf devsite true
1151
1152LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1153
1154include $(BUILD_DROIDDOC)
1155
1156# ==== docs for the ndk =======================
1157include $(CLEAR_VARS)
1158LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1159LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1160LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1161LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1162LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1163LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1164LOCAL_DROIDDOC_HTML_DIR:=docs/html-ndk
1165LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1166LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1167# specify a second html input dir and an output path relative to OUT_DIR)
1168LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl/intl /
1169
1170LOCAL_MODULE := online-ndk
1171
1172LOCAL_DROIDDOC_OPTIONS:= \
1173 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1174 -toroot / \
1175 -hdf android.whichdoc online \
1176 $(sample_groups) \
1177 -hdf android.hasSamples true \
1178 -samplesdir $(samples_dir)
1179
Dirk Dougherty85dea522015-05-21 14:20:25 -07001180LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001181
1182include $(BUILD_DROIDDOC)
1183
1184
1185# ==== docs that have all of the stuff that's @hidden =======================
1186include $(CLEAR_VARS)
1187
1188LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1189LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1190LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1191LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1192LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1193LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1194LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1195LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1196
1197LOCAL_MODULE := hidden
1198LOCAL_DROIDDOC_OPTIONS:=\
1199 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1200 -title "Android SDK - Including hidden APIs."
1201# -hidden
1202
1203LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1204
1205include $(BUILD_DROIDDOC)
1206
1207# Build ext.jar
1208# ============================================================
1209
1210ext_dirs := \
1211 ../../external/nist-sip/java \
1212 ../../external/tagsoup/src \
1213
1214ext_src_files := $(call all-java-files-under,$(ext_dirs))
1215
1216# ==== the library =========================================
1217include $(CLEAR_VARS)
1218
1219LOCAL_SRC_FILES := $(ext_src_files)
1220
1221LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +00001222LOCAL_JAVA_LIBRARIES := core-oj core-libart
Bart Searsa8cc0582015-05-07 03:23:20 +00001223LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber-platform
1224LOCAL_MODULE_TAGS := optional
1225LOCAL_MODULE := ext
1226
1227LOCAL_DX_FLAGS := --core-library
1228
Jorim Jaggi7e29dea2016-02-01 16:22:43 -08001229ifneq ($(INCREMENTAL_BUILDS),)
1230 LOCAL_PROGUARD_ENABLED := disabled
1231 LOCAL_JACK_ENABLED := incremental
1232endif
1233
Bart Searsa8cc0582015-05-07 03:23:20 +00001234include $(BUILD_JAVA_LIBRARY)
1235
1236
1237# Include subdirectory makefiles
1238# ============================================================
1239
1240# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
1241# team really wants is to build the stuff defined by this makefile.
1242ifeq (,$(ONE_SHOT_MAKEFILE))
1243include $(call first-makefiles-under,$(LOCAL_PATH))
1244endif
1245
1246endif # ANDROID_BUILD_EMBEDDED