• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2008 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16LOCAL_PATH := $(call my-dir)
17
18# We have a special case here where we build the library's resources
19# independently from its code, so we need to find where the resource
20# class source got placed in the course of building the resources.
21# Thus, the magic here.
22# Also, this module cannot depend directly on the R.java file; if it
23# did, the PRIVATE_* vars for R.java wouldn't be guaranteed to be correct.
24# Instead, it depends on the R.stamp file, which lists the corresponding
25# R.java file as a prerequisite.
26# TODO: find a more appropriate way to do this.
27framework_res_source_path := APPS/framework-res_intermediates/src
28
29# Build the master framework library.
30# The framework contains too many method references (>64K) for poor old DEX.
31# So we first build the framework as a monolithic static library then split it
32# up into smaller pieces.
33# ============================================================
34
35# embedded builds use nothing in frameworks/base
36ifneq ($(ANDROID_BUILD_EMBEDDED),true)
37
38include $(CLEAR_VARS)
39
40# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
41LOCAL_SRC_FILES := $(call find-other-java-files,$(FRAMEWORKS_BASE_SUBDIRS))
42
43# EventLogTags files.
44LOCAL_SRC_FILES += \
45       core/java/android/app/admin/SecurityLogTags.logtags \
46       core/java/android/content/EventLogTags.logtags \
47       core/java/android/speech/tts/EventLogTags.logtags \
48       core/java/android/webkit/EventLogTags.logtags \
49       core/java/com/android/internal/logging/EventLogTags.logtags \
50
51## READ ME: ########################################################
52##
53## When updating this list of aidl files, consider if that aidl is
54## part of the SDK API.  If it is, also add it to the list below that
55## is preprocessed and distributed with the SDK.  This list should
56## not contain any aidl files for parcelables, but the one below should
57## if you intend for 3rd parties to be able to send those objects
58## across process boundaries.
59##
60## READ ME: ########################################################
61LOCAL_SRC_FILES += \
62	core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl \
63	core/java/android/accessibilityservice/IAccessibilityServiceClient.aidl \
64	core/java/android/accounts/IAccountManager.aidl \
65	core/java/android/accounts/IAccountManagerResponse.aidl \
66	core/java/android/accounts/IAccountAuthenticator.aidl \
67	core/java/android/accounts/IAccountAuthenticatorResponse.aidl \
68	core/java/android/app/IActivityContainer.aidl \
69	core/java/android/app/IActivityContainerCallback.aidl \
70	core/java/android/app/IActivityController.aidl \
71	core/java/android/app/IActivityPendingResult.aidl \
72	core/java/android/app/IAlarmCompleteListener.aidl \
73	core/java/android/app/IAlarmListener.aidl \
74	core/java/android/app/IAlarmManager.aidl \
75	core/java/android/app/IAppTask.aidl \
76	core/java/android/app/ITaskStackListener.aidl \
77	core/java/android/app/IBackupAgent.aidl \
78	core/java/android/app/IEphemeralResolver.aidl \
79	core/java/android/app/IInstrumentationWatcher.aidl \
80	core/java/android/app/INotificationManager.aidl \
81	core/java/android/app/IProcessObserver.aidl \
82	core/java/android/app/ISearchManager.aidl \
83	core/java/android/app/ISearchManagerCallback.aidl \
84	core/java/android/app/IServiceConnection.aidl \
85	core/java/android/app/IStopUserCallback.aidl \
86	core/java/android/app/job/IJobCallback.aidl \
87	core/java/android/app/job/IJobScheduler.aidl \
88	core/java/android/app/job/IJobService.aidl \
89	core/java/android/app/ITransientNotification.aidl \
90	core/java/android/app/IUidObserver.aidl \
91	core/java/android/app/IUiAutomationConnection.aidl \
92	core/java/android/app/IUiModeManager.aidl \
93	core/java/android/app/IUserSwitchObserver.aidl \
94	core/java/android/app/IWallpaperManager.aidl \
95	core/java/android/app/IWallpaperManagerCallback.aidl \
96	core/java/android/app/admin/IDevicePolicyManager.aidl \
97	core/java/android/app/trust/IStrongAuthTracker.aidl \
98	core/java/android/app/trust/ITrustManager.aidl \
99	core/java/android/app/trust/ITrustListener.aidl \
100	core/java/android/app/backup/IBackupManager.aidl \
101	core/java/android/app/backup/IBackupObserver.aidl \
102	core/java/android/app/backup/IFullBackupRestoreObserver.aidl \
103	core/java/android/app/backup/IRestoreObserver.aidl \
104	core/java/android/app/backup/IRestoreSession.aidl \
105	core/java/android/app/usage/IUsageStatsManager.aidl \
106	core/java/android/bluetooth/IBluetooth.aidl \
107	core/java/android/bluetooth/IBluetoothA2dp.aidl \
108	core/java/android/bluetooth/IBluetoothA2dpSink.aidl \
109	core/java/android/bluetooth/IBluetoothAvrcpController.aidl \
110	core/java/android/bluetooth/IBluetoothCallback.aidl \
111	core/java/android/bluetooth/IBluetoothProfileServiceConnection.aidl \
112	core/java/android/bluetooth/IBluetoothHeadset.aidl \
113	core/java/android/bluetooth/IBluetoothHeadsetPhone.aidl \
114	core/java/android/bluetooth/IBluetoothHealth.aidl \
115	core/java/android/bluetooth/IBluetoothHealthCallback.aidl \
116	core/java/android/bluetooth/IBluetoothInputDevice.aidl \
117	core/java/android/bluetooth/IBluetoothPan.aidl \
118	core/java/android/bluetooth/IBluetoothManager.aidl \
119	core/java/android/bluetooth/IBluetoothManagerCallback.aidl \
120	core/java/android/bluetooth/IBluetoothPbap.aidl \
121	core/java/android/bluetooth/IBluetoothPbapClient.aidl \
122	core/java/android/bluetooth/IBluetoothMap.aidl \
123	core/java/android/bluetooth/IBluetoothSap.aidl \
124	core/java/android/bluetooth/IBluetoothStateChangeCallback.aidl \
125	core/java/android/bluetooth/IBluetoothHeadsetClient.aidl \
126	core/java/android/bluetooth/IBluetoothGatt.aidl \
127	core/java/android/bluetooth/IBluetoothGattCallback.aidl \
128	core/java/android/bluetooth/IBluetoothGattServerCallback.aidl \
129	core/java/android/content/IClipboard.aidl \
130	core/java/android/content/IContentService.aidl \
131	core/java/android/content/IIntentReceiver.aidl \
132	core/java/android/content/IIntentSender.aidl \
133	core/java/android/content/IOnPrimaryClipChangedListener.aidl \
134	core/java/android/content/IRestrictionsManager.aidl \
135	core/java/android/content/ISyncAdapter.aidl \
136	core/java/android/content/ISyncContext.aidl \
137	core/java/android/content/ISyncServiceAdapter.aidl \
138	core/java/android/content/ISyncStatusObserver.aidl \
139	core/java/android/content/pm/ILauncherApps.aidl \
140	core/java/android/content/pm/IOnAppsChangedListener.aidl \
141	core/java/android/content/pm/IOtaDexopt.aidl \
142	core/java/android/content/pm/IPackageDataObserver.aidl \
143	core/java/android/content/pm/IPackageDeleteObserver.aidl \
144	core/java/android/content/pm/IPackageDeleteObserver2.aidl \
145	core/java/android/content/pm/IPackageInstallObserver.aidl \
146	core/java/android/content/pm/IPackageInstallObserver2.aidl \
147	core/java/android/content/pm/IPackageInstaller.aidl \
148	core/java/android/content/pm/IPackageInstallerCallback.aidl \
149	core/java/android/content/pm/IPackageInstallerSession.aidl \
150	core/java/android/content/pm/IPackageManager.aidl \
151	core/java/android/content/pm/IPackageMoveObserver.aidl \
152	core/java/android/content/pm/IPackageStatsObserver.aidl \
153	core/java/android/content/pm/IOnPermissionsChangeListener.aidl \
154	core/java/android/content/pm/IShortcutService.aidl \
155	core/java/android/content/pm/permission/IRuntimePermissionPresenter.aidl \
156	core/java/android/database/IContentObserver.aidl \
157	../av/camera/aidl/android/hardware/ICameraService.aidl \
158	../av/camera/aidl/android/hardware/ICameraServiceListener.aidl \
159	../av/camera/aidl/android/hardware/ICameraServiceProxy.aidl \
160	../av/camera/aidl/android/hardware/ICamera.aidl \
161	../av/camera/aidl/android/hardware/ICameraClient.aidl \
162	../av/camera/aidl/android/hardware/camera2/ICameraDeviceUser.aidl \
163	../av/camera/aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl \
164	core/java/android/hardware/IConsumerIrService.aidl \
165	core/java/android/hardware/ISerialManager.aidl \
166	core/java/android/hardware/display/IDisplayManager.aidl \
167	core/java/android/hardware/display/IDisplayManagerCallback.aidl \
168	core/java/android/hardware/display/IVirtualDisplayCallback.aidl \
169	core/java/android/hardware/fingerprint/IFingerprintDaemon.aidl \
170	core/java/android/hardware/fingerprint/IFingerprintDaemonCallback.aidl \
171	core/java/android/hardware/fingerprint/IFingerprintService.aidl \
172	core/java/android/hardware/fingerprint/IFingerprintServiceLockoutResetCallback.aidl \
173	core/java/android/hardware/fingerprint/IFingerprintServiceReceiver.aidl \
174	core/java/android/hardware/hdmi/IHdmiControlCallback.aidl \
175	core/java/android/hardware/hdmi/IHdmiControlService.aidl \
176	core/java/android/hardware/hdmi/IHdmiDeviceEventListener.aidl \
177	core/java/android/hardware/hdmi/IHdmiHotplugEventListener.aidl \
178	core/java/android/hardware/hdmi/IHdmiInputChangeListener.aidl \
179	core/java/android/hardware/hdmi/IHdmiMhlVendorCommandListener.aidl \
180	core/java/android/hardware/hdmi/IHdmiRecordListener.aidl \
181	core/java/android/hardware/hdmi/IHdmiSystemAudioModeChangeListener.aidl \
182	core/java/android/hardware/hdmi/IHdmiVendorCommandListener.aidl \
183	core/java/android/hardware/input/IInputManager.aidl \
184	core/java/android/hardware/input/IInputDevicesChangedListener.aidl \
185	core/java/android/hardware/input/ITabletModeChangedListener.aidl \
186	core/java/android/hardware/location/IActivityRecognitionHardware.aidl \
187	core/java/android/hardware/location/IActivityRecognitionHardwareClient.aidl \
188	core/java/android/hardware/location/IActivityRecognitionHardwareSink.aidl \
189	core/java/android/hardware/location/IActivityRecognitionHardwareWatcher.aidl \
190	core/java/android/hardware/location/IFusedLocationHardware.aidl \
191	core/java/android/hardware/location/IFusedLocationHardwareSink.aidl \
192	core/java/android/hardware/location/IGeofenceHardware.aidl \
193	core/java/android/hardware/location/IGeofenceHardwareCallback.aidl \
194	core/java/android/hardware/location/IGeofenceHardwareMonitorCallback.aidl \
195	core/java/android/hardware/location/IContextHubCallback.aidl \
196	core/java/android/hardware/location/IContextHubService.aidl \
197	core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl \
198	core/java/android/hardware/usb/IUsbManager.aidl \
199	core/java/android/net/ICaptivePortal.aidl \
200	core/java/android/net/IConnectivityManager.aidl \
201	core/java/android/net/IConnectivityMetricsLogger.aidl \
202	core/java/android/net/IEthernetManager.aidl \
203	core/java/android/net/IEthernetServiceListener.aidl \
204	core/java/android/net/INetworkManagementEventObserver.aidl \
205	core/java/android/net/INetworkPolicyListener.aidl \
206	core/java/android/net/INetworkPolicyManager.aidl \
207	core/java/android/net/INetworkScoreCache.aidl \
208	core/java/android/net/INetworkScoreService.aidl \
209	core/java/android/net/INetworkStatsService.aidl \
210	core/java/android/net/INetworkStatsSession.aidl \
211	core/java/android/net/nsd/INsdManager.aidl \
212	core/java/android/nfc/IAppCallback.aidl \
213	core/java/android/nfc/INfcAdapter.aidl \
214	core/java/android/nfc/INfcAdapterExtras.aidl \
215	core/java/android/nfc/INfcTag.aidl \
216	core/java/android/nfc/INfcCardEmulation.aidl \
217	core/java/android/nfc/INfcFCardEmulation.aidl \
218	core/java/android/nfc/INfcUnlockHandler.aidl \
219	core/java/android/nfc/ITagRemovedCallback.aidl \
220	core/java/android/os/IBatteryPropertiesListener.aidl \
221	core/java/android/os/IBatteryPropertiesRegistrar.aidl \
222	core/java/android/os/ICancellationSignal.aidl \
223	core/java/android/os/IDeviceIdleController.aidl \
224	core/java/android/os/IHardwarePropertiesManager.aidl \
225	core/java/android/os/IMaintenanceActivityListener.aidl \
226	core/java/android/os/IMessenger.aidl \
227	core/java/android/os/INetworkActivityListener.aidl \
228	core/java/android/os/INetworkManagementService.aidl \
229	core/java/android/os/IPermissionController.aidl \
230	core/java/android/os/IProcessInfoService.aidl \
231	core/java/android/os/IProgressListener.aidl \
232	core/java/android/os/IPowerManager.aidl \
233	core/java/android/os/IRecoverySystem.aidl \
234	core/java/android/os/IRecoverySystemProgressListener.aidl \
235	core/java/android/os/IRemoteCallback.aidl \
236	core/java/android/os/ISchedulingPolicyService.aidl \
237	core/java/android/os/IUpdateLock.aidl \
238	core/java/android/os/IUserManager.aidl \
239	core/java/android/os/IVibratorService.aidl \
240	core/java/android/security/IKeystoreService.aidl \
241	core/java/android/service/carrier/ICarrierService.aidl \
242	core/java/android/service/carrier/ICarrierMessagingCallback.aidl \
243	core/java/android/service/carrier/ICarrierMessagingService.aidl \
244	core/java/android/service/gatekeeper/IGateKeeperService.aidl \
245	core/java/android/service/notification/INotificationListener.aidl \
246	core/java/android/service/notification/IStatusBarNotificationHolder.aidl \
247	core/java/android/service/notification/IConditionListener.aidl \
248	core/java/android/service/notification/IConditionProvider.aidl \
249	core/java/android/service/vr/IVrListener.aidl \
250	core/java/android/service/vr/IVrManager.aidl \
251	core/java/android/service/vr/IVrStateCallbacks.aidl \
252	core/java/android/print/ILayoutResultCallback.aidl \
253	core/java/android/print/IPrinterDiscoveryObserver.aidl \
254	core/java/android/print/IPrintDocumentAdapter.aidl \
255	core/java/android/print/IPrintDocumentAdapterObserver.aidl \
256	core/java/android/print/IPrintJobStateChangeListener.aidl \
257	core/java/android/print/IPrintServicesChangeListener.aidl \
258	core/java/android/printservice/recommendation/IRecommendationsChangeListener.aidl \
259	core/java/android/print/IPrintManager.aidl \
260	core/java/android/print/IPrintSpooler.aidl \
261	core/java/android/print/IPrintSpoolerCallbacks.aidl \
262	core/java/android/print/IPrintSpoolerClient.aidl \
263	core/java/android/printservice/recommendation/IRecommendationServiceCallbacks.aidl \
264	core/java/android/printservice/recommendation/IRecommendationService.aidl \
265	core/java/android/print/IWriteResultCallback.aidl \
266	core/java/android/printservice/IPrintService.aidl \
267	core/java/android/printservice/IPrintServiceClient.aidl \
268	core/java/android/service/dreams/IDreamManager.aidl \
269	core/java/android/service/dreams/IDreamService.aidl \
270	core/java/android/service/persistentdata/IPersistentDataBlockService.aidl \
271	core/java/android/service/trust/ITrustAgentService.aidl \
272	core/java/android/service/trust/ITrustAgentServiceCallback.aidl \
273	core/java/android/service/voice/IVoiceInteractionService.aidl \
274	core/java/android/service/voice/IVoiceInteractionSession.aidl \
275	core/java/android/service/voice/IVoiceInteractionSessionService.aidl \
276	core/java/android/service/wallpaper/IWallpaperConnection.aidl \
277	core/java/android/service/wallpaper/IWallpaperEngine.aidl \
278	core/java/android/service/wallpaper/IWallpaperService.aidl \
279	core/java/android/service/chooser/IChooserTargetService.aidl \
280	core/java/android/service/chooser/IChooserTargetResult.aidl \
281	core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl\
282	core/java/android/view/accessibility/IAccessibilityInteractionConnectionCallback.aidl\
283	core/java/android/view/accessibility/IAccessibilityManager.aidl \
284	core/java/android/view/accessibility/IAccessibilityManagerClient.aidl \
285	core/java/android/view/IApplicationToken.aidl \
286	core/java/android/view/IAppTransitionAnimationSpecsFuture.aidl \
287	core/java/android/view/IAssetAtlas.aidl \
288	core/java/android/view/IDockedStackListener.aidl \
289	core/java/android/view/IGraphicsStats.aidl \
290	core/java/android/view/IInputFilter.aidl \
291	core/java/android/view/IInputFilterHost.aidl \
292	core/java/android/view/IOnKeyguardExitResult.aidl \
293	core/java/android/view/IRotationWatcher.aidl \
294	core/java/android/view/IWindow.aidl \
295	core/java/android/view/IWindowFocusObserver.aidl \
296	core/java/android/view/IWindowId.aidl \
297	core/java/android/view/IWindowManager.aidl \
298	core/java/android/view/IWindowSession.aidl \
299	core/java/android/view/IWindowSessionCallback.aidl \
300	core/java/android/webkit/IWebViewUpdateService.aidl \
301	core/java/android/speech/IRecognitionListener.aidl \
302	core/java/android/speech/IRecognitionService.aidl \
303	core/java/android/speech/tts/ITextToSpeechCallback.aidl \
304	core/java/android/speech/tts/ITextToSpeechService.aidl \
305	core/java/com/android/internal/app/IAppOpsCallback.aidl \
306	core/java/com/android/internal/app/IAppOpsService.aidl \
307	core/java/com/android/internal/app/IAssistScreenshotReceiver.aidl \
308	core/java/com/android/internal/app/IBatteryStats.aidl \
309	core/java/com/android/internal/app/ISoundTriggerService.aidl \
310	core/java/com/android/internal/app/IVoiceInteractionManagerService.aidl \
311	core/java/com/android/internal/app/IVoiceInteractionSessionListener.aidl \
312	core/java/com/android/internal/app/IVoiceInteractionSessionShowCallback.aidl \
313	core/java/com/android/internal/app/IVoiceInteractor.aidl \
314	core/java/com/android/internal/app/IVoiceInteractorCallback.aidl \
315	core/java/com/android/internal/app/IVoiceInteractorRequest.aidl \
316	core/java/com/android/internal/app/IMediaContainerService.aidl \
317	core/java/com/android/internal/app/procstats/IProcessStats.aidl \
318	core/java/com/android/internal/appwidget/IAppWidgetService.aidl \
319	core/java/com/android/internal/appwidget/IAppWidgetHost.aidl \
320	core/java/com/android/internal/backup/IBackupTransport.aidl \
321	core/java/com/android/internal/backup/IObbBackupService.aidl \
322	core/java/com/android/internal/inputmethod/IInputContentUriToken.aidl \
323	core/java/com/android/internal/policy/IKeyguardDrawnCallback.aidl \
324	core/java/com/android/internal/policy/IKeyguardExitCallback.aidl \
325	core/java/com/android/internal/policy/IKeyguardService.aidl \
326	core/java/com/android/internal/policy/IKeyguardStateCallback.aidl \
327	core/java/com/android/internal/policy/IShortcutService.aidl \
328	core/java/com/android/internal/os/IDropBoxManagerService.aidl \
329	core/java/com/android/internal/os/IParcelFileDescriptorFactory.aidl \
330	core/java/com/android/internal/os/IResultReceiver.aidl \
331	core/java/com/android/internal/statusbar/IStatusBar.aidl \
332	core/java/com/android/internal/statusbar/IStatusBarService.aidl \
333	core/java/com/android/internal/textservice/ISpellCheckerService.aidl \
334	core/java/com/android/internal/textservice/ISpellCheckerSession.aidl \
335	core/java/com/android/internal/textservice/ISpellCheckerSessionListener.aidl \
336	core/java/com/android/internal/textservice/ITextServicesManager.aidl \
337	core/java/com/android/internal/textservice/ITextServicesSessionListener.aidl \
338	core/java/com/android/internal/view/IDragAndDropPermissions.aidl \
339	core/java/com/android/internal/view/IInputContext.aidl \
340	core/java/com/android/internal/view/IInputContextCallback.aidl \
341	core/java/com/android/internal/view/IInputMethod.aidl \
342	core/java/com/android/internal/view/IInputMethodClient.aidl \
343	core/java/com/android/internal/view/IInputMethodManager.aidl \
344	core/java/com/android/internal/view/IInputMethodSession.aidl \
345	core/java/com/android/internal/view/IInputSessionCallback.aidl \
346	core/java/com/android/internal/widget/ICheckCredentialProgressCallback.aidl \
347	core/java/com/android/internal/widget/ILockSettings.aidl \
348	core/java/com/android/internal/widget/IRemoteViewsFactory.aidl \
349	core/java/com/android/internal/widget/IRemoteViewsAdapterConnection.aidl \
350	keystore/java/android/security/IKeyChainAliasCallback.aidl \
351	keystore/java/android/security/IKeyChainService.aidl \
352	location/java/android/location/ICountryDetector.aidl \
353	location/java/android/location/ICountryListener.aidl \
354	location/java/android/location/IFusedProvider.aidl \
355	location/java/android/location/IGeocodeProvider.aidl \
356	location/java/android/location/IGeofenceProvider.aidl \
357	location/java/android/location/IGnssStatusListener.aidl \
358	location/java/android/location/IGnssStatusProvider.aidl \
359	location/java/android/location/IGnssMeasurementsListener.aidl \
360	location/java/android/location/IGnssNavigationMessageListener.aidl \
361	location/java/android/location/ILocationListener.aidl \
362	location/java/android/location/ILocationManager.aidl \
363	location/java/android/location/IFusedGeofenceHardware.aidl \
364	location/java/android/location/IGpsGeofenceHardware.aidl \
365	location/java/android/location/INetInitiatedListener.aidl \
366	location/java/com/android/internal/location/ILocationProvider.aidl \
367	media/java/android/media/IAudioService.aidl \
368	media/java/android/media/IAudioFocusDispatcher.aidl \
369	media/java/android/media/IAudioRoutesObserver.aidl \
370	media/java/android/media/IMediaHTTPConnection.aidl \
371	media/java/android/media/IMediaHTTPService.aidl \
372	media/java/android/media/IMediaResourceMonitor.aidl \
373	media/java/android/media/IMediaRouterClient.aidl \
374	media/java/android/media/IMediaRouterService.aidl \
375	media/java/android/media/IMediaScannerListener.aidl \
376	media/java/android/media/IMediaScannerService.aidl \
377	media/java/android/media/IRecordingConfigDispatcher.aidl \
378	media/java/android/media/IRemoteDisplayCallback.aidl \
379	media/java/android/media/IRemoteDisplayProvider.aidl \
380	media/java/android/media/IRemoteVolumeController.aidl \
381	media/java/android/media/IRemoteVolumeObserver.aidl \
382	media/java/android/media/IRingtonePlayer.aidl \
383	media/java/android/media/IVolumeController.aidl \
384	media/java/android/media/audiopolicy/IAudioPolicyCallback.aidl \
385	media/java/android/media/midi/IBluetoothMidiService.aidl \
386	media/java/android/media/midi/IMidiDeviceListener.aidl \
387	media/java/android/media/midi/IMidiDeviceOpenCallback.aidl \
388	media/java/android/media/midi/IMidiDeviceServer.aidl \
389	media/java/android/media/midi/IMidiManager.aidl \
390	media/java/android/media/projection/IMediaProjection.aidl \
391	media/java/android/media/projection/IMediaProjectionCallback.aidl \
392	media/java/android/media/projection/IMediaProjectionManager.aidl \
393	media/java/android/media/projection/IMediaProjectionWatcherCallback.aidl \
394	media/java/android/media/session/IActiveSessionsListener.aidl \
395	media/java/android/media/session/ISessionController.aidl \
396	media/java/android/media/session/ISessionControllerCallback.aidl \
397	media/java/android/media/session/ISession.aidl \
398	media/java/android/media/session/ISessionCallback.aidl \
399	media/java/android/media/session/ISessionManager.aidl \
400	media/java/android/media/tv/ITvInputClient.aidl \
401	media/java/android/media/tv/ITvInputHardware.aidl \
402	media/java/android/media/tv/ITvInputHardwareCallback.aidl \
403	media/java/android/media/tv/ITvInputManager.aidl \
404	media/java/android/media/tv/ITvInputManagerCallback.aidl \
405	media/java/android/media/tv/ITvInputService.aidl \
406	media/java/android/media/tv/ITvInputServiceCallback.aidl \
407	media/java/android/media/tv/ITvInputSession.aidl \
408	media/java/android/media/tv/ITvInputSessionCallback.aidl \
409	media/java/android/media/tv/ITvRemoteProvider.aidl \
410	media/java/android/media/tv/ITvRemoteServiceInput.aidl \
411	media/java/android/service/media/IMediaBrowserService.aidl \
412	media/java/android/service/media/IMediaBrowserServiceCallbacks.aidl \
413	telecomm/java/com/android/internal/telecom/ICallScreeningAdapter.aidl \
414	telecomm/java/com/android/internal/telecom/ICallScreeningService.aidl \
415	telecomm/java/com/android/internal/telecom/IVideoCallback.aidl \
416	telecomm/java/com/android/internal/telecom/IVideoProvider.aidl \
417	telecomm/java/com/android/internal/telecom/IConnectionService.aidl \
418	telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl \
419	telecomm/java/com/android/internal/telecom/IInCallAdapter.aidl \
420	telecomm/java/com/android/internal/telecom/IInCallService.aidl \
421	telecomm/java/com/android/internal/telecom/ITelecomService.aidl \
422	telecomm/java/com/android/internal/telecom/RemoteServiceCallback.aidl \
423	telephony/java/com/android/ims/internal/IImsCallSession.aidl \
424	telephony/java/com/android/ims/internal/IImsCallSessionListener.aidl \
425	telephony/java/com/android/ims/internal/IImsConfig.aidl \
426	telephony/java/com/android/ims/internal/IImsRegistrationListener.aidl \
427	telephony/java/com/android/ims/internal/IImsEcbm.aidl \
428	telephony/java/com/android/ims/internal/IImsEcbmListener.aidl \
429        telephony/java/com/android/ims/internal/IImsExternalCallStateListener.aidl \
430        telephony/java/com/android/ims/internal/IImsMultiEndpoint.aidl \
431	telephony/java/com/android/ims/internal/IImsService.aidl \
432	telephony/java/com/android/ims/internal/IImsStreamMediaSession.aidl \
433	telephony/java/com/android/ims/internal/IImsUt.aidl \
434	telephony/java/com/android/ims/internal/IImsUtListener.aidl \
435	telephony/java/com/android/ims/internal/IImsVideoCallCallback.aidl \
436	telephony/java/com/android/ims/internal/IImsVideoCallProvider.aidl \
437        telephony/java/com/android/ims/internal/uce/uceservice/IUceService.aidl \
438        telephony/java/com/android/ims/internal/uce/uceservice/IUceListener.aidl \
439        telephony/java/com/android/ims/internal/uce/options/IOptionsService.aidl \
440        telephony/java/com/android/ims/internal/uce/options/IOptionsListener.aidl \
441        telephony/java/com/android/ims/internal/uce/presence/IPresenceService.aidl \
442        telephony/java/com/android/ims/internal/uce/presence/IPresenceListener.aidl \
443	telephony/java/com/android/ims/ImsConfigListener.aidl \
444	telephony/java/com/android/internal/telephony/ICarrierConfigLoader.aidl \
445	telephony/java/com/android/internal/telephony/IMms.aidl \
446	telephony/java/com/android/internal/telephony/IOnSubscriptionsChangedListener.aidl \
447	telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl \
448	telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl \
449	telephony/java/com/android/internal/telephony/ISms.aidl \
450	telephony/java/com/android/internal/telephony/ISub.aidl \
451	telephony/java/com/android/internal/telephony/ITelephony.aidl \
452	telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl \
453	telephony/java/com/android/internal/telephony/IWapPushManager.aidl \
454	wifi/java/android/net/wifi/IWifiManager.aidl \
455	wifi/java/android/net/wifi/nan/IWifiNanEventListener.aidl \
456	wifi/java/android/net/wifi/nan/IWifiNanManager.aidl \
457	wifi/java/android/net/wifi/nan/IWifiNanSessionListener.aidl \
458	wifi/java/android/net/wifi/p2p/IWifiP2pManager.aidl \
459	wifi/java/android/net/wifi/IWifiScanner.aidl \
460	wifi/java/android/net/wifi/IRttManager.aidl \
461	packages/services/PacProcessor/com/android/net/IProxyService.aidl \
462	packages/services/Proxy/com/android/net/IProxyCallback.aidl \
463	packages/services/Proxy/com/android/net/IProxyPortListener.aidl \
464	core/java/android/service/quicksettings/IQSService.aidl \
465	core/java/android/service/quicksettings/IQSTileService.aidl \
466
467# The following are native binders that need to go with the native component
468# at system/update_engine/binder_bindings/. Use relative path to refer to them.
469LOCAL_SRC_FILES += \
470	../../system/update_engine/binder_bindings/android/os/IUpdateEngine.aidl \
471	../../system/update_engine/binder_bindings/android/os/IUpdateEngineCallback.aidl \
472
473LOCAL_SRC_FILES +=  \
474	../../system/netd/server/binder/android/net/INetd.aidl \
475
476LOCAL_AIDL_INCLUDES += system/update_engine/binder_bindings
477
478# FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/pathmap.mk
479LOCAL_AIDL_INCLUDES += \
480      $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) \
481      frameworks/native/aidl/binder
482
483LOCAL_AIDL_INCLUDES += \
484	frameworks/av/camera/aidl \
485	frameworks/native/aidl/gui \
486	system/netd/server/binder
487
488LOCAL_INTERMEDIATE_SOURCES := \
489			$(framework_res_source_path)/android/R.java \
490			$(framework_res_source_path)/android/Manifest.java \
491			$(framework_res_source_path)/com/android/internal/R.java
492
493LOCAL_NO_STANDARD_LIBRARIES := true
494LOCAL_JAVA_LIBRARIES := core-oj core-libart core-lambda-stubs conscrypt okhttp core-junit bouncycastle ext
495LOCAL_STATIC_JAVA_LIBRARIES := framework-protos
496
497LOCAL_MODULE := framework
498
499LOCAL_DX_FLAGS := --core-library --multi-dex
500LOCAL_JACK_FLAGS := --multi-dex native
501
502LOCAL_RMTYPEDEFS := true
503
504ifeq ($(EMMA_INSTRUMENT_FRAMEWORK),true)
505LOCAL_EMMA_INSTRUMENT := true
506endif
507
508include $(BUILD_JAVA_LIBRARY)
509framework_module := $(LOCAL_INSTALLED_MODULE)
510
511# Make sure that R.java and Manifest.java are built before we build
512# the source for this library.
513framework_res_R_stamp := \
514	$(call intermediates-dir-for,APPS,framework-res,,COMMON)/src/R.stamp
515$(full_classes_compiled_jar): $(framework_res_R_stamp)
516$(built_dex_intermediate): $(framework_res_R_stamp)
517
518$(framework_module): | $(dir $(framework_module))framework-res.apk
519
520framework_built := $(call java-lib-deps,framework)
521
522# Copy AIDL files to be preprocessed and included in the SDK,
523# specified relative to the root of the build tree.
524# ============================================================
525include $(CLEAR_VARS)
526
527aidl_files := \
528	frameworks/base/telephony/java/android/telephony/ServiceState.aidl \
529	frameworks/base/telephony/java/android/telephony/SubscriptionInfo.aidl \
530	frameworks/base/telephony/java/android/telephony/CellInfo.aidl \
531	frameworks/base/telephony/java/android/telephony/SignalStrength.aidl \
532	frameworks/base/telephony/java/android/telephony/IccOpenLogicalChannelResponse.aidl \
533	frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.aidl \
534	frameworks/base/telephony/java/android/telephony/ModemActivityInfo.aidl \
535	frameworks/base/location/java/android/location/Location.aidl \
536	frameworks/base/location/java/android/location/Address.aidl \
537	frameworks/base/location/java/android/location/Criteria.aidl \
538	frameworks/base/media/java/android/media/MediaMetadata.aidl \
539	frameworks/base/media/java/android/media/MediaDescription.aidl \
540	frameworks/base/media/java/android/media/Rating.aidl \
541	frameworks/base/media/java/android/media/AudioAttributes.aidl \
542	frameworks/base/media/java/android/media/AudioFocusInfo.aidl \
543	frameworks/base/media/java/android/media/session/PlaybackState.aidl \
544	frameworks/base/media/java/android/media/session/MediaSession.aidl \
545	frameworks/base/media/java/android/media/tv/TvInputInfo.aidl \
546	frameworks/base/media/java/android/media/tv/TvTrackInfo.aidl \
547	frameworks/base/media/java/android/media/browse/MediaBrowser.aidl \
548	frameworks/base/wifi/java/android/net/wifi/ScanSettings.aidl \
549	frameworks/base/wifi/java/android/net/wifi/nan/ConfigRequest.aidl \
550	frameworks/base/wifi/java/android/net/wifi/nan/PublishData.aidl \
551	frameworks/base/wifi/java/android/net/wifi/nan/SubscribeData.aidl \
552	frameworks/base/wifi/java/android/net/wifi/nan/PublishSettings.aidl \
553	frameworks/base/wifi/java/android/net/wifi/nan/SubscribeSettings.aidl \
554	frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pInfo.aidl \
555	frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDeviceList.aidl \
556	frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pConfig.aidl \
557	frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pDevice.aidl \
558	frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pGroup.aidl \
559	frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceRequest.aidl \
560	frameworks/base/wifi/java/android/net/wifi/p2p/nsd/WifiP2pServiceInfo.aidl \
561	frameworks/base/wifi/java/android/net/wifi/WpsInfo.aidl \
562	frameworks/base/wifi/java/android/net/wifi/ScanResult.aidl \
563	frameworks/base/wifi/java/android/net/wifi/PasspointManagementObjectDefinition.aidl \
564	frameworks/base/wifi/java/android/net/wifi/WifiEnterpriseConfig.aidl \
565	frameworks/base/wifi/java/android/net/wifi/WifiConfiguration.aidl \
566	frameworks/base/wifi/java/android/net/wifi/WifiInfo.aidl \
567	frameworks/base/graphics/java/android/graphics/Region.aidl \
568	frameworks/base/graphics/java/android/graphics/Bitmap.aidl \
569	frameworks/base/graphics/java/android/graphics/Point.aidl \
570	frameworks/base/graphics/java/android/graphics/PointF.aidl \
571	frameworks/base/graphics/java/android/graphics/RectF.aidl \
572	frameworks/base/graphics/java/android/graphics/Rect.aidl \
573	frameworks/base/graphics/java/android/graphics/drawable/Icon.aidl \
574	frameworks/base/core/java/android/accounts/AuthenticatorDescription.aidl \
575	frameworks/base/core/java/android/accounts/Account.aidl \
576	frameworks/base/core/java/android/app/admin/SystemUpdatePolicy.aidl \
577	frameworks/base/core/java/android/print/PrintDocumentInfo.aidl \
578	frameworks/base/core/java/android/print/PageRange.aidl \
579	frameworks/base/core/java/android/print/PrintAttributes.aidl \
580	frameworks/base/core/java/android/print/PrinterCapabilitiesInfo.aidl \
581	frameworks/base/core/java/android/print/PrinterId.aidl \
582	frameworks/base/core/java/android/print/PrintJobInfo.aidl \
583	frameworks/base/core/java/android/print/PrinterInfo.aidl \
584	frameworks/base/core/java/android/print/PrintJobId.aidl \
585	frameworks/base/core/java/android/printservice/recommendation/RecommendationInfo.aidl \
586	frameworks/base/core/java/android/hardware/usb/UsbDevice.aidl \
587	frameworks/base/core/java/android/hardware/usb/UsbInterface.aidl \
588	frameworks/base/core/java/android/hardware/usb/UsbEndpoint.aidl \
589	frameworks/base/core/java/android/hardware/usb/UsbAccessory.aidl \
590	frameworks/base/core/java/android/os/Messenger.aidl \
591	frameworks/base/core/java/android/os/PatternMatcher.aidl \
592	frameworks/base/core/java/android/os/Message.aidl \
593	frameworks/base/core/java/android/os/UserHandle.aidl \
594	frameworks/base/core/java/android/os/ParcelUuid.aidl \
595	frameworks/base/core/java/android/os/ParcelFileDescriptor.aidl \
596	frameworks/base/core/java/android/os/ResultReceiver.aidl \
597	frameworks/base/core/java/android/os/WorkSource.aidl \
598	frameworks/base/core/java/android/os/DropBoxManager.aidl \
599	frameworks/base/core/java/android/os/Bundle.aidl \
600	frameworks/base/core/java/android/accessibilityservice/AccessibilityServiceInfo.aidl \
601	frameworks/base/core/java/android/net/Network.aidl \
602	frameworks/base/core/java/android/net/RouteInfo.aidl \
603	frameworks/base/core/java/android/net/NetworkInfo.aidl \
604	frameworks/base/core/java/android/net/IpPrefix.aidl \
605	frameworks/base/core/java/android/net/NetworkCapabilities.aidl \
606	frameworks/base/core/java/android/net/DhcpInfo.aidl \
607	frameworks/base/core/java/android/net/ProxyInfo.aidl \
608	frameworks/base/core/java/android/net/LinkProperties.aidl \
609	frameworks/base/core/java/android/net/Uri.aidl \
610	frameworks/base/core/java/android/net/NetworkRequest.aidl \
611	frameworks/base/core/java/android/net/LinkAddress.aidl \
612	frameworks/base/core/java/android/util/MemoryIntArray.aidl \
613	frameworks/base/core/java/android/view/Display.aidl \
614	frameworks/base/core/java/android/view/InputDevice.aidl \
615	frameworks/base/core/java/android/view/InputEvent.aidl \
616	frameworks/native/aidl/gui/android/view/Surface.aidl \
617	frameworks/base/core/java/android/view/WindowContentFrameStats.aidl \
618	frameworks/base/core/java/android/view/inputmethod/InputMethodSubtype.aidl \
619	frameworks/base/core/java/android/view/inputmethod/CursorAnchorInfo.aidl \
620	frameworks/base/core/java/android/view/inputmethod/CompletionInfo.aidl \
621	frameworks/base/core/java/android/view/inputmethod/ExtractedText.aidl \
622	frameworks/base/core/java/android/view/inputmethod/EditorInfo.aidl \
623	frameworks/base/core/java/android/view/inputmethod/InputMethodInfo.aidl \
624	frameworks/base/core/java/android/view/inputmethod/CorrectionInfo.aidl \
625	frameworks/base/core/java/android/view/inputmethod/InputBinding.aidl \
626	frameworks/base/core/java/android/view/inputmethod/ExtractedTextRequest.aidl \
627	frameworks/base/core/java/android/view/DragEvent.aidl \
628	frameworks/base/core/java/android/view/KeyEvent.aidl \
629	frameworks/base/core/java/android/view/WindowManager.aidl \
630	frameworks/base/core/java/android/view/WindowAnimationFrameStats.aidl \
631	frameworks/base/core/java/android/view/MotionEvent.aidl \
632	frameworks/base/core/java/android/view/accessibility/AccessibilityNodeInfo.aidl \
633	frameworks/base/core/java/android/view/accessibility/AccessibilityRecord.aidl \
634	frameworks/base/core/java/android/view/accessibility/AccessibilityWindowInfo.aidl \
635	frameworks/base/core/java/android/view/accessibility/AccessibilityEvent.aidl \
636	frameworks/base/core/java/android/view/textservice/SpellCheckerSubtype.aidl \
637	frameworks/base/core/java/android/view/textservice/TextInfo.aidl \
638	frameworks/base/core/java/android/view/textservice/SpellCheckerInfo.aidl \
639	frameworks/base/core/java/android/view/textservice/SentenceSuggestionsInfo.aidl \
640	frameworks/base/core/java/android/view/textservice/SuggestionsInfo.aidl \
641	frameworks/base/core/java/android/service/carrier/CarrierIdentifier.aidl \
642	frameworks/base/core/java/android/service/carrier/MessagePdu.aidl \
643	frameworks/base/core/java/android/service/notification/StatusBarNotification.aidl \
644	frameworks/base/core/java/android/service/chooser/ChooserTarget.aidl \
645	frameworks/base/core/java/android/speech/tts/Voice.aidl \
646	frameworks/base/core/java/android/app/usage/UsageEvents.aidl \
647	frameworks/base/core/java/android/app/Notification.aidl \
648	frameworks/base/core/java/android/app/NotificationManager.aidl \
649	frameworks/base/core/java/android/app/WallpaperInfo.aidl \
650	frameworks/base/core/java/android/app/AppOpsManager.aidl \
651	frameworks/base/core/java/android/app/ActivityManager.aidl \
652	frameworks/base/core/java/android/app/PendingIntent.aidl \
653	frameworks/base/core/java/android/app/AlarmManager.aidl \
654	frameworks/base/core/java/android/app/SearchableInfo.aidl \
655	frameworks/base/core/java/android/app/VoiceInteractor.aidl \
656	frameworks/base/core/java/android/app/assist/AssistContent.aidl \
657	frameworks/base/core/java/android/app/assist/AssistStructure.aidl \
658	frameworks/base/core/java/android/app/job/JobParameters.aidl \
659	frameworks/base/core/java/android/app/job/JobInfo.aidl \
660	frameworks/base/core/java/android/appwidget/AppWidgetProviderInfo.aidl \
661	frameworks/base/core/java/android/content/ClipDescription.aidl \
662	frameworks/base/core/java/android/content/IntentFilter.aidl \
663	frameworks/base/core/java/android/content/Intent.aidl \
664	frameworks/base/core/java/android/content/res/Configuration.aidl \
665	frameworks/base/core/java/android/content/res/ObbInfo.aidl \
666	frameworks/base/core/java/android/content/RestrictionEntry.aidl \
667	frameworks/base/core/java/android/content/ClipData.aidl \
668	frameworks/base/core/java/android/content/SyncAdapterType.aidl \
669	frameworks/base/core/java/android/content/SyncRequest.aidl \
670	frameworks/base/core/java/android/content/PeriodicSync.aidl \
671	frameworks/base/core/java/android/content/SyncResult.aidl \
672	frameworks/base/core/java/android/content/pm/FeatureInfo.aidl \
673	frameworks/base/core/java/android/content/pm/InstrumentationInfo.aidl \
674	frameworks/base/core/java/android/content/pm/PackageInstaller.aidl \
675	frameworks/base/core/java/android/content/pm/ServiceInfo.aidl \
676	frameworks/base/core/java/android/content/pm/Signature.aidl \
677	frameworks/base/core/java/android/content/pm/ApplicationInfo.aidl \
678	frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
679	frameworks/base/core/java/android/content/pm/ActivityInfo.aidl \
680	frameworks/base/core/java/android/content/pm/PackageInfo.aidl \
681	frameworks/base/core/java/android/content/pm/ResolveInfo.aidl \
682	frameworks/base/core/java/android/content/pm/ProviderInfo.aidl \
683	frameworks/base/core/java/android/content/pm/PackageStats.aidl \
684	frameworks/base/core/java/android/content/pm/PermissionGroupInfo.aidl \
685	frameworks/base/core/java/android/content/pm/ShortcutInfo.aidl \
686	frameworks/base/core/java/android/content/pm/LabeledIntent.aidl \
687	frameworks/base/core/java/android/content/ComponentName.aidl \
688	frameworks/base/core/java/android/content/SyncStats.aidl \
689	frameworks/base/core/java/android/content/ContentValues.aidl \
690	frameworks/base/core/java/android/content/SyncInfo.aidl \
691	frameworks/base/core/java/android/content/IntentSender.aidl \
692	frameworks/base/core/java/android/widget/RemoteViews.aidl \
693	frameworks/base/core/java/android/text/style/SuggestionSpan.aidl \
694	frameworks/base/core/java/android/nfc/Tag.aidl \
695	frameworks/base/core/java/android/nfc/NdefRecord.aidl \
696	frameworks/base/core/java/android/nfc/NdefMessage.aidl \
697	frameworks/base/core/java/android/bluetooth/BluetoothHealthAppConfiguration.aidl \
698	frameworks/base/core/java/android/bluetooth/le/AdvertiseSettings.aidl \
699	frameworks/base/core/java/android/bluetooth/le/ScanSettings.aidl \
700	frameworks/base/core/java/android/bluetooth/le/AdvertiseData.aidl \
701	frameworks/base/core/java/android/bluetooth/le/ScanFilter.aidl \
702	frameworks/base/core/java/android/bluetooth/le/ScanResult.aidl \
703	frameworks/base/core/java/android/bluetooth/BluetoothDevice.aidl \
704	frameworks/base/core/java/android/database/CursorWindow.aidl \
705	frameworks/base/core/java/android/service/quicksettings/Tile.aidl \
706	frameworks/native/aidl/binder/android/os/PersistableBundle.aidl \
707	system/netd/server/binder/android/net/UidRange.aidl \
708	frameworks/base/telephony/java/android/telephony/PcoData.aidl \
709
710gen := $(TARGET_OUT_COMMON_INTERMEDIATES)/framework.aidl
711$(gen): PRIVATE_SRC_FILES := $(aidl_files)
712ALL_SDK_FILES += $(gen)
713$(gen): $(aidl_files) | $(AIDL)
714		@echo Aidl Preprocess: $@
715		$(hide) $(AIDL) --preprocess $@ $(PRIVATE_SRC_FILES)
716
717# the documentation
718# ============================================================
719
720# TODO: deal with com/google/android/googleapps
721packages_to_document := \
722	android \
723	javax/microedition/khronos \
724	org/apache/http/conn \
725	org/apache/http/params
726
727
728# Search through the base framework dirs for these packages.
729# The result will be relative to frameworks/base.
730fwbase_dirs_to_document := \
731	test-runner/src \
732	$(patsubst $(LOCAL_PATH)/%,%, \
733	  $(wildcard \
734	    $(foreach dir, $(FRAMEWORKS_BASE_JAVA_SRC_DIRS), \
735	      $(addprefix $(dir)/, $(packages_to_document)) \
736	     ) \
737	   ) \
738	 )
739
740# include definition of libcore_to_document
741include libcore/Docs.mk
742
743# include definition of junit_to_document
744include external/junit/Common.mk
745
746non_base_dirs := \
747	../opt/telephony/src/java/android/provider \
748	../opt/telephony/src/java/android/telephony \
749	../opt/telephony/src/java/android/telephony/gsm \
750	../opt/net/voip/src/java/android/net/rtp \
751	../opt/net/voip/src/java/android/net/sip
752
753# These are relative to frameworks/base
754dirs_to_check_apis := \
755  $(fwbase_dirs_to_document) \
756	$(non_base_dirs)
757
758###########################################################
759## Return all directories that have a 'NO_DOCS' file in
760## them, appending a '%' to them to form a pattern to
761## filter out files under those directories.
762## $(1): A list of base directories to look at.
763###########################################################
764define find-no-docs-pattern
765$(addsuffix %, $(dir $(foreach dir, $(1), $(shell cd $(LOCAL_PATH); find $(dir) -name NO_DOCS))))
766endef
767
768# These are relative to frameworks/base
769# FRAMEWORKS_BASE_SUBDIRS comes from build/core/pathmap.mk
770dirs_to_document := \
771	$(dirs_to_check_apis) \
772  $(addprefix ../../, $(FRAMEWORKS_DATA_BINDING_JAVA_SRC_DIRS)) \
773  $(addprefix ../../, $(FRAMEWORKS_SUPPORT_JAVA_SRC_DIRS)) \
774
775patterns_to_not_document := \
776	$(call find-no-docs-pattern, $(dirs_to_document))
777
778# These are relative to frameworks/base
779html_dirs := \
780	$(FRAMEWORKS_BASE_SUBDIRS) \
781	$(non_base_dirs)
782
783# Common sources for doc check and api check
784common_src_files := \
785	$(call find-other-html-files, $(html_dirs)) \
786	$(addprefix ../../, $(libcore_to_document)) \
787	$(addprefix ../../external/junit/, $(junit_to_document))
788
789# These are relative to frameworks/base
790framework_docs_LOCAL_SRC_FILES := \
791	$(filter-out $(patterns_to_not_document), $(call find-other-java-files, $(dirs_to_document))) \
792	$(common_src_files)
793
794# These are relative to frameworks/base
795framework_docs_LOCAL_API_CHECK_SRC_FILES := \
796	$(call find-other-java-files, $(dirs_to_check_apis)) \
797	$(common_src_files)
798
799# This is used by ide.mk as the list of source files that are
800# always included.
801INTERNAL_SDK_SOURCE_DIRS := $(addprefix $(LOCAL_PATH)/,$(dirs_to_document))
802
803framework_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
804	$(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
805
806framework_docs_LOCAL_INTERMEDIATE_SOURCES := \
807	$(framework_res_source_path)/android/R.java \
808	$(framework_res_source_path)/android/Manifest.java \
809	$(framework_res_source_path)/com/android/internal/R.java
810
811framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES := \
812	core-oj \
813	core-libart \
814	conscrypt \
815	bouncycastle \
816	okhttp \
817	ext \
818	icu4j \
819	framework \
820	telephony-common \
821	voip-common
822
823framework_docs_LOCAL_JAVA_LIBRARIES := \
824	$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES) \
825	$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES)
826
827framework_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
828framework_docs_LOCAL_DROIDDOC_HTML_DIR := docs/html
829# The since flag (-since N.xml API_LEVEL) is used to add API Level information
830# to the reference documentation. Must be in order of oldest to newest.
831#
832# Conscrypt (com.android.org.conscrypt) is an implementation detail and should
833# not be referenced in the documentation.
834framework_docs_LOCAL_DROIDDOC_OPTIONS := \
835    -knowntags ./frameworks/base/docs/knowntags.txt \
836    -knowntags ./libcore/known_oj_tags.txt \
837    -hidePackage com.android.org.conscrypt \
838    -since $(SRC_API_DIR)/1.xml 1 \
839    -since $(SRC_API_DIR)/2.xml 2 \
840    -since $(SRC_API_DIR)/3.xml 3 \
841    -since $(SRC_API_DIR)/4.xml 4 \
842    -since $(SRC_API_DIR)/5.xml 5 \
843    -since $(SRC_API_DIR)/6.xml 6 \
844    -since $(SRC_API_DIR)/7.xml 7 \
845    -since $(SRC_API_DIR)/8.xml 8 \
846    -since $(SRC_API_DIR)/9.xml 9 \
847    -since $(SRC_API_DIR)/10.xml 10 \
848    -since $(SRC_API_DIR)/11.xml 11 \
849    -since $(SRC_API_DIR)/12.xml 12 \
850    -since $(SRC_API_DIR)/13.xml 13 \
851    -since $(SRC_API_DIR)/14.txt 14 \
852    -since $(SRC_API_DIR)/15.txt 15 \
853    -since $(SRC_API_DIR)/16.txt 16 \
854    -since $(SRC_API_DIR)/17.txt 17 \
855    -since $(SRC_API_DIR)/18.txt 18 \
856    -since $(SRC_API_DIR)/19.txt 19 \
857    -since $(SRC_API_DIR)/20.txt 20 \
858    -since $(SRC_API_DIR)/21.txt 21 \
859    -since $(SRC_API_DIR)/22.txt 22 \
860    -since $(SRC_API_DIR)/23.txt 23 \
861    -since $(SRC_API_DIR)/24.txt 24 \
862		-werror -hide 111 -hide 113 \
863		-overview $(LOCAL_PATH)/core/java/overview.html
864
865framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR:= \
866	$(call intermediates-dir-for,JAVA_LIBRARIES,framework,,COMMON)
867
868framework_docs_LOCAL_ADDITIONAL_JAVA_DIR:= \
869	$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR) \
870	$(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib),,COMMON)) \
871	$(foreach lib,$(FRAMEWORKS_SUPPORT_JAVA_LIBRARIES),$(call intermediates-dir-for,JAVA_LIBRARIES,$(lib)-res,,COMMON))
872
873framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES := \
874    frameworks/base/docs/knowntags.txt \
875    libcore/Docs.mk
876
877samples_dir := development/samples/browseable
878
879# Whitelist of valid groups, used for default TOC grouping. Each sample must
880# belong to one (and only one) group. Assign samples to groups by setting
881# a sample.group var to one of these groups in the sample's _index.jd.
882sample_groups := -samplegroup Admin \
883                 -samplegroup Background \
884                 -samplegroup Connectivity \
885                 -samplegroup Content \
886                 -samplegroup Input \
887                 -samplegroup Media \
888                 -samplegroup Notification \
889                 -samplegroup RenderScript \
890                 -samplegroup Security \
891                 -samplegroup Sensors \
892                 -samplegroup System \
893                 -samplegroup Testing \
894                 -samplegroup UI \
895                 -samplegroup Views \
896                 -samplegroup Wearable
897
898## SDK version identifiers used in the published docs
899  # major[.minor] version for current SDK. (full releases only)
900framework_docs_SDK_VERSION:=7.0
901  # release version (ie "Release x")  (full releases only)
902framework_docs_SDK_REL_ID:=1
903
904framework_docs_LOCAL_DROIDDOC_OPTIONS += \
905		-hdf sdk.codename N \
906		-hdf sdk.preview.version 5 \
907		-hdf sdk.version $(framework_docs_SDK_VERSION) \
908		-hdf sdk.rel.id $(framework_docs_SDK_REL_ID) \
909		-hdf sdk.preview 0
910
911# ====  the api stubs and current.xml ===========================
912include $(CLEAR_VARS)
913
914LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
915LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
916LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
917LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
918LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
919LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
920LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
921LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
922
923LOCAL_MODULE := api-stubs
924
925LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_stubs_current_intermediates/src
926
927LOCAL_DROIDDOC_OPTIONS:=\
928		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
929		-api $(INTERNAL_PLATFORM_API_FILE) \
930		-removedApi $(INTERNAL_PLATFORM_REMOVED_API_FILE) \
931		-nodocs
932
933LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
934
935LOCAL_UNINSTALLABLE_MODULE := true
936
937include $(BUILD_DROIDDOC)
938
939# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
940$(full_target): $(framework_built) $(gen)
941$(INTERNAL_PLATFORM_API_FILE): $(full_target)
942$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_API_FILE))
943
944# ====  the system api stubs ===================================
945include $(CLEAR_VARS)
946
947LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
948LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
949LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
950LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
951LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
952LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
953LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
954LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
955
956LOCAL_MODULE := system-api-stubs
957
958LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_system_stubs_current_intermediates/src
959
960LOCAL_DROIDDOC_OPTIONS:=\
961		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
962		-showAnnotation android.annotation.SystemApi \
963		-api $(INTERNAL_PLATFORM_SYSTEM_API_FILE) \
964		-removedApi $(INTERNAL_PLATFORM_SYSTEM_REMOVED_API_FILE) \
965		-nodocs
966
967LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
968
969LOCAL_UNINSTALLABLE_MODULE := true
970
971include $(BUILD_DROIDDOC)
972
973# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
974$(full_target): $(framework_built) $(gen)
975$(INTERNAL_PLATFORM_SYSTEM_API_FILE): $(full_target)
976$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_SYSTEM_API_FILE))
977
978# ====  the test api stubs ===================================
979include $(CLEAR_VARS)
980
981LOCAL_SRC_FILES:=$(framework_docs_LOCAL_API_CHECK_SRC_FILES)
982LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
983LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_API_CHECK_JAVA_LIBRARIES)
984LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
985LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
986LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
987LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_API_CHECK_ADDITIONAL_JAVA_DIR)
988LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
989
990LOCAL_MODULE := test-api-stubs
991
992LOCAL_DROIDDOC_STUB_OUT_DIR := $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src
993
994LOCAL_DROIDDOC_OPTIONS:=\
995               $(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
996               -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/android_test_stubs_current_intermediates/src \
997               -showAnnotation android.annotation.TestApi \
998               -api $(INTERNAL_PLATFORM_TEST_API_FILE) \
999               -removedApi $(INTERNAL_PLATFORM_TEST_REMOVED_API_FILE) \
1000               -nodocs
1001
1002LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1003
1004LOCAL_UNINSTALLABLE_MODULE := true
1005
1006include $(BUILD_DROIDDOC)
1007
1008# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1009$(full_target): $(framework_built) $(gen)
1010$(INTERNAL_PLATFORM_TEST_API_FILE): $(full_target)
1011$(call dist-for-goals,sdk,$(INTERNAL_PLATFORM_TEST_API_FILE))
1012
1013# ====  check javadoc comments but don't generate docs ========
1014include $(CLEAR_VARS)
1015
1016LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1017LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1018LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1019LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1020LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1021LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1022LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1023LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1024
1025LOCAL_MODULE := doc-comment-check
1026
1027LOCAL_DROIDDOC_OPTIONS:=\
1028		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1029		-parsecomments
1030
1031LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1032
1033LOCAL_UNINSTALLABLE_MODULE := true
1034
1035include $(BUILD_DROIDDOC)
1036
1037# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
1038$(full_target): $(framework_built) $(gen)
1039
1040# Run this for checkbuild
1041checkbuild: doc-comment-check-docs
1042# Check comment when you are updating the API
1043update-api: doc-comment-check-docs
1044
1045# ====  static html in the sdk ==================================
1046include $(CLEAR_VARS)
1047
1048LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1049LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1050LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1051LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1052LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1053LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1054LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1055LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1056
1057LOCAL_MODULE := offline-sdk
1058
1059LOCAL_DROIDDOC_OPTIONS:=\
1060		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1061		-offlinemode \
1062		-title "Android SDK" \
1063		-proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
1064		-sdkvalues $(OUT_DOCS) \
1065		-hdf android.whichdoc offline
1066
1067LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk-dev
1068
1069include $(BUILD_DROIDDOC)
1070
1071static_doc_index_redirect := $(out_dir)/index.html
1072$(static_doc_index_redirect): \
1073	$(LOCAL_PATH)/docs/docs-preview-index.html | $(ACP)
1074	$(hide) mkdir -p $(dir $@)
1075	$(hide) $(ACP) $< $@
1076
1077$(full_target): $(static_doc_index_redirect)
1078$(full_target): $(framework_built)
1079
1080
1081# ====  static html in the sdk ==================================
1082include $(CLEAR_VARS)
1083
1084LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1085LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1086LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1087LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1088LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1089LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1090LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1091LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1092
1093LOCAL_MODULE := offline-sdk-referenceonly
1094
1095LOCAL_DROIDDOC_OPTIONS:=\
1096		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1097		-offlinemode \
1098		-title "Android SDK" \
1099		-proofread $(OUT_DOCS)/$(LOCAL_MODULE)-proofread.txt \
1100		-sdkvalues $(OUT_DOCS) \
1101		-hdf android.whichdoc offline \
1102		-referenceonly
1103
1104LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk-dev
1105
1106include $(BUILD_DROIDDOC)
1107
1108static_doc_index_redirect := $(out_dir)/index.html
1109$(static_doc_index_redirect): \
1110	$(LOCAL_PATH)/docs/docs-documentation-redirect.html | $(ACP)
1111	$(hide) mkdir -p $(dir $@)
1112	$(hide) $(ACP) $< $@
1113
1114$(full_target): $(static_doc_index_redirect)
1115$(full_target): $(framework_built)
1116
1117
1118# ==== docs for the web (on the androiddevdocs app engine server) =======================
1119include $(CLEAR_VARS)
1120
1121LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1122LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1123LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1124LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1125LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1126LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1127LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1128LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1129LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1130LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1131
1132LOCAL_MODULE := online-sdk
1133
1134LOCAL_DROIDDOC_OPTIONS:= \
1135		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1136		-toroot / \
1137		-hdf android.whichdoc online \
1138		$(sample_groups) \
1139		-hdf android.hasSamples true \
1140		-samplesdir $(samples_dir)
1141
1142LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk-dev
1143
1144include $(BUILD_DROIDDOC)
1145
1146# ==== docs for the web (on the androiddevdocs app engine server) =======================
1147# TODO: Fix the System API docs build.
1148ifneq ($(filter online-system-api-sdk-docs,$(MAKECMDGOALS)),)
1149include $(CLEAR_VARS)
1150
1151LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1152LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1153LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1154LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1155LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1156LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1157LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1158LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1159LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1160LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1161
1162LOCAL_MODULE := online-system-api-sdk
1163
1164LOCAL_DROIDDOC_OPTIONS:= \
1165		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1166		-showAnnotation android.annotation.SystemApi \
1167		-title "Android SDK - Including system APIs." \
1168		-toroot / \
1169		-hide 101 \
1170		-hide 104 \
1171		-hide 108 \
1172		-hdf android.whichdoc online \
1173		$(sample_groups) \
1174		-hdf android.hasSamples true \
1175		-samplesdir $(samples_dir)
1176
1177LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1178# Don't build by default
1179LOCAL_UNINSTALLABLE_MODULE := true
1180
1181include $(BUILD_DROIDDOC)
1182endif  # online-system-api-sdk-docs in make command line.
1183
1184# ==== docs for the web (on the devsite app engine server) =======================
1185include $(CLEAR_VARS)
1186LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1187LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1188LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1189LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1190LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1191LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1192LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1193LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1194LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1195# specify a second html input dir and an output path relative to OUT_DIR)
1196LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1197
1198LOCAL_MODULE := ds
1199
1200LOCAL_DROIDDOC_OPTIONS:= \
1201		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1202		-toroot / \
1203		-hdf android.whichdoc online \
1204		-devsite \
1205		$(sample_groups) \
1206		-hdf android.hasSamples true \
1207		-samplesdir $(samples_dir)
1208
1209LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk-dev
1210
1211include $(BUILD_DROIDDOC)
1212
1213# ==== docs for the web (on the devsite app engine server) =======================
1214include $(CLEAR_VARS)
1215LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1216LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1217LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1218LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1219LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1220LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1221LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1222LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1223LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1224# specify a second html input dir and an output path relative to OUT_DIR)
1225LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1226
1227LOCAL_MODULE := ds-static
1228
1229LOCAL_DROIDDOC_OPTIONS:= \
1230		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1231		-hdf android.whichdoc online \
1232		-staticonly \
1233		-toroot / \
1234		-devsite \
1235		-ignoreJdLinks
1236
1237LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk-dev
1238
1239include $(BUILD_DROIDDOC)
1240
1241# ==== site updates for docs (on the androiddevdocs app engine server) =======================
1242include $(CLEAR_VARS)
1243
1244LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1245LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1246LOCAL_STATIC_JAVA_LIBRARIES:=$(framework_docs_LOCAL_STATIC_JAVA_LIBRARIES)
1247LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1248LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1249LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1250LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1251LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1252LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1253LOCAL_ADDITIONAL_HTML_DIR:=docs/html-intl /
1254
1255LOCAL_MODULE := online-sdk-dev
1256
1257LOCAL_DROIDDOC_OPTIONS:= \
1258		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1259		-toroot / \
1260		-hdf android.whichdoc online \
1261		$(sample_groups) \
1262		-useUpdatedTemplates \
1263		-hdf android.hasSamples true \
1264		-samplesdir $(samples_dir)
1265
1266LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk-dev
1267
1268include $(BUILD_DROIDDOC)
1269
1270# ==== docs that have all of the stuff that's @hidden =======================
1271include $(CLEAR_VARS)
1272
1273LOCAL_SRC_FILES:=$(framework_docs_LOCAL_SRC_FILES)
1274LOCAL_INTERMEDIATE_SOURCES:=$(framework_docs_LOCAL_INTERMEDIATE_SOURCES)
1275LOCAL_JAVA_LIBRARIES:=$(framework_docs_LOCAL_JAVA_LIBRARIES)
1276LOCAL_MODULE_CLASS:=$(framework_docs_LOCAL_MODULE_CLASS)
1277LOCAL_DROIDDOC_SOURCE_PATH:=$(framework_docs_LOCAL_DROIDDOC_SOURCE_PATH)
1278LOCAL_DROIDDOC_HTML_DIR:=$(framework_docs_LOCAL_DROIDDOC_HTML_DIR)
1279LOCAL_ADDITIONAL_JAVA_DIR:=$(framework_docs_LOCAL_ADDITIONAL_JAVA_DIR)
1280LOCAL_ADDITIONAL_DEPENDENCIES:=$(framework_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
1281
1282LOCAL_MODULE := hidden
1283LOCAL_DROIDDOC_OPTIONS:=\
1284		$(framework_docs_LOCAL_DROIDDOC_OPTIONS) \
1285		-title "Android SDK - Including hidden APIs."
1286#		-hidden
1287
1288LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=build/tools/droiddoc/templates-sdk
1289
1290include $(BUILD_DROIDDOC)
1291
1292# Build ext.jar
1293# ============================================================
1294
1295ext_dirs := \
1296	../../external/nist-sip/java \
1297	../../external/tagsoup/src \
1298
1299ext_src_files := $(call all-java-files-under,$(ext_dirs))
1300
1301# ====  the library  =========================================
1302include $(CLEAR_VARS)
1303
1304LOCAL_SRC_FILES := $(ext_src_files)
1305
1306LOCAL_NO_STANDARD_LIBRARIES := true
1307LOCAL_JAVA_LIBRARIES := core-oj core-libart
1308LOCAL_STATIC_JAVA_LIBRARIES := libphonenumber-platform
1309LOCAL_MODULE_TAGS := optional
1310LOCAL_MODULE := ext
1311
1312LOCAL_DX_FLAGS := --core-library
1313
1314ifneq ($(INCREMENTAL_BUILDS),)
1315    LOCAL_PROGUARD_ENABLED := disabled
1316    LOCAL_JACK_ENABLED := incremental
1317endif
1318
1319include $(BUILD_JAVA_LIBRARY)
1320
1321
1322# Include subdirectory makefiles
1323# ============================================================
1324
1325# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
1326# team really wants is to build the stuff defined by this makefile.
1327ifeq (,$(ONE_SHOT_MAKEFILE))
1328include $(call first-makefiles-under,$(LOCAL_PATH))
1329endif
1330
1331endif # ANDROID_BUILD_EMBEDDED
1332