blob: 76e9b337a3a4b4cc124e3ab83732b0a6e3bb3eca [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 \
Svet Ganovae0e03a2016-02-25 18:22:10 -0800154 core/java/android/content/pm/permission/IRuntimePermissionPresenter.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000155 core/java/android/database/IContentObserver.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800156 ../av/camera/aidl/android/hardware/ICameraService.aidl \
157 ../av/camera/aidl/android/hardware/ICameraServiceListener.aidl \
158 ../av/camera/aidl/android/hardware/ICameraServiceProxy.aidl \
159 ../av/camera/aidl/android/hardware/ICamera.aidl \
160 ../av/camera/aidl/android/hardware/ICameraClient.aidl \
161 ../av/camera/aidl/android/hardware/camera2/ICameraDeviceUser.aidl \
162 ../av/camera/aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000163 core/java/android/hardware/IConsumerIrService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000164 core/java/android/hardware/ISerialManager.aidl \
165 core/java/android/hardware/display/IDisplayManager.aidl \
166 core/java/android/hardware/display/IDisplayManagerCallback.aidl \
167 core/java/android/hardware/display/IVirtualDisplayCallback.aidl \
Jim Millerbe675422015-05-11 20:45:25 -0700168 core/java/android/hardware/fingerprint/IFingerprintDaemon.aidl \
169 core/java/android/hardware/fingerprint/IFingerprintDaemonCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000170 core/java/android/hardware/fingerprint/IFingerprintService.aidl \
Jorim Jaggi3a464782015-08-28 16:59:13 -0700171 core/java/android/hardware/fingerprint/IFingerprintServiceLockoutResetCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000172 core/java/android/hardware/fingerprint/IFingerprintServiceReceiver.aidl \
173 core/java/android/hardware/hdmi/IHdmiControlCallback.aidl \
174 core/java/android/hardware/hdmi/IHdmiControlService.aidl \
175 core/java/android/hardware/hdmi/IHdmiDeviceEventListener.aidl \
176 core/java/android/hardware/hdmi/IHdmiHotplugEventListener.aidl \
177 core/java/android/hardware/hdmi/IHdmiInputChangeListener.aidl \
178 core/java/android/hardware/hdmi/IHdmiMhlVendorCommandListener.aidl \
179 core/java/android/hardware/hdmi/IHdmiRecordListener.aidl \
180 core/java/android/hardware/hdmi/IHdmiSystemAudioModeChangeListener.aidl \
181 core/java/android/hardware/hdmi/IHdmiVendorCommandListener.aidl \
182 core/java/android/hardware/input/IInputManager.aidl \
183 core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
Michael Wright39e5e942015-08-19 22:52:47 +0100184 core/java/android/hardware/input/ITabletModeChangedListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000185 core/java/android/hardware/location/IActivityRecognitionHardware.aidl \
destradaa6e2fe752015-06-23 17:25:53 -0700186 core/java/android/hardware/location/IActivityRecognitionHardwareClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000187 core/java/android/hardware/location/IActivityRecognitionHardwareSink.aidl \
188 core/java/android/hardware/location/IActivityRecognitionHardwareWatcher.aidl \
189 core/java/android/hardware/location/IFusedLocationHardware.aidl \
190 core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
191 core/java/android/hardware/location/IGeofenceHardware.aidl \
192 core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
193 core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
Ashutosh Joshi1d1ac542016-01-18 17:19:27 -0800194 core/java/android/hardware/location/IContextHubCallback.aidl \
195 core/java/android/hardware/location/IContextHubService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000196 core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl \
197 core/java/android/hardware/usb/IUsbManager.aidl \
Paul Jensen49e3edf2015-05-22 10:50:39 -0400198 core/java/android/net/ICaptivePortal.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000199 core/java/android/net/IConnectivityManager.aidl \
Pavel Zhamaitsiak02b3e6b2016-02-03 10:39:44 -0800200 core/java/android/net/IConnectivityMetricsLogger.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000201 core/java/android/net/IEthernetManager.aidl \
202 core/java/android/net/IEthernetServiceListener.aidl \
203 core/java/android/net/INetworkManagementEventObserver.aidl \
204 core/java/android/net/INetworkPolicyListener.aidl \
205 core/java/android/net/INetworkPolicyManager.aidl \
206 core/java/android/net/INetworkScoreCache.aidl \
207 core/java/android/net/INetworkScoreService.aidl \
208 core/java/android/net/INetworkStatsService.aidl \
209 core/java/android/net/INetworkStatsSession.aidl \
210 core/java/android/net/nsd/INsdManager.aidl \
211 core/java/android/nfc/IAppCallback.aidl \
212 core/java/android/nfc/INfcAdapter.aidl \
213 core/java/android/nfc/INfcAdapterExtras.aidl \
214 core/java/android/nfc/INfcTag.aidl \
215 core/java/android/nfc/INfcCardEmulation.aidl \
Yoshinobu Itoc52adfe2016-01-22 18:14:18 +0900216 core/java/android/nfc/INfcFCardEmulation.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000217 core/java/android/nfc/INfcUnlockHandler.aidl \
Martijn Coenend55def82016-04-14 15:19:31 +0200218 core/java/android/nfc/ITagRemovedCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000219 core/java/android/os/IBatteryPropertiesListener.aidl \
220 core/java/android/os/IBatteryPropertiesRegistrar.aidl \
221 core/java/android/os/ICancellationSignal.aidl \
222 core/java/android/os/IDeviceIdleController.aidl \
Polina Bondarenkof8754ac2016-02-12 20:38:23 +0100223 core/java/android/os/IHardwarePropertiesManager.aidl \
Yao Chenca5edbb2016-01-13 14:44:36 -0800224 core/java/android/os/IMaintenanceActivityListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000225 core/java/android/os/IMessenger.aidl \
226 core/java/android/os/INetworkActivityListener.aidl \
227 core/java/android/os/INetworkManagementService.aidl \
228 core/java/android/os/IPermissionController.aidl \
229 core/java/android/os/IProcessInfoService.aidl \
Jeff Sharkeybd91e2f2016-03-22 15:32:31 -0600230 core/java/android/os/IProgressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000231 core/java/android/os/IPowerManager.aidl \
Tao Baoe8a403d2015-12-31 07:44:55 -0800232 core/java/android/os/IRecoverySystem.aidl \
233 core/java/android/os/IRecoverySystemProgressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000234 core/java/android/os/IRemoteCallback.aidl \
235 core/java/android/os/ISchedulingPolicyService.aidl \
236 core/java/android/os/IUpdateLock.aidl \
237 core/java/android/os/IUserManager.aidl \
238 core/java/android/os/IVibratorService.aidl \
239 core/java/android/security/IKeystoreService.aidl \
Zach Johnson42ecc9e2015-05-22 15:56:09 -0700240 core/java/android/service/carrier/ICarrierService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000241 core/java/android/service/carrier/ICarrierMessagingCallback.aidl \
242 core/java/android/service/carrier/ICarrierMessagingService.aidl \
243 core/java/android/service/gatekeeper/IGateKeeperService.aidl \
244 core/java/android/service/notification/INotificationListener.aidl \
245 core/java/android/service/notification/IStatusBarNotificationHolder.aidl \
246 core/java/android/service/notification/IConditionListener.aidl \
247 core/java/android/service/notification/IConditionProvider.aidl \
Ruben Brunke24b9a62016-02-16 21:38:24 -0800248 core/java/android/service/vr/IVrListener.aidl \
Ruben Brunkc7be3be2016-04-01 17:07:51 -0700249 core/java/android/service/vr/IVrManager.aidl \
250 core/java/android/service/vr/IVrStateCallbacks.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000251 core/java/android/print/ILayoutResultCallback.aidl \
252 core/java/android/print/IPrinterDiscoveryObserver.aidl \
253 core/java/android/print/IPrintDocumentAdapter.aidl \
254 core/java/android/print/IPrintDocumentAdapterObserver.aidl \
255 core/java/android/print/IPrintJobStateChangeListener.aidl \
Philip P. Moltmann66c96592016-02-24 11:32:43 -0800256 core/java/android/print/IPrintServicesChangeListener.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700257 core/java/android/printservice/recommendation/IRecommendationsChangeListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000258 core/java/android/print/IPrintManager.aidl \
259 core/java/android/print/IPrintSpooler.aidl \
260 core/java/android/print/IPrintSpoolerCallbacks.aidl \
261 core/java/android/print/IPrintSpoolerClient.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700262 core/java/android/printservice/recommendation/IRecommendationServiceCallbacks.aidl \
263 core/java/android/printservice/recommendation/IRecommendationService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000264 core/java/android/print/IWriteResultCallback.aidl \
265 core/java/android/printservice/IPrintService.aidl \
266 core/java/android/printservice/IPrintServiceClient.aidl \
267 core/java/android/service/dreams/IDreamManager.aidl \
268 core/java/android/service/dreams/IDreamService.aidl \
269 core/java/android/service/persistentdata/IPersistentDataBlockService.aidl \
270 core/java/android/service/trust/ITrustAgentService.aidl \
271 core/java/android/service/trust/ITrustAgentServiceCallback.aidl \
272 core/java/android/service/voice/IVoiceInteractionService.aidl \
273 core/java/android/service/voice/IVoiceInteractionSession.aidl \
274 core/java/android/service/voice/IVoiceInteractionSessionService.aidl \
275 core/java/android/service/wallpaper/IWallpaperConnection.aidl \
276 core/java/android/service/wallpaper/IWallpaperEngine.aidl \
277 core/java/android/service/wallpaper/IWallpaperService.aidl \
278 core/java/android/service/chooser/IChooserTargetService.aidl \
279 core/java/android/service/chooser/IChooserTargetResult.aidl \
280 core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
281 core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
282 core/java/android/view/accessibility/IAccessibilityManager.aidl \
283 core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
284 core/java/android/view/IApplicationToken.aidl \
Jorim Jaggi2f7d2922015-10-29 13:08:29 +0100285 core/java/android/view/IAppTransitionAnimationSpecsFuture.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000286 core/java/android/view/IAssetAtlas.aidl \
Jorim Jaggia6c934e2015-12-21 13:22:31 +0100287 core/java/android/view/IDockedStackListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000288 core/java/android/view/IGraphicsStats.aidl \
289 core/java/android/view/IInputFilter.aidl \
290 core/java/android/view/IInputFilterHost.aidl \
291 core/java/android/view/IOnKeyguardExitResult.aidl \
292 core/java/android/view/IRotationWatcher.aidl \
293 core/java/android/view/IWindow.aidl \
294 core/java/android/view/IWindowFocusObserver.aidl \
295 core/java/android/view/IWindowId.aidl \
296 core/java/android/view/IWindowManager.aidl \
297 core/java/android/view/IWindowSession.aidl \
298 core/java/android/view/IWindowSessionCallback.aidl \
299 core/java/android/webkit/IWebViewUpdateService.aidl \
300 core/java/android/speech/IRecognitionListener.aidl \
301 core/java/android/speech/IRecognitionService.aidl \
302 core/java/android/speech/tts/ITextToSpeechCallback.aidl \
303 core/java/android/speech/tts/ITextToSpeechService.aidl \
304 core/java/com/android/internal/app/IAppOpsCallback.aidl \
305 core/java/com/android/internal/app/IAppOpsService.aidl \
306 core/java/com/android/internal/app/IAssistScreenshotReceiver.aidl \
307 core/java/com/android/internal/app/IBatteryStats.aidl \
Todd Kennedyb8a279e2015-11-18 09:59:47 -0800308 core/java/com/android/internal/app/IEphemeralResolver.aidl \
Arunesh Mishraa772e5f2016-01-25 10:33:11 -0800309 core/java/com/android/internal/app/ISoundTriggerService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000310 core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl \
311 core/java/com/android/internal/app/IVoiceInteractionSessionShowCallback.aidl \
312 core/java/com/android/internal/app/IVoiceInteractor.aidl \
313 core/java/com/android/internal/app/IVoiceInteractorCallback.aidl \
314 core/java/com/android/internal/app/IVoiceInteractorRequest.aidl \
315 core/java/com/android/internal/app/IMediaContainerService.aidl \
Joe Onorato4eb64fd2016-03-21 15:30:09 -0700316 core/java/com/android/internal/app/procstats/IProcessStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000317 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
318 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
319 core/java/com/android/internal/backup/IBackupTransport.aidl \
320 core/java/com/android/internal/backup/IObbBackupService.aidl \
Jorim Jaggi4cfdcf52015-07-09 12:13:59 -0700321 core/java/com/android/internal/policy/IKeyguardDrawnCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000322 core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
323 core/java/com/android/internal/policy/IKeyguardService.aidl \
324 core/java/com/android/internal/policy/IKeyguardStateCallback.aidl \
Muyuan Li94ce94e2016-02-24 16:20:54 -0800325 core/java/com/android/internal/policy/IShortcutService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000326 core/java/com/android/internal/os/IDropBoxManagerService.aidl \
327 core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl \
328 core/java/com/android/internal/os/IResultReceiver.aidl \
329 core/java/com/android/internal/statusbar/IStatusBar.aidl \
330 core/java/com/android/internal/statusbar/IStatusBarService.aidl \
331 core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
332 core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
333 core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
334 core/java/com/android/internal/textservice/ITextServicesManager.aidl \
335 core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
Vladislav Kaznacheev377c3282016-04-20 14:22:23 -0700336 core/java/com/android/internal/view/IDragAndDropPermissions.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000337 core/java/com/android/internal/view/IInputContext.aidl \
338 core/java/com/android/internal/view/IInputContextCallback.aidl \
339 core/java/com/android/internal/view/IInputMethod.aidl \
340 core/java/com/android/internal/view/IInputMethodClient.aidl \
341 core/java/com/android/internal/view/IInputMethodManager.aidl \
342 core/java/com/android/internal/view/IInputMethodSession.aidl \
343 core/java/com/android/internal/view/IInputSessionCallback.aidl \
344 core/java/com/android/internal/widget/ILockSettings.aidl \
345 core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
346 core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
347 keystore/java/android/security/IKeyChainAliasCallback.aidl \
348 keystore/java/android/security/IKeyChainService.aidl \
349 location/java/android/location/ICountryDetector.aidl \
350 location/java/android/location/ICountryListener.aidl \
351 location/java/android/location/IFusedProvider.aidl \
352 location/java/android/location/IGeocodeProvider.aidl \
353 location/java/android/location/IGeofenceProvider.aidl \
Lifu Tang30f95a72016-01-07 23:20:38 -0800354 location/java/android/location/IGnssStatusListener.aidl \
355 location/java/android/location/IGnssStatusProvider.aidl \
Lifu Tang818aa2c2016-02-01 01:52:00 -0800356 location/java/android/location/IGnssMeasurementsListener.aidl \
357 location/java/android/location/IGnssNavigationMessageListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000358 location/java/android/location/ILocationListener.aidl \
359 location/java/android/location/ILocationManager.aidl \
360 location/java/android/location/IFusedGeofenceHardware.aidl \
361 location/java/android/location/IGpsGeofenceHardware.aidl \
362 location/java/android/location/INetInitiatedListener.aidl \
363 location/java/com/android/internal/location/ILocationProvider.aidl \
364 media/java/android/media/IAudioService.aidl \
365 media/java/android/media/IAudioFocusDispatcher.aidl \
366 media/java/android/media/IAudioRoutesObserver.aidl \
367 media/java/android/media/IMediaHTTPConnection.aidl \
368 media/java/android/media/IMediaHTTPService.aidl \
Dongwon Kang2034a4c2015-12-14 21:57:34 +0900369 media/java/android/media/IMediaResourceMonitor.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000370 media/java/android/media/IMediaRouterClient.aidl \
371 media/java/android/media/IMediaRouterService.aidl \
372 media/java/android/media/IMediaScannerListener.aidl \
373 media/java/android/media/IMediaScannerService.aidl \
Jean-Michel Trivid3c71f02015-12-07 11:59:31 -0800374 media/java/android/media/IRecordingConfigDispatcher.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000375 media/java/android/media/IRemoteDisplayCallback.aidl \
376 media/java/android/media/IRemoteDisplayProvider.aidl \
377 media/java/android/media/IRemoteVolumeController.aidl \
378 media/java/android/media/IRemoteVolumeObserver.aidl \
379 media/java/android/media/IRingtonePlayer.aidl \
380 media/java/android/media/IVolumeController.aidl \
381 media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl \
Phil Burk7cd06c02015-09-03 14:37:03 -0700382 media/java/android/media/midi/IBluetoothMidiService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000383 media/java/android/media/midi/IMidiDeviceListener.aidl \
Mike Lockwoode0a6ca62015-06-04 13:43:56 -0700384 media/java/android/media/midi/IMidiDeviceOpenCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000385 media/java/android/media/midi/IMidiDeviceServer.aidl \
386 media/java/android/media/midi/IMidiManager.aidl \
387 media/java/android/media/projection/IMediaProjection.aidl \
388 media/java/android/media/projection/IMediaProjectionCallback.aidl \
389 media/java/android/media/projection/IMediaProjectionManager.aidl \
390 media/java/android/media/projection/IMediaProjectionWatcherCallback.aidl \
391 media/java/android/media/session/IActiveSessionsListener.aidl \
392 media/java/android/media/session/ISessionController.aidl \
393 media/java/android/media/session/ISessionControllerCallback.aidl \
394 media/java/android/media/session/ISession.aidl \
395 media/java/android/media/session/ISessionCallback.aidl \
396 media/java/android/media/session/ISessionManager.aidl \
397 media/java/android/media/tv/ITvInputClient.aidl \
398 media/java/android/media/tv/ITvInputHardware.aidl \
399 media/java/android/media/tv/ITvInputHardwareCallback.aidl \
400 media/java/android/media/tv/ITvInputManager.aidl \
401 media/java/android/media/tv/ITvInputManagerCallback.aidl \
402 media/java/android/media/tv/ITvInputService.aidl \
403 media/java/android/media/tv/ITvInputServiceCallback.aidl \
404 media/java/android/media/tv/ITvInputSession.aidl \
405 media/java/android/media/tv/ITvInputSessionCallback.aidl \
Sujith Ramakrishnanb5b86c12016-01-28 16:53:16 -0800406 media/java/android/media/tv/ITvRemoteProvider.aidl \
407 media/java/android/media/tv/ITvRemoteServiceInput.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000408 media/java/android/service/media/IMediaBrowserService.aidl \
409 media/java/android/service/media/IMediaBrowserServiceCallbacks.aidl \
Sailesh Nepal1bef3392016-01-24 18:21:53 -0800410 telecomm/java/com/android/internal/telecom/ICallScreeningAdapter.aidl \
411 telecomm/java/com/android/internal/telecom/ICallScreeningService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000412 telecomm/java/com/android/internal/telecom/IVideoCallback.aidl \
413 telecomm/java/com/android/internal/telecom/IVideoProvider.aidl \
414 telecomm/java/com/android/internal/telecom/IConnectionService.aidl \
415 telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl \
416 telecomm/java/com/android/internal/telecom/IInCallAdapter.aidl \
417 telecomm/java/com/android/internal/telecom/IInCallService.aidl \
418 telecomm/java/com/android/internal/telecom/ITelecomService.aidl \
419 telecomm/java/com/android/internal/telecom/RemoteServiceCallback.aidl \
420 telephony/java/com/android/ims/internal/IImsCallSession.aidl \
421 telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl \
422 telephony/java/com/android/ims/internal/IImsConfig.aidl \
423 telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl \
424 telephony/java/com/android/ims/internal/IImsEcbm.aidl \
425 telephony/java/com/android/ims/internal/IImsEcbmListener.aidl \
Anju Mathapatif604fc32016-03-10 12:57:21 -0800426 telephony/java/com/android/ims/internal/IImsExternalCallStateListener.aidl \
427 telephony/java/com/android/ims/internal/IImsMultiEndpoint.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000428 telephony/java/com/android/ims/internal/IImsService.aidl \
429 telephony/java/com/android/ims/internal/IImsStreamMediaSession.aidl \
430 telephony/java/com/android/ims/internal/IImsUt.aidl \
431 telephony/java/com/android/ims/internal/IImsUtListener.aidl \
432 telephony/java/com/android/ims/internal/IImsVideoCallCallback.aidl \
433 telephony/java/com/android/ims/internal/IImsVideoCallProvider.aidl \
Pavel Zhamaitsiakcfedd202016-03-18 16:09:50 -0700434 telephony/java/com/android/ims/internal/uce/uceservice/IUceService.aidl \
435 telephony/java/com/android/ims/internal/uce/uceservice/IUceListener.aidl \
436 telephony/java/com/android/ims/internal/uce/options/IOptionsService.aidl \
437 telephony/java/com/android/ims/internal/uce/options/IOptionsListener.aidl \
438 telephony/java/com/android/ims/internal/uce/presence/IPresenceService.aidl \
439 telephony/java/com/android/ims/internal/uce/presence/IPresenceListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000440 telephony/java/com/android/ims/ImsConfigListener.aidl \
441 telephony/java/com/android/internal/telephony/ICarrierConfigLoader.aidl \
442 telephony/java/com/android/internal/telephony/IMms.aidl \
443 telephony/java/com/android/internal/telephony/IOnSubscriptionsChangedListener.aidl \
444 telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
445 telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
446 telephony/java/com/android/internal/telephony/ISms.aidl \
447 telephony/java/com/android/internal/telephony/ISub.aidl \
448 telephony/java/com/android/internal/telephony/ITelephony.aidl \
449 telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
450 telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
451 wifi/java/android/net/wifi/IWifiManager.aidl \
Etan Cohen20d329b2015-09-29 13:49:02 -0700452 wifi/java/android/net/wifi/nan/IWifiNanEventListener.aidl \
453 wifi/java/android/net/wifi/nan/IWifiNanManager.aidl \
454 wifi/java/android/net/wifi/nan/IWifiNanSessionListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000455 wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
456 wifi/java/android/net/wifi/IWifiScanner.aidl \
457 wifi/java/android/net/wifi/IRttManager.aidl \
458 packages/services/PacProcessor/com/android/net/IProxyService.aidl \
459 packages/services/Proxy/com/android/net/IProxyCallback.aidl \
460 packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500461 core/java/android/service/quicksettings/IQSService.aidl \
462 core/java/android/service/quicksettings/IQSTileService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000463
Tao Baobdc77362016-01-19 15:52:28 -0800464# The following are native binders that need to go with the native component
465# at system/update_engine/binder_bindings/. Use relative path to refer to them.
466LOCAL_SRC_FILES += \
467 ../../system/update_engine/binder_bindings/android/os/IUpdateEngine.aidl \
468 ../../system/update_engine/binder_bindings/android/os/IUpdateEngineCallback.aidl \
469
470LOCAL_AIDL_INCLUDES += system/update_engine/binder_bindings
471
Bart Searsa8cc0582015-05-07 03:23:20 +0000472# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
Samuel Tan239951a2016-01-05 17:29:43 -0800473LOCAL_AIDL_INCLUDES += \
474 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) \
475 frameworks/native/aidl/binder
Bart Searsa8cc0582015-05-07 03:23:20 +0000476
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800477LOCAL_AIDL_INCLUDES += \
478 frameworks/av/camera/aidl \
Robin Lee10606942016-03-30 18:52:40 +0100479 frameworks/native/aidl/gui \
480 system/netd/server/binder
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800481
Bart Searsa8cc0582015-05-07 03:23:20 +0000482LOCAL_INTERMEDIATE_SOURCES := \
483 $(framework_res_source_path)/android/R.java \
484 $(framework_res_source_path)/android/Manifest.java \
485 $(framework_res_source_path)/com/android/internal/R.java
486
487LOCAL_NO_STANDARD_LIBRARIES := true
Neil Fuller801f90e2016-02-18 13:57:43 +0000488LOCAL_JAVA_LIBRARIES := core-oj core-libart core-lambda-stubs conscrypt okhttp core-junit bouncycastle ext
Chris Wren77781d32016-01-11 14:49:26 -0500489LOCAL_STATIC_JAVA_LIBRARIES := framework-protos
Bart Searsa8cc0582015-05-07 03:23:20 +0000490
491LOCAL_MODULE := framework
492
493LOCAL_DX_FLAGS := --core-library --multi-dex
494LOCAL_JACK_FLAGS := --multi-dex native
495
496LOCAL_RMTYPEDEFS := true
497
498include $(BUILD_JAVA_LIBRARY)
499framework_module := $(LOCAL_INSTALLED_MODULE)
500
501# Make sure that R.java and Manifest.java are built before we build
502# the source for this library.
503framework_res_R_stamp := \
504 $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
505$(full_classes_compiled_jar): $(framework_res_R_stamp)
506$(built_dex_intermediate): $(framework_res_R_stamp)
507
508$(framework_module): | $(dir $(framework_module))framework-res.apk
509
510framework_built := $(call java-lib-deps,framework)
511
512# Copy AIDL files to be preprocessed and included in the SDK,
513# specified relative to the root of the build tree.
514# ============================================================
515include $(CLEAR_VARS)
516
517aidl_files := \
518 frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
519 frameworks/base/telephony/java/android/telephony/SubscriptionInfo.aidl \
520 frameworks/base/telephony/java/android/telephony/CellInfo.aidl \
521 frameworks/base/telephony/java/android/telephony/SignalStrength.aidl \
522 frameworks/base/telephony/java/android/telephony/IccOpenLogicalChannelResponse.aidl \
523 frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.aidl \
Prerepa Viswanadham5c728992015-05-28 00:12:37 -0700524 frameworks/base/telephony/java/android/telephony/ModemActivityInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000525 frameworks/base/location/java/android/location/Location.aidl \
526 frameworks/base/location/java/android/location/Address.aidl \
527 frameworks/base/location/java/android/location/Criteria.aidl \
528 frameworks/base/media/java/android/media/MediaMetadata.aidl \
529 frameworks/base/media/java/android/media/MediaDescription.aidl \
530 frameworks/base/media/java/android/media/Rating.aidl \
531 frameworks/base/media/java/android/media/AudioAttributes.aidl \
532 frameworks/base/media/java/android/media/AudioFocusInfo.aidl \
533 frameworks/base/media/java/android/media/session/PlaybackState.aidl \
534 frameworks/base/media/java/android/media/session/MediaSession.aidl \
535 frameworks/base/media/java/android/media/tv/TvInputInfo.aidl \
536 frameworks/base/media/java/android/media/tv/TvTrackInfo.aidl \
537 frameworks/base/media/java/android/media/browse/MediaBrowser.aidl \
538 frameworks/base/wifi/java/android/net/wifi/ScanSettings.aidl \
Etan Cohen20d329b2015-09-29 13:49:02 -0700539 frameworks/base/wifi/java/android/net/wifi/nan/ConfigRequest.aidl \
540 frameworks/base/wifi/java/android/net/wifi/nan/PublishData.aidl \
541 frameworks/base/wifi/java/android/net/wifi/nan/SubscribeData.aidl \
542 frameworks/base/wifi/java/android/net/wifi/nan/PublishSettings.aidl \
543 frameworks/base/wifi/java/android/net/wifi/nan/SubscribeSettings.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000544 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pInfo.aidl \
545 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDeviceList.aidl \
546 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pConfig.aidl \
547 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDevice.aidl \
548 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pGroup.aidl \
549 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceRequest.aidl \
550 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceInfo.aidl \
551 frameworks/base/wifi/java/android/net/wifi/WpsInfo.aidl \
552 frameworks/base/wifi/java/android/net/wifi/ScanResult.aidl \
Vinit Deshpandea772f0c2016-01-27 19:05:24 -0800553 frameworks/base/wifi/java/android/net/wifi/PasspointManagementObjectDefinition.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000554 frameworks/base/wifi/java/android/net/wifi/WifiEnterpriseConfig.aidl \
555 frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.aidl \
556 frameworks/base/wifi/java/android/net/wifi/WifiInfo.aidl \
557 frameworks/base/graphics/java/android/graphics/Region.aidl \
558 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
559 frameworks/base/graphics/java/android/graphics/Point.aidl \
560 frameworks/base/graphics/java/android/graphics/PointF.aidl \
561 frameworks/base/graphics/java/android/graphics/RectF.aidl \
562 frameworks/base/graphics/java/android/graphics/Rect.aidl \
Philip P. Moltmannbb9f6862015-12-01 14:44:24 -0800563 frameworks/base/graphics/java/android/graphics/drawable/Icon.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000564 frameworks/base/core/java/android/accounts/AuthenticatorDescription.aidl \
565 frameworks/base/core/java/android/accounts/Account.aidl \
Rubin Xud86d58c2015-05-05 16:57:37 +0100566 frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000567 frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \
568 frameworks/base/core/java/android/print/PageRange.aidl \
569 frameworks/base/core/java/android/print/PrintAttributes.aidl \
570 frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
571 frameworks/base/core/java/android/print/PrinterId.aidl \
572 frameworks/base/core/java/android/print/PrintJobInfo.aidl \
573 frameworks/base/core/java/android/print/PrinterInfo.aidl \
574 frameworks/base/core/java/android/print/PrintJobId.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700575 frameworks/base/core/java/android/printservice/recommendation/RecommendationInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000576 frameworks/base/core/java/android/hardware/usb/UsbDevice.aidl \
577 frameworks/base/core/java/android/hardware/usb/UsbInterface.aidl \
578 frameworks/base/core/java/android/hardware/usb/UsbEndpoint.aidl \
579 frameworks/base/core/java/android/hardware/usb/UsbAccessory.aidl \
580 frameworks/base/core/java/android/os/Messenger.aidl \
581 frameworks/base/core/java/android/os/PatternMatcher.aidl \
582 frameworks/base/core/java/android/os/Message.aidl \
583 frameworks/base/core/java/android/os/UserHandle.aidl \
584 frameworks/base/core/java/android/os/ParcelUuid.aidl \
585 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
586 frameworks/base/core/java/android/os/ResultReceiver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000587 frameworks/base/core/java/android/os/WorkSource.aidl \
588 frameworks/base/core/java/android/os/DropBoxManager.aidl \
589 frameworks/base/core/java/android/os/Bundle.aidl \
590 frameworks/base/core/java/android/accessibilityservice/AccessibilityServiceInfo.aidl \
591 frameworks/base/core/java/android/net/Network.aidl \
592 frameworks/base/core/java/android/net/RouteInfo.aidl \
593 frameworks/base/core/java/android/net/NetworkInfo.aidl \
594 frameworks/base/core/java/android/net/IpPrefix.aidl \
595 frameworks/base/core/java/android/net/NetworkCapabilities.aidl \
596 frameworks/base/core/java/android/net/DhcpInfo.aidl \
597 frameworks/base/core/java/android/net/ProxyInfo.aidl \
598 frameworks/base/core/java/android/net/LinkProperties.aidl \
599 frameworks/base/core/java/android/net/Uri.aidl \
600 frameworks/base/core/java/android/net/NetworkRequest.aidl \
601 frameworks/base/core/java/android/net/LinkAddress.aidl \
Svet Ganov53a441c2016-04-19 19:38:00 -0700602 frameworks/base/core/java/android/util/MemoryIntArray.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700603 frameworks/base/core/java/android/view/Display.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000604 frameworks/base/core/java/android/view/InputDevice.aidl \
605 frameworks/base/core/java/android/view/InputEvent.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800606 frameworks/native/aidl/gui/android/view/Surface.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700607 frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000608 frameworks/base/core/java/android/view/inputmethod/InputMethodSubtype.aidl \
609 frameworks/base/core/java/android/view/inputmethod/CursorAnchorInfo.aidl \
610 frameworks/base/core/java/android/view/inputmethod/CompletionInfo.aidl \
611 frameworks/base/core/java/android/view/inputmethod/ExtractedText.aidl \
612 frameworks/base/core/java/android/view/inputmethod/EditorInfo.aidl \
613 frameworks/base/core/java/android/view/inputmethod/InputMethodInfo.aidl \
614 frameworks/base/core/java/android/view/inputmethod/CorrectionInfo.aidl \
615 frameworks/base/core/java/android/view/inputmethod/InputBinding.aidl \
616 frameworks/base/core/java/android/view/inputmethod/ExtractedTextRequest.aidl \
617 frameworks/base/core/java/android/view/DragEvent.aidl \
618 frameworks/base/core/java/android/view/KeyEvent.aidl \
619 frameworks/base/core/java/android/view/WindowManager.aidl \
620 frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
621 frameworks/base/core/java/android/view/MotionEvent.aidl \
622 frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
623 frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
624 frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
625 frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
626 frameworks/base/core/java/android/view/textservice/SpellCheckerSubtype.aidl \
627 frameworks/base/core/java/android/view/textservice/TextInfo.aidl \
628 frameworks/base/core/java/android/view/textservice/SpellCheckerInfo.aidl \
629 frameworks/base/core/java/android/view/textservice/SentenceSuggestionsInfo.aidl \
630 frameworks/base/core/java/android/view/textservice/SuggestionsInfo.aidl \
631 frameworks/base/core/java/android/service/carrier/CarrierIdentifier.aidl \
632 frameworks/base/core/java/android/service/carrier/MessagePdu.aidl \
633 frameworks/base/core/java/android/service/notification/StatusBarNotification.aidl \
634 frameworks/base/core/java/android/service/chooser/ChooserTarget.aidl \
635 frameworks/base/core/java/android/speech/tts/Voice.aidl \
636 frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000637 frameworks/base/core/java/android/app/Notification.aidl \
638 frameworks/base/core/java/android/app/NotificationManager.aidl \
639 frameworks/base/core/java/android/app/WallpaperInfo.aidl \
640 frameworks/base/core/java/android/app/AppOpsManager.aidl \
641 frameworks/base/core/java/android/app/ActivityManager.aidl \
642 frameworks/base/core/java/android/app/PendingIntent.aidl \
643 frameworks/base/core/java/android/app/AlarmManager.aidl \
644 frameworks/base/core/java/android/app/SearchableInfo.aidl \
645 frameworks/base/core/java/android/app/VoiceInteractor.aidl \
Dianne Hackborn69c6adc2015-06-02 10:52:59 -0700646 frameworks/base/core/java/android/app/assist/AssistContent.aidl \
647 frameworks/base/core/java/android/app/assist/AssistStructure.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000648 frameworks/base/core/java/android/app/job/JobParameters.aidl \
649 frameworks/base/core/java/android/app/job/JobInfo.aidl \
650 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
651 frameworks/base/core/java/android/content/ClipDescription.aidl \
652 frameworks/base/core/java/android/content/IntentFilter.aidl \
653 frameworks/base/core/java/android/content/Intent.aidl \
654 frameworks/base/core/java/android/content/res/Configuration.aidl \
655 frameworks/base/core/java/android/content/res/ObbInfo.aidl \
656 frameworks/base/core/java/android/content/RestrictionEntry.aidl \
657 frameworks/base/core/java/android/content/ClipData.aidl \
658 frameworks/base/core/java/android/content/SyncAdapterType.aidl \
659 frameworks/base/core/java/android/content/SyncRequest.aidl \
660 frameworks/base/core/java/android/content/PeriodicSync.aidl \
661 frameworks/base/core/java/android/content/SyncResult.aidl \
662 frameworks/base/core/java/android/content/pm/FeatureInfo.aidl \
663 frameworks/base/core/java/android/content/pm/InstrumentationInfo.aidl \
664 frameworks/base/core/java/android/content/pm/PackageInstaller.aidl \
665 frameworks/base/core/java/android/content/pm/ServiceInfo.aidl \
666 frameworks/base/core/java/android/content/pm/Signature.aidl \
667 frameworks/base/core/java/android/content/pm/ApplicationInfo.aidl \
668 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
669 frameworks/base/core/java/android/content/pm/ActivityInfo.aidl \
670 frameworks/base/core/java/android/content/pm/PackageInfo.aidl \
671 frameworks/base/core/java/android/content/pm/ResolveInfo.aidl \
672 frameworks/base/core/java/android/content/pm/ProviderInfo.aidl \
673 frameworks/base/core/java/android/content/pm/PackageStats.aidl \
674 frameworks/base/core/java/android/content/pm/PermissionGroupInfo.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800675 frameworks/base/core/java/android/content/pm/ShortcutInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000676 frameworks/base/core/java/android/content/pm/LabeledIntent.aidl \
677 frameworks/base/core/java/android/content/ComponentName.aidl \
678 frameworks/base/core/java/android/content/SyncStats.aidl \
679 frameworks/base/core/java/android/content/ContentValues.aidl \
680 frameworks/base/core/java/android/content/SyncInfo.aidl \
681 frameworks/base/core/java/android/content/IntentSender.aidl \
682 frameworks/base/core/java/android/widget/RemoteViews.aidl \
683 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
684 frameworks/base/core/java/android/nfc/Tag.aidl \
685 frameworks/base/core/java/android/nfc/NdefRecord.aidl \
686 frameworks/base/core/java/android/nfc/NdefMessage.aidl \
687 frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
688 frameworks/base/core/java/android/bluetooth/le/AdvertiseSettings.aidl \
689 frameworks/base/core/java/android/bluetooth/le/ScanSettings.aidl \
690 frameworks/base/core/java/android/bluetooth/le/AdvertiseData.aidl \
691 frameworks/base/core/java/android/bluetooth/le/ScanFilter.aidl \
692 frameworks/base/core/java/android/bluetooth/le/ScanResult.aidl \
693 frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
694 frameworks/base/core/java/android/database/CursorWindow.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500695 frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
Samuel Tan239951a2016-01-05 17:29:43 -0800696 frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
Robin Lee10606942016-03-30 18:52:40 +0100697 system/netd/server/binder/android/net/UidRange.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000698
699gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
700$(gen): PRIVATE_SRC_FILES := $(aidl_files)
701ALL_SDK_FILES += $(gen)
702$(gen): $(aidl_files) | $(AIDL)
703 @echo Aidl Preprocess: $@
704 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
705
706# the documentation
707# ============================================================
708
709# TODO: deal with com/google/android/googleapps
710packages_to_document := \
711 android \
712 javax/microedition/khronos \
713 org/apache/http/conn \
714 org/apache/http/params
715
716
717# Search through the base framework dirs for these packages.
718# The result will be relative to frameworks/base.
719fwbase_dirs_to_document := \
720 test-runner/src \
721 $(patsubst $(LOCAL_PATH)/%,%, \
722 $(wildcard \
723 $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
724 $(addprefix $(dir)/, $(packages_to_document)) \
725 ) \
726 ) \
727 )
728
729# include definition of libcore_to_document
730include libcore/Docs.mk
731
732# include definition of junit_to_document
733include external/junit/Common.mk
734
735non_base_dirs := \
736 ../opt/telephony/src/java/android/provider \
737 ../opt/telephony/src/java/android/telephony \
738 ../opt/telephony/src/java/android/telephony/gsm \
739 ../opt/net/voip/src/java/android/net/rtp \
740 ../opt/net/voip/src/java/android/net/sip
741
742# These are relative to frameworks/base
743dirs_to_check_apis := \
744 $(fwbase_dirs_to_document) \
745 $(non_base_dirs)
746
George Mountf6be9932015-12-03 07:39:55 -0800747###########################################################
748## Return all directories that have a 'NO_DOCS' file in
749## them, appending a '%' to them to form a pattern to
750## filter out files under those directories.
751## $(1): A list of base directories to look at.
752###########################################################
753define find-no-docs-pattern
754$(addsuffix %, $(dir $(foreach dir, $(1), $(shell cd $(LOCAL_PATH); find $(dir) -name NO_DOCS))))
755endef
756
Bart Searsa8cc0582015-05-07 03:23:20 +0000757# These are relative to frameworks/base
758# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
759dirs_to_document := \
760 $(dirs_to_check_apis) \
George Mounta340f072015-07-13 16:45:34 -0700761 $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
762 $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000763
George Mountf6be9932015-12-03 07:39:55 -0800764patterns_to_not_document := \
765 $(call find-no-docs-pattern, $(dirs_to_document))
766
Bart Searsa8cc0582015-05-07 03:23:20 +0000767# These are relative to frameworks/base
768html_dirs := \
769 $(FRAMEWORKS_BASE_SUBDIRS) \
770 $(non_base_dirs)
771
772# Common sources for doc check and api check
773common_src_files := \
774 $(call find-other-html-files, $(html_dirs)) \
Neil Fullerf9611142015-10-07 10:30:56 +0100775 $(addprefix ../../, $(libcore_to_document)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000776 $(addprefix ../../external/junit/, $(junit_to_document))
777
778# These are relative to frameworks/base
779framework_docs_LOCAL_SRC_FILES := \
George Mountf6be9932015-12-03 07:39:55 -0800780 $(filter-out $(patterns_to_not_document), $(call find-other-java-files, $(dirs_to_document))) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000781 $(common_src_files)
782
783# These are relative to frameworks/base
784framework_docs_LOCAL_API_CHECK_SRC_FILES := \
785 $(call find-other-java-files, $(dirs_to_check_apis)) \
786 $(common_src_files)
787
788# This is used by ide.mk as the list of source files that are
789# always included.
790INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
791
792framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
793 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
794
795framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
796 $(framework_res_source_path)/android/R.java \
797 $(framework_res_source_path)/android/Manifest.java \
798 $(framework_res_source_path)/com/android/internal/R.java
799
800framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000801 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000802 core-libart \
803 conscrypt \
804 bouncycastle \
805 okhttp \
806 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100807 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000808 framework \
809 telephony-common \
810 voip-common
811
812framework_docs_LOCAL_JAVA_LIBRARIES := \
813 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
814 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
815
816framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
817framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
818# The since flag (-since N.xml API_LEVEL) is used to add API Level information
819# to the reference documentation. Must be in order of oldest to newest.
820#
821# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
822# not be referenced in the documentation.
823framework_docs_LOCAL_DROIDDOC_OPTIONS := \
824 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100825 -knowntags ./libcore/known_oj_tags.txt \
Bart Searsa8cc0582015-05-07 03:23:20 +0000826 -hidePackage com.android.org.conscrypt \
827 -since $(SRC_API_DIR)/1.xml 1 \
828 -since $(SRC_API_DIR)/2.xml 2 \
829 -since $(SRC_API_DIR)/3.xml 3 \
830 -since $(SRC_API_DIR)/4.xml 4 \
831 -since $(SRC_API_DIR)/5.xml 5 \
832 -since $(SRC_API_DIR)/6.xml 6 \
833 -since $(SRC_API_DIR)/7.xml 7 \
834 -since $(SRC_API_DIR)/8.xml 8 \
835 -since $(SRC_API_DIR)/9.xml 9 \
836 -since $(SRC_API_DIR)/10.xml 10 \
837 -since $(SRC_API_DIR)/11.xml 11 \
838 -since $(SRC_API_DIR)/12.xml 12 \
839 -since $(SRC_API_DIR)/13.xml 13 \
840 -since $(SRC_API_DIR)/14.txt 14 \
841 -since $(SRC_API_DIR)/15.txt 15 \
842 -since $(SRC_API_DIR)/16.txt 16 \
843 -since $(SRC_API_DIR)/17.txt 17 \
844 -since $(SRC_API_DIR)/18.txt 18 \
845 -since $(SRC_API_DIR)/19.txt 19 \
846 -since $(SRC_API_DIR)/20.txt 20 \
847 -since $(SRC_API_DIR)/21.txt 21 \
848 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700849 -since $(SRC_API_DIR)/23.txt 23 \
Joe Fernandez89f385d2016-03-08 21:22:11 -0800850 -since ./frameworks/base/api/current.txt N \
Bart Searsa8cc0582015-05-07 03:23:20 +0000851 -werror -hide 111 -hide 113 \
852 -overview $(LOCAL_PATH)/core/java/overview.html
853
854framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
855 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
856
857framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
858 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
859 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
860 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
861
862framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100863 frameworks/base/docs/knowntags.txt \
864 libcore/Docs.mk
Bart Searsa8cc0582015-05-07 03:23:20 +0000865
866samples_dir := development/samples/browseable
867
868# Whitelist of valid groups, used for default TOC grouping. Each sample must
869# belong to one (and only one) group. Assign samples to groups by setting
870# a sample.group var to one of these groups in the sample's _index.jd.
871sample_groups := -samplegroup Admin \
872 -samplegroup Background \
873 -samplegroup Connectivity \
874 -samplegroup Content \
875 -samplegroup Input \
876 -samplegroup Media \
877 -samplegroup Notification \
878 -samplegroup RenderScript \
879 -samplegroup Security \
880 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700881 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000882 -samplegroup Testing \
883 -samplegroup UI \
884 -samplegroup Views \
885 -samplegroup Wearable
886
887## SDK version identifiers used in the published docs
888 # major[.minor] version for current SDK. (full releases only)
Joe Fernandez1827e322015-08-12 19:45:22 -0700889framework_docs_SDK_VERSION:=6.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000890 # release version (ie "Release x") (full releases only)
891framework_docs_SDK_REL_ID:=1
892
893framework_docs_LOCAL_DROIDDOC_OPTIONS += \
smain@google.com7aca8be2016-03-10 14:13:30 -0800894 -hdf sdk.codename N \
smain@google.com269aa4e2016-03-10 15:37:58 -0800895 -hdf sdk.preview.version 2 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000896 -hdf sdk.version $(framework_docs_SDK_VERSION) \
897 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
smain@google.com269aa4e2016-03-10 15:37:58 -0800898 -hdf sdk.preview 1
Bart Searsa8cc0582015-05-07 03:23:20 +0000899
900# ==== the api stubs and current.xml ===========================
901include $(CLEAR_VARS)
902
903LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
904LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
905LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
906LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
907LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
908LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
909LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
910LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
911
912LOCAL_MODULE := api-stubs
913
Ying Wang0f92a2e2015-07-16 14:20:22 -0700914LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
915
Bart Searsa8cc0582015-05-07 03:23:20 +0000916LOCAL_DROIDDOC_OPTIONS:=\
917 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000918 -api $(INTERNAL_PLATFORM_API_FILE) \
919 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
920 -nodocs
921
922LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
923
924LOCAL_UNINSTALLABLE_MODULE := true
925
926include $(BUILD_DROIDDOC)
927
928# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
929$(full_target): $(framework_built) $(gen)
930$(INTERNAL_PLATFORM_API_FILE): $(full_target)
931$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
932
933# ==== the system api stubs ===================================
934include $(CLEAR_VARS)
935
936LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
937LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
938LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
939LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
940LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
941LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
942LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
943LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
944
945LOCAL_MODULE := system-api-stubs
946
Ying Wang0f92a2e2015-07-16 14:20:22 -0700947LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
948
Bart Searsa8cc0582015-05-07 03:23:20 +0000949LOCAL_DROIDDOC_OPTIONS:=\
950 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000951 -showAnnotation android.annotation.SystemApi \
952 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
953 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
954 -nodocs
955
956LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
957
958LOCAL_UNINSTALLABLE_MODULE := true
959
960include $(BUILD_DROIDDOC)
961
962# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
963$(full_target): $(framework_built) $(gen)
964$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
965$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
966
Michael Wrightb2b2c0e2015-11-06 15:21:13 +0000967# ==== the test api stubs ===================================
968include $(CLEAR_VARS)
969
970LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
971LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
972LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
973LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
974LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
975LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
976LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
977LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
978
979LOCAL_MODULE := test-api-stubs
980
981LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
982
983LOCAL_DROIDDOC_OPTIONS:=\
984 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
985 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
986 -showAnnotation android.annotation.TestApi \
987 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
988 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
989 -nodocs
990
991LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
992
993LOCAL_UNINSTALLABLE_MODULE := true
994
995include $(BUILD_DROIDDOC)
996
997# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
998$(full_target): $(framework_built) $(gen)
999$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
1000$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
1001
Bart Searsa8cc0582015-05-07 03:23:20 +00001002# ==== check javadoc comments but don't generate docs ========
1003include $(CLEAR_VARS)
1004
1005LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1006LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1007LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1008LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1009LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1010LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1011LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1012LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1013
1014LOCAL_MODULE := doc-comment-check
1015
1016LOCAL_DROIDDOC_OPTIONS:=\
1017 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1018 -parsecomments
1019
1020LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1021
1022LOCAL_UNINSTALLABLE_MODULE := true
1023
1024include $(BUILD_DROIDDOC)
1025
1026# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1027$(full_target): $(framework_built) $(gen)
1028
1029# Run this for checkbuild
1030checkbuild: doc-comment-check-docs
1031# Check comment when you are updating the API
1032update-api: doc-comment-check-docs
1033
1034# ==== static html in the sdk ==================================
1035include $(CLEAR_VARS)
1036
1037LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1038LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1039LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1040LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1041LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1042LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1043LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1044LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1045
1046LOCAL_MODULE := offline-sdk
1047
1048LOCAL_DROIDDOC_OPTIONS:=\
1049 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1050 -offlinemode \
1051 -title "Android SDK" \
1052 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
smain@google.com00de8c52016-03-07 18:38:08 -08001053 -sdkvalues $(OUT_DOCS) \
1054 -hdf android.whichdoc offline \
1055 -referenceonly
1056
smain@google.comf7b6dad2016-03-22 14:17:55 -07001057LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
smain@google.com00de8c52016-03-07 18:38:08 -08001058
1059include $(BUILD_DROIDDOC)
1060
1061static_doc_index_redirect := $(out_dir)/index.html
1062$(static_doc_index_redirect): \
smain@google.com278fb0d2016-03-09 14:16:07 -08001063 $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
smain@google.com00de8c52016-03-07 18:38:08 -08001064 $(hide) mkdir -p $(dir $@)
1065 $(hide) $(ACP) $< $@
1066
1067$(full_target): $(static_doc_index_redirect)
1068$(full_target): $(framework_built)
1069
smain@google.com7aca8be2016-03-10 14:13:30 -08001070
Bart Searsa8cc0582015-05-07 03:23:20 +00001071# ==== docs for the web (on the androiddevdocs app engine server) =======================
1072include $(CLEAR_VARS)
1073
1074LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1075LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1076LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1077LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1078LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1079LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1080LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1081LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1082LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1083LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1084
1085LOCAL_MODULE := online-sdk
1086
1087LOCAL_DROIDDOC_OPTIONS:= \
1088 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1089 -toroot / \
1090 -hdf android.whichdoc online \
1091 $(sample_groups) \
1092 -hdf android.hasSamples true \
1093 -samplesdir $(samples_dir)
1094
1095LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1096
1097include $(BUILD_DROIDDOC)
1098
1099# ==== docs for the web (on the androiddevdocs app engine server) =======================
1100# TODO: Fix the System API docs build.
1101ifneq ($(filter online-system-api-sdk-docs,$(MAKECMDGOALS)),)
1102include $(CLEAR_VARS)
1103
1104LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1105LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1106LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1107LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1108LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1109LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1110LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1111LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1112LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1113LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1114
1115LOCAL_MODULE := online-system-api-sdk
1116
1117LOCAL_DROIDDOC_OPTIONS:= \
1118 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1119 -showAnnotation android.annotation.SystemApi \
1120 -title "Android SDK - Including system APIs." \
1121 -toroot / \
1122 -hdf android.whichdoc online \
1123 $(sample_groups) \
1124 -hdf android.hasSamples true \
1125 -samplesdir $(samples_dir)
1126
1127LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1128# Don't build by default
1129LOCAL_UNINSTALLABLE_MODULE := true
1130
1131include $(BUILD_DROIDDOC)
1132endif # online-system-api-sdk-docs in make command line.
1133
1134# ==== docs for the web (on the devsite app engine server) =======================
1135include $(CLEAR_VARS)
1136LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1137LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1138LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1139LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1140LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1141LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1142LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1143LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1144LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1145# specify a second html input dir and an output path relative to OUT_DIR)
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001146LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +00001147
1148LOCAL_MODULE := ds
1149
1150LOCAL_DROIDDOC_OPTIONS:= \
1151 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1152 -devsite \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001153 -hdf devsite true \
Bart Searsa8cc0582015-05-07 03:23:20 +00001154 -toroot / \
1155 -hdf android.whichdoc online \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001156 $(sample_groups) \
Amanda Kassayc3651f42016-02-16 12:00:09 -05001157 -useUpdatedTemplates \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001158 -hdf android.hasSamples true \
Dirk Doughertydfa366d2016-04-29 18:06:11 -07001159 -yaml _book.yaml \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001160 -samplesdir $(samples_dir)
Bart Searsa8cc0582015-05-07 03:23:20 +00001161
Amanda Kassayc3651f42016-02-16 12:00:09 -05001162LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +00001163
1164include $(BUILD_DROIDDOC)
1165
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001166# ==== site updates for docs (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +00001167include $(CLEAR_VARS)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001168
Bart Searsa8cc0582015-05-07 03:23:20 +00001169LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1170LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1171LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1172LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1173LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1174LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001175LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +00001176LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1177LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001178LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +00001179
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001180LOCAL_MODULE := online-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +00001181
1182LOCAL_DROIDDOC_OPTIONS:= \
1183 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1184 -toroot / \
1185 -hdf android.whichdoc online \
1186 $(sample_groups) \
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001187 -useUpdatedTemplates \
Bart Searsa8cc0582015-05-07 03:23:20 +00001188 -hdf android.hasSamples true \
1189 -samplesdir $(samples_dir)
1190
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001191LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +00001192
1193include $(BUILD_DROIDDOC)
1194
Bart Searsa8cc0582015-05-07 03:23:20 +00001195# ==== docs that have all of the stuff that's @hidden =======================
1196include $(CLEAR_VARS)
1197
1198LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1199LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1200LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1201LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1202LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1203LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1204LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1205LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1206
1207LOCAL_MODULE := hidden
1208LOCAL_DROIDDOC_OPTIONS:=\
1209 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1210 -title "Android SDK - Including hidden APIs."
1211# -hidden
1212
1213LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1214
1215include $(BUILD_DROIDDOC)
1216
1217# Build ext.jar
1218# ============================================================
1219
1220ext_dirs := \
1221 ../../external/nist-sip/java \
1222 ../../external/tagsoup/src \
1223
1224ext_src_files := $(call all-java-files-under,$(ext_dirs))
1225
1226# ==== the library =========================================
1227include $(CLEAR_VARS)
1228
1229LOCAL_SRC_FILES := $(ext_src_files)
1230
1231LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +00001232LOCAL_JAVA_LIBRARIES := core-oj core-libart
Bart Searsa8cc0582015-05-07 03:23:20 +00001233LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber-platform
1234LOCAL_MODULE_TAGS := optional
1235LOCAL_MODULE := ext
1236
1237LOCAL_DX_FLAGS := --core-library
1238
Jorim Jaggi7e29dea2016-02-01 16:22:43 -08001239ifneq ($(INCREMENTAL_BUILDS),)
1240 LOCAL_PROGUARD_ENABLED := disabled
1241 LOCAL_JACK_ENABLED := incremental
1242endif
1243
Bart Searsa8cc0582015-05-07 03:23:20 +00001244include $(BUILD_JAVA_LIBRARY)
1245
1246
1247# Include subdirectory makefiles
1248# ============================================================
1249
1250# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
1251# team really wants is to build the stuff defined by this makefile.
1252ifeq (,$(ONE_SHOT_MAKEFILE))
1253include $(call first-makefiles-under,$(LOCAL_PATH))
1254endif
1255
1256endif # ANDROID_BUILD_EMBEDDED