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