blob: f318a5a754c1e8ce6adeaff3c57183e2fd54c7a2 [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 \
Stefanotb1f573d2017-01-27 12:03:53 +0000107 core/java/android/app/backup/IBackupManagerMonitor.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000108 core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
109 core/java/android/app/backup/IRestoreObserver.aidl \
110 core/java/android/app/backup/IRestoreSession.aidl \
Shreyas Basarge865303f2017-01-13 14:48:56 +0000111 core/java/android/app/backup/ISelectBackupTransportCallback.aidl \
Daniel Nishicf9d19e2017-01-23 14:33:42 -0800112 core/java/android/app/usage/ICacheQuotaService.aidl \
Jeff Sharkeye8cece92017-01-04 11:33:33 -0700113 core/java/android/app/usage/IStorageStatsManager.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000114 core/java/android/app/usage/IUsageStatsManager.aidl \
115 core/java/android/bluetooth/IBluetooth.aidl \
116 core/java/android/bluetooth/IBluetoothA2dp.aidl \
117 core/java/android/bluetooth/IBluetoothA2dpSink.aidl \
118 core/java/android/bluetooth/IBluetoothAvrcpController.aidl \
119 core/java/android/bluetooth/IBluetoothCallback.aidl \
120 core/java/android/bluetooth/IBluetoothProfileServiceConnection.aidl \
121 core/java/android/bluetooth/IBluetoothHeadset.aidl \
122 core/java/android/bluetooth/IBluetoothHeadsetPhone.aidl \
123 core/java/android/bluetooth/IBluetoothHealth.aidl \
124 core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
125 core/java/android/bluetooth/IBluetoothInputDevice.aidl \
126 core/java/android/bluetooth/IBluetoothPan.aidl \
127 core/java/android/bluetooth/IBluetoothManager.aidl \
128 core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
Joseph Pirozzo631768d2016-09-01 14:19:28 -0700129 core/java/android/bluetooth/IBluetoothMap.aidl \
130 core/java/android/bluetooth/IBluetoothMapClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000131 core/java/android/bluetooth/IBluetoothPbap.aidl \
Joseph Pirozzocfa8a642016-03-04 13:02:54 -0800132 core/java/android/bluetooth/IBluetoothPbapClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000133 core/java/android/bluetooth/IBluetoothSap.aidl \
134 core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
135 core/java/android/bluetooth/IBluetoothHeadsetClient.aidl \
Ivan Podogov0afe1902016-12-23 11:52:21 +0000136 core/java/android/bluetooth/IBluetoothInputHost.aidl \
Hemant Guptae88fd4b2014-04-18 11:22:45 +0530137 core/java/android/bluetooth/IBluetoothHidDeviceCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000138 core/java/android/bluetooth/IBluetoothGatt.aidl \
139 core/java/android/bluetooth/IBluetoothGattCallback.aidl \
140 core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
Jakub Pawlowskia480f7f2016-08-05 06:40:31 -0700141 core/java/android/bluetooth/le/IAdvertiserCallback.aidl \
Jakub Pawlowski1b49e6e2016-10-26 13:05:30 -0700142 core/java/android/bluetooth/le/IScannerCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000143 core/java/android/content/IClipboard.aidl \
144 core/java/android/content/IContentService.aidl \
145 core/java/android/content/IIntentReceiver.aidl \
146 core/java/android/content/IIntentSender.aidl \
147 core/java/android/content/IOnPrimaryClipChangedListener.aidl \
148 core/java/android/content/IRestrictionsManager.aidl \
149 core/java/android/content/ISyncAdapter.aidl \
150 core/java/android/content/ISyncContext.aidl \
151 core/java/android/content/ISyncServiceAdapter.aidl \
152 core/java/android/content/ISyncStatusObserver.aidl \
MÃ¥rten Kongstadeabc9e92015-12-15 16:40:23 +0100153 core/java/android/content/om/IOverlayManager.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000154 core/java/android/content/pm/ILauncherApps.aidl \
155 core/java/android/content/pm/IOnAppsChangedListener.aidl \
Makoto Onuki2d895c32016-12-02 15:48:40 -0800156 core/java/android/content/pm/IOnPermissionsChangeListener.aidl \
Andreas Gampea8908752015-11-10 08:58:14 -0800157 core/java/android/content/pm/IOtaDexopt.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000158 core/java/android/content/pm/IPackageDataObserver.aidl \
159 core/java/android/content/pm/IPackageDeleteObserver.aidl \
160 core/java/android/content/pm/IPackageDeleteObserver2.aidl \
161 core/java/android/content/pm/IPackageInstallObserver.aidl \
162 core/java/android/content/pm/IPackageInstallObserver2.aidl \
163 core/java/android/content/pm/IPackageInstaller.aidl \
164 core/java/android/content/pm/IPackageInstallerCallback.aidl \
165 core/java/android/content/pm/IPackageInstallerSession.aidl \
166 core/java/android/content/pm/IPackageManager.aidl \
167 core/java/android/content/pm/IPackageMoveObserver.aidl \
168 core/java/android/content/pm/IPackageStatsObserver.aidl \
Makoto Onuki2d895c32016-12-02 15:48:40 -0800169 core/java/android/content/pm/IPinItemRequest.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800170 core/java/android/content/pm/IShortcutService.aidl \
Svet Ganovae0e03a2016-02-25 18:22:10 -0800171 core/java/android/content/pm/permission/IRuntimePermissionPresenter.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000172 core/java/android/database/IContentObserver.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800173 ../av/camera/aidl/android/hardware/ICameraService.aidl \
174 ../av/camera/aidl/android/hardware/ICameraServiceListener.aidl \
175 ../av/camera/aidl/android/hardware/ICameraServiceProxy.aidl \
176 ../av/camera/aidl/android/hardware/ICamera.aidl \
177 ../av/camera/aidl/android/hardware/ICameraClient.aidl \
178 ../av/camera/aidl/android/hardware/camera2/ICameraDeviceUser.aidl \
179 ../av/camera/aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000180 core/java/android/hardware/IConsumerIrService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000181 core/java/android/hardware/ISerialManager.aidl \
182 core/java/android/hardware/display/IDisplayManager.aidl \
183 core/java/android/hardware/display/IDisplayManagerCallback.aidl \
184 core/java/android/hardware/display/IVirtualDisplayCallback.aidl \
185 core/java/android/hardware/fingerprint/IFingerprintService.aidl \
Jorim Jaggi3a464782015-08-28 16:59:13 -0700186 core/java/android/hardware/fingerprint/IFingerprintServiceLockoutResetCallback.aidl \
Phil Weaver27fcd9c2017-01-20 15:57:24 -0800187 core/java/android/hardware/fingerprint/IFingerprintClientActiveCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000188 core/java/android/hardware/fingerprint/IFingerprintServiceReceiver.aidl \
189 core/java/android/hardware/hdmi/IHdmiControlCallback.aidl \
190 core/java/android/hardware/hdmi/IHdmiControlService.aidl \
191 core/java/android/hardware/hdmi/IHdmiDeviceEventListener.aidl \
192 core/java/android/hardware/hdmi/IHdmiHotplugEventListener.aidl \
193 core/java/android/hardware/hdmi/IHdmiInputChangeListener.aidl \
194 core/java/android/hardware/hdmi/IHdmiMhlVendorCommandListener.aidl \
195 core/java/android/hardware/hdmi/IHdmiRecordListener.aidl \
196 core/java/android/hardware/hdmi/IHdmiSystemAudioModeChangeListener.aidl \
197 core/java/android/hardware/hdmi/IHdmiVendorCommandListener.aidl \
198 core/java/android/hardware/input/IInputManager.aidl \
199 core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
Michael Wright39e5e942015-08-19 22:52:47 +0100200 core/java/android/hardware/input/ITabletModeChangedListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000201 core/java/android/hardware/location/IActivityRecognitionHardware.aidl \
destradaa6e2fe752015-06-23 17:25:53 -0700202 core/java/android/hardware/location/IActivityRecognitionHardwareClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000203 core/java/android/hardware/location/IActivityRecognitionHardwareSink.aidl \
204 core/java/android/hardware/location/IActivityRecognitionHardwareWatcher.aidl \
205 core/java/android/hardware/location/IFusedLocationHardware.aidl \
206 core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
207 core/java/android/hardware/location/IGeofenceHardware.aidl \
208 core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
209 core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
Ashutosh Joshi1d1ac542016-01-18 17:19:27 -0800210 core/java/android/hardware/location/IContextHubCallback.aidl \
211 core/java/android/hardware/location/IContextHubService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000212 core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl \
213 core/java/android/hardware/usb/IUsbManager.aidl \
Paul Jensen49e3edf2015-05-22 10:50:39 -0400214 core/java/android/net/ICaptivePortal.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000215 core/java/android/net/IConnectivityManager.aidl \
Hugo Benichieab511b2016-09-09 09:23:47 +0900216 core/java/android/net/IIpConnectivityMetrics.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000217 core/java/android/net/IEthernetManager.aidl \
218 core/java/android/net/IEthernetServiceListener.aidl \
Michal Karpinskidd9bb4f2016-10-12 14:59:26 +0100219 core/java/android/net/INetdEventCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000220 core/java/android/net/INetworkManagementEventObserver.aidl \
221 core/java/android/net/INetworkPolicyListener.aidl \
222 core/java/android/net/INetworkPolicyManager.aidl \
Jeremy Joslin13978372016-11-28 17:47:35 -0800223 core/java/android/net/INetworkRecommendationProvider.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000224 core/java/android/net/INetworkScoreCache.aidl \
225 core/java/android/net/INetworkScoreService.aidl \
226 core/java/android/net/INetworkStatsService.aidl \
227 core/java/android/net/INetworkStatsSession.aidl \
228 core/java/android/net/nsd/INsdManager.aidl \
229 core/java/android/nfc/IAppCallback.aidl \
230 core/java/android/nfc/INfcAdapter.aidl \
231 core/java/android/nfc/INfcAdapterExtras.aidl \
232 core/java/android/nfc/INfcTag.aidl \
233 core/java/android/nfc/INfcCardEmulation.aidl \
Yoshinobu Itoc52adfe2016-01-22 18:14:18 +0900234 core/java/android/nfc/INfcFCardEmulation.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000235 core/java/android/nfc/INfcUnlockHandler.aidl \
Martijn Coenend55def82016-04-14 15:19:31 +0200236 core/java/android/nfc/ITagRemovedCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000237 core/java/android/os/IBatteryPropertiesListener.aidl \
238 core/java/android/os/IBatteryPropertiesRegistrar.aidl \
239 core/java/android/os/ICancellationSignal.aidl \
Svet Ganov37e43272016-09-09 16:01:32 -0700240 core/java/android/os/IDeviceIdentifiersPolicyService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000241 core/java/android/os/IDeviceIdleController.aidl \
Polina Bondarenkof8754ac2016-02-12 20:38:23 +0100242 core/java/android/os/IHardwarePropertiesManager.aidl \
Joe Onorato1754d742016-11-21 17:51:35 -0800243 core/java/android/os/IIncidentManager.aidl \
244 core/java/android/os/IIncidentReportCompletedListener.aidl \
245 core/java/android/os/IIncidentReportStatusListener.aidl \
Yao Chenca5edbb2016-01-13 14:44:36 -0800246 core/java/android/os/IMaintenanceActivityListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000247 core/java/android/os/IMessenger.aidl \
248 core/java/android/os/INetworkActivityListener.aidl \
249 core/java/android/os/INetworkManagementService.aidl \
250 core/java/android/os/IPermissionController.aidl \
251 core/java/android/os/IProcessInfoService.aidl \
Jeff Sharkeybd91e2f2016-03-22 15:32:31 -0600252 core/java/android/os/IProgressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000253 core/java/android/os/IPowerManager.aidl \
Tao Baoe8a403d2015-12-31 07:44:55 -0800254 core/java/android/os/IRecoverySystem.aidl \
255 core/java/android/os/IRecoverySystemProgressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000256 core/java/android/os/IRemoteCallback.aidl \
257 core/java/android/os/ISchedulingPolicyService.aidl \
258 core/java/android/os/IUpdateLock.aidl \
259 core/java/android/os/IUserManager.aidl \
260 core/java/android/os/IVibratorService.aidl \
Sudheer Shanka2250d562016-11-07 15:41:02 -0800261 core/java/android/os/storage/IStorageManager.aidl \
262 core/java/android/os/storage/IStorageEventListener.aidl \
263 core/java/android/os/storage/IStorageShutdownObserver.aidl \
Sudheer Shankaf7341142016-10-18 17:15:18 -0700264 core/java/android/os/storage/IObbActionListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000265 core/java/android/security/IKeystoreService.aidl \
Janis Danisevskis8ff1e192016-06-03 11:31:55 -0700266 core/java/android/security/keymaster/IKeyAttestationApplicationIdProvider.aidl \
Felipe Leme5381aa42016-10-13 09:02:32 -0700267 core/java/android/service/autofill/IAutoFillService.aidl \
Svet Ganov7ad11282017-02-28 13:08:56 -0800268 core/java/android/service/autofill/IAutoFillServiceConnection.aidl \
Svet Ganov0f4928f2017-02-02 20:02:51 -0800269 core/java/android/service/autofill/IFillCallback.aidl \
270 core/java/android/service/autofill/ISaveCallback.aidl \
Zach Johnson42ecc9e2015-05-22 15:56:09 -0700271 core/java/android/service/carrier/ICarrierService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000272 core/java/android/service/carrier/ICarrierMessagingCallback.aidl \
273 core/java/android/service/carrier/ICarrierMessagingService.aidl \
274 core/java/android/service/gatekeeper/IGateKeeperService.aidl \
275 core/java/android/service/notification/INotificationListener.aidl \
276 core/java/android/service/notification/IStatusBarNotificationHolder.aidl \
277 core/java/android/service/notification/IConditionListener.aidl \
278 core/java/android/service/notification/IConditionProvider.aidl \
Ruben Brunke24b9a62016-02-16 21:38:24 -0800279 core/java/android/service/vr/IVrListener.aidl \
Ruben Brunkc7be3be2016-04-01 17:07:51 -0700280 core/java/android/service/vr/IVrManager.aidl \
281 core/java/android/service/vr/IVrStateCallbacks.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000282 core/java/android/print/ILayoutResultCallback.aidl \
283 core/java/android/print/IPrinterDiscoveryObserver.aidl \
284 core/java/android/print/IPrintDocumentAdapter.aidl \
285 core/java/android/print/IPrintDocumentAdapterObserver.aidl \
286 core/java/android/print/IPrintJobStateChangeListener.aidl \
Philip P. Moltmann66c96592016-02-24 11:32:43 -0800287 core/java/android/print/IPrintServicesChangeListener.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700288 core/java/android/printservice/recommendation/IRecommendationsChangeListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000289 core/java/android/print/IPrintManager.aidl \
290 core/java/android/print/IPrintSpooler.aidl \
291 core/java/android/print/IPrintSpoolerCallbacks.aidl \
292 core/java/android/print/IPrintSpoolerClient.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700293 core/java/android/printservice/recommendation/IRecommendationServiceCallbacks.aidl \
294 core/java/android/printservice/recommendation/IRecommendationService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000295 core/java/android/print/IWriteResultCallback.aidl \
296 core/java/android/printservice/IPrintService.aidl \
297 core/java/android/printservice/IPrintServiceClient.aidl \
Eugene Susla6ed45d82017-01-22 13:52:51 -0800298 core/java/android/companion/ICompanionDeviceManager.aidl \
Svet Ganovda0acdf2017-02-15 10:28:51 -0800299 core/java/android/companion/ICompanionDeviceDiscoveryService.aidl \
300 core/java/android/companion/ICompanionDeviceDiscoveryServiceCallback.aidl \
301 core/java/android/companion/IFindDeviceCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000302 core/java/android/service/dreams/IDreamManager.aidl \
303 core/java/android/service/dreams/IDreamService.aidl \
304 core/java/android/service/persistentdata/IPersistentDataBlockService.aidl \
305 core/java/android/service/trust/ITrustAgentService.aidl \
306 core/java/android/service/trust/ITrustAgentServiceCallback.aidl \
307 core/java/android/service/voice/IVoiceInteractionService.aidl \
308 core/java/android/service/voice/IVoiceInteractionSession.aidl \
309 core/java/android/service/voice/IVoiceInteractionSessionService.aidl \
310 core/java/android/service/wallpaper/IWallpaperConnection.aidl \
311 core/java/android/service/wallpaper/IWallpaperEngine.aidl \
312 core/java/android/service/wallpaper/IWallpaperService.aidl \
313 core/java/android/service/chooser/IChooserTargetService.aidl \
314 core/java/android/service/chooser/IChooserTargetResult.aidl \
Abodunrinwa Tokic565e1d2016-12-14 15:38:56 +0000315 core/java/android/text/ITextClassificationService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000316 core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
317 core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
318 core/java/android/view/accessibility/IAccessibilityManager.aidl \
319 core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
Svet Ganov782043c2017-02-11 00:52:02 +0000320 core/java/android/view/autofill/IAutoFillManager.aidl \
321 core/java/android/view/autofill/IAutoFillManagerClient.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000322 core/java/android/view/IApplicationToken.aidl \
Jorim Jaggi2f7d2922015-10-29 13:08:29 +0100323 core/java/android/view/IAppTransitionAnimationSpecsFuture.aidl \
Jorim Jaggia6c934e2015-12-21 13:22:31 +0100324 core/java/android/view/IDockedStackListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000325 core/java/android/view/IGraphicsStats.aidl \
John Reckdf1742e2017-01-19 15:56:21 -0800326 core/java/android/view/IGraphicsStatsCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000327 core/java/android/view/IInputFilter.aidl \
328 core/java/android/view/IInputFilterHost.aidl \
329 core/java/android/view/IOnKeyguardExitResult.aidl \
Winson Chung655332c2016-10-31 13:14:28 -0700330 core/java/android/view/IPinnedStackController.aidl \
331 core/java/android/view/IPinnedStackListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000332 core/java/android/view/IRotationWatcher.aidl \
333 core/java/android/view/IWindow.aidl \
334 core/java/android/view/IWindowFocusObserver.aidl \
335 core/java/android/view/IWindowId.aidl \
336 core/java/android/view/IWindowManager.aidl \
337 core/java/android/view/IWindowSession.aidl \
338 core/java/android/view/IWindowSessionCallback.aidl \
339 core/java/android/webkit/IWebViewUpdateService.aidl \
340 core/java/android/speech/IRecognitionListener.aidl \
341 core/java/android/speech/IRecognitionService.aidl \
342 core/java/android/speech/tts/ITextToSpeechCallback.aidl \
343 core/java/android/speech/tts/ITextToSpeechService.aidl \
344 core/java/com/android/internal/app/IAppOpsCallback.aidl \
345 core/java/com/android/internal/app/IAppOpsService.aidl \
346 core/java/com/android/internal/app/IAssistScreenshotReceiver.aidl \
347 core/java/com/android/internal/app/IBatteryStats.aidl \
Arunesh Mishraa772e5f2016-01-25 10:33:11 -0800348 core/java/com/android/internal/app/ISoundTriggerService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000349 core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl \
Annie Chinecb9f3e2016-06-27 16:01:52 -0700350 core/java/com/android/internal/app/IVoiceInteractionSessionListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000351 core/java/com/android/internal/app/IVoiceInteractionSessionShowCallback.aidl \
352 core/java/com/android/internal/app/IVoiceInteractor.aidl \
353 core/java/com/android/internal/app/IVoiceInteractorCallback.aidl \
354 core/java/com/android/internal/app/IVoiceInteractorRequest.aidl \
355 core/java/com/android/internal/app/IMediaContainerService.aidl \
Joe Onorato4eb64fd2016-03-21 15:30:09 -0700356 core/java/com/android/internal/app/procstats/IProcessStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000357 core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
358 core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
359 core/java/com/android/internal/backup/IBackupTransport.aidl \
360 core/java/com/android/internal/backup/IObbBackupService.aidl \
Clara Bayarri04d72ab2017-01-10 09:31:51 -0800361 core/java/com/android/internal/font/IFontManager.aidl \
Yohei Yukawa25e08132016-06-22 16:31:41 -0700362 core/java/com/android/internal/inputmethod/IInputContentUriToken.aidl \
Jorim Jaggi4cfdcf52015-07-09 12:13:59 -0700363 core/java/com/android/internal/policy/IKeyguardDrawnCallback.aidl \
Jorim Jaggi241ae102016-11-02 21:57:33 -0700364 core/java/com/android/internal/policy/IKeyguardDismissCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000365 core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
366 core/java/com/android/internal/policy/IKeyguardService.aidl \
367 core/java/com/android/internal/policy/IKeyguardStateCallback.aidl \
Muyuan Li94ce94e2016-02-24 16:20:54 -0800368 core/java/com/android/internal/policy/IShortcutService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000369 core/java/com/android/internal/os/IDropBoxManagerService.aidl \
370 core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl \
371 core/java/com/android/internal/os/IResultReceiver.aidl \
Dianne Hackborn354736e2016-08-22 17:00:05 -0700372 core/java/com/android/internal/os/IShellCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000373 core/java/com/android/internal/statusbar/IStatusBar.aidl \
374 core/java/com/android/internal/statusbar/IStatusBarService.aidl \
375 core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
Yohei Yukawa7fa65ee2017-02-08 11:54:05 -0800376 core/java/com/android/internal/textservice/ISpellCheckerServiceCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000377 core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
378 core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
379 core/java/com/android/internal/textservice/ITextServicesManager.aidl \
380 core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
Vladislav Kaznacheev377c3282016-04-20 14:22:23 -0700381 core/java/com/android/internal/view/IDragAndDropPermissions.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000382 core/java/com/android/internal/view/IInputContext.aidl \
383 core/java/com/android/internal/view/IInputContextCallback.aidl \
384 core/java/com/android/internal/view/IInputMethod.aidl \
385 core/java/com/android/internal/view/IInputMethodClient.aidl \
386 core/java/com/android/internal/view/IInputMethodManager.aidl \
387 core/java/com/android/internal/view/IInputMethodSession.aidl \
388 core/java/com/android/internal/view/IInputSessionCallback.aidl \
Jorim Jaggie8fde5d2016-06-30 23:41:37 -0700389 core/java/com/android/internal/widget/ICheckCredentialProgressCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000390 core/java/com/android/internal/widget/ILockSettings.aidl \
391 core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
392 core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
393 keystore/java/android/security/IKeyChainAliasCallback.aidl \
394 keystore/java/android/security/IKeyChainService.aidl \
Wyatt Rileycf879db2017-01-12 13:57:38 -0800395 location/java/android/location/IBatchedLocationCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000396 location/java/android/location/ICountryDetector.aidl \
397 location/java/android/location/ICountryListener.aidl \
398 location/java/android/location/IFusedProvider.aidl \
399 location/java/android/location/IGeocodeProvider.aidl \
400 location/java/android/location/IGeofenceProvider.aidl \
Lifu Tang30f95a72016-01-07 23:20:38 -0800401 location/java/android/location/IGnssStatusListener.aidl \
402 location/java/android/location/IGnssStatusProvider.aidl \
Lifu Tang818aa2c2016-02-01 01:52:00 -0800403 location/java/android/location/IGnssMeasurementsListener.aidl \
404 location/java/android/location/IGnssNavigationMessageListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000405 location/java/android/location/ILocationListener.aidl \
406 location/java/android/location/ILocationManager.aidl \
407 location/java/android/location/IFusedGeofenceHardware.aidl \
408 location/java/android/location/IGpsGeofenceHardware.aidl \
409 location/java/android/location/INetInitiatedListener.aidl \
410 location/java/com/android/internal/location/ILocationProvider.aidl \
411 media/java/android/media/IAudioService.aidl \
Chong Zhangc1e701d2017-02-27 16:06:46 -0800412 ../av/drm/libmediadrm/aidl/android/media/ICas.aidl \
413 ../av/drm/libmediadrm/aidl/android/media/ICasListener.aidl \
414 ../av/drm/libmediadrm/aidl/android/media/IDescrambler.aidl \
415 ../av/drm/libmediadrm/aidl/android/media/IMediaCasService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000416 media/java/android/media/IAudioFocusDispatcher.aidl \
417 media/java/android/media/IAudioRoutesObserver.aidl \
418 media/java/android/media/IMediaHTTPConnection.aidl \
419 media/java/android/media/IMediaHTTPService.aidl \
Dongwon Kang2034a4c2015-12-14 21:57:34 +0900420 media/java/android/media/IMediaResourceMonitor.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000421 media/java/android/media/IMediaRouterClient.aidl \
422 media/java/android/media/IMediaRouterService.aidl \
423 media/java/android/media/IMediaScannerListener.aidl \
424 media/java/android/media/IMediaScannerService.aidl \
Jean-Michel Trivi292a6a42016-12-01 08:32:15 -0800425 media/java/android/media/IPlaybackConfigDispatcher.aidl \
426 media/java/android/media/IPlayer.aidl \
Jean-Michel Trivid3c71f02015-12-07 11:59:31 -0800427 media/java/android/media/IRecordingConfigDispatcher.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000428 media/java/android/media/IRemoteDisplayCallback.aidl \
429 media/java/android/media/IRemoteDisplayProvider.aidl \
430 media/java/android/media/IRemoteVolumeController.aidl \
431 media/java/android/media/IRemoteVolumeObserver.aidl \
432 media/java/android/media/IRingtonePlayer.aidl \
433 media/java/android/media/IVolumeController.aidl \
434 media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl \
Phil Burk7cd06c02015-09-03 14:37:03 -0700435 media/java/android/media/midi/IBluetoothMidiService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000436 media/java/android/media/midi/IMidiDeviceListener.aidl \
Mike Lockwoode0a6ca62015-06-04 13:43:56 -0700437 media/java/android/media/midi/IMidiDeviceOpenCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000438 media/java/android/media/midi/IMidiDeviceServer.aidl \
439 media/java/android/media/midi/IMidiManager.aidl \
440 media/java/android/media/projection/IMediaProjection.aidl \
441 media/java/android/media/projection/IMediaProjectionCallback.aidl \
442 media/java/android/media/projection/IMediaProjectionManager.aidl \
443 media/java/android/media/projection/IMediaProjectionWatcherCallback.aidl \
444 media/java/android/media/session/IActiveSessionsListener.aidl \
Jaewan Kimbd16f452017-02-03 16:21:38 +0900445 media/java/android/media/session/ICallback.aidl \
Jaewan Kim6e2b01c2017-01-19 16:33:14 -0800446 media/java/android/media/session/IOnMediaKeyListener.aidl \
Jaewan Kim50269362016-12-23 11:22:02 +0900447 media/java/android/media/session/IOnVolumeKeyLongPressListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000448 media/java/android/media/session/ISession.aidl \
449 media/java/android/media/session/ISessionCallback.aidl \
Jaewan Kim50269362016-12-23 11:22:02 +0900450 media/java/android/media/session/ISessionController.aidl \
451 media/java/android/media/session/ISessionControllerCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000452 media/java/android/media/session/ISessionManager.aidl \
453 media/java/android/media/tv/ITvInputClient.aidl \
454 media/java/android/media/tv/ITvInputHardware.aidl \
455 media/java/android/media/tv/ITvInputHardwareCallback.aidl \
456 media/java/android/media/tv/ITvInputManager.aidl \
457 media/java/android/media/tv/ITvInputManagerCallback.aidl \
458 media/java/android/media/tv/ITvInputService.aidl \
459 media/java/android/media/tv/ITvInputServiceCallback.aidl \
460 media/java/android/media/tv/ITvInputSession.aidl \
461 media/java/android/media/tv/ITvInputSessionCallback.aidl \
Sujith Ramakrishnanb5b86c12016-01-28 16:53:16 -0800462 media/java/android/media/tv/ITvRemoteProvider.aidl \
463 media/java/android/media/tv/ITvRemoteServiceInput.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000464 media/java/android/service/media/IMediaBrowserService.aidl \
465 media/java/android/service/media/IMediaBrowserServiceCallbacks.aidl \
Sailesh Nepal1bef3392016-01-24 18:21:53 -0800466 telecomm/java/com/android/internal/telecom/ICallScreeningAdapter.aidl \
467 telecomm/java/com/android/internal/telecom/ICallScreeningService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000468 telecomm/java/com/android/internal/telecom/IVideoCallback.aidl \
469 telecomm/java/com/android/internal/telecom/IVideoProvider.aidl \
470 telecomm/java/com/android/internal/telecom/IConnectionService.aidl \
471 telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl \
472 telecomm/java/com/android/internal/telecom/IInCallAdapter.aidl \
473 telecomm/java/com/android/internal/telecom/IInCallService.aidl \
474 telecomm/java/com/android/internal/telecom/ITelecomService.aidl \
475 telecomm/java/com/android/internal/telecom/RemoteServiceCallback.aidl \
476 telephony/java/com/android/ims/internal/IImsCallSession.aidl \
477 telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl \
478 telephony/java/com/android/ims/internal/IImsConfig.aidl \
479 telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl \
480 telephony/java/com/android/ims/internal/IImsEcbm.aidl \
481 telephony/java/com/android/ims/internal/IImsEcbmListener.aidl \
Anju Mathapatif604fc32016-03-10 12:57:21 -0800482 telephony/java/com/android/ims/internal/IImsExternalCallStateListener.aidl \
Brad Ebinger15708a32017-01-25 14:26:41 -0800483 telephony/java/com/android/ims/internal/IImsFeatureStatusCallback.aidl \
Anju Mathapatif604fc32016-03-10 12:57:21 -0800484 telephony/java/com/android/ims/internal/IImsMultiEndpoint.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000485 telephony/java/com/android/ims/internal/IImsService.aidl \
Brad Ebinger024aaf22017-01-23 15:17:50 -0800486 telephony/java/com/android/ims/internal/IImsServiceController.aidl \
487 telephony/java/com/android/ims/internal/IImsServiceFeatureListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000488 telephony/java/com/android/ims/internal/IImsStreamMediaSession.aidl \
489 telephony/java/com/android/ims/internal/IImsUt.aidl \
490 telephony/java/com/android/ims/internal/IImsUtListener.aidl \
491 telephony/java/com/android/ims/internal/IImsVideoCallCallback.aidl \
492 telephony/java/com/android/ims/internal/IImsVideoCallProvider.aidl \
Pavel Zhamaitsiakcfedd202016-03-18 16:09:50 -0700493 telephony/java/com/android/ims/internal/uce/uceservice/IUceService.aidl \
494 telephony/java/com/android/ims/internal/uce/uceservice/IUceListener.aidl \
495 telephony/java/com/android/ims/internal/uce/options/IOptionsService.aidl \
496 telephony/java/com/android/ims/internal/uce/options/IOptionsListener.aidl \
497 telephony/java/com/android/ims/internal/uce/presence/IPresenceService.aidl \
498 telephony/java/com/android/ims/internal/uce/presence/IPresenceListener.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000499 telephony/java/com/android/ims/ImsConfigListener.aidl \
500 telephony/java/com/android/internal/telephony/ICarrierConfigLoader.aidl \
501 telephony/java/com/android/internal/telephony/IMms.aidl \
502 telephony/java/com/android/internal/telephony/IOnSubscriptionsChangedListener.aidl \
503 telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
504 telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
505 telephony/java/com/android/internal/telephony/ISms.aidl \
506 telephony/java/com/android/internal/telephony/ISub.aidl \
507 telephony/java/com/android/internal/telephony/ITelephony.aidl \
508 telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
509 telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
510 wifi/java/android/net/wifi/IWifiManager.aidl \
Etan Cohen04133272016-10-26 11:22:06 -0700511 wifi/java/android/net/wifi/aware/IWifiAwareEventCallback.aidl \
512 wifi/java/android/net/wifi/aware/IWifiAwareManager.aidl \
513 wifi/java/android/net/wifi/aware/IWifiAwareDiscoverySessionCallback.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000514 wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
515 wifi/java/android/net/wifi/IWifiScanner.aidl \
516 wifi/java/android/net/wifi/IRttManager.aidl \
517 packages/services/PacProcessor/com/android/net/IProxyService.aidl \
518 packages/services/Proxy/com/android/net/IProxyCallback.aidl \
519 packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500520 core/java/android/service/quicksettings/IQSService.aidl \
521 core/java/android/service/quicksettings/IQSTileService.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000522
Tao Baobdc77362016-01-19 15:52:28 -0800523# The following are native binders that need to go with the native component
524# at system/update_engine/binder_bindings/. Use relative path to refer to them.
525LOCAL_SRC_FILES += \
526 ../../system/update_engine/binder_bindings/android/os/IUpdateEngine.aidl \
527 ../../system/update_engine/binder_bindings/android/os/IUpdateEngineCallback.aidl \
528
Felipe Lemefa26a0e2016-10-28 09:32:03 -0700529LOCAL_SRC_FILES += \
Erik Kline4e37b702016-07-05 11:34:21 +0900530 ../../system/netd/server/binder/android/net/INetd.aidl \
Jeff Sharkey740f5232016-12-09 14:31:26 -0700531 ../native/cmds/installd/binder/android/os/IInstalld.aidl \
Erik Kline4e37b702016-07-05 11:34:21 +0900532
Tao Baobdc77362016-01-19 15:52:28 -0800533LOCAL_AIDL_INCLUDES += system/update_engine/binder_bindings
534
Bart Searsa8cc0582015-05-07 03:23:20 +0000535# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
Samuel Tan239951a2016-01-05 17:29:43 -0800536LOCAL_AIDL_INCLUDES += \
537 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) \
538 frameworks/native/aidl/binder
Bart Searsa8cc0582015-05-07 03:23:20 +0000539
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800540LOCAL_AIDL_INCLUDES += \
541 frameworks/av/camera/aidl \
Chong Zhangc1e701d2017-02-27 16:06:46 -0800542 frameworks/av/drm/libmediadrm/aidl \
Robin Lee10606942016-03-30 18:52:40 +0100543 frameworks/native/aidl/gui \
544 system/netd/server/binder
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800545
Bart Searsa8cc0582015-05-07 03:23:20 +0000546LOCAL_INTERMEDIATE_SOURCES := \
547 $(framework_res_source_path)/android/R.java \
548 $(framework_res_source_path)/android/Manifest.java \
549 $(framework_res_source_path)/com/android/internal/R.java
550
Colin Crossc558dd92016-08-31 18:01:06 -0700551# Make sure that R.java and Manifest.java are built before we build
552# the source for this library.
553framework_res_R_stamp := \
554 $(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
555LOCAL_ADDITIONAL_DEPENDENCIES := $(framework_res_R_stamp)
556
Bart Searsa8cc0582015-05-07 03:23:20 +0000557LOCAL_NO_STANDARD_LIBRARIES := true
Paul Duffin23951792016-11-30 13:29:39 +0000558LOCAL_JAVA_LIBRARIES := core-oj core-libart conscrypt okhttp bouncycastle ext
Andreas Huberfb7accf2016-10-24 12:36:23 -0700559
560LOCAL_STATIC_JAVA_LIBRARIES := \
561 framework-protos \
562 android.hardware.thermal@1.0-java-constants \
Sandeep Patila21c4272016-11-10 14:02:45 -0800563 android.hardware.health@1.0-java-constants \
Badhri Jagan Sridharan823287d2017-01-23 17:13:15 -0800564 android.hardware.usb@1.0-java-constants \
Bart Searsa8cc0582015-05-07 03:23:20 +0000565
Joe Onorato1754d742016-11-21 17:51:35 -0800566LOCAL_PROTOC_OPTIMIZE_TYPE := stream
567LOCAL_PROTOC_FLAGS := \
568 -Iexternal/protobuf/src
569
Bart Searsa8cc0582015-05-07 03:23:20 +0000570LOCAL_MODULE := framework
571
Colin Crossbe2d3302016-12-21 16:48:32 -0800572LOCAL_DX_FLAGS := --core-library --multi-dex
Bart Searsa8cc0582015-05-07 03:23:20 +0000573LOCAL_JACK_FLAGS := --multi-dex native
574
575LOCAL_RMTYPEDEFS := true
576
Allen Hair0e4f0142016-06-27 17:01:50 -0700577ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true)
578LOCAL_EMMA_INSTRUMENT := true
579endif
580
Bart Searsa8cc0582015-05-07 03:23:20 +0000581include $(BUILD_JAVA_LIBRARY)
Colin Crossc558dd92016-08-31 18:01:06 -0700582
Bart Searsa8cc0582015-05-07 03:23:20 +0000583framework_module := $(LOCAL_INSTALLED_MODULE)
Bart Searsa8cc0582015-05-07 03:23:20 +0000584$(framework_module): | $(dir $(framework_module))framework-res.apk
585
586framework_built := $(call java-lib-deps,framework)
587
588# Copy AIDL files to be preprocessed and included in the SDK,
589# specified relative to the root of the build tree.
590# ============================================================
591include $(CLEAR_VARS)
592
593aidl_files := \
594 frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
595 frameworks/base/telephony/java/android/telephony/SubscriptionInfo.aidl \
596 frameworks/base/telephony/java/android/telephony/CellInfo.aidl \
597 frameworks/base/telephony/java/android/telephony/SignalStrength.aidl \
598 frameworks/base/telephony/java/android/telephony/IccOpenLogicalChannelResponse.aidl \
599 frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.aidl \
Prerepa Viswanadham5c728992015-05-28 00:12:37 -0700600 frameworks/base/telephony/java/android/telephony/ModemActivityInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000601 frameworks/base/location/java/android/location/Location.aidl \
602 frameworks/base/location/java/android/location/Address.aidl \
603 frameworks/base/location/java/android/location/Criteria.aidl \
604 frameworks/base/media/java/android/media/MediaMetadata.aidl \
605 frameworks/base/media/java/android/media/MediaDescription.aidl \
606 frameworks/base/media/java/android/media/Rating.aidl \
607 frameworks/base/media/java/android/media/AudioAttributes.aidl \
608 frameworks/base/media/java/android/media/AudioFocusInfo.aidl \
609 frameworks/base/media/java/android/media/session/PlaybackState.aidl \
610 frameworks/base/media/java/android/media/session/MediaSession.aidl \
611 frameworks/base/media/java/android/media/tv/TvInputInfo.aidl \
612 frameworks/base/media/java/android/media/tv/TvTrackInfo.aidl \
613 frameworks/base/media/java/android/media/browse/MediaBrowser.aidl \
614 frameworks/base/wifi/java/android/net/wifi/ScanSettings.aidl \
Etan Cohen04133272016-10-26 11:22:06 -0700615 frameworks/base/wifi/java/android/net/wifi/aware/ConfigRequest.aidl \
616 frameworks/base/wifi/java/android/net/wifi/aware/PublishConfig.aidl \
617 frameworks/base/wifi/java/android/net/wifi/aware/SubscribeConfig.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000618 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pInfo.aidl \
619 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDeviceList.aidl \
620 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pConfig.aidl \
621 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDevice.aidl \
622 frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pGroup.aidl \
623 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceRequest.aidl \
624 frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceInfo.aidl \
625 frameworks/base/wifi/java/android/net/wifi/WpsInfo.aidl \
626 frameworks/base/wifi/java/android/net/wifi/ScanResult.aidl \
Vinit Deshpandea772f0c2016-01-27 19:05:24 -0800627 frameworks/base/wifi/java/android/net/wifi/PasspointManagementObjectDefinition.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000628 frameworks/base/wifi/java/android/net/wifi/WifiEnterpriseConfig.aidl \
629 frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.aidl \
630 frameworks/base/wifi/java/android/net/wifi/WifiInfo.aidl \
631 frameworks/base/graphics/java/android/graphics/Region.aidl \
632 frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
633 frameworks/base/graphics/java/android/graphics/Point.aidl \
634 frameworks/base/graphics/java/android/graphics/PointF.aidl \
635 frameworks/base/graphics/java/android/graphics/RectF.aidl \
636 frameworks/base/graphics/java/android/graphics/Rect.aidl \
Philip P. Moltmannbb9f6862015-12-01 14:44:24 -0800637 frameworks/base/graphics/java/android/graphics/drawable/Icon.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000638 frameworks/base/core/java/android/accounts/AuthenticatorDescription.aidl \
639 frameworks/base/core/java/android/accounts/Account.aidl \
Michal Karpinskif77ee4f2016-10-12 16:40:06 +0100640 frameworks/base/core/java/android/app/admin/ConnectEvent.aidl \
641 frameworks/base/core/java/android/app/admin/DnsEvent.aidl \
642 frameworks/base/core/java/android/app/admin/NetworkEvent.aidl \
Rubin Xud86d58c2015-05-05 16:57:37 +0100643 frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \
Andrew Scull5f9e6f32016-08-02 14:22:17 +0100644 frameworks/base/core/java/android/app/admin/PasswordMetrics.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000645 frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \
646 frameworks/base/core/java/android/print/PageRange.aidl \
647 frameworks/base/core/java/android/print/PrintAttributes.aidl \
648 frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
649 frameworks/base/core/java/android/print/PrinterId.aidl \
650 frameworks/base/core/java/android/print/PrintJobInfo.aidl \
651 frameworks/base/core/java/android/print/PrinterInfo.aidl \
652 frameworks/base/core/java/android/print/PrintJobId.aidl \
Philip P. Moltmann9dcb86a2016-03-14 14:31:12 -0700653 frameworks/base/core/java/android/printservice/recommendation/RecommendationInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000654 frameworks/base/core/java/android/hardware/usb/UsbDevice.aidl \
655 frameworks/base/core/java/android/hardware/usb/UsbInterface.aidl \
656 frameworks/base/core/java/android/hardware/usb/UsbEndpoint.aidl \
657 frameworks/base/core/java/android/hardware/usb/UsbAccessory.aidl \
658 frameworks/base/core/java/android/os/Messenger.aidl \
659 frameworks/base/core/java/android/os/PatternMatcher.aidl \
660 frameworks/base/core/java/android/os/Message.aidl \
661 frameworks/base/core/java/android/os/UserHandle.aidl \
662 frameworks/base/core/java/android/os/ParcelUuid.aidl \
663 frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
664 frameworks/base/core/java/android/os/ResultReceiver.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000665 frameworks/base/core/java/android/os/WorkSource.aidl \
666 frameworks/base/core/java/android/os/DropBoxManager.aidl \
667 frameworks/base/core/java/android/os/Bundle.aidl \
Sudheer Shankacc6418f2016-10-13 12:03:44 -0700668 frameworks/base/core/java/android/os/Debug.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -0700669 frameworks/base/core/java/android/os/StrictMode.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000670 frameworks/base/core/java/android/accessibilityservice/AccessibilityServiceInfo.aidl \
671 frameworks/base/core/java/android/net/Network.aidl \
672 frameworks/base/core/java/android/net/RouteInfo.aidl \
673 frameworks/base/core/java/android/net/NetworkInfo.aidl \
674 frameworks/base/core/java/android/net/IpPrefix.aidl \
675 frameworks/base/core/java/android/net/NetworkCapabilities.aidl \
676 frameworks/base/core/java/android/net/DhcpInfo.aidl \
677 frameworks/base/core/java/android/net/ProxyInfo.aidl \
678 frameworks/base/core/java/android/net/LinkProperties.aidl \
679 frameworks/base/core/java/android/net/Uri.aidl \
680 frameworks/base/core/java/android/net/NetworkRequest.aidl \
681 frameworks/base/core/java/android/net/LinkAddress.aidl \
Svet Ganov53a441c2016-04-19 19:38:00 -0700682 frameworks/base/core/java/android/util/MemoryIntArray.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700683 frameworks/base/core/java/android/view/Display.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000684 frameworks/base/core/java/android/view/InputDevice.aidl \
685 frameworks/base/core/java/android/view/InputEvent.aidl \
Eino-Ville Talvala5d2d7782015-12-17 16:50:50 -0800686 frameworks/native/aidl/gui/android/view/Surface.aidl \
P.Y. Laligandb3b9eb32015-05-11 15:02:07 -0700687 frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000688 frameworks/base/core/java/android/view/inputmethod/InputMethodSubtype.aidl \
689 frameworks/base/core/java/android/view/inputmethod/CursorAnchorInfo.aidl \
690 frameworks/base/core/java/android/view/inputmethod/CompletionInfo.aidl \
691 frameworks/base/core/java/android/view/inputmethod/ExtractedText.aidl \
692 frameworks/base/core/java/android/view/inputmethod/EditorInfo.aidl \
693 frameworks/base/core/java/android/view/inputmethod/InputMethodInfo.aidl \
694 frameworks/base/core/java/android/view/inputmethod/CorrectionInfo.aidl \
695 frameworks/base/core/java/android/view/inputmethod/InputBinding.aidl \
696 frameworks/base/core/java/android/view/inputmethod/ExtractedTextRequest.aidl \
697 frameworks/base/core/java/android/view/DragEvent.aidl \
698 frameworks/base/core/java/android/view/KeyEvent.aidl \
699 frameworks/base/core/java/android/view/WindowManager.aidl \
700 frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
701 frameworks/base/core/java/android/view/MotionEvent.aidl \
702 frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
703 frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
704 frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
705 frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
706 frameworks/base/core/java/android/view/textservice/SpellCheckerSubtype.aidl \
707 frameworks/base/core/java/android/view/textservice/TextInfo.aidl \
708 frameworks/base/core/java/android/view/textservice/SpellCheckerInfo.aidl \
709 frameworks/base/core/java/android/view/textservice/SentenceSuggestionsInfo.aidl \
710 frameworks/base/core/java/android/view/textservice/SuggestionsInfo.aidl \
711 frameworks/base/core/java/android/service/carrier/CarrierIdentifier.aidl \
712 frameworks/base/core/java/android/service/carrier/MessagePdu.aidl \
Julia Reynolds22f02b32016-12-01 15:05:13 -0500713 frameworks/base/core/java/android/service/notification/Adjustment.aidl \
714 frameworks/base/core/java/android/service/notification/Condition.aidl \
715 frameworks/base/core/java/android/service/notification/SnoozeCriterion.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000716 frameworks/base/core/java/android/service/notification/StatusBarNotification.aidl \
717 frameworks/base/core/java/android/service/chooser/ChooserTarget.aidl \
718 frameworks/base/core/java/android/speech/tts/Voice.aidl \
Daniel Nishicf9d19e2017-01-23 14:33:42 -0800719 frameworks/base/core/java/android/app/usage/CacheQuotaHint.aidl \
Jeff Sharkey8dedad32017-01-09 18:21:21 -0700720 frameworks/base/core/java/android/app/usage/ExternalStorageStats.aidl \
Jeff Sharkeye8cece92017-01-04 11:33:33 -0700721 frameworks/base/core/java/android/app/usage/StorageStats.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000722 frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000723 frameworks/base/core/java/android/app/Notification.aidl \
724 frameworks/base/core/java/android/app/NotificationManager.aidl \
725 frameworks/base/core/java/android/app/WallpaperInfo.aidl \
726 frameworks/base/core/java/android/app/AppOpsManager.aidl \
727 frameworks/base/core/java/android/app/ActivityManager.aidl \
728 frameworks/base/core/java/android/app/PendingIntent.aidl \
729 frameworks/base/core/java/android/app/AlarmManager.aidl \
730 frameworks/base/core/java/android/app/SearchableInfo.aidl \
731 frameworks/base/core/java/android/app/VoiceInteractor.aidl \
Dianne Hackborn69c6adc2015-06-02 10:52:59 -0700732 frameworks/base/core/java/android/app/assist/AssistContent.aidl \
733 frameworks/base/core/java/android/app/assist/AssistStructure.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000734 frameworks/base/core/java/android/app/job/JobParameters.aidl \
735 frameworks/base/core/java/android/app/job/JobInfo.aidl \
736 frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
737 frameworks/base/core/java/android/content/ClipDescription.aidl \
738 frameworks/base/core/java/android/content/IntentFilter.aidl \
739 frameworks/base/core/java/android/content/Intent.aidl \
740 frameworks/base/core/java/android/content/res/Configuration.aidl \
741 frameworks/base/core/java/android/content/res/ObbInfo.aidl \
742 frameworks/base/core/java/android/content/RestrictionEntry.aidl \
743 frameworks/base/core/java/android/content/ClipData.aidl \
744 frameworks/base/core/java/android/content/SyncAdapterType.aidl \
745 frameworks/base/core/java/android/content/SyncRequest.aidl \
746 frameworks/base/core/java/android/content/PeriodicSync.aidl \
747 frameworks/base/core/java/android/content/SyncResult.aidl \
748 frameworks/base/core/java/android/content/pm/FeatureInfo.aidl \
749 frameworks/base/core/java/android/content/pm/InstrumentationInfo.aidl \
750 frameworks/base/core/java/android/content/pm/PackageInstaller.aidl \
751 frameworks/base/core/java/android/content/pm/ServiceInfo.aidl \
752 frameworks/base/core/java/android/content/pm/Signature.aidl \
753 frameworks/base/core/java/android/content/pm/ApplicationInfo.aidl \
754 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
755 frameworks/base/core/java/android/content/pm/ActivityInfo.aidl \
Sudheer Shankafc46e9b2016-10-21 17:55:27 -0700756 frameworks/base/core/java/android/content/pm/ConfigurationInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000757 frameworks/base/core/java/android/content/pm/PackageInfo.aidl \
758 frameworks/base/core/java/android/content/pm/ResolveInfo.aidl \
759 frameworks/base/core/java/android/content/pm/ProviderInfo.aidl \
760 frameworks/base/core/java/android/content/pm/PackageStats.aidl \
761 frameworks/base/core/java/android/content/pm/PermissionGroupInfo.aidl \
Makoto Onuki6f7362d92016-03-04 13:39:41 -0800762 frameworks/base/core/java/android/content/pm/ShortcutInfo.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000763 frameworks/base/core/java/android/content/pm/LabeledIntent.aidl \
764 frameworks/base/core/java/android/content/ComponentName.aidl \
765 frameworks/base/core/java/android/content/SyncStats.aidl \
766 frameworks/base/core/java/android/content/ContentValues.aidl \
767 frameworks/base/core/java/android/content/SyncInfo.aidl \
768 frameworks/base/core/java/android/content/IntentSender.aidl \
769 frameworks/base/core/java/android/widget/RemoteViews.aidl \
770 frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
771 frameworks/base/core/java/android/nfc/Tag.aidl \
772 frameworks/base/core/java/android/nfc/NdefRecord.aidl \
773 frameworks/base/core/java/android/nfc/NdefMessage.aidl \
774 frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
775 frameworks/base/core/java/android/bluetooth/le/AdvertiseSettings.aidl \
776 frameworks/base/core/java/android/bluetooth/le/ScanSettings.aidl \
777 frameworks/base/core/java/android/bluetooth/le/AdvertiseData.aidl \
778 frameworks/base/core/java/android/bluetooth/le/ScanFilter.aidl \
779 frameworks/base/core/java/android/bluetooth/le/ScanResult.aidl \
780 frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
781 frameworks/base/core/java/android/database/CursorWindow.aidl \
Jason Monkbbadff82015-11-06 15:47:26 -0500782 frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
Samuel Tan239951a2016-01-05 17:29:43 -0800783 frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
Robin Lee10606942016-03-30 18:52:40 +0100784 system/netd/server/binder/android/net/UidRange.aidl \
Robert Greenwalt37409c52016-06-02 13:43:27 -0700785 frameworks/base/telephony/java/android/telephony/PcoData.aidl \
Bart Searsa8cc0582015-05-07 03:23:20 +0000786
787gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
788$(gen): PRIVATE_SRC_FILES := $(aidl_files)
789ALL_SDK_FILES += $(gen)
790$(gen): $(aidl_files) | $(AIDL)
791 @echo Aidl Preprocess: $@
792 $(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
793
794# the documentation
795# ============================================================
796
797# TODO: deal with com/google/android/googleapps
798packages_to_document := \
799 android \
800 javax/microedition/khronos \
801 org/apache/http/conn \
802 org/apache/http/params
803
804
805# Search through the base framework dirs for these packages.
806# The result will be relative to frameworks/base.
807fwbase_dirs_to_document := \
Paul Duffin23951792016-11-30 13:29:39 +0000808 legacy-test/src \
Bart Searsa8cc0582015-05-07 03:23:20 +0000809 test-runner/src \
810 $(patsubst $(LOCAL_PATH)/%,%, \
811 $(wildcard \
812 $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
813 $(addprefix $(dir)/, $(packages_to_document)) \
814 ) \
815 ) \
816 )
817
818# include definition of libcore_to_document
819include libcore/Docs.mk
820
Bart Searsa8cc0582015-05-07 03:23:20 +0000821non_base_dirs := \
822 ../opt/telephony/src/java/android/provider \
823 ../opt/telephony/src/java/android/telephony \
824 ../opt/telephony/src/java/android/telephony/gsm \
825 ../opt/net/voip/src/java/android/net/rtp \
826 ../opt/net/voip/src/java/android/net/sip
827
828# These are relative to frameworks/base
829dirs_to_check_apis := \
830 $(fwbase_dirs_to_document) \
831 $(non_base_dirs)
832
George Mountf6be9932015-12-03 07:39:55 -0800833###########################################################
834## Return all directories that have a 'NO_DOCS' file in
835## them, appending a '%' to them to form a pattern to
836## filter out files under those directories.
837## $(1): A list of base directories to look at.
838###########################################################
839define find-no-docs-pattern
840$(addsuffix %, $(dir $(foreach dir, $(1), $(shell cd $(LOCAL_PATH); find $(dir) -name NO_DOCS))))
841endef
842
Bart Searsa8cc0582015-05-07 03:23:20 +0000843# These are relative to frameworks/base
844# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
845dirs_to_document := \
846 $(dirs_to_check_apis) \
George Mounta340f072015-07-13 16:45:34 -0700847 $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
848 $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS)) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000849
George Mountf6be9932015-12-03 07:39:55 -0800850patterns_to_not_document := \
851 $(call find-no-docs-pattern, $(dirs_to_document))
852
Bart Searsa8cc0582015-05-07 03:23:20 +0000853# These are relative to frameworks/base
854html_dirs := \
855 $(FRAMEWORKS_BASE_SUBDIRS) \
856 $(non_base_dirs)
857
858# Common sources for doc check and api check
859common_src_files := \
860 $(call find-other-html-files, $(html_dirs)) \
Paul Duffincd7c34d2016-12-12 16:35:36 +0000861 $(addprefix ../../, $(libcore_to_document))
Bart Searsa8cc0582015-05-07 03:23:20 +0000862
863# These are relative to frameworks/base
864framework_docs_LOCAL_SRC_FILES := \
George Mountf6be9932015-12-03 07:39:55 -0800865 $(filter-out $(patterns_to_not_document), $(call find-other-java-files, $(dirs_to_document))) \
Bart Searsa8cc0582015-05-07 03:23:20 +0000866 $(common_src_files)
867
868# These are relative to frameworks/base
869framework_docs_LOCAL_API_CHECK_SRC_FILES := \
870 $(call find-other-java-files, $(dirs_to_check_apis)) \
871 $(common_src_files)
872
873# This is used by ide.mk as the list of source files that are
874# always included.
875INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
876
877framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
878 $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
879
880framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
881 $(framework_res_source_path)/android/R.java \
882 $(framework_res_source_path)/android/Manifest.java \
883 $(framework_res_source_path)/com/android/internal/R.java
884
885framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +0000886 core-oj \
Bart Searsa8cc0582015-05-07 03:23:20 +0000887 core-libart \
888 conscrypt \
889 bouncycastle \
890 okhttp \
891 ext \
Rayhaan Jaufeerally2e47a6e2015-08-03 13:54:28 +0100892 icu4j \
Bart Searsa8cc0582015-05-07 03:23:20 +0000893 framework \
894 telephony-common \
895 voip-common
896
897framework_docs_LOCAL_JAVA_LIBRARIES := \
898 $(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
899 $(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
900
901framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
902framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
903# The since flag (-since N.xml API_LEVEL) is used to add API Level information
904# to the reference documentation. Must be in order of oldest to newest.
905#
906# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
907# not be referenced in the documentation.
908framework_docs_LOCAL_DROIDDOC_OPTIONS := \
909 -knowntags ./frameworks/base/docs/knowntags.txt \
Narayan Kamath2c4f2842015-07-27 14:02:11 +0100910 -knowntags ./libcore/known_oj_tags.txt \
Bart Searsa8cc0582015-05-07 03:23:20 +0000911 -hidePackage com.android.org.conscrypt \
912 -since $(SRC_API_DIR)/1.xml 1 \
913 -since $(SRC_API_DIR)/2.xml 2 \
914 -since $(SRC_API_DIR)/3.xml 3 \
915 -since $(SRC_API_DIR)/4.xml 4 \
916 -since $(SRC_API_DIR)/5.xml 5 \
917 -since $(SRC_API_DIR)/6.xml 6 \
918 -since $(SRC_API_DIR)/7.xml 7 \
919 -since $(SRC_API_DIR)/8.xml 8 \
920 -since $(SRC_API_DIR)/9.xml 9 \
921 -since $(SRC_API_DIR)/10.xml 10 \
922 -since $(SRC_API_DIR)/11.xml 11 \
923 -since $(SRC_API_DIR)/12.xml 12 \
924 -since $(SRC_API_DIR)/13.xml 13 \
925 -since $(SRC_API_DIR)/14.txt 14 \
926 -since $(SRC_API_DIR)/15.txt 15 \
927 -since $(SRC_API_DIR)/16.txt 16 \
928 -since $(SRC_API_DIR)/17.txt 17 \
929 -since $(SRC_API_DIR)/18.txt 18 \
930 -since $(SRC_API_DIR)/19.txt 19 \
931 -since $(SRC_API_DIR)/20.txt 20 \
932 -since $(SRC_API_DIR)/21.txt 21 \
933 -since $(SRC_API_DIR)/22.txt 22 \
Joe Fernandez1827e322015-08-12 19:45:22 -0700934 -since $(SRC_API_DIR)/23.txt 23 \
Dirk Dougherty5f60f7c2016-06-14 16:26:28 -0700935 -since $(SRC_API_DIR)/24.txt 24 \
Dirk Dougherty3376f582016-10-14 10:27:08 -0700936 -since $(SRC_API_DIR)/25.txt 25 \
Scott Main05b99262017-02-23 14:51:06 -0800937 -since ./frameworks/base/api/current.txt O \
Bart Searsa8cc0582015-05-07 03:23:20 +0000938 -werror -hide 111 -hide 113 \
939 -overview $(LOCAL_PATH)/core/java/overview.html
940
941framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
942 $(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
943
944framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
945 $(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
946 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
947 $(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
948
949framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
Narayan Kamathc21739a2015-07-14 13:39:23 +0100950 frameworks/base/docs/knowntags.txt \
951 libcore/Docs.mk
Bart Searsa8cc0582015-05-07 03:23:20 +0000952
953samples_dir := development/samples/browseable
954
955# Whitelist of valid groups, used for default TOC grouping. Each sample must
956# belong to one (and only one) group. Assign samples to groups by setting
957# a sample.group var to one of these groups in the sample's _index.jd.
958sample_groups := -samplegroup Admin \
959 -samplegroup Background \
960 -samplegroup Connectivity \
961 -samplegroup Content \
962 -samplegroup Input \
963 -samplegroup Media \
964 -samplegroup Notification \
965 -samplegroup RenderScript \
966 -samplegroup Security \
967 -samplegroup Sensors \
Trevor Johns4cbe3592015-05-27 14:50:51 -0700968 -samplegroup System \
Bart Searsa8cc0582015-05-07 03:23:20 +0000969 -samplegroup Testing \
970 -samplegroup UI \
971 -samplegroup Views \
972 -samplegroup Wearable
973
974## SDK version identifiers used in the published docs
975 # major[.minor] version for current SDK. (full releases only)
smain@google.comdde8deb2016-08-29 18:36:50 -0700976framework_docs_SDK_VERSION:=7.0
Bart Searsa8cc0582015-05-07 03:23:20 +0000977 # release version (ie "Release x") (full releases only)
978framework_docs_SDK_REL_ID:=1
979
980framework_docs_LOCAL_DROIDDOC_OPTIONS += \
smain@google.com7aca8be2016-03-10 14:13:30 -0800981 -hdf sdk.codename N \
smain@google.com39426fd2016-07-13 13:58:06 -0700982 -hdf sdk.preview.version 5 \
Bart Searsa8cc0582015-05-07 03:23:20 +0000983 -hdf sdk.version $(framework_docs_SDK_VERSION) \
984 -hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
smain@google.comdde8deb2016-08-29 18:36:50 -0700985 -hdf sdk.preview 0
Bart Searsa8cc0582015-05-07 03:23:20 +0000986
987# ==== the api stubs and current.xml ===========================
988include $(CLEAR_VARS)
989
990LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
991LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
992LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
993LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
994LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
995LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
996LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
997LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
998
999LOCAL_MODULE := api-stubs
1000
Ying Wang0f92a2e2015-07-16 14:20:22 -07001001LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
1002
Bart Searsa8cc0582015-05-07 03:23:20 +00001003LOCAL_DROIDDOC_OPTIONS:=\
1004 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001005 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001006 -api $(INTERNAL_PLATFORM_API_FILE) \
1007 -removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
1008 -nodocs
1009
Scott Main15b85172017-02-21 14:30:58 -08001010LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001011
1012LOCAL_UNINSTALLABLE_MODULE := true
1013
1014include $(BUILD_DROIDDOC)
1015
1016# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1017$(full_target): $(framework_built) $(gen)
1018$(INTERNAL_PLATFORM_API_FILE): $(full_target)
1019$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
1020
1021# ==== the system api stubs ===================================
1022include $(CLEAR_VARS)
1023
1024LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
1025LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1026LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
1027LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1028LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1029LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1030LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
1031LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1032
1033LOCAL_MODULE := system-api-stubs
1034
Ying Wang0f92a2e2015-07-16 14:20:22 -07001035LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
1036
Bart Searsa8cc0582015-05-07 03:23:20 +00001037LOCAL_DROIDDOC_OPTIONS:=\
1038 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001039 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001040 -showAnnotation android.annotation.SystemApi \
1041 -api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
1042 -removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
1043 -nodocs
1044
Scott Main15b85172017-02-21 14:30:58 -08001045LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001046
1047LOCAL_UNINSTALLABLE_MODULE := true
1048
1049include $(BUILD_DROIDDOC)
1050
1051# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1052$(full_target): $(framework_built) $(gen)
1053$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
1054$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
1055
Michael Wrightb2b2c0e2015-11-06 15:21:13 +00001056# ==== the test api stubs ===================================
1057include $(CLEAR_VARS)
1058
1059LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
1060LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1061LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
1062LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1063LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1064LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1065LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
1066LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1067
1068LOCAL_MODULE := test-api-stubs
1069
1070LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
1071
1072LOCAL_DROIDDOC_OPTIONS:=\
1073 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001074 -referenceonly \
Michael Wrightb2b2c0e2015-11-06 15:21:13 +00001075 -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
1076 -showAnnotation android.annotation.TestApi \
1077 -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
1078 -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
1079 -nodocs
1080
Scott Main15b85172017-02-21 14:30:58 -08001081LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Michael Wrightb2b2c0e2015-11-06 15:21:13 +00001082
1083LOCAL_UNINSTALLABLE_MODULE := true
1084
1085include $(BUILD_DROIDDOC)
1086
1087# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1088$(full_target): $(framework_built) $(gen)
1089$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
1090$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
1091
Bart Searsa8cc0582015-05-07 03:23:20 +00001092# ==== check javadoc comments but don't generate docs ========
1093include $(CLEAR_VARS)
1094
1095LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1096LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1097LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1098LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1099LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1100LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1101LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1102LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1103
1104LOCAL_MODULE := doc-comment-check
1105
1106LOCAL_DROIDDOC_OPTIONS:=\
1107 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001108 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001109 -parsecomments
1110
Scott Main15b85172017-02-21 14:30:58 -08001111LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001112
1113LOCAL_UNINSTALLABLE_MODULE := true
1114
1115include $(BUILD_DROIDDOC)
1116
1117# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1118$(full_target): $(framework_built) $(gen)
1119
1120# Run this for checkbuild
1121checkbuild: doc-comment-check-docs
1122# Check comment when you are updating the API
1123update-api: doc-comment-check-docs
1124
1125# ==== static html in the sdk ==================================
1126include $(CLEAR_VARS)
1127
1128LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1129LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1130LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1131LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1132LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1133LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1134LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1135LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1136
1137LOCAL_MODULE := offline-sdk
1138
1139LOCAL_DROIDDOC_OPTIONS:=\
1140 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1141 -offlinemode \
1142 -title "Android SDK" \
1143 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
smain@google.com00de8c52016-03-07 18:38:08 -08001144 -sdkvalues $(OUT_DOCS) \
smain@google.com8562ab52016-06-14 17:11:57 -07001145 -hdf android.whichdoc offline
1146
Scott Main15b85172017-02-21 14:30:58 -08001147LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com8562ab52016-06-14 17:11:57 -07001148
1149include $(BUILD_DROIDDOC)
1150
1151static_doc_index_redirect := $(out_dir)/index.html
1152$(static_doc_index_redirect): \
1153 $(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
1154 $(hide) mkdir -p $(dir $@)
1155 $(hide) $(ACP) $< $@
1156
1157$(full_target): $(static_doc_index_redirect)
1158$(full_target): $(framework_built)
1159
1160
1161# ==== static html in the sdk ==================================
1162include $(CLEAR_VARS)
1163
1164LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1165LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1166LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1167LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1168LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1169LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1170LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1171LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1172
1173LOCAL_MODULE := offline-sdk-referenceonly
1174
1175LOCAL_DROIDDOC_OPTIONS:=\
1176 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1177 -offlinemode \
1178 -title "Android SDK" \
1179 -proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
1180 -sdkvalues $(OUT_DOCS) \
smain@google.com00de8c52016-03-07 18:38:08 -08001181 -hdf android.whichdoc offline \
Romain Guy199e5a92016-11-28 16:42:13 -08001182 -referenceonly \
1183 -resourcesdir $(LOCAL_PATH)/docs/html/reference/images/ \
1184 -resourcesoutdir reference/android/images/
smain@google.com00de8c52016-03-07 18:38:08 -08001185
Scott Main15b85172017-02-21 14:30:58 -08001186LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
smain@google.com00de8c52016-03-07 18:38:08 -08001187
1188include $(BUILD_DROIDDOC)
1189
1190static_doc_index_redirect := $(out_dir)/index.html
smain@google.com151833a2016-08-31 08:42:09 -07001191$(static_doc_index_redirect): $(LOCAL_PATH)/docs/docs-documentation-redirect.html
Dan Willemsen98ff0b72016-03-23 00:42:44 -07001192 $(copy-file-to-target)
smain@google.com00de8c52016-03-07 18:38:08 -08001193
smain@google.com2f2365d2016-09-21 14:05:50 -07001194static_doc_properties := $(out_dir)/source.properties
1195$(static_doc_properties): \
1196 $(LOCAL_PATH)/docs/source.properties | $(ACP)
1197 $(hide) mkdir -p $(dir $@)
1198 $(hide) $(ACP) $< $@
1199
smain@google.com00de8c52016-03-07 18:38:08 -08001200$(full_target): $(static_doc_index_redirect)
smain@google.com2f2365d2016-09-21 14:05:50 -07001201$(full_target): $(static_doc_properties)
smain@google.com00de8c52016-03-07 18:38:08 -08001202$(full_target): $(framework_built)
1203
smain@google.com7aca8be2016-03-10 14:13:30 -08001204
Bart Searsa8cc0582015-05-07 03:23:20 +00001205# ==== docs for the web (on the androiddevdocs app engine server) =======================
1206include $(CLEAR_VARS)
1207
1208LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1209LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1210LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1211LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1212LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1213LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1214LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1215LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1216LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1217LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1218
1219LOCAL_MODULE := online-sdk
1220
1221LOCAL_DROIDDOC_OPTIONS:= \
1222 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1223 -toroot / \
1224 -hdf android.whichdoc online \
1225 $(sample_groups) \
1226 -hdf android.hasSamples true \
1227 -samplesdir $(samples_dir)
1228
Scott Main15b85172017-02-21 14:30:58 -08001229LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001230
1231include $(BUILD_DROIDDOC)
1232
1233# ==== docs for the web (on the androiddevdocs app engine server) =======================
1234# TODO: Fix the System API docs build.
1235ifneq ($(filter online-system-api-sdk-docs,$(MAKECMDGOALS)),)
1236include $(CLEAR_VARS)
1237
1238LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1239LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1240LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1241LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1242LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1243LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1244LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1245LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1246LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1247LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1248
1249LOCAL_MODULE := online-system-api-sdk
1250
1251LOCAL_DROIDDOC_OPTIONS:= \
1252 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001253 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001254 -showAnnotation android.annotation.SystemApi \
1255 -title "Android SDK - Including system APIs." \
1256 -toroot / \
Gina Dimino98ad8882016-05-31 17:25:48 -07001257 -hide 101 \
1258 -hide 104 \
1259 -hide 108 \
Bart Searsa8cc0582015-05-07 03:23:20 +00001260 -hdf android.whichdoc online \
1261 $(sample_groups) \
1262 -hdf android.hasSamples true \
1263 -samplesdir $(samples_dir)
1264
Scott Main15b85172017-02-21 14:30:58 -08001265LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001266# Don't build by default
1267LOCAL_UNINSTALLABLE_MODULE := true
1268
1269include $(BUILD_DROIDDOC)
1270endif # online-system-api-sdk-docs in make command line.
1271
1272# ==== docs for the web (on the devsite app engine server) =======================
1273include $(CLEAR_VARS)
1274LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1275LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1276LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1277LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1278LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1279LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1280LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1281LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1282LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1283# specify a second html input dir and an output path relative to OUT_DIR)
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001284LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +00001285
1286LOCAL_MODULE := ds
1287
1288LOCAL_DROIDDOC_OPTIONS:= \
1289 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
Bart Searsa8cc0582015-05-07 03:23:20 +00001290 -toroot / \
1291 -hdf android.whichdoc online \
Dirk Doughertyb042ab12016-06-14 16:26:28 -07001292 -devsite \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001293 $(sample_groups) \
Dirk Dougherty3852c1f2016-04-10 02:05:09 -07001294 -hdf android.hasSamples true \
1295 -samplesdir $(samples_dir)
Bart Searsa8cc0582015-05-07 03:23:20 +00001296
Scott Main15b85172017-02-21 14:30:58 -08001297LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001298
1299include $(BUILD_DROIDDOC)
1300
Dirk Doughertyb042ab12016-06-14 16:26:28 -07001301# ==== docs for the web (on the devsite app engine server) =======================
1302include $(CLEAR_VARS)
1303LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1304LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1305LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1306LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1307LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1308LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1309LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1310LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1311LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1312# specify a second html input dir and an output path relative to OUT_DIR)
1313LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1314
1315LOCAL_MODULE := ds-static
1316
1317LOCAL_DROIDDOC_OPTIONS:= \
1318 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1319 -hdf android.whichdoc online \
1320 -staticonly \
1321 -toroot / \
1322 -devsite \
1323 -ignoreJdLinks
1324
Scott Main15b85172017-02-21 14:30:58 -08001325LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Doughertyb042ab12016-06-14 16:26:28 -07001326
1327include $(BUILD_DROIDDOC)
1328
Dirk Dougherty7d47b552016-09-13 16:44:25 -07001329# ==== generates full navtree for resolving @links in ds postprocessing ====
1330include $(CLEAR_VARS)
1331
1332LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1333LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1334LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1335LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1336LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1337LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1338LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1339LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1340
1341LOCAL_MODULE := ds-ref-navtree
1342
1343LOCAL_DROIDDOC_OPTIONS:= \
1344 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1345 -hdf android.whichdoc online \
1346 -toroot / \
1347 -atLinksNavtree \
1348 -navtreeonly
1349
Scott Main15b85172017-02-21 14:30:58 -08001350LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Dirk Dougherty7d47b552016-09-13 16:44:25 -07001351
1352include $(BUILD_DROIDDOC)
1353
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001354# ==== site updates for docs (on the androiddevdocs app engine server) =======================
Bart Searsa8cc0582015-05-07 03:23:20 +00001355include $(CLEAR_VARS)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001356
Bart Searsa8cc0582015-05-07 03:23:20 +00001357LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1358LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1359LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1360LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1361LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1362LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001363LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
Bart Searsa8cc0582015-05-07 03:23:20 +00001364LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1365LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001366LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
Bart Searsa8cc0582015-05-07 03:23:20 +00001367
Dirk Dougherty31ae1c512015-11-07 13:18:02 -08001368LOCAL_MODULE := online-sdk-dev
Bart Searsa8cc0582015-05-07 03:23:20 +00001369
1370LOCAL_DROIDDOC_OPTIONS:= \
1371 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1372 -toroot / \
1373 -hdf android.whichdoc online \
1374 $(sample_groups) \
1375 -hdf android.hasSamples true \
1376 -samplesdir $(samples_dir)
1377
Scott Main15b85172017-02-21 14:30:58 -08001378LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001379
1380include $(BUILD_DROIDDOC)
1381
Bart Searsa8cc0582015-05-07 03:23:20 +00001382# ==== docs that have all of the stuff that's @hidden =======================
1383include $(CLEAR_VARS)
1384
1385LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1386LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1387LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1388LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1389LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1390LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1391LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1392LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1393
1394LOCAL_MODULE := hidden
1395LOCAL_DROIDDOC_OPTIONS:=\
1396 $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
smain@google.com534bfe12016-09-01 19:52:17 -07001397 -referenceonly \
Bart Searsa8cc0582015-05-07 03:23:20 +00001398 -title "Android SDK - Including hidden APIs."
1399# -hidden
1400
Scott Main15b85172017-02-21 14:30:58 -08001401LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=external/doclava/res/assets/templates-sdk
Bart Searsa8cc0582015-05-07 03:23:20 +00001402
1403include $(BUILD_DROIDDOC)
1404
1405# Build ext.jar
1406# ============================================================
1407
1408ext_dirs := \
1409 ../../external/nist-sip/java \
1410 ../../external/tagsoup/src \
1411
1412ext_src_files := $(call all-java-files-under,$(ext_dirs))
1413
1414# ==== the library =========================================
1415include $(CLEAR_VARS)
1416
1417LOCAL_SRC_FILES := $(ext_src_files)
1418
1419LOCAL_NO_STANDARD_LIBRARIES := true
Piotr Jastrzebskicfa292e2015-02-17 16:58:52 +00001420LOCAL_JAVA_LIBRARIES := core-oj core-libart
Bart Searsa8cc0582015-05-07 03:23:20 +00001421LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber-platform
1422LOCAL_MODULE_TAGS := optional
1423LOCAL_MODULE := ext
1424
Colin Crossbe2d3302016-12-21 16:48:32 -08001425LOCAL_DX_FLAGS := --core-library
1426
Jorim Jaggi7e29dea2016-02-01 16:22:43 -08001427ifneq ($(INCREMENTAL_BUILDS),)
1428 LOCAL_PROGUARD_ENABLED := disabled
1429 LOCAL_JACK_ENABLED := incremental
1430endif
1431
Bart Searsa8cc0582015-05-07 03:23:20 +00001432include $(BUILD_JAVA_LIBRARY)
1433
John Reckdf1742e2017-01-19 15:56:21 -08001434# ==== c++ proto device library ==============================
1435include $(CLEAR_VARS)
1436LOCAL_MODULE := libplatformprotos
1437# b/34740546, work around clang-tidy segmentation fault.
1438LOCAL_TIDY_CHECKS := -modernize*
1439LOCAL_PROTOC_OPTIMIZE_TYPE := lite
1440LOCAL_PROTOC_FLAGS := \
1441 --include_source_info \
1442 -Iexternal/protobuf/src
1443LOCAL_SRC_FILES := \
1444 $(call all-proto-files-under, core/proto) \
1445 $(call all-proto-files-under, libs/incident/proto)
1446LOCAL_C_INCLUDES := \
1447 $(call generated-sources-dir-for,STATIC_LIBRARIES,libplatformprotos,)/proto
1448LOCAL_EXPORT_C_INCLUDES := \
1449 $(call generated-sources-dir-for,STATIC_LIBRARIES,libplatformprotos,)/proto
1450include $(BUILD_STATIC_LIBRARY)
1451
Joe Onorato1754d742016-11-21 17:51:35 -08001452# ==== c++ proto host library ==============================
1453include $(CLEAR_VARS)
1454LOCAL_MODULE := libplatformprotos
Chih-Hung Hsiehfca7aac2017-01-26 18:47:14 -08001455# b/34740546, work around clang-tidy segmentation fault.
1456LOCAL_TIDY_CHECKS := -modernize*
Joe Onorato1754d742016-11-21 17:51:35 -08001457LOCAL_PROTOC_OPTIMIZE_TYPE := full
1458LOCAL_PROTOC_FLAGS := \
1459 --include_source_info \
1460 -Iexternal/protobuf/src
1461LOCAL_SRC_FILES := \
1462 $(call all-proto-files-under, core/proto) \
1463 $(call all-proto-files-under, libs/incident/proto)
1464LOCAL_C_INCLUDES := \
1465 $(call generated-sources-dir-for,STATIC_LIBRARIES,libplatformprotos,)/proto
1466LOCAL_EXPORT_C_INCLUDES := \
1467 $(call generated-sources-dir-for,STATIC_LIBRARIES,libplatformprotos,)/proto
1468include $(BUILD_HOST_SHARED_LIBRARY)
1469
1470
1471# ==== java proto host library ==============================
1472include $(CLEAR_VARS)
1473LOCAL_MODULE := platformprotos
1474LOCAL_PROTOC_OPTIMIZE_TYPE := full
1475LOCAL_PROTOC_FLAGS := \
1476 -Iexternal/protobuf/src
1477LOCAL_SOURCE_FILES_ALL_GENERATED := true
1478LOCAL_SRC_FILES := \
1479 $(call all-proto-files-under, core/proto) \
1480 $(call all-proto-files-under, libs/incident/proto)
1481include $(BUILD_HOST_JAVA_LIBRARY)
1482
Bart Searsa8cc0582015-05-07 03:23:20 +00001483
1484# Include subdirectory makefiles
1485# ============================================================
1486
1487# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
1488# team really wants is to build the stuff defined by this makefile.
1489ifeq (,$(ONE_SHOT_MAKEFILE))
1490include $(call first-makefiles-under,$(LOCAL_PATH))
1491endif
1492
1493endif # ANDROID_BUILD_EMBEDDED