blob: d974b7e4e4f72609638eece4572a3574f032404f [file] [log] [blame]
Dan Albert2a8d9c22016-09-23 15:55:49 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Colin Cross5f4dcf62017-11-16 00:15:28 -080015// Build the master framework library.
16
17// READ ME: ########################################################
18//
19// When updating this list of aidl files, consider if that aidl is
20// part of the SDK API. If it is, also add it to the list in Android.mk
21// that is preprocessed and distributed with the SDK. This list should
22// not contain any aidl files for parcelables, but the one below should
23// if you intend for 3rd parties to be able to send those objects
24// across process boundaries.
25//
26// READ ME: ########################################################
27
28java_library {
29 name: "framework",
Colin Crossa12c0f52018-06-27 11:00:11 -070030 installable: true,
Colin Cross5f4dcf62017-11-16 00:15:28 -080031
32 srcs: [
33 // From build/make/core/pathmap.mk FRAMEWORK_BASE_SUBDIRS
34 "core/java/**/*.java",
35 "graphics/java/**/*.java",
36 "location/java/**/*.java",
37 "lowpan/java/**/*.java",
38 "media/java/**/*.java",
39 "media/mca/effect/java/**/*.java",
40 "media/mca/filterfw/java/**/*.java",
41 "media/mca/filterpacks/java/**/*.java",
42 "drm/java/**/*.java",
43 "opengl/java/**/*.java",
44 "sax/java/**/*.java",
45 "telecomm/java/**/*.java",
46 "telephony/java/**/*.java",
47 "wifi/java/**/*.java",
48 "keystore/java/**/*.java",
49 "rs/java/**/*.java",
50
51 ":framework-javastream-protos",
52
53 "core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl",
54 "core/java/android/accessibilityservice/IAccessibilityServiceClient.aidl",
55 "core/java/android/accounts/IAccountManager.aidl",
56 "core/java/android/accounts/IAccountManagerResponse.aidl",
57 "core/java/android/accounts/IAccountAuthenticator.aidl",
58 "core/java/android/accounts/IAccountAuthenticatorResponse.aidl",
59 "core/java/android/app/IActivityController.aidl",
60 "core/java/android/app/IActivityManager.aidl",
61 "core/java/android/app/IActivityPendingResult.aidl",
62 "core/java/android/app/IAlarmCompleteListener.aidl",
63 "core/java/android/app/IAlarmListener.aidl",
64 "core/java/android/app/IAlarmManager.aidl",
65 "core/java/android/app/IAppTask.aidl",
66 "core/java/android/app/IApplicationThread.aidl",
67 "core/java/android/app/ITaskStackListener.aidl",
68 "core/java/android/app/IBackupAgent.aidl",
69 "core/java/android/app/IEphemeralResolver.aidl",
70 "core/java/android/app/IInputForwarder.aidl",
71 "core/java/android/app/IInstantAppResolver.aidl",
72 "core/java/android/app/IInstrumentationWatcher.aidl",
73 "core/java/android/app/INotificationManager.aidl",
74 "core/java/android/app/IProcessObserver.aidl",
75 "core/java/android/app/ISearchManager.aidl",
76 "core/java/android/app/ISearchManagerCallback.aidl",
77 "core/java/android/app/IServiceConnection.aidl",
78 "core/java/android/app/IStopUserCallback.aidl",
79 "core/java/android/app/job/IJobCallback.aidl",
80 "core/java/android/app/job/IJobScheduler.aidl",
81 "core/java/android/app/job/IJobService.aidl",
82 "core/java/android/app/ITransientNotification.aidl",
83 "core/java/android/app/IUidObserver.aidl",
84 "core/java/android/app/IUiAutomationConnection.aidl",
85 "core/java/android/app/IUiModeManager.aidl",
86 "core/java/android/app/IUserSwitchObserver.aidl",
87 "core/java/android/app/IWallpaperManager.aidl",
88 "core/java/android/app/IWallpaperManagerCallback.aidl",
89 "core/java/android/app/admin/IDeviceAdminService.aidl",
90 "core/java/android/app/admin/IDevicePolicyManager.aidl",
91 "core/java/android/app/trust/IStrongAuthTracker.aidl",
92 "core/java/android/app/trust/ITrustManager.aidl",
93 "core/java/android/app/trust/ITrustListener.aidl",
94 "core/java/android/app/backup/IBackupManager.aidl",
95 "core/java/android/app/backup/IBackupObserver.aidl",
96 "core/java/android/app/backup/IBackupManagerMonitor.aidl",
97 "core/java/android/app/backup/IFullBackupRestoreObserver.aidl",
98 "core/java/android/app/backup/IRestoreObserver.aidl",
99 "core/java/android/app/backup/IRestoreSession.aidl",
100 "core/java/android/app/backup/ISelectBackupTransportCallback.aidl",
Neil Fullerb5579072018-05-30 14:35:24 +0100101 "core/java/android/app/timedetector/ITimeDetectorService.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800102 "core/java/android/app/timezone/ICallback.aidl",
103 "core/java/android/app/timezone/IRulesManager.aidl",
Neil Fullercccc48d2018-06-19 12:53:47 +0100104 "core/java/android/app/timezonedetector/ITimeZoneDetectorService.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800105 "core/java/android/app/usage/ICacheQuotaService.aidl",
106 "core/java/android/app/usage/IStorageStatsManager.aidl",
107 "core/java/android/app/usage/IUsageStatsManager.aidl",
108 ":libbluetooth-binder-aidl",
109 "core/java/android/content/IClipboard.aidl",
110 "core/java/android/content/IContentService.aidl",
111 "core/java/android/content/IIntentReceiver.aidl",
112 "core/java/android/content/IIntentSender.aidl",
113 "core/java/android/content/IOnPrimaryClipChangedListener.aidl",
114 "core/java/android/content/IRestrictionsManager.aidl",
115 "core/java/android/content/ISyncAdapter.aidl",
116 "core/java/android/content/ISyncContext.aidl",
117 "core/java/android/content/ISyncServiceAdapter.aidl",
118 "core/java/android/content/ISyncStatusObserver.aidl",
119 "core/java/android/content/om/IOverlayManager.aidl",
120 "core/java/android/content/pm/IDexModuleRegisterCallback.aidl",
121 "core/java/android/content/pm/ILauncherApps.aidl",
122 "core/java/android/content/pm/IOnAppsChangedListener.aidl",
123 "core/java/android/content/pm/IOnPermissionsChangeListener.aidl",
124 "core/java/android/content/pm/IOtaDexopt.aidl",
125 "core/java/android/content/pm/IPackageDataObserver.aidl",
126 "core/java/android/content/pm/IPackageDeleteObserver.aidl",
127 "core/java/android/content/pm/IPackageDeleteObserver2.aidl",
128 "core/java/android/content/pm/IPackageInstallObserver.aidl",
129 "core/java/android/content/pm/IPackageInstallObserver2.aidl",
130 "core/java/android/content/pm/IPackageInstaller.aidl",
131 "core/java/android/content/pm/IPackageInstallerCallback.aidl",
132 "core/java/android/content/pm/IPackageInstallerSession.aidl",
133 "core/java/android/content/pm/IPackageManager.aidl",
134 ":libbinder_aidl",
135 "core/java/android/content/pm/IPackageMoveObserver.aidl",
136 "core/java/android/content/pm/IPackageStatsObserver.aidl",
137 "core/java/android/content/pm/IPinItemRequest.aidl",
138 "core/java/android/content/pm/IShortcutService.aidl",
Calin Juravle1d875ad2017-11-07 18:49:43 -0800139 "core/java/android/content/pm/dex/IArtManager.aidl",
140 "core/java/android/content/pm/dex/ISnapshotRuntimeProfileCallback.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800141 "core/java/android/content/pm/permission/IRuntimePermissionPresenter.aidl",
142 "core/java/android/database/IContentObserver.aidl",
143 ":libcamera_client_aidl",
144 ":libcamera_client_framework_aidl",
145 "core/java/android/hardware/IConsumerIrService.aidl",
146 "core/java/android/hardware/ISerialManager.aidl",
147 "core/java/android/hardware/display/IDisplayManager.aidl",
148 "core/java/android/hardware/display/IDisplayManagerCallback.aidl",
149 "core/java/android/hardware/display/IVirtualDisplayCallback.aidl",
150 "core/java/android/hardware/fingerprint/IFingerprintService.aidl",
151 "core/java/android/hardware/fingerprint/IFingerprintServiceLockoutResetCallback.aidl",
152 "core/java/android/hardware/fingerprint/IFingerprintClientActiveCallback.aidl",
153 "core/java/android/hardware/fingerprint/IFingerprintServiceReceiver.aidl",
154 "core/java/android/hardware/hdmi/IHdmiControlCallback.aidl",
155 "core/java/android/hardware/hdmi/IHdmiControlService.aidl",
156 "core/java/android/hardware/hdmi/IHdmiDeviceEventListener.aidl",
157 "core/java/android/hardware/hdmi/IHdmiHotplugEventListener.aidl",
158 "core/java/android/hardware/hdmi/IHdmiInputChangeListener.aidl",
159 "core/java/android/hardware/hdmi/IHdmiMhlVendorCommandListener.aidl",
160 "core/java/android/hardware/hdmi/IHdmiRecordListener.aidl",
161 "core/java/android/hardware/hdmi/IHdmiSystemAudioModeChangeListener.aidl",
162 "core/java/android/hardware/hdmi/IHdmiVendorCommandListener.aidl",
163 "core/java/android/hardware/input/IInputManager.aidl",
164 "core/java/android/hardware/input/IInputDevicesChangedListener.aidl",
165 "core/java/android/hardware/input/ITabletModeChangedListener.aidl",
166 "core/java/android/hardware/location/IActivityRecognitionHardware.aidl",
167 "core/java/android/hardware/location/IActivityRecognitionHardwareClient.aidl",
168 "core/java/android/hardware/location/IActivityRecognitionHardwareSink.aidl",
169 "core/java/android/hardware/location/IActivityRecognitionHardwareWatcher.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800170 "core/java/android/hardware/location/IGeofenceHardware.aidl",
171 "core/java/android/hardware/location/IGeofenceHardwareCallback.aidl",
172 "core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl",
173 "core/java/android/hardware/location/IContextHubCallback.aidl",
174 "core/java/android/hardware/location/IContextHubService.aidl",
175 "core/java/android/hardware/radio/IRadioService.aidl",
176 "core/java/android/hardware/radio/ITuner.aidl",
177 "core/java/android/hardware/radio/ITunerCallback.aidl",
178 "core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl",
179 "core/java/android/hardware/usb/IUsbManager.aidl",
180 "core/java/android/net/ICaptivePortal.aidl",
181 "core/java/android/net/IConnectivityManager.aidl",
182 "core/java/android/net/IIpConnectivityMetrics.aidl",
183 "core/java/android/net/IEthernetManager.aidl",
184 "core/java/android/net/IEthernetServiceListener.aidl",
185 "core/java/android/net/INetdEventCallback.aidl",
186 "core/java/android/net/IIpSecService.aidl",
187 "core/java/android/net/INetworkManagementEventObserver.aidl",
188 "core/java/android/net/INetworkPolicyListener.aidl",
189 "core/java/android/net/INetworkPolicyManager.aidl",
190 "core/java/android/net/INetworkRecommendationProvider.aidl",
191 "core/java/android/net/INetworkScoreCache.aidl",
192 "core/java/android/net/INetworkScoreService.aidl",
193 "core/java/android/net/INetworkStatsService.aidl",
194 "core/java/android/net/INetworkStatsSession.aidl",
195 "core/java/android/net/ITetheringStatsProvider.aidl",
196 "core/java/android/net/nsd/INsdManager.aidl",
197 "core/java/android/nfc/IAppCallback.aidl",
198 "core/java/android/nfc/INfcAdapter.aidl",
199 "core/java/android/nfc/INfcAdapterExtras.aidl",
200 "core/java/android/nfc/INfcTag.aidl",
201 "core/java/android/nfc/INfcCardEmulation.aidl",
202 "core/java/android/nfc/INfcFCardEmulation.aidl",
203 "core/java/android/nfc/INfcUnlockHandler.aidl",
204 "core/java/android/nfc/INfcDta.aidl",
205 "core/java/android/nfc/ITagRemovedCallback.aidl",
Ruchi Kandoia1f94012017-12-08 15:07:03 -0800206 "core/java/android/se/omapi/ISecureElementService.aidl",
207 "core/java/android/se/omapi/ISecureElementListener.aidl",
208 "core/java/android/se/omapi/ISecureElementChannel.aidl",
209 "core/java/android/se/omapi/ISecureElementReader.aidl",
210 "core/java/android/se/omapi/ISecureElementSession.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800211 "core/java/android/os/IBatteryPropertiesListener.aidl",
212 "core/java/android/os/IBatteryPropertiesRegistrar.aidl",
213 "core/java/android/os/ICancellationSignal.aidl",
214 "core/java/android/os/IDeviceIdentifiersPolicyService.aidl",
215 "core/java/android/os/IDeviceIdleController.aidl",
216 "core/java/android/os/IHardwarePropertiesManager.aidl",
217 "core/java/android/os/IIncidentManager.aidl",
218 "core/java/android/os/IIncidentReportCompletedListener.aidl",
219 "core/java/android/os/IIncidentReportStatusListener.aidl",
220 "core/java/android/os/IMaintenanceActivityListener.aidl",
221 "core/java/android/os/IMessenger.aidl",
222 "core/java/android/os/INetworkActivityListener.aidl",
223 "core/java/android/os/INetworkManagementService.aidl",
224 "core/java/android/os/IPermissionController.aidl",
225 "core/java/android/os/IProcessInfoService.aidl",
226 "core/java/android/os/IProgressListener.aidl",
227 "core/java/android/os/IPowerManager.aidl",
228 "core/java/android/os/IRecoverySystem.aidl",
229 "core/java/android/os/IRecoverySystemProgressListener.aidl",
230 "core/java/android/os/IRemoteCallback.aidl",
231 "core/java/android/os/ISchedulingPolicyService.aidl",
232 "core/java/android/os/IThermalEventListener.aidl",
233 "core/java/android/os/IThermalService.aidl",
234 "core/java/android/os/IUpdateLock.aidl",
235 "core/java/android/os/IUserManager.aidl",
236 "core/java/android/os/IVibratorService.aidl",
237 "core/java/android/os/storage/IStorageManager.aidl",
238 "core/java/android/os/storage/IStorageEventListener.aidl",
239 "core/java/android/os/storage/IStorageShutdownObserver.aidl",
240 "core/java/android/os/storage/IObbActionListener.aidl",
241 "core/java/android/security/IKeystoreService.aidl",
242 "core/java/android/security/keymaster/IKeyAttestationApplicationIdProvider.aidl",
243 "core/java/android/service/autofill/IAutoFillService.aidl",
244 "core/java/android/service/autofill/IFillCallback.aidl",
245 "core/java/android/service/autofill/ISaveCallback.aidl",
246 "core/java/android/service/carrier/ICarrierService.aidl",
247 "core/java/android/service/carrier/ICarrierMessagingCallback.aidl",
248 "core/java/android/service/carrier/ICarrierMessagingService.aidl",
249 "core/java/android/service/euicc/IDeleteSubscriptionCallback.aidl",
250 "core/java/android/service/euicc/IDownloadSubscriptionCallback.aidl",
251 "core/java/android/service/euicc/IEraseSubscriptionsCallback.aidl",
252 "core/java/android/service/euicc/IEuiccService.aidl",
253 "core/java/android/service/euicc/IGetDefaultDownloadableSubscriptionListCallback.aidl",
254 "core/java/android/service/euicc/IGetDownloadableSubscriptionMetadataCallback.aidl",
255 "core/java/android/service/euicc/IGetEidCallback.aidl",
256 "core/java/android/service/euicc/IGetEuiccInfoCallback.aidl",
257 "core/java/android/service/euicc/IGetEuiccProfileInfoListCallback.aidl",
Qingxi Licc6ad8c2017-12-13 15:13:02 -0800258 "core/java/android/service/euicc/IGetOtaStatusCallback.aidl",
Qingxi Li8314fa72017-12-14 15:36:06 -0800259 "core/java/android/service/euicc/IOtaStatusChangedCallback.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800260 "core/java/android/service/euicc/IRetainSubscriptionsForFactoryResetCallback.aidl",
261 "core/java/android/service/euicc/ISwitchToSubscriptionCallback.aidl",
262 "core/java/android/service/euicc/IUpdateSubscriptionNicknameCallback.aidl",
263 "core/java/android/service/gatekeeper/IGateKeeperService.aidl",
264 "core/java/android/service/notification/INotificationListener.aidl",
265 "core/java/android/service/notification/IStatusBarNotificationHolder.aidl",
266 "core/java/android/service/notification/IConditionListener.aidl",
267 "core/java/android/service/notification/IConditionProvider.aidl",
268 "core/java/android/service/vr/IPersistentVrStateCallbacks.aidl",
269 "core/java/android/service/vr/IVrListener.aidl",
270 "core/java/android/service/vr/IVrManager.aidl",
271 "core/java/android/service/vr/IVrStateCallbacks.aidl",
272 "core/java/android/print/ILayoutResultCallback.aidl",
273 "core/java/android/print/IPrinterDiscoveryObserver.aidl",
274 "core/java/android/print/IPrintDocumentAdapter.aidl",
275 "core/java/android/print/IPrintDocumentAdapterObserver.aidl",
276 "core/java/android/print/IPrintJobStateChangeListener.aidl",
277 "core/java/android/print/IPrintServicesChangeListener.aidl",
278 "core/java/android/printservice/recommendation/IRecommendationsChangeListener.aidl",
279 "core/java/android/print/IPrintManager.aidl",
280 "core/java/android/print/IPrintSpooler.aidl",
281 "core/java/android/print/IPrintSpoolerCallbacks.aidl",
282 "core/java/android/print/IPrintSpoolerClient.aidl",
283 "core/java/android/printservice/recommendation/IRecommendationServiceCallbacks.aidl",
284 "core/java/android/printservice/recommendation/IRecommendationService.aidl",
285 "core/java/android/print/IWriteResultCallback.aidl",
286 "core/java/android/printservice/IPrintService.aidl",
287 "core/java/android/printservice/IPrintServiceClient.aidl",
288 "core/java/android/companion/ICompanionDeviceManager.aidl",
289 "core/java/android/companion/ICompanionDeviceDiscoveryService.aidl",
290 "core/java/android/companion/ICompanionDeviceDiscoveryServiceCallback.aidl",
291 "core/java/android/companion/IFindDeviceCallback.aidl",
292 "core/java/android/service/dreams/IDreamManager.aidl",
293 "core/java/android/service/dreams/IDreamService.aidl",
294 "core/java/android/service/oemlock/IOemLockService.aidl",
295 "core/java/android/service/persistentdata/IPersistentDataBlockService.aidl",
296 "core/java/android/service/trust/ITrustAgentService.aidl",
297 "core/java/android/service/trust/ITrustAgentServiceCallback.aidl",
298 "core/java/android/service/voice/IVoiceInteractionService.aidl",
299 "core/java/android/service/voice/IVoiceInteractionSession.aidl",
300 "core/java/android/service/voice/IVoiceInteractionSessionService.aidl",
301 "core/java/android/service/wallpaper/IWallpaperConnection.aidl",
302 "core/java/android/service/wallpaper/IWallpaperEngine.aidl",
303 "core/java/android/service/wallpaper/IWallpaperService.aidl",
304 "core/java/android/service/chooser/IChooserTargetService.aidl",
305 "core/java/android/service/chooser/IChooserTargetResult.aidl",
306 "core/java/android/service/resolver/IResolverRankerService.aidl",
307 "core/java/android/service/resolver/IResolverRankerResult.aidl",
308 "core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl",
309 "core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl",
310 "core/java/android/view/accessibility/IAccessibilityManager.aidl",
311 "core/java/android/view/accessibility/IAccessibilityManagerClient.aidl",
312 "core/java/android/view/autofill/IAutoFillManager.aidl",
313 "core/java/android/view/autofill/IAutoFillManagerClient.aidl",
314 "core/java/android/view/autofill/IAutofillWindowPresenter.aidl",
315 "core/java/android/view/IApplicationToken.aidl",
316 "core/java/android/view/IAppTransitionAnimationSpecsFuture.aidl",
317 "core/java/android/view/IDockedStackListener.aidl",
318 "core/java/android/view/IGraphicsStats.aidl",
319 "core/java/android/view/IGraphicsStatsCallback.aidl",
320 "core/java/android/view/IInputFilter.aidl",
321 "core/java/android/view/IInputFilterHost.aidl",
322 "core/java/android/view/IOnKeyguardExitResult.aidl",
323 "core/java/android/view/IPinnedStackController.aidl",
324 "core/java/android/view/IPinnedStackListener.aidl",
325 "core/java/android/view/IRotationWatcher.aidl",
326 "core/java/android/view/IWallpaperVisibilityListener.aidl",
327 "core/java/android/view/IWindow.aidl",
328 "core/java/android/view/IWindowFocusObserver.aidl",
329 "core/java/android/view/IWindowId.aidl",
330 "core/java/android/view/IWindowManager.aidl",
331 "core/java/android/view/IWindowSession.aidl",
332 "core/java/android/view/IWindowSessionCallback.aidl",
333 "core/java/android/webkit/IWebViewUpdateService.aidl",
334 "core/java/android/speech/IRecognitionListener.aidl",
335 "core/java/android/speech/IRecognitionService.aidl",
336 "core/java/android/speech/tts/ITextToSpeechCallback.aidl",
337 "core/java/android/speech/tts/ITextToSpeechService.aidl",
338 "core/java/com/android/internal/app/IAppOpsCallback.aidl",
339 "core/java/com/android/internal/app/IAppOpsService.aidl",
340 "core/java/com/android/internal/app/IAssistScreenshotReceiver.aidl",
341 "core/java/com/android/internal/app/IBatteryStats.aidl",
342 "core/java/com/android/internal/app/ISoundTriggerService.aidl",
343 "core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl",
344 "core/java/com/android/internal/app/IVoiceInteractionSessionListener.aidl",
345 "core/java/com/android/internal/app/IVoiceInteractionSessionShowCallback.aidl",
346 "core/java/com/android/internal/app/IVoiceInteractor.aidl",
347 "core/java/com/android/internal/app/IVoiceInteractorCallback.aidl",
348 "core/java/com/android/internal/app/IVoiceInteractorRequest.aidl",
349 "core/java/com/android/internal/app/IMediaContainerService.aidl",
350 "core/java/com/android/internal/app/procstats/IProcessStats.aidl",
351 "core/java/com/android/internal/appwidget/IAppWidgetService.aidl",
352 "core/java/com/android/internal/appwidget/IAppWidgetHost.aidl",
353 "core/java/com/android/internal/backup/IBackupTransport.aidl",
354 "core/java/com/android/internal/backup/IObbBackupService.aidl",
355 "core/java/com/android/internal/car/ICarServiceHelper.aidl",
356 "core/java/com/android/internal/inputmethod/IInputContentUriToken.aidl",
357 "core/java/com/android/internal/policy/IKeyguardDrawnCallback.aidl",
358 "core/java/com/android/internal/policy/IKeyguardDismissCallback.aidl",
359 "core/java/com/android/internal/policy/IKeyguardExitCallback.aidl",
360 "core/java/com/android/internal/policy/IKeyguardService.aidl",
361 "core/java/com/android/internal/policy/IKeyguardStateCallback.aidl",
362 "core/java/com/android/internal/policy/IShortcutService.aidl",
363 "core/java/com/android/internal/os/IDropBoxManagerService.aidl",
364 "core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl",
365 "core/java/com/android/internal/os/IResultReceiver.aidl",
366 "core/java/com/android/internal/os/IShellCallback.aidl",
367 "core/java/com/android/internal/statusbar/IStatusBar.aidl",
368 "core/java/com/android/internal/statusbar/IStatusBarService.aidl",
369 "core/java/com/android/internal/textservice/ISpellCheckerService.aidl",
370 "core/java/com/android/internal/textservice/ISpellCheckerServiceCallback.aidl",
371 "core/java/com/android/internal/textservice/ISpellCheckerSession.aidl",
372 "core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl",
373 "core/java/com/android/internal/textservice/ITextServicesManager.aidl",
374 "core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl",
375 "core/java/com/android/internal/view/IDragAndDropPermissions.aidl",
376 "core/java/com/android/internal/view/IInputContext.aidl",
377 "core/java/com/android/internal/view/IInputContextCallback.aidl",
378 "core/java/com/android/internal/view/IInputMethod.aidl",
379 "core/java/com/android/internal/view/IInputMethodClient.aidl",
380 "core/java/com/android/internal/view/IInputMethodManager.aidl",
381 "core/java/com/android/internal/view/IInputMethodSession.aidl",
382 "core/java/com/android/internal/view/IInputSessionCallback.aidl",
383 "core/java/com/android/internal/widget/ICheckCredentialProgressCallback.aidl",
384 "core/java/com/android/internal/widget/ILockSettings.aidl",
385 "core/java/com/android/internal/widget/IRemoteViewsFactory.aidl",
386 "core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl",
387 "keystore/java/android/security/IKeyChainAliasCallback.aidl",
388 "keystore/java/android/security/IKeyChainService.aidl",
389 "location/java/android/location/IBatchedLocationCallback.aidl",
390 "location/java/android/location/ICountryDetector.aidl",
391 "location/java/android/location/ICountryListener.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800392 "location/java/android/location/IGeocodeProvider.aidl",
393 "location/java/android/location/IGeofenceProvider.aidl",
394 "location/java/android/location/IGnssStatusListener.aidl",
395 "location/java/android/location/IGnssStatusProvider.aidl",
396 "location/java/android/location/IGnssMeasurementsListener.aidl",
397 "location/java/android/location/IGnssNavigationMessageListener.aidl",
398 "location/java/android/location/ILocationListener.aidl",
399 "location/java/android/location/ILocationManager.aidl",
400 "location/java/android/location/IFusedGeofenceHardware.aidl",
401 "location/java/android/location/IGpsGeofenceHardware.aidl",
402 "location/java/android/location/INetInitiatedListener.aidl",
403 "location/java/com/android/internal/location/ILocationProvider.aidl",
404 "media/java/android/media/IAudioService.aidl",
405 "media/java/android/media/IAudioFocusDispatcher.aidl",
406 "media/java/android/media/IAudioRoutesObserver.aidl",
407 "media/java/android/media/IMediaHTTPConnection.aidl",
408 "media/java/android/media/IMediaHTTPService.aidl",
409 "media/java/android/media/IMediaResourceMonitor.aidl",
410 "media/java/android/media/IMediaRouterClient.aidl",
411 "media/java/android/media/IMediaRouterService.aidl",
412 "media/java/android/media/IMediaScannerListener.aidl",
413 "media/java/android/media/IMediaScannerService.aidl",
414 "media/java/android/media/IPlaybackConfigDispatcher.aidl",
415 "media/java/android/media/IPlayer.aidl",
416 "media/java/android/media/IRecordingConfigDispatcher.aidl",
417 "media/java/android/media/IRemoteDisplayCallback.aidl",
418 "media/java/android/media/IRemoteDisplayProvider.aidl",
419 "media/java/android/media/IRemoteVolumeController.aidl",
420 "media/java/android/media/IRemoteVolumeObserver.aidl",
421 "media/java/android/media/IRingtonePlayer.aidl",
422 "media/java/android/media/IVolumeController.aidl",
423 "media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl",
424 "media/java/android/media/midi/IBluetoothMidiService.aidl",
425 "media/java/android/media/midi/IMidiDeviceListener.aidl",
426 "media/java/android/media/midi/IMidiDeviceOpenCallback.aidl",
427 "media/java/android/media/midi/IMidiDeviceServer.aidl",
428 "media/java/android/media/midi/IMidiManager.aidl",
429 "media/java/android/media/projection/IMediaProjection.aidl",
430 "media/java/android/media/projection/IMediaProjectionCallback.aidl",
431 "media/java/android/media/projection/IMediaProjectionManager.aidl",
432 "media/java/android/media/projection/IMediaProjectionWatcherCallback.aidl",
433 "media/java/android/media/session/IActiveSessionsListener.aidl",
434 "media/java/android/media/session/ICallback.aidl",
435 "media/java/android/media/session/IOnMediaKeyListener.aidl",
436 "media/java/android/media/session/IOnVolumeKeyLongPressListener.aidl",
437 "media/java/android/media/session/ISession.aidl",
438 "media/java/android/media/session/ISessionCallback.aidl",
439 "media/java/android/media/session/ISessionController.aidl",
440 "media/java/android/media/session/ISessionControllerCallback.aidl",
441 "media/java/android/media/session/ISessionManager.aidl",
442 "media/java/android/media/tv/ITvInputClient.aidl",
443 "media/java/android/media/tv/ITvInputHardware.aidl",
444 "media/java/android/media/tv/ITvInputHardwareCallback.aidl",
445 "media/java/android/media/tv/ITvInputManager.aidl",
446 "media/java/android/media/tv/ITvInputManagerCallback.aidl",
447 "media/java/android/media/tv/ITvInputService.aidl",
448 "media/java/android/media/tv/ITvInputServiceCallback.aidl",
449 "media/java/android/media/tv/ITvInputSession.aidl",
450 "media/java/android/media/tv/ITvInputSessionCallback.aidl",
451 "media/java/android/media/tv/ITvRemoteProvider.aidl",
452 "media/java/android/media/tv/ITvRemoteServiceInput.aidl",
453 "media/java/android/service/media/IMediaBrowserService.aidl",
454 "media/java/android/service/media/IMediaBrowserServiceCallbacks.aidl",
455 "telecomm/java/com/android/internal/telecom/ICallScreeningAdapter.aidl",
456 "telecomm/java/com/android/internal/telecom/ICallScreeningService.aidl",
457 "telecomm/java/com/android/internal/telecom/IVideoCallback.aidl",
458 "telecomm/java/com/android/internal/telecom/IVideoProvider.aidl",
459 "telecomm/java/com/android/internal/telecom/IConnectionService.aidl",
460 "telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl",
461 "telecomm/java/com/android/internal/telecom/IInCallAdapter.aidl",
462 "telecomm/java/com/android/internal/telecom/IInCallService.aidl",
463 "telecomm/java/com/android/internal/telecom/ITelecomService.aidl",
464 "telecomm/java/com/android/internal/telecom/RemoteServiceCallback.aidl",
Mohamed Abdalkader7073c072018-01-22 15:43:37 -0800465 "telephony/java/android/telephony/data/IDataService.aidl",
466 "telephony/java/android/telephony/data/IDataServiceCallback.aidl",
Brad Ebinger6ed4ee62018-01-11 10:27:43 -0800467 "telephony/java/android/telephony/ims/aidl/IImsCallSessionListener.aidl",
Brad Ebinger5b1883b2018-01-16 09:33:47 -0800468 "telephony/java/android/telephony/ims/aidl/IImsCapabilityCallback.aidl",
469 "telephony/java/android/telephony/ims/aidl/IImsConfig.aidl",
470 "telephony/java/android/telephony/ims/aidl/IImsConfigCallback.aidl",
471 "telephony/java/android/telephony/ims/aidl/IImsMmTelFeature.aidl",
472 "telephony/java/android/telephony/ims/aidl/IImsMmTelListener.aidl",
473 "telephony/java/android/telephony/ims/aidl/IImsRegistration.aidl",
474 "telephony/java/android/telephony/ims/aidl/IImsRegistrationCallback.aidl",
475 "telephony/java/android/telephony/ims/aidl/IImsRcsFeature.aidl",
476 "telephony/java/android/telephony/ims/aidl/IImsServiceController.aidl",
477 "telephony/java/android/telephony/ims/aidl/IImsServiceControllerListener.aidl",
478 "telephony/java/android/telephony/ims/aidl/IImsSmsListener.aidl",
Brad Ebinger6ed4ee62018-01-11 10:27:43 -0800479 "telephony/java/android/telephony/mbms/IMbmsDownloadSessionCallback.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800480 "telephony/java/android/telephony/mbms/IMbmsStreamingSessionCallback.aidl",
Hall Liu49d1cb42018-03-19 18:12:23 -0700481 "telephony/java/android/telephony/mbms/IDownloadStatusListener.aidl",
482 "telephony/java/android/telephony/mbms/IDownloadProgressListener.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800483 "telephony/java/android/telephony/mbms/IStreamingServiceCallback.aidl",
484 "telephony/java/android/telephony/mbms/vendor/IMbmsDownloadService.aidl",
485 "telephony/java/android/telephony/mbms/vendor/IMbmsStreamingService.aidl",
Jack Yud5f1de12017-12-21 11:00:05 -0800486 "telephony/java/android/telephony/INetworkService.aidl",
487 "telephony/java/android/telephony/INetworkServiceCallback.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800488 "telephony/java/com/android/ims/internal/IImsCallSession.aidl",
489 "telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl",
490 "telephony/java/com/android/ims/internal/IImsConfig.aidl",
491 "telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl",
492 "telephony/java/com/android/ims/internal/IImsEcbm.aidl",
493 "telephony/java/com/android/ims/internal/IImsEcbmListener.aidl",
494 "telephony/java/com/android/ims/internal/IImsExternalCallStateListener.aidl",
495 "telephony/java/com/android/ims/internal/IImsFeatureStatusCallback.aidl",
496 "telephony/java/com/android/ims/internal/IImsMMTelFeature.aidl",
497 "telephony/java/com/android/ims/internal/IImsMultiEndpoint.aidl",
498 "telephony/java/com/android/ims/internal/IImsRcsFeature.aidl",
499 "telephony/java/com/android/ims/internal/IImsService.aidl",
500 "telephony/java/com/android/ims/internal/IImsServiceController.aidl",
501 "telephony/java/com/android/ims/internal/IImsServiceFeatureCallback.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800502 "telephony/java/com/android/ims/internal/IImsStreamMediaSession.aidl",
503 "telephony/java/com/android/ims/internal/IImsUt.aidl",
504 "telephony/java/com/android/ims/internal/IImsUtListener.aidl",
505 "telephony/java/com/android/ims/internal/IImsVideoCallCallback.aidl",
506 "telephony/java/com/android/ims/internal/IImsVideoCallProvider.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800507 "telephony/java/com/android/ims/internal/uce/uceservice/IUceService.aidl",
508 "telephony/java/com/android/ims/internal/uce/uceservice/IUceListener.aidl",
509 "telephony/java/com/android/ims/internal/uce/options/IOptionsService.aidl",
510 "telephony/java/com/android/ims/internal/uce/options/IOptionsListener.aidl",
511 "telephony/java/com/android/ims/internal/uce/presence/IPresenceService.aidl",
512 "telephony/java/com/android/ims/internal/uce/presence/IPresenceListener.aidl",
513 "telephony/java/com/android/ims/ImsConfigListener.aidl",
514 "telephony/java/com/android/internal/telephony/IApnSourceService.aidl",
515 "telephony/java/com/android/internal/telephony/ICarrierConfigLoader.aidl",
516 "telephony/java/com/android/internal/telephony/IMms.aidl",
517 "telephony/java/com/android/internal/telephony/IOnSubscriptionsChangedListener.aidl",
518 "telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl",
519 "telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl",
520 "telephony/java/com/android/internal/telephony/ISms.aidl",
521 "telephony/java/com/android/internal/telephony/ISub.aidl",
522 "telephony/java/com/android/internal/telephony/ITelephony.aidl",
523 "telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl",
524 "telephony/java/com/android/internal/telephony/IWapPushManager.aidl",
Holly Jiuyu Sunfb1c7842017-12-21 18:44:59 -0800525 "telephony/java/com/android/internal/telephony/euicc/IAuthenticateServerCallback.aidl",
526 "telephony/java/com/android/internal/telephony/euicc/ICancelSessionCallback.aidl",
Holly Jiuyu Sunbbc85802017-12-21 18:44:59 -0800527 "telephony/java/com/android/internal/telephony/euicc/IDeleteProfileCallback.aidl",
528 "telephony/java/com/android/internal/telephony/euicc/IDisableProfileCallback.aidl",
Holly Jiuyu Sun3d6b53c2017-12-21 18:44:59 -0800529 "telephony/java/com/android/internal/telephony/euicc/IEuiccCardController.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800530 "telephony/java/com/android/internal/telephony/euicc/IEuiccController.aidl",
Holly Jiuyu Sun3d6b53c2017-12-21 18:44:59 -0800531 "telephony/java/com/android/internal/telephony/euicc/IGetAllProfilesCallback.aidl",
Holly Jiuyu Sunbbc85802017-12-21 18:44:59 -0800532 "telephony/java/com/android/internal/telephony/euicc/IGetDefaultSmdpAddressCallback.aidl",
Holly Jiuyu Sunfb1c7842017-12-21 18:44:59 -0800533 "telephony/java/com/android/internal/telephony/euicc/IGetEuiccChallengeCallback.aidl",
534 "telephony/java/com/android/internal/telephony/euicc/IGetEuiccInfo1Callback.aidl",
535 "telephony/java/com/android/internal/telephony/euicc/IGetEuiccInfo2Callback.aidl",
Holly Jiuyu Sunbbc85802017-12-21 18:44:59 -0800536 "telephony/java/com/android/internal/telephony/euicc/IGetProfileCallback.aidl",
Holly Jiuyu Sunfb1c7842017-12-21 18:44:59 -0800537 "telephony/java/com/android/internal/telephony/euicc/IGetRulesAuthTableCallback.aidl",
Holly Jiuyu Sunbbc85802017-12-21 18:44:59 -0800538 "telephony/java/com/android/internal/telephony/euicc/IGetSmdsAddressCallback.aidl",
Holly Jiuyu Sunfb1c7842017-12-21 18:44:59 -0800539 "telephony/java/com/android/internal/telephony/euicc/IListNotificationsCallback.aidl",
540 "telephony/java/com/android/internal/telephony/euicc/ILoadBoundProfilePackageCallback.aidl",
541 "telephony/java/com/android/internal/telephony/euicc/IPrepareDownloadCallback.aidl",
542 "telephony/java/com/android/internal/telephony/euicc/IRemoveNotificationFromListCallback.aidl",
Holly Jiuyu Sunbbc85802017-12-21 18:44:59 -0800543 "telephony/java/com/android/internal/telephony/euicc/IResetMemoryCallback.aidl",
Holly Jiuyu Sunfb1c7842017-12-21 18:44:59 -0800544 "telephony/java/com/android/internal/telephony/euicc/IRetrieveNotificationCallback.aidl",
545 "telephony/java/com/android/internal/telephony/euicc/IRetrieveNotificationListCallback.aidl",
Holly Jiuyu Sunbbc85802017-12-21 18:44:59 -0800546 "telephony/java/com/android/internal/telephony/euicc/ISetDefaultSmdpAddressCallback.aidl",
547 "telephony/java/com/android/internal/telephony/euicc/ISetNicknameCallback.aidl",
548 "telephony/java/com/android/internal/telephony/euicc/ISwitchToProfileCallback.aidl",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800549 "wifi/java/android/net/wifi/IWifiManager.aidl",
550 "wifi/java/android/net/wifi/aware/IWifiAwareEventCallback.aidl",
551 "wifi/java/android/net/wifi/aware/IWifiAwareManager.aidl",
552 "wifi/java/android/net/wifi/aware/IWifiAwareDiscoverySessionCallback.aidl",
553 "wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl",
554 "wifi/java/android/net/wifi/IWifiScanner.aidl",
555 "wifi/java/android/net/wifi/IRttManager.aidl",
556 "packages/services/PacProcessor/com/android/net/IProxyService.aidl",
557 "packages/services/Proxy/com/android/net/IProxyCallback.aidl",
558 "packages/services/Proxy/com/android/net/IProxyPortListener.aidl",
559 "core/java/android/service/quicksettings/IQSService.aidl",
560 "core/java/android/service/quicksettings/IQSTileService.aidl",
561
562 ":libupdate_engine_aidl",
563
564 ":netd_aidl",
565 ":installd_aidl",
566
567 "lowpan/java/android/net/lowpan/ILowpanEnergyScanCallback.aidl",
568 "lowpan/java/android/net/lowpan/ILowpanNetScanCallback.aidl",
569 "lowpan/java/android/net/lowpan/ILowpanInterfaceListener.aidl",
570 "lowpan/java/android/net/lowpan/ILowpanInterface.aidl",
571 "lowpan/java/android/net/lowpan/ILowpanManagerListener.aidl",
572 "lowpan/java/android/net/lowpan/ILowpanManager.aidl",
573
574 "core/java/android/app/admin/SecurityLogTags.logtags",
575 "core/java/android/content/EventLogTags.logtags",
576 "core/java/android/speech/tts/EventLogTags.logtags",
577 "core/java/android/net/EventLogTags.logtags",
578 "core/java/android/webkit/EventLogTags.logtags",
579 "core/java/com/android/internal/logging/EventLogTags.logtags",
Siyuan Zhou070e3182017-12-04 13:02:11 -0800580 "core/java/com/android/server/DropboxLogTags.logtags",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800581 ],
Colin Cross5f4dcf62017-11-16 00:15:28 -0800582
583 aidl: {
Colin Cross4eb07842017-12-14 15:18:42 -0800584 export_include_dirs: [
Colin Cross5f4dcf62017-11-16 00:15:28 -0800585 // From build/make/core/pathmap.mk FRAMEWORK_BASE_SUBDIRS
586 "core/java",
587 "graphics/java",
588 "location/java",
589 "lowpan/java",
590 "media/java",
591 "media/mca/effect/java",
592 "media/mca/filterfw/java",
593 "media/mca/filterpacks/java",
594 "drm/java",
595 "opengl/java",
596 "sax/java",
597 "telecomm/java",
598 "telephony/java",
599 "wifi/java",
600 "keystore/java",
601 "rs/java",
602 ],
603
604 include_dirs: [
605 "system/update_engine/binder_bindings",
606 "frameworks/native/aidl/binder",
607 "frameworks/av/camera/aidl",
608 "frameworks/native/aidl/gui",
609 "system/netd/server/binder",
610 "system/bt/binder",
611 ],
Olivier Gaillardb0ea4212018-07-26 11:52:37 +0100612
613 generate_get_transaction_name: true
Colin Cross5f4dcf62017-11-16 00:15:28 -0800614 },
615
616 no_framework_libs: true,
617 libs: [
618 "conscrypt",
619 "okhttp",
620 "bouncycastle",
621 "ext",
622 ],
623
624 static_libs: [
625 "framework-protos",
626 "android.hidl.base-V1.0-java",
627 "android.hardware.cas-V1.0-java",
628 "android.hardware.health-V1.0-java-constants",
629 "android.hardware.thermal-V1.0-java-constants",
630 "android.hardware.tv.input-V1.0-java-constants",
631 "android.hardware.usb-V1.0-java-constants",
632 "android.hardware.usb-V1.1-java-constants",
633 "android.hardware.vibrator-V1.0-java-constants",
634 "android.hardware.vibrator-V1.1-java-constants",
635 "android.hardware.wifi-V1.0-java-constants",
yuemingw9361a132017-11-24 18:20:11 +0000636 "android.hardware.radio-V1.0-java",
Colin Cross5f4dcf62017-11-16 00:15:28 -0800637 ],
638
639 // Loaded with System.loadLibrary by android.view.textclassifier
640 required: ["libtextclassifier"],
641
642 javac_shard_size: 150,
643
644 dxflags: [
645 "--core-library",
646 "--multi-dex",
647 ],
648}
649
650gensrcs {
651 name: "framework-javastream-protos",
652 depfile: true,
653
654 tools: [
655 "aprotoc",
656 "protoc-gen-javastream",
657 "soong_zip",
658 ],
659
Colin Cross6471db92017-12-04 16:02:10 -0800660 cmd: "mkdir -p $(genDir)/$(in) " +
Colin Cross5f4dcf62017-11-16 00:15:28 -0800661 "&& $(location aprotoc) " +
Colin Cross6471db92017-12-04 16:02:10 -0800662 " --plugin=$(location protoc-gen-javastream) " +
Colin Cross5f4dcf62017-11-16 00:15:28 -0800663 " --dependency_out=$(depfile) " +
664 " --javastream_out=$(genDir)/$(in) " +
665 " -Iexternal/protobuf/src " +
666 " -I . " +
667 " $(in) " +
668 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
669
670 srcs: ["core/proto/**/*.proto"],
671 output_extension: "srcjar",
672}
673
Colin Crossd8e02252017-10-02 17:14:22 -0700674// Build ext.jar
675// ============================================================
676java_library {
677 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700678 installable: true,
Colin Crossd8e02252017-10-02 17:14:22 -0700679 no_framework_libs: true,
680 static_libs: [
681 "libphonenumber-platform",
682 "nist-sip",
683 "tagsoup",
684 ],
685 dxflags: ["--core-library"],
686}
687
Colin Crossaa0d4352017-05-02 14:14:56 -0700688// ==== c++ proto device library ==============================
689cc_library {
690 name: "libplatformprotos",
691 host_supported: true,
Colin Crossaa0d4352017-05-02 14:14:56 -0700692 proto: {
693 export_proto_headers: true,
694 include_dirs: ["external/protobuf/src"],
695 },
696
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700697 cflags: [
698 "-Wall",
699 "-Werror",
700 "-Wno-unused-parameter",
701 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700702 target: {
703 host: {
704 proto: {
705 type: "full",
706 },
John Reck915883b2017-05-03 10:27:20 -0700707 srcs: [
708 "core/proto/**/*.proto",
709 "libs/incident/**/*.proto",
710 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700711 },
712 android: {
713 proto: {
714 type: "lite",
715 },
John Reck915883b2017-05-03 10:27:20 -0700716 // We only build the protos that are optimized for the lite
717 // runtime, as well as the only protos that are actually
718 // needed by the device.
719 srcs: [
720 "core/proto/android/service/graphicsstats.proto",
721 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700722 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700723 enabled: false,
724 },
725 },
726 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700727}
728
Dan Albert2a8d9c22016-09-23 15:55:49 -0700729subdirs = [
Dan Willemsend3eac262017-09-08 22:47:47 -0700730 "cmds/*",
Jeff Sharkey01478ec2017-10-23 16:04:31 -0600731 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800732 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700733 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700734 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500735 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700736 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700737 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700738]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800739
740optional_subdirs = [
741 "core/tests/utiltests/jni",
742]
Steven Morelandeddafe92017-10-02 16:58:41 -0700743
Colin Crossa2b78a72018-03-29 13:31:04 -0700744// TODO(b/77285514): remove this once the last few hidl interfaces have been
745// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700746java_library {
747 name: "hwbinder",
748 no_framework_libs: true,
749
750 srcs: [
751 "core/java/android/os/HidlSupport.java",
Steven Moreland4dde8a12018-01-10 15:45:36 -0800752 "core/java/android/annotation/IntDef.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700753 "core/java/android/annotation/NonNull.java",
Steven Moreland4dde8a12018-01-10 15:45:36 -0800754 "core/java/android/annotation/SystemApi.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700755 "core/java/android/os/HwBinder.java",
756 "core/java/android/os/HwBlob.java",
757 "core/java/android/os/HwParcel.java",
758 "core/java/android/os/IHwBinder.java",
759 "core/java/android/os/IHwInterface.java",
760 "core/java/android/os/DeadObjectException.java",
761 "core/java/android/os/DeadSystemException.java",
762 "core/java/android/os/RemoteException.java",
763 "core/java/android/util/AndroidException.java",
764 ],
765
766 dxflags: ["--core-library"],
767 installable: false,
768}
Nan Zhang2db709d2017-11-08 20:48:46 -0800769
770python_defaults {
771 name: "base_default",
772 version: {
773 py2: {
774 enabled: true,
775 embedded_launcher: true,
776 },
777 py3: {
778 enabled: false,
779 embedded_launcher: false,
780 },
781 },
782}
783
784python_binary_host {
785 name: "fontchain_linter",
786 defaults: ["base_default"],
787 main: "tools/fonts/fontchain_linter.py",
788 srcs: [
789 "tools/fonts/fontchain_linter.py",
790 ],
791 libs: [
792 "fontTools",
793 ],
794}
Nan Zhang172875b2018-02-27 11:24:03 -0800795
796// TODO: Don't rely on this list once droiddoc can take a list of packages to document
797frameworks_base_subdirs = [
798 "core/java",
799 "graphics/java",
800 "location/java",
801 "media/java",
802 "media/mca/effect/java",
803 "media/mca/filterfw/java",
804 "media/mca/filterpacks/java",
805 "drm/java",
806 "opengl/java",
807 "sax/java",
808 "telecomm/java",
809 "telephony/java",
810 "wifi/java",
811 "lowpan/java",
812 "keystore/java",
813 "rs/java",
814]
815
816packages_to_document = [
817 "android",
818 "javax/microedition/khronos",
819 "org/apache/http/conn",
820 "org/apache/http/params",
821]
822
823// The since flag (-since N.xml API_LEVEL) is used to add API Level information
824// to the reference documentation. Must be in order of oldest to newest.
825//
826// Conscrypt (com.android.org.conscrypt) is an implementation detail and should
827// not be referenced in the documentation.
828framework_docs_args = "-android -manifest $(location core/res/AndroidManifest.xml) " +
829 "-hidePackage com.android.okhttp -hidePackage com.android.org.conscrypt -hidePackage com.android.server " +
Anton Hanssone5bf2062018-04-19 16:23:53 +0100830 "-since $(location 1/public/api/android.xml) 1 " +
831 "-since $(location 2/public/api/android.xml) 2 " +
832 "-since $(location 3/public/api/android.xml) 3 " +
833 "-since $(location 4/public/api/android.xml) 4 " +
834 "-since $(location 5/public/api/android.xml) 5 " +
835 "-since $(location 6/public/api/android.xml) 6 " +
836 "-since $(location 7/public/api/android.xml) 7 " +
837 "-since $(location 8/public/api/android.xml) 8 " +
838 "-since $(location 9/public/api/android.xml) 9 " +
839 "-since $(location 10/public/api/android.xml) 10 " +
840 "-since $(location 11/public/api/android.xml) 11 " +
841 "-since $(location 12/public/api/android.xml) 12 " +
842 "-since $(location 13/public/api/android.xml) 13 " +
843 "-since $(location 14/public/api/android.txt) 14 " +
844 "-since $(location 15/public/api/android.txt) 15 " +
845 "-since $(location 16/public/api/android.txt) 16 " +
846 "-since $(location 17/public/api/android.txt) 17 " +
847 "-since $(location 18/public/api/android.txt) 18 " +
848 "-since $(location 19/public/api/android.txt) 19 " +
849 "-since $(location 20/public/api/android.txt) 20 " +
850 "-since $(location 21/public/api/android.txt) 21 " +
851 "-since $(location 22/public/api/android.txt) 22 " +
852 "-since $(location 23/public/api/android.txt) 23 " +
853 "-since $(location 24/public/api/android.txt) 24 " +
854 "-since $(location 25/public/api/android.txt) 25 " +
855 "-since $(location 26/public/api/android.txt) 26 " +
856 "-since $(location 27/public/api/android.txt) 27 " +
Nan Zhang172875b2018-02-27 11:24:03 -0800857 "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
858 "-overview $(location core/java/overview.html) " +
859 // Federate Support Library references against local API file.
860 "-federate SupportLib https://developer.android.com " +
861 "-federationapi SupportLib $(location current/support-api.txt) "
862
863doc_defaults {
864 name: "framework-docs-default",
865 srcs: [
866 // test mock src files.
867 "test-mock/src/android/test/mock/**/*.java",
868 // test runner excluding mock src files.
869 "test-runner/src/**/*.java",
870 "test-base/src/**/*.java",
871 ":opt-telephony-srcs",
872 ":opt-net-voip-srcs",
873 ":openjdk_javadoc_files",
874 ":non_openjdk_javadoc_files",
875 ":android_icu4j_src_files_for_docs",
876 ":gen-ojluni-jaif-annotated-srcs",
877 ],
878 exclude_srcs: [
879 ":annotated_ojluni_files",
880 ],
881 srcs_lib: "framework",
882 srcs_lib_whitelist_dirs: frameworks_base_subdirs,
883 srcs_lib_whitelist_pkgs: packages_to_document,
884 libs: [
885 "core-oj",
886 "core-libart",
887 "conscrypt",
888 "bouncycastle",
889 "okhttp",
890 "ext",
891 "framework",
892 "voip-common",
893 "android.test.mock",
894 ],
895 local_sourcepaths: frameworks_base_subdirs,
896 html_dirs: [
897 "docs/html",
898 ],
899 knowntags: [
900 "docs/knowntags.txt",
901 ":known-oj-tags",
902 ],
903 custom_template: "droiddoc-templates-sdk",
904 hdf: [
905 "dac true",
906 "sdk.codename O",
907 "sdk.preview.version 1",
908 "sdk.version 7.0",
909 "sdk.rel.id 1",
910 "sdk.preview 0",
911 ],
912 resourcesdir: "docs/html/reference/images",
913 resourcesoutdir: "reference/android/images",
Nan Zhang54963cba2018-03-13 16:16:34 -0700914 installable: false,
Nan Zhang172875b2018-02-27 11:24:03 -0800915}
916
Nan Zhang39d2d182018-05-04 18:36:45 -0700917check_last_released_api_args = "-hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 -hide 26 -hide 27 " +
918 "-error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 " +
919 "-error 16 -error 17 -error 18"
920
921check_current_api_args = "-error 2 -error 3 -error 4 -error 5 -error 6 " +
922 "-error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 "+
923 "-error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 " +
924 "-error 25 -error 26 -error 27"
925
Nan Zhang172875b2018-02-27 11:24:03 -0800926droiddoc {
927 name: "api-stubs-docs",
928 defaults: ["framework-docs-default"],
929 arg_files: [
930 "core/res/AndroidManifest.xml",
931 ":api-version-xml",
932 "core/java/overview.html",
933 ":current-support-api",
934 ],
Nan Zhang54963cba2018-03-13 16:16:34 -0700935 api_filename: "public_api.txt",
936 private_api_filename: "private.txt",
Nan Zhang54963cba2018-03-13 16:16:34 -0700937 removed_api_filename: "removed.txt",
938 args: framework_docs_args + " -referenceonly -nodocs",
Nan Zhang39d2d182018-05-04 18:36:45 -0700939 check_api: {
940 last_released: {
941 api_file: ":last-released-public-api",
942 removed_api_file: "api/removed.txt",
943 args: check_last_released_api_args,
944 },
945 current: {
946 api_file: "api/current.txt",
947 removed_api_file: "api/removed.txt",
948 args: check_current_api_args,
949 },
950 },
Nan Zhang172875b2018-02-27 11:24:03 -0800951}
952
953droiddoc {
954 name: "system-api-stubs-docs",
955 defaults: ["framework-docs-default"],
956 arg_files: [
957 "core/res/AndroidManifest.xml",
958 ":api-version-xml",
959 "core/java/overview.html",
960 ":current-support-api",
961 ],
Nan Zhang54963cba2018-03-13 16:16:34 -0700962 api_tag_name: "SYSTEM",
963 api_filename: "system-api.txt",
964 private_api_filename: "system-private.txt",
965 private_dex_api_filename: "system-private-dex.txt",
966 removed_api_filename: "system-removed.txt",
967 exact_api_filename: "system-exact.txt",
968 args: framework_docs_args + " -referenceonly -showAnnotation android.annotation.SystemApi -nodocs",
Nan Zhang39d2d182018-05-04 18:36:45 -0700969 check_api: {
970 last_released: {
971 api_file: ":last-released-system-api",
972 removed_api_file: "api/system-removed.txt",
973 args: check_last_released_api_args,
974 },
975 current: {
976 api_file: "api/system-current.txt",
977 removed_api_file: "api/system-removed.txt",
978 args: check_current_api_args,
979 },
980 },
Nan Zhang172875b2018-02-27 11:24:03 -0800981}
982
983droiddoc {
984 name: "test-api-stubs-docs",
985 defaults: ["framework-docs-default"],
986 arg_files: [
987 "core/res/AndroidManifest.xml",
988 ":api-version-xml",
989 "core/java/overview.html",
990 ":current-support-api",
991 ],
Nan Zhang54963cba2018-03-13 16:16:34 -0700992 api_tag_name: "TEST",
993 api_filename: "test-api.txt",
994 removed_api_filename: "test-removed.txt",
995 exact_api_filename: "test-exact.txt",
996 args: framework_docs_args + " -referenceonly -showAnnotation android.annotation.TestApi -nodocs",
Nan Zhang39d2d182018-05-04 18:36:45 -0700997 check_api: {
998 current: {
999 api_file: "api/test-current.txt",
1000 removed_api_file: "api/test-removed.txt",
1001 args: check_current_api_args,
1002 },
1003 },
Nan Zhang172875b2018-02-27 11:24:03 -08001004}
Colin Crossa2b78a72018-03-29 13:31:04 -07001005
1006droiddoc {
1007 name: "hwbinder-stubs-docs",
1008 srcs: [
1009 "core/java/android/os/HidlSupport.java",
1010 "core/java/android/annotation/IntDef.java",
1011 "core/java/android/annotation/NonNull.java",
1012 "core/java/android/annotation/SystemApi.java",
1013 "core/java/android/os/HwBinder.java",
1014 "core/java/android/os/HwBlob.java",
1015 "core/java/android/os/HwParcel.java",
1016 "core/java/android/os/IHwBinder.java",
1017 "core/java/android/os/IHwInterface.java",
1018 "core/java/android/os/DeadObjectException.java",
1019 "core/java/android/os/DeadSystemException.java",
1020 "core/java/android/os/RemoteException.java",
1021 "core/java/android/util/AndroidException.java",
1022 ],
1023 custom_template: "droiddoc-templates-sdk",
1024 installable: false,
1025 no_framework_libs: true,
1026 args: "-showAnnotation android.annotation.SystemApi -nodocs -stubsourceonly",
1027}
1028
1029java_library_static {
1030 name: "hwbinder.stubs",
1031 sdk_version: "core_current",
1032 srcs: [
1033 ":hwbinder-stubs-docs",
1034 ],
1035}
Nan Zhang99ce5c72018-04-09 17:41:51 -07001036
David Brazdil96c9cbc2018-04-26 14:05:13 +01001037droiddoc {
1038 name: "hiddenapi-lists",
1039 defaults: ["framework-docs-default"],
1040 arg_files: [
1041 "core/res/AndroidManifest.xml",
1042 ":api-version-xml",
1043 "core/java/overview.html",
1044 ":current-support-api",
1045 ],
David Brazdil6f6a1262018-05-31 13:58:41 +01001046 dex_api_filename: "public-dex.txt",
David Brazdil96c9cbc2018-04-26 14:05:13 +01001047 private_dex_api_filename: "private-dex.txt",
1048 removed_dex_api_filename: "removed-dex.txt",
1049 args: framework_docs_args +
1050 " -referenceonly" +
1051 " -nodocs" +
1052 " -showUnannotated" +
1053 " -showAnnotation android.annotation.SystemApi" +
1054 " -showAnnotation android.annotation.TestApi",
1055}
1056
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001057droiddoc {
1058 name: "hiddenapi-mappings",
1059 defaults: ["framework-docs-default"],
1060 arg_files: [
1061 "core/res/AndroidManifest.xml",
1062 ":api-version-xml",
1063 "core/java/overview.html",
1064 ":current-support-api",
1065 ],
1066 dex_mapping_filename: "dex-mapping.txt",
1067 args: framework_docs_args +
1068 " -referenceonly" +
1069 " -nodocs" +
1070 " -showUnannotated" +
1071 " -showAnnotation android.annotation.SystemApi" +
1072 " -showAnnotation android.annotation.TestApi",
1073}
1074
Nan Zhang99ce5c72018-04-09 17:41:51 -07001075filegroup {
1076 name: "apache-http-stubs-sources",
1077 srcs: [
1078 "core/java/org/apache/http/conn/ConnectTimeoutException.java",
1079 "core/java/org/apache/http/conn/scheme/HostNameResolver.java",
1080 "core/java/org/apache/http/conn/scheme/LayeredSocketFactory.java",
1081 "core/java/org/apache/http/conn/scheme/SocketFactory.java",
1082 "core/java/org/apache/http/conn/ssl/AbstractVerifier.java",
1083 "core/java/org/apache/http/conn/ssl/AllowAllHostnameVerifier.java",
1084 "core/java/org/apache/http/conn/ssl/AndroidDistinguishedNameParser.java",
1085 "core/java/org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.java",
1086 "core/java/org/apache/http/conn/ssl/SSLSocketFactory.java",
1087 "core/java/org/apache/http/conn/ssl/StrictHostnameVerifier.java",
1088 "core/java/org/apache/http/conn/ssl/X509HostnameVerifier.java",
1089 "core/java/org/apache/http/params/CoreConnectionPNames.java",
1090 "core/java/org/apache/http/params/HttpConnectionParams.java",
1091 "core/java/org/apache/http/params/HttpParams.java",
1092 "core/java/android/net/http/HttpResponseCache.java",
1093 "core/java/android/net/http/SslCertificate.java",
1094 "core/java/android/net/http/SslError.java",
1095 "core/java/com/android/internal/util/HexDump.java",
1096 ],
1097}
Nan Zhang4212eb12018-04-25 17:23:33 -07001098
1099metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1100 "--hide-package com.android.okhttp " +
1101 "--hide-package com.android.org.conscrypt --hide-package com.android.server " +
1102 "--hide RequiresPermission " +
1103 "--hide MissingPermission --hide BroadcastBehavior " +
1104 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1105 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo"
1106
1107doc_defaults {
1108 name: "metalava-framework-docs-default",
1109 srcs: [
1110 // test mock src files.
1111 "test-mock/src/android/test/mock/**/*.java",
1112 // test runner excluding mock src files.
1113 "test-runner/src/**/*.java",
1114 "test-base/src/**/*.java",
1115 ":opt-telephony-srcs",
1116 ":opt-net-voip-srcs",
1117 ":openjdk_javadoc_files",
1118 ":non_openjdk_javadoc_files",
1119 ":android_icu4j_src_files_for_docs",
1120 ":gen-ojluni-jaif-annotated-srcs",
1121 ],
1122 exclude_srcs: [
1123 ":annotated_ojluni_files",
1124 ],
1125 srcs_lib: "framework",
1126 srcs_lib_whitelist_dirs: frameworks_base_subdirs,
1127 srcs_lib_whitelist_pkgs: packages_to_document,
1128 libs: [
1129 "core-oj",
1130 "core-libart",
1131 "conscrypt",
1132 "bouncycastle",
1133 "okhttp",
1134 "ext",
1135 "framework",
1136 "voip-common",
1137 "android.test.mock",
1138 ],
1139 local_sourcepaths: frameworks_base_subdirs,
1140 installable: false,
1141 metalava_enabled: true,
Nan Zhang4b816582018-06-13 17:38:37 -07001142 metalava_annotations_enabled: true,
1143 metalava_previous_api: ":public-api-for-metalava-annotations",
Pete Gillind6eece32018-07-19 18:08:06 +01001144 metalava_merge_annotations_dirs: [
Nan Zhange379f402018-08-01 15:07:38 -07001145 "metalava-manual",
Pete Gillind6eece32018-07-19 18:08:06 +01001146 ],
Nan Zhang4212eb12018-04-25 17:23:33 -07001147}
1148
1149droiddoc {
1150 name: "metalava-api-stubs-docs",
1151 defaults: ["metalava-framework-docs-default"],
1152 api_tag_name: "METALAVA_PUBLIC",
1153 api_filename: "public_api.txt",
1154 private_api_filename: "private.txt",
1155 removed_api_filename: "removed.txt",
1156 arg_files: [
1157 "core/res/AndroidManifest.xml",
1158 ],
1159 args: metalava_framework_docs_args,
1160}
1161
1162droiddoc {
1163 name: "metalava-system-api-stubs-docs",
1164 defaults: ["metalava-framework-docs-default"],
1165 api_tag_name: "METALAVA_SYSTEM",
1166 api_filename: "system-api.txt",
1167 private_api_filename: "system-private.txt",
1168 private_dex_api_filename: "system-private-dex.txt",
1169 removed_api_filename: "system-removed.txt",
1170 arg_files: [
1171 "core/res/AndroidManifest.xml",
1172 ],
1173 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi",
1174}
1175
1176droiddoc {
1177 name: "metalava-test-api-stubs-docs",
1178 defaults: ["metalava-framework-docs-default"],
1179 api_tag_name: "METALAVA_TEST",
1180 api_filename: "test-api.txt",
1181 removed_api_filename: "test-removed.txt",
1182 arg_files: [
1183 "core/res/AndroidManifest.xml",
1184 ],
1185 args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi",
1186}