blob: 22323c5e6772e9023ab65cc0230c491039e74e06 [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
Joe Onorato1754d742016-11-21 17:51:35 -080041LOCAL_SRC_FILES := \
42 $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS)) \
43 $(call all-proto-files-under, core/proto)
Bart Searsa8cc0582015-05-07 03:23:20 +000044
45# EventLogTags files.
46LOCAL_SRC_FILES += \
Michal Karpinski6235a942016-03-15 12:07:23 +000047 core/java/android/app/admin/SecurityLogTags.logtags \
Bart Searsa8cc0582015-05-07 03:23:20 +000048 core/java/android/content/EventLogTags.logtags \
49 core/java/android/speech/tts/EventLogTags.logtags \
Jeff Sharkeyd3f689b2016-12-02 12:17:21 -070050 core/java/android/net/EventLogTags.logtags \
Bart Searsa8cc0582015-05-07 03:23:20 +000051 core/java/android/webkit/EventLogTags.logtags \
52 core/java/com/android/internal/logging/EventLogTags.logtags \
53
54## READ ME: ########################################################
55##
56## When updating this list of aidl files, consider if that aidl is
57## part of the SDK API. If it is, also add it to the list below that
58## is preprocessed and distributed with the SDK. This list should
59## not contain any aidl files for parcelables, but the one below should
60## if you intend for 3rd parties to be able to send those objects
61## across process boundaries.
62##
63## READ ME: ########################################################
64LOCAL_SRC_FILES += \
65 core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl \
66 core/java/android/accessibilityservice/IAccessibilityServiceClient.aidl \
67 core/java/android/accounts/IAccountManager.aidl \
68 core/java/android/accounts/IAccountManagerResponse.aidl \
69 core/java/android/accounts/IAccountAuthenticator.aidl \
70 core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
71 core/java/android/app/IActivityContainer.aidl \
72 core/java/android/app/IActivityContainerCallback.aidl \
73 core/java/android/app/IActivityController.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -070074 core/java/android/app/IActivityManager.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000075 core/java/android/app/IActivityPendingResult.aidl \
Christopher Tate14a7bb02015-10-01 10:24:31 -070076 core/java/android/app/IAlarmCompleteListener.aidl \
77 core/java/android/app/IAlarmListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000078 core/java/android/app/IAlarmManager.aidl \
79 core/java/android/app/IAppTask.aidl \
Sudheer Shankacc6418f2016-10-13 12:03:44 -070080 core/java/android/app/IApplicationThread.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000081 core/java/android/app/ITaskStackListener.aidl \
82 core/java/android/app/IBackupAgent.aidl \
Todd Kennedy31b95e02016-08-04 14:27:15 -070083 core/java/android/app/IEphemeralResolver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000084 core/java/android/app/IInstrumentationWatcher.aidl \
85 core/java/android/app/INotificationManager.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000086 core/java/android/app/IProcessObserver.aidl \
87 core/java/android/app/ISearchManager.aidl \
88 core/java/android/app/ISearchManagerCallback.aidl \
89 core/java/android/app/IServiceConnection.aidl \
90 core/java/android/app/IStopUserCallback.aidl \
91 core/java/android/app/job/IJobCallback.aidl \
92 core/java/android/app/job/IJobScheduler.aidl \
93 core/java/android/app/job/IJobService.aidl \
94 core/java/android/app/ITransientNotification.aidl \
Dianne Hackbornd23e0d62015-05-15 16:36:12 -070095 core/java/android/app/IUidObserver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +000096 core/java/android/app/IUiAutomationConnection.aidl \
97 core/java/android/app/IUiModeManager.aidl \
98 core/java/android/app/IUserSwitchObserver.aidl \
99 core/java/android/app/IWallpaperManager.aidl \
100 core/java/android/app/IWallpaperManagerCallback.aidl \
101 core/java/android/app/admin/IDevicePolicyManager.aidl \
Adrian Roosb5e47222015-08-14 15:53:06 -0700102 core/java/android/app/trust/IStrongAuthTracker.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000103 core/java/android/app/trust/ITrustManager.aidl \
104 core/java/android/app/trust/ITrustListener.aidl \
105 core/java/android/app/backup/IBackupManager.aidl \
Sergey Poromovfe06bf62015-12-15 16:26:23 +0100106 core/java/android/app/backup/IBackupObserver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000107 core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
108 core/java/android/app/backup/IRestoreObserver.aidl \
109 core/java/android/app/backup/IRestoreSession.aidl \
Shreyas Basarge865303f2017-01-13 14:48:56 +0000110 core/java/android/app/backup/ISelectBackupTransportCallback.aidl \
Jeff Sharkeye8cece92017-01-04 11:33:33 -0700111 core/java/android/app/usage/IStorageStatsManager.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000112 core/java/android/app/usage/IUsageStatsManager.aidl \
113 core/java/android/bluetooth/IBluetooth.aidl \
114 core/java/android/bluetooth/IBluetoothA2dp.aidl \
115 core/java/android/bluetooth/IBluetoothA2dpSink.aidl \
116 core/java/android/bluetooth/IBluetoothAvrcpController.aidl \
117 core/java/android/bluetooth/IBluetoothCallback.aidl \
118 core/java/android/bluetooth/IBluetoothProfileServiceConnection.aidl \
119 core/java/android/bluetooth/IBluetoothHeadset.aidl \
120 core/java/android/bluetooth/IBluetoothHeadsetPhone.aidl \
121 core/java/android/bluetooth/IBluetoothHealth.aidl \
122 core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
123 core/java/android/bluetooth/IBluetoothInputDevice.aidl \
124 core/java/android/bluetooth/IBluetoothPan.aidl \
125 core/java/android/bluetooth/IBluetoothManager.aidl \
126 core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
Joseph Pirozzo631768d2016-09-01 14:19:28 -0700127 core/java/android/bluetooth/IBluetoothMap.aidl \
128 core/java/android/bluetooth/IBluetoothMapClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000129 core/java/android/bluetooth/IBluetoothPbap.aidl \
Joseph Pirozzocfa8a642016-03-04 13:02:54 -0800130 core/java/android/bluetooth/IBluetoothPbapClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000131 core/java/android/bluetooth/IBluetoothSap.aidl \
132 core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
133 core/java/android/bluetooth/IBluetoothHeadsetClient.aidl \
Ivan Podogov0afe1902016-12-23 11:52:21 +0000134 core/java/android/bluetooth/IBluetoothInputHost.aidl \
Hemant Guptae88fd4b2014-04-18 11:22:45 +0530135 core/java/android/bluetooth/IBluetoothHidDeviceCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000136 core/java/android/bluetooth/IBluetoothGatt.aidl \
137 core/java/android/bluetooth/IBluetoothGattCallback.aidl \
138 core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
Jakub Pawlowskia480f7f2016-08-05 06:40:31 -0700139 core/java/android/bluetooth/le/IAdvertiserCallback.aidl \
Jakub Pawlowski1b49e6e2016-10-26 13:05:30 -0700140 core/java/android/bluetooth/le/IScannerCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000141 core/java/android/content/IClipboard.aidl \
142 core/java/android/content/IContentService.aidl \
143 core/java/android/content/IIntentReceiver.aidl \
144 core/java/android/content/IIntentSender.aidl \
145 core/java/android/content/IOnPrimaryClipChangedListener.aidl \
146 core/java/android/content/IRestrictionsManager.aidl \
147 core/java/android/content/ISyncAdapter.aidl \
148 core/java/android/content/ISyncContext.aidl \
149 core/java/android/content/ISyncServiceAdapter.aidl \
150 core/java/android/content/ISyncStatusObserver.aidl \
MÃ¥rten Kongstadeabc9e92015-12-15 16:40:23 +0100151 core/java/android/content/om/IOverlayManager.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000152 core/java/android/content/pm/ILauncherApps.aidl \
153 core/java/android/content/pm/IOnAppsChangedListener.aidl \
Makoto Onuki2d895c32016-12-02 15:48:40 -0800154 core/java/android/content/pm/IOnPermissionsChangeListener.aidl \
Andreas Gampea8908752015-11-10 08:58:14 -0800155 core/java/android/content/pm/IOtaDexopt.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000156 core/java/android/content/pm/IPackageDataObserver.aidl \
157 core/java/android/content/pm/IPackageDeleteObserver.aidl \
158 core/java/android/content/pm/IPackageDeleteObserver2.aidl \
159 core/java/android/content/pm/IPackageInstallObserver.aidl \
160 core/java/android/content/pm/IPackageInstallObserver2.aidl \
161 core/java/android/content/pm/IPackageInstaller.aidl \
162 core/java/android/content/pm/IPackageInstallerCallback.aidl \
163 core/java/android/content/pm/IPackageInstallerSession.aidl \
164 core/java/android/content/pm/IPackageManager.aidl \
165 core/java/android/content/pm/IPackageMoveObserver.aidl \
166 core/java/android/content/pm/IPackageStatsObserver.aidl \
Makoto Onuki2d895c32016-12-02 15:48:40 -0800167 core/java/android/content/pm/IPinItemRequest.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800168 core/java/android/content/pm/IShortcutService.aidl \
Svet Ganovae0e03a2016-02-25 18:22:10 -0800169 core/java/android/content/pm/permission/IRuntimePermissionPresenter.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000170 core/java/android/database/IContentObserver.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800171 ../av/camera/aidl/android/hardware/ICameraService.aidl \
172 ../av/camera/aidl/android/hardware/ICameraServiceListener.aidl \
173 ../av/camera/aidl/android/hardware/ICameraServiceProxy.aidl \
174 ../av/camera/aidl/android/hardware/ICamera.aidl \
175 ../av/camera/aidl/android/hardware/ICameraClient.aidl \
176 ../av/camera/aidl/android/hardware/camera2/ICameraDeviceUser.aidl \
177 ../av/camera/aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000178 core/java/android/hardware/IConsumerIrService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000179 core/java/android/hardware/ISerialManager.aidl \
180 core/java/android/hardware/display/IDisplayManager.aidl \
181 core/java/android/hardware/display/IDisplayManagerCallback.aidl \
182 core/java/android/hardware/display/IVirtualDisplayCallback.aidl \
183 core/java/android/hardware/fingerprint/IFingerprintService.aidl \
Jorim Jaggi3a464782015-08-28 16:59:13 -0700184 core/java/android/hardware/fingerprint/IFingerprintServiceLockoutResetCallback.aidl \
Phil Weaver27fcd9c2017-01-20 15:57:24 -0800185 core/java/android/hardware/fingerprint/IFingerprintClientActiveCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000186 core/java/android/hardware/fingerprint/IFingerprintServiceReceiver.aidl \
187 core/java/android/hardware/hdmi/IHdmiControlCallback.aidl \
188 core/java/android/hardware/hdmi/IHdmiControlService.aidl \
189 core/java/android/hardware/hdmi/IHdmiDeviceEventListener.aidl \
190 core/java/android/hardware/hdmi/IHdmiHotplugEventListener.aidl \
191 core/java/android/hardware/hdmi/IHdmiInputChangeListener.aidl \
192 core/java/android/hardware/hdmi/IHdmiMhlVendorCommandListener.aidl \
193 core/java/android/hardware/hdmi/IHdmiRecordListener.aidl \
194 core/java/android/hardware/hdmi/IHdmiSystemAudioModeChangeListener.aidl \
195 core/java/android/hardware/hdmi/IHdmiVendorCommandListener.aidl \
196 core/java/android/hardware/input/IInputManager.aidl \
197 core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
Michael Wright39e5e942015-08-19 22:52:47 +0100198 core/java/android/hardware/input/ITabletModeChangedListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000199 core/java/android/hardware/location/IActivityRecognitionHardware.aidl \
destradaa6e2fe752015-06-23 17:25:53 -0700200 core/java/android/hardware/location/IActivityRecognitionHardwareClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000201 core/java/android/hardware/location/IActivityRecognitionHardwareSink.aidl \
202 core/java/android/hardware/location/IActivityRecognitionHardwareWatcher.aidl \
203 core/java/android/hardware/location/IFusedLocationHardware.aidl \
204 core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
205 core/java/android/hardware/location/IGeofenceHardware.aidl \
206 core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
207 core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
Ashutosh Joshi1d1ac542016-01-18 17:19:27 -0800208 core/java/android/hardware/location/IContextHubCallback.aidl \
209 core/java/android/hardware/location/IContextHubService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000210 core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl \
211 core/java/android/hardware/usb/IUsbManager.aidl \
Paul Jensen49e3edf2015-05-22 10:50:39 -0400212 core/java/android/net/ICaptivePortal.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000213 core/java/android/net/IConnectivityManager.aidl \
Pavel Zhamaitsiak02b3e6b2016-02-03 10:39:44 -0800214 core/java/android/net/IConnectivityMetricsLogger.aidl \
Hugo Benichieab511b2016-09-09 09:23:47 +0900215 core/java/android/net/IIpConnectivityMetrics.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000216 core/java/android/net/IEthernetManager.aidl \
217 core/java/android/net/IEthernetServiceListener.aidl \
Michal Karpinskidd9bb4f2016-10-12 14:59:26 +0100218 core/java/android/net/INetdEventCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000219 core/java/android/net/INetworkManagementEventObserver.aidl \
220 core/java/android/net/INetworkPolicyListener.aidl \
221 core/java/android/net/INetworkPolicyManager.aidl \
Jeremy Joslin13978372016-11-28 17:47:35 -0800222 core/java/android/net/INetworkRecommendationProvider.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000223 core/java/android/net/INetworkScoreCache.aidl \
224 core/java/android/net/INetworkScoreService.aidl \
225 core/java/android/net/INetworkStatsService.aidl \
226 core/java/android/net/INetworkStatsSession.aidl \
227 core/java/android/net/nsd/INsdManager.aidl \
228 core/java/android/nfc/IAppCallback.aidl \
229 core/java/android/nfc/INfcAdapter.aidl \
230 core/java/android/nfc/INfcAdapterExtras.aidl \
231 core/java/android/nfc/INfcTag.aidl \
232 core/java/android/nfc/INfcCardEmulation.aidl \
Yoshinobu Itoc52adfe2016-01-22 18:14:18 +0900233 core/java/android/nfc/INfcFCardEmulation.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000234 core/java/android/nfc/INfcUnlockHandler.aidl \
Martijn Coenend55def82016-04-14 15:19:31 +0200235 core/java/android/nfc/ITagRemovedCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000236 core/java/android/os/IBatteryPropertiesListener.aidl \
237 core/java/android/os/IBatteryPropertiesRegistrar.aidl \
238 core/java/android/os/ICancellationSignal.aidl \
Svet Ganov37e43272016-09-09 16:01:32 -0700239 core/java/android/os/IDeviceIdentifiersPolicyService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000240 core/java/android/os/IDeviceIdleController.aidl \
Polina Bondarenkof8754ac2016-02-12 20:38:23 +0100241 core/java/android/os/IHardwarePropertiesManager.aidl \
Joe Onorato1754d742016-11-21 17:51:35 -0800242 core/java/android/os/IIncidentManager.aidl \
243 core/java/android/os/IIncidentReportCompletedListener.aidl \
244 core/java/android/os/IIncidentReportStatusListener.aidl \
Yao Chenca5edbb2016-01-13 14:44:36 -0800245 core/java/android/os/IMaintenanceActivityListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000246 core/java/android/os/IMessenger.aidl \
247 core/java/android/os/INetworkActivityListener.aidl \
248 core/java/android/os/INetworkManagementService.aidl \
249 core/java/android/os/IPermissionController.aidl \
250 core/java/android/os/IProcessInfoService.aidl \
Jeff Sharkeybd91e2f2016-03-22 15:32:31 -0600251 core/java/android/os/IProgressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000252 core/java/android/os/IPowerManager.aidl \
Tao Baoe8a403d2015-12-31 07:44:55 -0800253 core/java/android/os/IRecoverySystem.aidl \
254 core/java/android/os/IRecoverySystemProgressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000255 core/java/android/os/IRemoteCallback.aidl \
256 core/java/android/os/ISchedulingPolicyService.aidl \
257 core/java/android/os/IUpdateLock.aidl \
258 core/java/android/os/IUserManager.aidl \
259 core/java/android/os/IVibratorService.aidl \
Sudheer Shanka2250d562016-11-07 15:41:02 -0800260 core/java/android/os/storage/IStorageManager.aidl \
261 core/java/android/os/storage/IStorageEventListener.aidl \
262 core/java/android/os/storage/IStorageShutdownObserver.aidl \
Sudheer Shankaf7341142016-10-18 17:15:18 -0700263 core/java/android/os/storage/IObbActionListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000264 core/java/android/security/IKeystoreService.aidl \
Janis Danisevskis8ff1e192016-06-03 11:31:55 -0700265 core/java/android/security/keymaster/IKeyAttestationApplicationIdProvider.aidl \
Felipe Leme6d553872016-12-08 17:13:25 -0800266 core/java/android/service/autofill/IAutoFillAppCallback.aidl \
Felipe Leme5381aa42016-10-13 09:02:32 -0700267 core/java/android/service/autofill/IAutoFillManagerService.aidl \
Felipe Leme6d553872016-12-08 17:13:25 -0800268 core/java/android/service/autofill/IAutoFillServerCallback.aidl \
Felipe Leme5381aa42016-10-13 09:02:32 -0700269 core/java/android/service/autofill/IAutoFillService.aidl \
Zach Johnson42ecc9e2015-05-22 15:56:09 -0700270 core/java/android/service/carrier/ICarrierService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000271 core/java/android/service/carrier/ICarrierMessagingCallback.aidl \
272 core/java/android/service/carrier/ICarrierMessagingService.aidl \
273 core/java/android/service/gatekeeper/IGateKeeperService.aidl \
274 core/java/android/service/notification/INotificationListener.aidl \
275 core/java/android/service/notification/IStatusBarNotificationHolder.aidl \
276 core/java/android/service/notification/IConditionListener.aidl \
277 core/java/android/service/notification/IConditionProvider.aidl \
Ruben Brunke24b9a62016-02-16 21:38:24 -0800278 core/java/android/service/vr/IVrListener.aidl \
Ruben Brunkc7be3be2016-04-01 17:07:51 -0700279 core/java/android/service/vr/IVrManager.aidl \
280 core/java/android/service/vr/IVrStateCallbacks.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000281 core/java/android/print/ILayoutResultCallback.aidl \
282 core/java/android/print/IPrinterDiscoveryObserver.aidl \
283 core/java/android/print/IPrintDocumentAdapter.aidl \
284 core/java/android/print/IPrintDocumentAdapterObserver.aidl \
285 core/java/android/print/IPrintJobStateChangeListener.aidl \
Philip P. Moltmann66c96592016-02-24 11:32:43 -0800286 core/java/android/print/IPrintServicesChangeListener.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700287 core/java/android/printservice/recommendation/IRecommendationsChangeListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000288 core/java/android/print/IPrintManager.aidl \
289 core/java/android/print/IPrintSpooler.aidl \
290 core/java/android/print/IPrintSpoolerCallbacks.aidl \
291 core/java/android/print/IPrintSpoolerClient.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700292 core/java/android/printservice/recommendation/IRecommendationServiceCallbacks.aidl \
293 core/java/android/printservice/recommendation/IRecommendationService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000294 core/java/android/print/IWriteResultCallback.aidl \
295 core/java/android/printservice/IPrintService.aidl \
296 core/java/android/printservice/IPrintServiceClient.aidl \
297 core/java/android/service/dreams/IDreamManager.aidl \
298 core/java/android/service/dreams/IDreamService.aidl \
299 core/java/android/service/persistentdata/IPersistentDataBlockService.aidl \
300 core/java/android/service/trust/ITrustAgentService.aidl \
301 core/java/android/service/trust/ITrustAgentServiceCallback.aidl \
302 core/java/android/service/voice/IVoiceInteractionService.aidl \
303 core/java/android/service/voice/IVoiceInteractionSession.aidl \
304 core/java/android/service/voice/IVoiceInteractionSessionService.aidl \
305 core/java/android/service/wallpaper/IWallpaperConnection.aidl \
306 core/java/android/service/wallpaper/IWallpaperEngine.aidl \
307 core/java/android/service/wallpaper/IWallpaperService.aidl \
308 core/java/android/service/chooser/IChooserTargetService.aidl \
309 core/java/android/service/chooser/IChooserTargetResult.aidl \
Abodunrinwa Tokic565e1d2016-12-14 15:38:56 +0000310 core/java/android/text/ITextClassificationService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000311 core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
312 core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
313 core/java/android/view/accessibility/IAccessibilityManager.aidl \
314 core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
315 core/java/android/view/IApplicationToken.aidl \
Jorim Jaggi2f7d2922015-10-29 13:08:29 +0100316 core/java/android/view/IAppTransitionAnimationSpecsFuture.aidl \
Jorim Jaggia6c934e2015-12-21 13:22:31 +0100317 core/java/android/view/IDockedStackListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000318 core/java/android/view/IGraphicsStats.aidl \
319 core/java/android/view/IInputFilter.aidl \
320 core/java/android/view/IInputFilterHost.aidl \
321 core/java/android/view/IOnKeyguardExitResult.aidl \
Winson Chung655332c2016-10-31 13:14:28 -0700322 core/java/android/view/IPinnedStackController.aidl \
323 core/java/android/view/IPinnedStackListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000324 core/java/android/view/IRotationWatcher.aidl \
325 core/java/android/view/IWindow.aidl \
326 core/java/android/view/IWindowFocusObserver.aidl \
327 core/java/android/view/IWindowId.aidl \
328 core/java/android/view/IWindowManager.aidl \
329 core/java/android/view/IWindowSession.aidl \
330 core/java/android/view/IWindowSessionCallback.aidl \
331 core/java/android/webkit/IWebViewUpdateService.aidl \
332 core/java/android/speech/IRecognitionListener.aidl \
333 core/java/android/speech/IRecognitionService.aidl \
334 core/java/android/speech/tts/ITextToSpeechCallback.aidl \
335 core/java/android/speech/tts/ITextToSpeechService.aidl \
336 core/java/com/android/internal/app/IAppOpsCallback.aidl \
337 core/java/com/android/internal/app/IAppOpsService.aidl \
338 core/java/com/android/internal/app/IAssistScreenshotReceiver.aidl \
339 core/java/com/android/internal/app/IBatteryStats.aidl \
Arunesh Mishraa772e5f2016-01-25 10:33:11 -0800340 core/java/com/android/internal/app/ISoundTriggerService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000341 core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl \
Annie Chinecb9f3e2016-06-27 16:01:52 -0700342 core/java/com/android/internal/app/IVoiceInteractionSessionListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000343 core/java/com/android/internal/app/IVoiceInteractionSessionShowCallback.aidl \
344 core/java/com/android/internal/app/IVoiceInteractor.aidl \
345 core/java/com/android/internal/app/IVoiceInteractorCallback.aidl \
346 core/java/com/android/internal/app/IVoiceInteractorRequest.aidl \
347 core/java/com/android/internal/app/IMediaContainerService.aidl \
Joe Onorato4eb64fd2016-03-21 15:30:09 -0700348 core/java/com/android/internal/app/procstats/IProcessStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000349 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
350 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
351 core/java/com/android/internal/backup/IBackupTransport.aidl \
352 core/java/com/android/internal/backup/IObbBackupService.aidl \
Clara Bayarri04d72ab2017-01-10 09:31:51 -0800353 core/java/com/android/internal/font/IFontManager.aidl \
Yohei Yukawa25e08132016-06-22 16:31:41 -0700354 core/java/com/android/internal/inputmethod/IInputContentUriToken.aidl \
Jorim Jaggi4cfdcf52015-07-09 12:13:59 -0700355 core/java/com/android/internal/policy/IKeyguardDrawnCallback.aidl \
Jorim Jaggi241ae102016-11-02 21:57:33 -0700356 core/java/com/android/internal/policy/IKeyguardDismissCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000357 core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
358 core/java/com/android/internal/policy/IKeyguardService.aidl \
359 core/java/com/android/internal/policy/IKeyguardStateCallback.aidl \
Muyuan Li94ce94e2016-02-24 16:20:54 -0800360 core/java/com/android/internal/policy/IShortcutService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000361 core/java/com/android/internal/os/IDropBoxManagerService.aidl \
362 core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl \
363 core/java/com/android/internal/os/IResultReceiver.aidl \
Dianne Hackborn354736e2016-08-22 17:00:05 -0700364 core/java/com/android/internal/os/IShellCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000365 core/java/com/android/internal/statusbar/IStatusBar.aidl \
366 core/java/com/android/internal/statusbar/IStatusBarService.aidl \
367 core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
368 core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
369 core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
370 core/java/com/android/internal/textservice/ITextServicesManager.aidl \
371 core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
Vladislav Kaznacheev377c3282016-04-20 14:22:23 -0700372 core/java/com/android/internal/view/IDragAndDropPermissions.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000373 core/java/com/android/internal/view/IInputContext.aidl \
374 core/java/com/android/internal/view/IInputContextCallback.aidl \
375 core/java/com/android/internal/view/IInputMethod.aidl \
376 core/java/com/android/internal/view/IInputMethodClient.aidl \
377 core/java/com/android/internal/view/IInputMethodManager.aidl \
378 core/java/com/android/internal/view/IInputMethodSession.aidl \
379 core/java/com/android/internal/view/IInputSessionCallback.aidl \
Jorim Jaggie8fde5d2016-06-30 23:41:37 -0700380 core/java/com/android/internal/widget/ICheckCredentialProgressCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000381 core/java/com/android/internal/widget/ILockSettings.aidl \
382 core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
383 core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
384 keystore/java/android/security/IKeyChainAliasCallback.aidl \
385 keystore/java/android/security/IKeyChainService.aidl \
386 location/java/android/location/ICountryDetector.aidl \
387 location/java/android/location/ICountryListener.aidl \
388 location/java/android/location/IFusedProvider.aidl \
389 location/java/android/location/IGeocodeProvider.aidl \
390 location/java/android/location/IGeofenceProvider.aidl \
Lifu Tang30f95a72016-01-07 23:20:38 -0800391 location/java/android/location/IGnssStatusListener.aidl \
392 location/java/android/location/IGnssStatusProvider.aidl \
Lifu Tang818aa2c2016-02-01 01:52:00 -0800393 location/java/android/location/IGnssMeasurementsListener.aidl \
394 location/java/android/location/IGnssNavigationMessageListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000395 location/java/android/location/ILocationListener.aidl \
396 location/java/android/location/ILocationManager.aidl \
397 location/java/android/location/IFusedGeofenceHardware.aidl \
398 location/java/android/location/IGpsGeofenceHardware.aidl \
399 location/java/android/location/INetInitiatedListener.aidl \
400 location/java/com/android/internal/location/ILocationProvider.aidl \
401 media/java/android/media/IAudioService.aidl \
402 media/java/android/media/IAudioFocusDispatcher.aidl \
403 media/java/android/media/IAudioRoutesObserver.aidl \
404 media/java/android/media/IMediaHTTPConnection.aidl \
405 media/java/android/media/IMediaHTTPService.aidl \
Dongwon Kang2034a4c2015-12-14 21:57:34 +0900406 media/java/android/media/IMediaResourceMonitor.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000407 media/java/android/media/IMediaRouterClient.aidl \
408 media/java/android/media/IMediaRouterService.aidl \
409 media/java/android/media/IMediaScannerListener.aidl \
410 media/java/android/media/IMediaScannerService.aidl \
Jean-Michel Trivi292a6a42016-12-01 08:32:15 -0800411 media/java/android/media/IPlaybackConfigDispatcher.aidl \
412 media/java/android/media/IPlayer.aidl \
Jean-Michel Trivid3c71f02015-12-07 11:59:31 -0800413 media/java/android/media/IRecordingConfigDispatcher.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000414 media/java/android/media/IRemoteDisplayCallback.aidl \
415 media/java/android/media/IRemoteDisplayProvider.aidl \
416 media/java/android/media/IRemoteVolumeController.aidl \
417 media/java/android/media/IRemoteVolumeObserver.aidl \
418 media/java/android/media/IRingtonePlayer.aidl \
419 media/java/android/media/IVolumeController.aidl \
420 media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl \
Phil Burk7cd06c02015-09-03 14:37:03 -0700421 media/java/android/media/midi/IBluetoothMidiService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000422 media/java/android/media/midi/IMidiDeviceListener.aidl \
Mike Lockwoode0a6ca62015-06-04 13:43:56 -0700423 media/java/android/media/midi/IMidiDeviceOpenCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000424 media/java/android/media/midi/IMidiDeviceServer.aidl \
425 media/java/android/media/midi/IMidiManager.aidl \
426 media/java/android/media/projection/IMediaProjection.aidl \
427 media/java/android/media/projection/IMediaProjectionCallback.aidl \
428 media/java/android/media/projection/IMediaProjectionManager.aidl \
429 media/java/android/media/projection/IMediaProjectionWatcherCallback.aidl \
430 media/java/android/media/session/IActiveSessionsListener.aidl \
Jaewan Kim6e2b01c2017-01-19 16:33:14 -0800431 media/java/android/media/session/IOnMediaKeyListener.aidl \
Jaewan Kim50269362016-12-23 11:22:02 +0900432 media/java/android/media/session/IOnVolumeKeyLongPressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000433 media/java/android/media/session/ISession.aidl \
434 media/java/android/media/session/ISessionCallback.aidl \
Jaewan Kim50269362016-12-23 11:22:02 +0900435 media/java/android/media/session/ISessionController.aidl \
436 media/java/android/media/session/ISessionControllerCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000437 media/java/android/media/session/ISessionManager.aidl \
438 media/java/android/media/tv/ITvInputClient.aidl \
439 media/java/android/media/tv/ITvInputHardware.aidl \
440 media/java/android/media/tv/ITvInputHardwareCallback.aidl \
441 media/java/android/media/tv/ITvInputManager.aidl \
442 media/java/android/media/tv/ITvInputManagerCallback.aidl \
443 media/java/android/media/tv/ITvInputService.aidl \
444 media/java/android/media/tv/ITvInputServiceCallback.aidl \
445 media/java/android/media/tv/ITvInputSession.aidl \
446 media/java/android/media/tv/ITvInputSessionCallback.aidl \
Sujith Ramakrishnanb5b86c12016-01-28 16:53:16 -0800447 media/java/android/media/tv/ITvRemoteProvider.aidl \
448 media/java/android/media/tv/ITvRemoteServiceInput.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000449 media/java/android/service/media/IMediaBrowserService.aidl \
450 media/java/android/service/media/IMediaBrowserServiceCallbacks.aidl \
Sailesh Nepal1bef3392016-01-24 18:21:53 -0800451 telecomm/java/com/android/internal/telecom/ICallScreeningAdapter.aidl \
452 telecomm/java/com/android/internal/telecom/ICallScreeningService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000453 telecomm/java/com/android/internal/telecom/IVideoCallback.aidl \
454 telecomm/java/com/android/internal/telecom/IVideoProvider.aidl \
455 telecomm/java/com/android/internal/telecom/IConnectionService.aidl \
456 telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl \
457 telecomm/java/com/android/internal/telecom/IInCallAdapter.aidl \
458 telecomm/java/com/android/internal/telecom/IInCallService.aidl \
459 telecomm/java/com/android/internal/telecom/ITelecomService.aidl \
460 telecomm/java/com/android/internal/telecom/RemoteServiceCallback.aidl \
461 telephony/java/com/android/ims/internal/IImsCallSession.aidl \
462 telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl \
463 telephony/java/com/android/ims/internal/IImsConfig.aidl \
464 telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl \
465 telephony/java/com/android/ims/internal/IImsEcbm.aidl \
466 telephony/java/com/android/ims/internal/IImsEcbmListener.aidl \
Anju Mathapatif604fc32016-03-10 12:57:21 -0800467 telephony/java/com/android/ims/internal/IImsExternalCallStateListener.aidl \
468 telephony/java/com/android/ims/internal/IImsMultiEndpoint.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000469 telephony/java/com/android/ims/internal/IImsService.aidl \
Brad Ebinger024aaf22017-01-23 15:17:50 -0800470 telephony/java/com/android/ims/internal/IImsServiceController.aidl \
471 telephony/java/com/android/ims/internal/IImsServiceFeatureListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000472 telephony/java/com/android/ims/internal/IImsStreamMediaSession.aidl \
473 telephony/java/com/android/ims/internal/IImsUt.aidl \
474 telephony/java/com/android/ims/internal/IImsUtListener.aidl \
475 telephony/java/com/android/ims/internal/IImsVideoCallCallback.aidl \
476 telephony/java/com/android/ims/internal/IImsVideoCallProvider.aidl \
Pavel Zhamaitsiakcfedd202016-03-18 16:09:50 -0700477 telephony/java/com/android/ims/internal/uce/uceservice/IUceService.aidl \
478 telephony/java/com/android/ims/internal/uce/uceservice/IUceListener.aidl \
479 telephony/java/com/android/ims/internal/uce/options/IOptionsService.aidl \
480 telephony/java/com/android/ims/internal/uce/options/IOptionsListener.aidl \
481 telephony/java/com/android/ims/internal/uce/presence/IPresenceService.aidl \
482 telephony/java/com/android/ims/internal/uce/presence/IPresenceListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000483 telephony/java/com/android/ims/ImsConfigListener.aidl \
484 telephony/java/com/android/internal/telephony/ICarrierConfigLoader.aidl \
485 telephony/java/com/android/internal/telephony/IMms.aidl \
486 telephony/java/com/android/internal/telephony/IOnSubscriptionsChangedListener.aidl \
487 telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
488 telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
489 telephony/java/com/android/internal/telephony/ISms.aidl \
490 telephony/java/com/android/internal/telephony/ISub.aidl \
491 telephony/java/com/android/internal/telephony/ITelephony.aidl \
492 telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
493 telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
494 wifi/java/android/net/wifi/IWifiManager.aidl \
Etan Cohen04133272016-10-26 11:22:06 -0700495 wifi/java/android/net/wifi/aware/IWifiAwareEventCallback.aidl \
496 wifi/java/android/net/wifi/aware/IWifiAwareManager.aidl \
497 wifi/java/android/net/wifi/aware/IWifiAwareDiscoverySessionCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000498 wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
499 wifi/java/android/net/wifi/IWifiScanner.aidl \
500 wifi/java/android/net/wifi/IRttManager.aidl \
501 packages/services/PacProcessor/com/android/net/IProxyService.aidl \
502 packages/services/Proxy/com/android/net/IProxyCallback.aidl \
503 packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500504 core/java/android/service/quicksettings/IQSService.aidl \
505 core/java/android/service/quicksettings/IQSTileService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000506
Tao Baobdc77362016-01-19 15:52:28 -0800507# The following are native binders that need to go with the native component
508# at system/update_engine/binder_bindings/. Use relative path to refer to them.
509LOCAL_SRC_FILES += \
510 ../../system/update_engine/binder_bindings/android/os/IUpdateEngine.aidl \
511 ../../system/update_engine/binder_bindings/android/os/IUpdateEngineCallback.aidl \
512
Felipe Lemefa26a0e2016-10-28 09:32:03 -0700513LOCAL_SRC_FILES += \
Erik Kline4e37b702016-07-05 11:34:21 +0900514 ../../system/netd/server/binder/android/net/INetd.aidl \
Jeff Sharkey740f5232016-12-09 14:31:26 -0700515 ../native/cmds/installd/binder/android/os/IInstalld.aidl \
Erik Kline4e37b702016-07-05 11:34:21 +0900516
Tao Baobdc77362016-01-19 15:52:28 -0800517LOCAL_AIDL_INCLUDES += system/update_engine/binder_bindings
518
Bart Searsa8cc0582015-05-07 03:23:20 +0000519# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
Samuel Tan239951a2016-01-05 17:29:43 -0800520LOCAL_AIDL_INCLUDES += \
521 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) \
522 frameworks/native/aidl/binder
Bart Searsa8cc0582015-05-07 03:23:20 +0000523
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800524LOCAL_AIDL_INCLUDES += \
525 frameworks/av/camera/aidl \
Robin Lee10606942016-03-30 18:52:40 +0100526 frameworks/native/aidl/gui \
527 system/netd/server/binder
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800528
Bart Searsa8cc0582015-05-07 03:23:20 +0000529LOCAL_INTERMEDIATE_SOURCES := \
530 $(framework_res_source_path)/android/R.java \
531 $(framework_res_source_path)/android/Manifest.java \
532 $(framework_res_source_path)/com/android/internal/R.java
533
Colin Crossc558dd92016-08-31 18:01:06 -0700534# Make sure that R.java and Manifest.java are built before we build
535# the source for this library.
536framework_res_R_stamp := \
537 $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
538LOCAL_ADDITIONAL_DEPENDENCIES := $(framework_res_R_stamp)
539
Bart Searsa8cc0582015-05-07 03:23:20 +0000540LOCAL_NO_STANDARD_LIBRARIES := true
Paul Duffin23951792016-11-30 13:29:39 +0000541LOCAL_JAVA_LIBRARIES := core-oj core-libart conscrypt okhttp bouncycastle ext
Andreas Huberfb7accf2016-10-24 12:36:23 -0700542
543LOCAL_STATIC_JAVA_LIBRARIES := \
544 framework-protos \
545 android.hardware.thermal@1.0-java-constants \
Sandeep Patila21c4272016-11-10 14:02:45 -0800546 android.hardware.health@1.0-java-constants \
Badhri Jagan Sridharan823287d2017-01-23 17:13:15 -0800547 android.hardware.usb@1.0-java-constants \
Bart Searsa8cc0582015-05-07 03:23:20 +0000548
Joe Onorato1754d742016-11-21 17:51:35 -0800549LOCAL_PROTOC_OPTIMIZE_TYPE := stream
550LOCAL_PROTOC_FLAGS := \
551 -Iexternal/protobuf/src
552
Bart Searsa8cc0582015-05-07 03:23:20 +0000553LOCAL_MODULE := framework
554
Bart Searsa8cc0582015-05-07 03:23:20 +0000555LOCAL_JACK_FLAGS := --multi-dex native
556
557LOCAL_RMTYPEDEFS := true
558
Allen Hair0e4f0142016-06-27 17:01:50 -0700559ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true)
560LOCAL_EMMA_INSTRUMENT := true
561endif
562
Bart Searsa8cc0582015-05-07 03:23:20 +0000563include $(BUILD_JAVA_LIBRARY)
Colin Crossc558dd92016-08-31 18:01:06 -0700564
Bart Searsa8cc0582015-05-07 03:23:20 +0000565framework_module := $(LOCAL_INSTALLED_MODULE)
Bart Searsa8cc0582015-05-07 03:23:20 +0000566$(framework_module): | $(dir $(framework_module))framework-res.apk
567
568framework_built := $(call java-lib-deps,framework)
569
570# Copy AIDL files to be preprocessed and included in the SDK,
571# specified relative to the root of the build tree.
572# ============================================================
573include $(CLEAR_VARS)
574
575aidl_files := \
576 frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
577 frameworks/base/telephony/java/android/telephony/SubscriptionInfo.aidl \
578 frameworks/base/telephony/java/android/telephony/CellInfo.aidl \
579 frameworks/base/telephony/java/android/telephony/SignalStrength.aidl \
580 frameworks/base/telephony/java/android/telephony/IccOpenLogicalChannelResponse.aidl \
581 frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.aidl \
Prerepa Viswanadham5c728992015-05-28 00:12:37 -0700582 frameworks/base/telephony/java/android/telephony/ModemActivityInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000583 frameworks/base/location/java/android/location/Location.aidl \
584 frameworks/base/location/java/android/location/Address.aidl \
585 frameworks/base/location/java/android/location/Criteria.aidl \
586 frameworks/base/media/java/android/media/MediaMetadata.aidl \
587 frameworks/base/media/java/android/media/MediaDescription.aidl \
588 frameworks/base/media/java/android/media/Rating.aidl \
589 frameworks/base/media/java/android/media/AudioAttributes.aidl \
590 frameworks/base/media/java/android/media/AudioFocusInfo.aidl \
591 frameworks/base/media/java/android/media/session/PlaybackState.aidl \
592 frameworks/base/media/java/android/media/session/MediaSession.aidl \
593 frameworks/base/media/java/android/media/tv/TvInputInfo.aidl \
594 frameworks/base/media/java/android/media/tv/TvTrackInfo.aidl \
595 frameworks/base/media/java/android/media/browse/MediaBrowser.aidl \
596 frameworks/base/wifi/java/android/net/wifi/ScanSettings.aidl \
Etan Cohen04133272016-10-26 11:22:06 -0700597 frameworks/base/wifi/java/android/net/wifi/aware/ConfigRequest.aidl \
598 frameworks/base/wifi/java/android/net/wifi/aware/PublishConfig.aidl \
599 frameworks/base/wifi/java/android/net/wifi/aware/SubscribeConfig.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000600 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pInfo.aidl \
601 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDeviceList.aidl \
602 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pConfig.aidl \
603 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDevice.aidl \
604 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pGroup.aidl \
605 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceRequest.aidl \
606 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceInfo.aidl \
607 frameworks/base/wifi/java/android/net/wifi/WpsInfo.aidl \
608 frameworks/base/wifi/java/android/net/wifi/ScanResult.aidl \
Vinit Deshpandea772f0c2016-01-27 19:05:24 -0800609 frameworks/base/wifi/java/android/net/wifi/PasspointManagementObjectDefinition.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000610 frameworks/base/wifi/java/android/net/wifi/WifiEnterpriseConfig.aidl \
611 frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.aidl \
612 frameworks/base/wifi/java/android/net/wifi/WifiInfo.aidl \
613 frameworks/base/graphics/java/android/graphics/Region.aidl \
614 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
615 frameworks/base/graphics/java/android/graphics/Point.aidl \
616 frameworks/base/graphics/java/android/graphics/PointF.aidl \
617 frameworks/base/graphics/java/android/graphics/RectF.aidl \
618 frameworks/base/graphics/java/android/graphics/Rect.aidl \
Philip P. Moltmannbb9f6862015-12-01 14:44:24 -0800619 frameworks/base/graphics/java/android/graphics/drawable/Icon.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000620 frameworks/base/core/java/android/accounts/AuthenticatorDescription.aidl \
621 frameworks/base/core/java/android/accounts/Account.aidl \
Michal Karpinskif77ee4f2016-10-12 16:40:06 +0100622 frameworks/base/core/java/android/app/admin/ConnectEvent.aidl \
623 frameworks/base/core/java/android/app/admin/DnsEvent.aidl \
624 frameworks/base/core/java/android/app/admin/NetworkEvent.aidl \
Rubin Xud86d58c2015-05-05 16:57:37 +0100625 frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \
Andrew Scull5f9e6f32016-08-02 14:22:17 +0100626 frameworks/base/core/java/android/app/admin/PasswordMetrics.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000627 frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \
628 frameworks/base/core/java/android/print/PageRange.aidl \
629 frameworks/base/core/java/android/print/PrintAttributes.aidl \
630 frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
631 frameworks/base/core/java/android/print/PrinterId.aidl \
632 frameworks/base/core/java/android/print/PrintJobInfo.aidl \
633 frameworks/base/core/java/android/print/PrinterInfo.aidl \
634 frameworks/base/core/java/android/print/PrintJobId.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700635 frameworks/base/core/java/android/printservice/recommendation/RecommendationInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000636 frameworks/base/core/java/android/hardware/usb/UsbDevice.aidl \
637 frameworks/base/core/java/android/hardware/usb/UsbInterface.aidl \
638 frameworks/base/core/java/android/hardware/usb/UsbEndpoint.aidl \
639 frameworks/base/core/java/android/hardware/usb/UsbAccessory.aidl \
640 frameworks/base/core/java/android/os/Messenger.aidl \
641 frameworks/base/core/java/android/os/PatternMatcher.aidl \
642 frameworks/base/core/java/android/os/Message.aidl \
643 frameworks/base/core/java/android/os/UserHandle.aidl \
644 frameworks/base/core/java/android/os/ParcelUuid.aidl \
645 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
646 frameworks/base/core/java/android/os/ResultReceiver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000647 frameworks/base/core/java/android/os/WorkSource.aidl \
648 frameworks/base/core/java/android/os/DropBoxManager.aidl \
649 frameworks/base/core/java/android/os/Bundle.aidl \
Sudheer Shankacc6418f2016-10-13 12:03:44 -0700650 frameworks/base/core/java/android/os/Debug.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -0700651 frameworks/base/core/java/android/os/StrictMode.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000652 frameworks/base/core/java/android/accessibilityservice/AccessibilityServiceInfo.aidl \
653 frameworks/base/core/java/android/net/Network.aidl \
654 frameworks/base/core/java/android/net/RouteInfo.aidl \
655 frameworks/base/core/java/android/net/NetworkInfo.aidl \
656 frameworks/base/core/java/android/net/IpPrefix.aidl \
657 frameworks/base/core/java/android/net/NetworkCapabilities.aidl \
658 frameworks/base/core/java/android/net/DhcpInfo.aidl \
659 frameworks/base/core/java/android/net/ProxyInfo.aidl \
660 frameworks/base/core/java/android/net/LinkProperties.aidl \
661 frameworks/base/core/java/android/net/Uri.aidl \
662 frameworks/base/core/java/android/net/NetworkRequest.aidl \
663 frameworks/base/core/java/android/net/LinkAddress.aidl \
Svet Ganov53a441c2016-04-19 19:38:00 -0700664 frameworks/base/core/java/android/util/MemoryIntArray.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700665 frameworks/base/core/java/android/view/Display.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000666 frameworks/base/core/java/android/view/InputDevice.aidl \
667 frameworks/base/core/java/android/view/InputEvent.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800668 frameworks/native/aidl/gui/android/view/Surface.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700669 frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000670 frameworks/base/core/java/android/view/inputmethod/InputMethodSubtype.aidl \
671 frameworks/base/core/java/android/view/inputmethod/CursorAnchorInfo.aidl \
672 frameworks/base/core/java/android/view/inputmethod/CompletionInfo.aidl \
673 frameworks/base/core/java/android/view/inputmethod/ExtractedText.aidl \
674 frameworks/base/core/java/android/view/inputmethod/EditorInfo.aidl \
675 frameworks/base/core/java/android/view/inputmethod/InputMethodInfo.aidl \
676 frameworks/base/core/java/android/view/inputmethod/CorrectionInfo.aidl \
677 frameworks/base/core/java/android/view/inputmethod/InputBinding.aidl \
678 frameworks/base/core/java/android/view/inputmethod/ExtractedTextRequest.aidl \
679 frameworks/base/core/java/android/view/DragEvent.aidl \
680 frameworks/base/core/java/android/view/KeyEvent.aidl \
681 frameworks/base/core/java/android/view/WindowManager.aidl \
682 frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
683 frameworks/base/core/java/android/view/MotionEvent.aidl \
684 frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
685 frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
686 frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
687 frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
688 frameworks/base/core/java/android/view/textservice/SpellCheckerSubtype.aidl \
689 frameworks/base/core/java/android/view/textservice/TextInfo.aidl \
690 frameworks/base/core/java/android/view/textservice/SpellCheckerInfo.aidl \
691 frameworks/base/core/java/android/view/textservice/SentenceSuggestionsInfo.aidl \
692 frameworks/base/core/java/android/view/textservice/SuggestionsInfo.aidl \
693 frameworks/base/core/java/android/service/carrier/CarrierIdentifier.aidl \
694 frameworks/base/core/java/android/service/carrier/MessagePdu.aidl \
Julia Reynolds22f02b32016-12-01 15:05:13 -0500695 frameworks/base/core/java/android/service/notification/Adjustment.aidl \
696 frameworks/base/core/java/android/service/notification/Condition.aidl \
697 frameworks/base/core/java/android/service/notification/SnoozeCriterion.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000698 frameworks/base/core/java/android/service/notification/StatusBarNotification.aidl \
699 frameworks/base/core/java/android/service/chooser/ChooserTarget.aidl \
700 frameworks/base/core/java/android/speech/tts/Voice.aidl \
Jeff Sharkey8dedad32017-01-09 18:21:21 -0700701 frameworks/base/core/java/android/app/usage/ExternalStorageStats.aidl \
Jeff Sharkeye8cece92017-01-04 11:33:33 -0700702 frameworks/base/core/java/android/app/usage/StorageStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000703 frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000704 frameworks/base/core/java/android/app/Notification.aidl \
705 frameworks/base/core/java/android/app/NotificationManager.aidl \
706 frameworks/base/core/java/android/app/WallpaperInfo.aidl \
707 frameworks/base/core/java/android/app/AppOpsManager.aidl \
708 frameworks/base/core/java/android/app/ActivityManager.aidl \
709 frameworks/base/core/java/android/app/PendingIntent.aidl \
710 frameworks/base/core/java/android/app/AlarmManager.aidl \
711 frameworks/base/core/java/android/app/SearchableInfo.aidl \
712 frameworks/base/core/java/android/app/VoiceInteractor.aidl \
Dianne Hackborn69c6adc2015-06-02 10:52:59 -0700713 frameworks/base/core/java/android/app/assist/AssistContent.aidl \
714 frameworks/base/core/java/android/app/assist/AssistStructure.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000715 frameworks/base/core/java/android/app/job/JobParameters.aidl \
716 frameworks/base/core/java/android/app/job/JobInfo.aidl \
717 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
718 frameworks/base/core/java/android/content/ClipDescription.aidl \
719 frameworks/base/core/java/android/content/IntentFilter.aidl \
720 frameworks/base/core/java/android/content/Intent.aidl \
721 frameworks/base/core/java/android/content/res/Configuration.aidl \
722 frameworks/base/core/java/android/content/res/ObbInfo.aidl \
723 frameworks/base/core/java/android/content/RestrictionEntry.aidl \
724 frameworks/base/core/java/android/content/ClipData.aidl \
725 frameworks/base/core/java/android/content/SyncAdapterType.aidl \
726 frameworks/base/core/java/android/content/SyncRequest.aidl \
727 frameworks/base/core/java/android/content/PeriodicSync.aidl \
728 frameworks/base/core/java/android/content/SyncResult.aidl \
729 frameworks/base/core/java/android/content/pm/FeatureInfo.aidl \
730 frameworks/base/core/java/android/content/pm/InstrumentationInfo.aidl \
731 frameworks/base/core/java/android/content/pm/PackageInstaller.aidl \
732 frameworks/base/core/java/android/content/pm/ServiceInfo.aidl \
733 frameworks/base/core/java/android/content/pm/Signature.aidl \
734 frameworks/base/core/java/android/content/pm/ApplicationInfo.aidl \
735 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
736 frameworks/base/core/java/android/content/pm/ActivityInfo.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -0700737 frameworks/base/core/java/android/content/pm/ConfigurationInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000738 frameworks/base/core/java/android/content/pm/PackageInfo.aidl \
739 frameworks/base/core/java/android/content/pm/ResolveInfo.aidl \
740 frameworks/base/core/java/android/content/pm/ProviderInfo.aidl \
741 frameworks/base/core/java/android/content/pm/PackageStats.aidl \
742 frameworks/base/core/java/android/content/pm/PermissionGroupInfo.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800743 frameworks/base/core/java/android/content/pm/ShortcutInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000744 frameworks/base/core/java/android/content/pm/LabeledIntent.aidl \
745 frameworks/base/core/java/android/content/ComponentName.aidl \
746 frameworks/base/core/java/android/content/SyncStats.aidl \
747 frameworks/base/core/java/android/content/ContentValues.aidl \
748 frameworks/base/core/java/android/content/SyncInfo.aidl \
749 frameworks/base/core/java/android/content/IntentSender.aidl \
750 frameworks/base/core/java/android/widget/RemoteViews.aidl \
751 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
752 frameworks/base/core/java/android/nfc/Tag.aidl \
753 frameworks/base/core/java/android/nfc/NdefRecord.aidl \
754 frameworks/base/core/java/android/nfc/NdefMessage.aidl \
755 frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
756 frameworks/base/core/java/android/bluetooth/le/AdvertiseSettings.aidl \
757 frameworks/base/core/java/android/bluetooth/le/ScanSettings.aidl \
758 frameworks/base/core/java/android/bluetooth/le/AdvertiseData.aidl \
759 frameworks/base/core/java/android/bluetooth/le/ScanFilter.aidl \
760 frameworks/base/core/java/android/bluetooth/le/ScanResult.aidl \
761 frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
762 frameworks/base/core/java/android/database/CursorWindow.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500763 frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
Samuel Tan239951a2016-01-05 17:29:43 -0800764 frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
Robin Lee10606942016-03-30 18:52:40 +0100765 system/netd/server/binder/android/net/UidRange.aidl \
Robert Greenwalt37409c52016-06-02 13:43:27 -0700766 frameworks/base/telephony/java/android/telephony/PcoData.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000767
768gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
769$(gen): PRIVATE_SRC_FILES := $(aidl_files)
770ALL_SDK_FILES += $(gen)
771$(gen): $(aidl_files) | $(AIDL)
772 @echo Aidl Preprocess: $@
773 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
774
775# the documentation
776# ============================================================
777
778# TODO: deal with com/google/android/googleapps
779packages_to_document := \
780 android \
781 javax/microedition/khronos \
782 org/apache/http/conn \
783 org/apache/http/params
784
785
786# Search through the base framework dirs for these packages.
787# The result will be relative to frameworks/base.
788fwbase_dirs_to_document := \
Paul Duffin23951792016-11-30 13:29:39 +0000789 legacy-test/src \
Bart Searsa8cc0582015-05-07 03:23:20 +0000790 test-runner/src \
791 $(patsubst $(LOCAL_PATH)/%,%, \
792 $(wildcard \
793 $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
794 $(addprefix $(dir)/, $(packages_to_document)) \
795 ) \
796 ) \
797 )
798
799# include definition of libcore_to_document
800include libcore/Docs.mk
801
Bart Searsa8cc0582015-05-07 03:23:20 +0000802non_base_dirs := \
803 ../opt/telephony/src/java/android/provider \
804 ../opt/telephony/src/java/android/telephony \
805 ../opt/telephony/src/java/android/telephony/gsm \
806 ../opt/net/voip/src/java/android/net/rtp \
807 ../opt/net/voip/src/java/android/net/sip
808
809# These are relative to frameworks/base
810dirs_to_check_apis := \
811 $(fwbase_dirs_to_document) \
812 $(non_base_dirs)
813
George Mountf6be9932015-12-03 07:39:55 -0800814###########################################################
815## Return all directories that have a 'NO_DOCS' file in
816## them, appending a '%' to them to form a pattern to
817## filter out files under those directories.
818## $(1): A list of base directories to look at.
819###########################################################
820define find-no-docs-pattern
821$(addsuffix %, $(dir $(foreach dir, $(1), $(shell cd $(LOCAL_PATH); find $(dir) -name NO_DOCS))))
822endef
823
Bart Searsa8cc0582015-05-07 03:23:20 +0000824# These are relative to frameworks/base
825# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
826dirs_to_document := \
827 $(dirs_to_check_apis) \
George Mounta340f072015-07-13 16:45:34 -0700828 $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
829 $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000830
George Mountf6be9932015-12-03 07:39:55 -0800831patterns_to_not_document := \
832 $(call find-no-docs-pattern, $(dirs_to_document))
833
Bart Searsa8cc0582015-05-07 03:23:20 +0000834# These are relative to frameworks/base
835html_dirs := \
836 $(FRAMEWORKS_BASE_SUBDIRS) \
837 $(non_base_dirs)
838
839# Common sources for doc check and api check
840common_src_files := \
841 $(call find-other-html-files, $(html_dirs)) \
Paul Duffincd7c34d2016-12-12 16:35:36 +0000842 $(addprefix ../../, $(libcore_to_document))
Bart Searsa8cc0582015-05-07 03:23:20 +0000843
844# These are relative to frameworks/base
845framework_docs_LOCAL_SRC_FILES := \
George Mountf6be9932015-12-03 07:39:55 -0800846 $(filter-out $(patterns_to_not_document), $(call find-other-java-files, $(dirs_to_document))) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000847 $(common_src_files)
848
849# These are relative to frameworks/base
850framework_docs_LOCAL_API_CHECK_SRC_FILES := \
851 $(call find-other-java-files, $(dirs_to_check_apis)) \
852 $(common_src_files)
853
854# This is used by ide.mk as the list of source files that are
855# always included.
856INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
857
858framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
859 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
860
861framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
862 $(framework_res_source_path)/android/R.java \
863 $(framework_res_source_path)/android/Manifest.java \
864 $(framework_res_source_path)/com/android/internal/R.java
865
866framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000867 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000868 core-libart \
869 conscrypt \
870 bouncycastle \
871 okhttp \
872 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100873 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000874 framework \
875 telephony-common \
876 voip-common
877
878framework_docs_LOCAL_JAVA_LIBRARIES := \
879 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
880 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
881
882framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
883framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
884# The since flag (-since N.xml API_LEVEL) is used to add API Level information
885# to the reference documentation. Must be in order of oldest to newest.
886#
887# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
888# not be referenced in the documentation.
889framework_docs_LOCAL_DROIDDOC_OPTIONS := \
890 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100891 -knowntags ./libcore/known_oj_tags.txt \
Bart Searsa8cc0582015-05-07 03:23:20 +0000892 -hidePackage com.android.org.conscrypt \
893 -since $(SRC_API_DIR)/1.xml 1 \
894 -since $(SRC_API_DIR)/2.xml 2 \
895 -since $(SRC_API_DIR)/3.xml 3 \
896 -since $(SRC_API_DIR)/4.xml 4 \
897 -since $(SRC_API_DIR)/5.xml 5 \
898 -since $(SRC_API_DIR)/6.xml 6 \
899 -since $(SRC_API_DIR)/7.xml 7 \
900 -since $(SRC_API_DIR)/8.xml 8 \
901 -since $(SRC_API_DIR)/9.xml 9 \
902 -since $(SRC_API_DIR)/10.xml 10 \
903 -since $(SRC_API_DIR)/11.xml 11 \
904 -since $(SRC_API_DIR)/12.xml 12 \
905 -since $(SRC_API_DIR)/13.xml 13 \
906 -since $(SRC_API_DIR)/14.txt 14 \
907 -since $(SRC_API_DIR)/15.txt 15 \
908 -since $(SRC_API_DIR)/16.txt 16 \
909 -since $(SRC_API_DIR)/17.txt 17 \
910 -since $(SRC_API_DIR)/18.txt 18 \
911 -since $(SRC_API_DIR)/19.txt 19 \
912 -since $(SRC_API_DIR)/20.txt 20 \
913 -since $(SRC_API_DIR)/21.txt 21 \
914 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700915 -since $(SRC_API_DIR)/23.txt 23 \
Dirk Dougherty5f60f7c2016-06-14 16:26:28 -0700916 -since $(SRC_API_DIR)/24.txt 24 \
Dirk Dougherty3376f582016-10-14 10:27:08 -0700917 -since $(SRC_API_DIR)/25.txt 25 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000918 -werror -hide 111 -hide 113 \
919 -overview $(LOCAL_PATH)/core/java/overview.html
920
921framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
922 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
923
924framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
925 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
926 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
927 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
928
929framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100930 frameworks/base/docs/knowntags.txt \
931 libcore/Docs.mk
Bart Searsa8cc0582015-05-07 03:23:20 +0000932
933samples_dir := development/samples/browseable
934
935# Whitelist of valid groups, used for default TOC grouping. Each sample must
936# belong to one (and only one) group. Assign samples to groups by setting
937# a sample.group var to one of these groups in the sample's _index.jd.
938sample_groups := -samplegroup Admin \
939 -samplegroup Background \
940 -samplegroup Connectivity \
941 -samplegroup Content \
942 -samplegroup Input \
943 -samplegroup Media \
944 -samplegroup Notification \
945 -samplegroup RenderScript \
946 -samplegroup Security \
947 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700948 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000949 -samplegroup Testing \
950 -samplegroup UI \
951 -samplegroup Views \
952 -samplegroup Wearable
953
954## SDK version identifiers used in the published docs
955 # major[.minor] version for current SDK. (full releases only)
smain@google.comdde8deb2016-08-29 18:36:50 -0700956framework_docs_SDK_VERSION:=7.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000957 # release version (ie "Release x") (full releases only)
958framework_docs_SDK_REL_ID:=1
959
960framework_docs_LOCAL_DROIDDOC_OPTIONS += \
smain@google.com7aca8be2016-03-10 14:13:30 -0800961 -hdf sdk.codename N \
smain@google.com39426fd2016-07-13 13:58:06 -0700962 -hdf sdk.preview.version 5 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000963 -hdf sdk.version $(framework_docs_SDK_VERSION) \
964 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
smain@google.comdde8deb2016-08-29 18:36:50 -0700965 -hdf sdk.preview 0
Bart Searsa8cc0582015-05-07 03:23:20 +0000966
967# ==== the api stubs and current.xml ===========================
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 := api-stubs
980
Ying Wang0f92a2e2015-07-16 14:20:22 -0700981LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
982
Bart Searsa8cc0582015-05-07 03:23:20 +0000983LOCAL_DROIDDOC_OPTIONS:=\
984 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -0700985 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +0000986 -api $(INTERNAL_PLATFORM_API_FILE) \
987 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
988 -nodocs
989
990LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
991
992LOCAL_UNINSTALLABLE_MODULE := true
993
994include $(BUILD_DROIDDOC)
995
996# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
997$(full_target): $(framework_built) $(gen)
998$(INTERNAL_PLATFORM_API_FILE): $(full_target)
999$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
1000
1001# ==== the system api stubs ===================================
1002include $(CLEAR_VARS)
1003
1004LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
1005LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1006LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
1007LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1008LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1009LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1010LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
1011LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1012
1013LOCAL_MODULE := system-api-stubs
1014
Ying Wang0f92a2e2015-07-16 14:20:22 -07001015LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
1016
Bart Searsa8cc0582015-05-07 03:23:20 +00001017LOCAL_DROIDDOC_OPTIONS:=\
1018 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001019 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001020 -showAnnotation android.annotation.SystemApi \
1021 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
1022 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
1023 -nodocs
1024
1025LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1026
1027LOCAL_UNINSTALLABLE_MODULE := true
1028
1029include $(BUILD_DROIDDOC)
1030
1031# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1032$(full_target): $(framework_built) $(gen)
1033$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
1034$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
1035
Michael Wrightb2b2c0e2015-11-06 15:21:13 +00001036# ==== the test api stubs ===================================
1037include $(CLEAR_VARS)
1038
1039LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
1040LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1041LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
1042LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1043LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1044LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1045LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
1046LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1047
1048LOCAL_MODULE := test-api-stubs
1049
1050LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
1051
1052LOCAL_DROIDDOC_OPTIONS:=\
1053 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001054 -referenceonly \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +00001055 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
1056 -showAnnotation android.annotation.TestApi \
1057 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
1058 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
1059 -nodocs
1060
1061LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1062
1063LOCAL_UNINSTALLABLE_MODULE := true
1064
1065include $(BUILD_DROIDDOC)
1066
1067# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1068$(full_target): $(framework_built) $(gen)
1069$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
1070$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
1071
Bart Searsa8cc0582015-05-07 03:23:20 +00001072# ==== check javadoc comments but don't generate docs ========
1073include $(CLEAR_VARS)
1074
1075LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1076LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
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)
1083
1084LOCAL_MODULE := doc-comment-check
1085
1086LOCAL_DROIDDOC_OPTIONS:=\
1087 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001088 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001089 -parsecomments
1090
1091LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1092
1093LOCAL_UNINSTALLABLE_MODULE := true
1094
1095include $(BUILD_DROIDDOC)
1096
1097# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1098$(full_target): $(framework_built) $(gen)
1099
1100# Run this for checkbuild
1101checkbuild: doc-comment-check-docs
1102# Check comment when you are updating the API
1103update-api: doc-comment-check-docs
1104
1105# ==== static html in the sdk ==================================
1106include $(CLEAR_VARS)
1107
1108LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1109LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1110LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1111LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1112LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1113LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1114LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1115LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1116
1117LOCAL_MODULE := offline-sdk
1118
1119LOCAL_DROIDDOC_OPTIONS:=\
1120 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1121 -offlinemode \
1122 -title "Android SDK" \
1123 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
smain@google.com00de8c52016-03-07 18:38:08 -08001124 -sdkvalues $(OUT_DOCS) \
smain@google.com8562ab52016-06-14 17:11:57 -07001125 -hdf android.whichdoc offline
1126
smain@google.com534bfe12016-09-01 19:52:17 -07001127LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
smain@google.com8562ab52016-06-14 17:11:57 -07001128
1129include $(BUILD_DROIDDOC)
1130
1131static_doc_index_redirect := $(out_dir)/index.html
1132$(static_doc_index_redirect): \
1133 $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
1134 $(hide) mkdir -p $(dir $@)
1135 $(hide) $(ACP) $< $@
1136
1137$(full_target): $(static_doc_index_redirect)
1138$(full_target): $(framework_built)
1139
1140
1141# ==== static html in the sdk ==================================
1142include $(CLEAR_VARS)
1143
1144LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1145LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1146LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1147LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1148LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1149LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1150LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1151LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1152
1153LOCAL_MODULE := offline-sdk-referenceonly
1154
1155LOCAL_DROIDDOC_OPTIONS:=\
1156 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1157 -offlinemode \
1158 -title "Android SDK" \
1159 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
1160 -sdkvalues $(OUT_DOCS) \
smain@google.com00de8c52016-03-07 18:38:08 -08001161 -hdf android.whichdoc offline \
Romain Guy199e5a92016-11-28 16:42:13 -08001162 -referenceonly \
1163 -resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \
1164 -resourcesoutdir reference/android/images/
smain@google.com00de8c52016-03-07 18:38:08 -08001165
smain@google.com534bfe12016-09-01 19:52:17 -07001166LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
smain@google.com00de8c52016-03-07 18:38:08 -08001167
1168include $(BUILD_DROIDDOC)
1169
1170static_doc_index_redirect := $(out_dir)/index.html
smain@google.com151833a2016-08-31 08:42:09 -07001171$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
Dan Willemsen98ff0b72016-03-23 00:42:44 -07001172 $(copy-file-to-target)
smain@google.com00de8c52016-03-07 18:38:08 -08001173
smain@google.com2f2365d2016-09-21 14:05:50 -07001174static_doc_properties := $(out_dir)/source.properties
1175$(static_doc_properties): \
1176 $(LOCAL_PATH)/docs/source.properties | $(ACP)
1177 $(hide) mkdir -p $(dir $@)
1178 $(hide) $(ACP) $< $@
1179
smain@google.com00de8c52016-03-07 18:38:08 -08001180$(full_target): $(static_doc_index_redirect)
smain@google.com2f2365d2016-09-21 14:05:50 -07001181$(full_target): $(static_doc_properties)
smain@google.com00de8c52016-03-07 18:38:08 -08001182$(full_target): $(framework_built)
1183
smain@google.com7aca8be2016-03-10 14:13:30 -08001184
Bart Searsa8cc0582015-05-07 03:23:20 +00001185# ==== docs for the web (on the androiddevdocs app engine server) =======================
1186include $(CLEAR_VARS)
1187
1188LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1189LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1190LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1191LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1192LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1193LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1194LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1195LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1196LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1197LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1198
1199LOCAL_MODULE := online-sdk
1200
1201LOCAL_DROIDDOC_OPTIONS:= \
1202 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1203 -toroot / \
1204 -hdf android.whichdoc online \
1205 $(sample_groups) \
1206 -hdf android.hasSamples true \
1207 -samplesdir $(samples_dir)
1208
smain@google.com534bfe12016-09-01 19:52:17 -07001209LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001210
1211include $(BUILD_DROIDDOC)
1212
1213# ==== docs for the web (on the androiddevdocs app engine server) =======================
1214# TODO: Fix the System API docs build.
1215ifneq ($(filter online-system-api-sdk-docs,$(MAKECMDGOALS)),)
1216include $(CLEAR_VARS)
1217
1218LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1219LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1220LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1221LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1222LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1223LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1224LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1225LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1226LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1227LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1228
1229LOCAL_MODULE := online-system-api-sdk
1230
1231LOCAL_DROIDDOC_OPTIONS:= \
1232 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001233 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001234 -showAnnotation android.annotation.SystemApi \
1235 -title "Android SDK - Including system APIs." \
1236 -toroot / \
Gina Dimino98ad8882016-05-31 17:25:48 -07001237 -hide 101 \
1238 -hide 104 \
1239 -hide 108 \
Bart Searsa8cc0582015-05-07 03:23:20 +00001240 -hdf android.whichdoc online \
1241 $(sample_groups) \
1242 -hdf android.hasSamples true \
1243 -samplesdir $(samples_dir)
1244
1245LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1246# Don't build by default
1247LOCAL_UNINSTALLABLE_MODULE := true
1248
1249include $(BUILD_DROIDDOC)
1250endif # online-system-api-sdk-docs in make command line.
1251
1252# ==== docs for the web (on the devsite app engine server) =======================
1253include $(CLEAR_VARS)
1254LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1255LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1256LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1257LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1258LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1259LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1260LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1261LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1262LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1263# specify a second html input dir and an output path relative to OUT_DIR)
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001264LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +00001265
1266LOCAL_MODULE := ds
1267
1268LOCAL_DROIDDOC_OPTIONS:= \
1269 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +00001270 -toroot / \
1271 -hdf android.whichdoc online \
Dirk Doughertyb042ab12016-06-14 16:26:28 -07001272 -devsite \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001273 $(sample_groups) \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001274 -hdf android.hasSamples true \
1275 -samplesdir $(samples_dir)
Bart Searsa8cc0582015-05-07 03:23:20 +00001276
smain@google.com534bfe12016-09-01 19:52:17 -07001277LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001278
1279include $(BUILD_DROIDDOC)
1280
Dirk Doughertyb042ab12016-06-14 16:26:28 -07001281# ==== docs for the web (on the devsite app engine server) =======================
1282include $(CLEAR_VARS)
1283LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1284LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1285LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1286LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1287LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1288LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1289LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1290LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1291LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1292# specify a second html input dir and an output path relative to OUT_DIR)
1293LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1294
1295LOCAL_MODULE := ds-static
1296
1297LOCAL_DROIDDOC_OPTIONS:= \
1298 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1299 -hdf android.whichdoc online \
1300 -staticonly \
1301 -toroot / \
1302 -devsite \
1303 -ignoreJdLinks
1304
smain@google.com534bfe12016-09-01 19:52:17 -07001305LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
Dirk Doughertyb042ab12016-06-14 16:26:28 -07001306
1307include $(BUILD_DROIDDOC)
1308
Dirk Dougherty7d47b552016-09-13 16:44:25 -07001309# ==== generates full navtree for resolving @links in ds postprocessing ====
1310include $(CLEAR_VARS)
1311
1312LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1313LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1314LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1315LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1316LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1317LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1318LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1319LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1320
1321LOCAL_MODULE := ds-ref-navtree
1322
1323LOCAL_DROIDDOC_OPTIONS:= \
1324 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1325 -hdf android.whichdoc online \
1326 -toroot / \
1327 -atLinksNavtree \
1328 -navtreeonly
1329
1330LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1331
1332include $(BUILD_DROIDDOC)
1333
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001334# ==== site updates for docs (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +00001335include $(CLEAR_VARS)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001336
Bart Searsa8cc0582015-05-07 03:23:20 +00001337LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1338LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1339LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1340LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1341LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1342LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001343LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +00001344LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1345LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001346LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +00001347
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001348LOCAL_MODULE := online-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +00001349
1350LOCAL_DROIDDOC_OPTIONS:= \
1351 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1352 -toroot / \
1353 -hdf android.whichdoc online \
1354 $(sample_groups) \
1355 -hdf android.hasSamples true \
1356 -samplesdir $(samples_dir)
1357
smain@google.com534bfe12016-09-01 19:52:17 -07001358LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001359
1360include $(BUILD_DROIDDOC)
1361
Bart Searsa8cc0582015-05-07 03:23:20 +00001362# ==== docs that have all of the stuff that's @hidden =======================
1363include $(CLEAR_VARS)
1364
1365LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1366LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1367LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1368LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1369LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1370LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1371LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1372LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1373
1374LOCAL_MODULE := hidden
1375LOCAL_DROIDDOC_OPTIONS:=\
1376 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001377 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001378 -title "Android SDK - Including hidden APIs."
1379# -hidden
1380
1381LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1382
1383include $(BUILD_DROIDDOC)
1384
1385# Build ext.jar
1386# ============================================================
1387
1388ext_dirs := \
1389 ../../external/nist-sip/java \
1390 ../../external/tagsoup/src \
1391
1392ext_src_files := $(call all-java-files-under,$(ext_dirs))
1393
1394# ==== the library =========================================
1395include $(CLEAR_VARS)
1396
1397LOCAL_SRC_FILES := $(ext_src_files)
1398
1399LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +00001400LOCAL_JAVA_LIBRARIES := core-oj core-libart
Bart Searsa8cc0582015-05-07 03:23:20 +00001401LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber-platform
1402LOCAL_MODULE_TAGS := optional
1403LOCAL_MODULE := ext
1404
Jorim Jaggi7e29dea2016-02-01 16:22:43 -08001405ifneq ($(INCREMENTAL_BUILDS),)
1406 LOCAL_PROGUARD_ENABLED := disabled
1407 LOCAL_JACK_ENABLED := incremental
1408endif
1409
Bart Searsa8cc0582015-05-07 03:23:20 +00001410include $(BUILD_JAVA_LIBRARY)
1411
Joe Onorato1754d742016-11-21 17:51:35 -08001412# ==== c++ proto host library ==============================
1413include $(CLEAR_VARS)
1414LOCAL_MODULE := libplatformprotos
Chih-Hung Hsiehfca7aac2017-01-26 18:47:14 -08001415# b/34740546, work around clang-tidy segmentation fault.
1416LOCAL_TIDY_CHECKS := -modernize*
Joe Onorato1754d742016-11-21 17:51:35 -08001417LOCAL_PROTOC_OPTIMIZE_TYPE := full
1418LOCAL_PROTOC_FLAGS := \
1419 --include_source_info \
1420 -Iexternal/protobuf/src
1421LOCAL_SRC_FILES := \
1422 $(call all-proto-files-under, core/proto) \
1423 $(call all-proto-files-under, libs/incident/proto)
1424LOCAL_C_INCLUDES := \
1425 $(call generated-sources-dir-for,STATIC_LIBRARIES,libplatformprotos,)/proto
1426LOCAL_EXPORT_C_INCLUDES := \
1427 $(call generated-sources-dir-for,STATIC_LIBRARIES,libplatformprotos,)/proto
1428include $(BUILD_HOST_SHARED_LIBRARY)
1429
1430
1431# ==== java proto host library ==============================
1432include $(CLEAR_VARS)
1433LOCAL_MODULE := platformprotos
1434LOCAL_PROTOC_OPTIMIZE_TYPE := full
1435LOCAL_PROTOC_FLAGS := \
1436 -Iexternal/protobuf/src
1437LOCAL_SOURCE_FILES_ALL_GENERATED := true
1438LOCAL_SRC_FILES := \
1439 $(call all-proto-files-under, core/proto) \
1440 $(call all-proto-files-under, libs/incident/proto)
1441include $(BUILD_HOST_JAVA_LIBRARY)
1442
Bart Searsa8cc0582015-05-07 03:23:20 +00001443
1444# Include subdirectory makefiles
1445# ============================================================
1446
1447# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
1448# team really wants is to build the stuff defined by this makefile.
1449ifeq (,$(ONE_SHOT_MAKEFILE))
1450include $(call first-makefiles-under,$(LOCAL_PATH))
1451endif
1452
1453endif # ANDROID_BUILD_EMBEDDED