2016-09-23 15:55:49 -07:00
|
|
|
// Copyright (C) 2016 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2017-11-16 00:15:28 -08:00
|
|
|
// Build the master framework library.
|
|
|
|
|
|
|
|
// READ ME: ########################################################
|
|
|
|
//
|
|
|
|
// When updating this list of aidl files, consider if that aidl is
|
|
|
|
// part of the SDK API. If it is, also add it to the list in Android.mk
|
|
|
|
// that is preprocessed and distributed with the SDK. This list should
|
|
|
|
// not contain any aidl files for parcelables, but the one below should
|
|
|
|
// if you intend for 3rd parties to be able to send those objects
|
|
|
|
// across process boundaries.
|
|
|
|
//
|
|
|
|
// READ ME: ########################################################
|
|
|
|
|
2019-08-02 16:42:07 +01:00
|
|
|
filegroup {
|
2019-08-16 21:17:14 +09:00
|
|
|
name: "framework-core-sources",
|
2019-08-02 16:42:07 +01:00
|
|
|
srcs: [
|
|
|
|
"core/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"core/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "core/java",
|
|
|
|
}
|
|
|
|
|
2019-10-31 20:38:47 +09:00
|
|
|
// These are subset of framework-core-sources that are needed by the
|
|
|
|
// android.test.mock library. Ideally, the library should use public APIs only,
|
|
|
|
// but unfortunately its API signature has some references to these private APIs.
|
|
|
|
filegroup {
|
|
|
|
name: "framework-core-sources-for-test-mock",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/app/IApplicationThread.aidl",
|
|
|
|
"core/java/android/app/IServiceConnection.aidl",
|
|
|
|
"core/java/android/content/IContentProvider.java",
|
|
|
|
"core/java/android/content/pm/IPackageDataObserver.aidl",
|
|
|
|
"core/java/android/content/pm/InstantAppInfo.java",
|
|
|
|
"core/java/android/content/pm/KeySet.java",
|
|
|
|
"core/java/android/content/pm/PackageManager.java",
|
|
|
|
"core/java/android/content/pm/VerifierDeviceIdentity.java",
|
|
|
|
"core/java/android/content/res/Resources.java",
|
|
|
|
"core/java/android/os/storage/VolumeInfo.java",
|
|
|
|
"core/java/android/view/DisplayAdjustments.java",
|
|
|
|
],
|
|
|
|
path: "core/java",
|
2020-01-17 16:14:57 +09:00
|
|
|
visibility: ["//frameworks/base/test-mock"],
|
2019-10-31 20:38:47 +09:00
|
|
|
}
|
|
|
|
|
2019-08-16 21:17:14 +09:00
|
|
|
filegroup {
|
|
|
|
name: "framework-drm-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"drm/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
],
|
|
|
|
path: "drm/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-graphics-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"graphics/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"graphics/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "graphics/java",
|
|
|
|
}
|
|
|
|
|
2019-10-29 15:15:18 -04:00
|
|
|
filegroup {
|
|
|
|
name: "framework-identity-sources",
|
|
|
|
srcs: [
|
|
|
|
"identity/java/**/*.java",
|
|
|
|
],
|
|
|
|
path: "identity/java",
|
|
|
|
}
|
|
|
|
|
2019-08-16 21:17:14 +09:00
|
|
|
filegroup {
|
|
|
|
name: "framework-keystore-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"keystore/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"keystore/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "keystore/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-location-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"location/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"location/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "location/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-lowpan-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"lowpan/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"lowpan/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "lowpan/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-media-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"media/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"media/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "media/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-mca-effect-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"media/mca/effect/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
],
|
|
|
|
path: "media/mca/effect/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-mca-filterfw-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"media/mca/filterfw/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
],
|
|
|
|
path: "media/mca/filterfw/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-mca-filterpacks-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"media/mca/filterpacks/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
],
|
|
|
|
path: "media/mca/filterpacks/java",
|
|
|
|
}
|
|
|
|
|
2019-08-18 15:19:45 +01:00
|
|
|
filegroup {
|
|
|
|
name: "framework-mime-sources",
|
|
|
|
srcs: [
|
|
|
|
"mime/java/**/*.java",
|
|
|
|
],
|
|
|
|
path: "mime/java",
|
|
|
|
}
|
|
|
|
|
2019-08-16 21:17:14 +09:00
|
|
|
filegroup {
|
|
|
|
name: "framework-opengl-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"opengl/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
],
|
|
|
|
path: "opengl/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-rs-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"rs/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
],
|
|
|
|
path: "rs/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-sax-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"sax/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
],
|
|
|
|
path: "sax/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-telecomm-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"telecomm/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"telecomm/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "telecomm/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-telephony-sources",
|
|
|
|
srcs: [
|
2019-08-02 16:42:07 +01:00
|
|
|
"telephony/java/**/*.java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"telephony/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "telephony/java",
|
|
|
|
}
|
|
|
|
|
2020-01-24 16:07:49 -08:00
|
|
|
genrule {
|
|
|
|
name: "statslog-telephony-common-java-gen",
|
|
|
|
tools: ["stats-log-api-gen"],
|
|
|
|
cmd: "$(location stats-log-api-gen) --java $(out) --module telephony_common"
|
|
|
|
+ " --javaPackage com.android.internal.telephony --javaClass TelephonyCommonStatsLog",
|
|
|
|
out: ["com/android/internal/telephony/TelephonyCommonStatsLog.java"],
|
|
|
|
}
|
|
|
|
|
2019-09-23 17:59:57 -07:00
|
|
|
filegroup {
|
|
|
|
name: "framework-telephony-common-sources",
|
|
|
|
srcs: [
|
|
|
|
"telephony/common/**/*.java",
|
2020-01-24 16:07:49 -08:00
|
|
|
":statslog-telephony-common-java-gen",
|
2019-09-23 17:59:57 -07:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-10-07 17:41:26 -07:00
|
|
|
filegroup {
|
|
|
|
name: "framework-mms-sources",
|
|
|
|
srcs: [
|
|
|
|
"mms/java/**/*.java",
|
|
|
|
"mms/java/**/*.aidl",
|
|
|
|
],
|
|
|
|
path: "mms/java",
|
|
|
|
}
|
|
|
|
|
2019-08-19 15:24:49 +09:00
|
|
|
filegroup {
|
2019-09-15 20:19:02 +09:00
|
|
|
name: "framework-non-updatable-sources",
|
2019-08-19 15:24:49 +09:00
|
|
|
srcs: [
|
|
|
|
// Java/AIDL sources under frameworks/base
|
2019-10-04 16:16:13 -07:00
|
|
|
":framework-blobstore-sources",
|
2019-08-19 15:24:49 +09:00
|
|
|
":framework-core-sources",
|
|
|
|
":framework-drm-sources",
|
|
|
|
":framework-graphics-sources",
|
2019-10-21 14:01:06 +09:00
|
|
|
":framework-jobscheduler-sources", // jobscheduler is not a module for R
|
2019-08-19 15:24:49 +09:00
|
|
|
":framework-keystore-sources",
|
2019-10-29 15:15:18 -04:00
|
|
|
":framework-identity-sources",
|
2019-08-19 15:24:49 +09:00
|
|
|
":framework-location-sources",
|
|
|
|
":framework-lowpan-sources",
|
|
|
|
":framework-mca-effect-sources",
|
|
|
|
":framework-mca-filterfw-sources",
|
|
|
|
":framework-mca-filterpacks-sources",
|
2019-10-21 14:01:06 +09:00
|
|
|
":framework-media-sources",
|
2019-10-07 17:41:26 -07:00
|
|
|
":framework-mms-sources",
|
2019-08-19 15:24:49 +09:00
|
|
|
":framework-opengl-sources",
|
|
|
|
":framework-rs-sources",
|
|
|
|
":framework-sax-sources",
|
|
|
|
":framework-telecomm-sources",
|
2019-09-23 17:59:57 -07:00
|
|
|
":framework-telephony-common-sources",
|
2019-12-14 21:37:20 -08:00
|
|
|
":framework-wifi-annotations",
|
2019-12-10 13:33:06 -08:00
|
|
|
":framework-wifi-non-updatable-sources",
|
2019-08-19 15:24:49 +09:00
|
|
|
":PacProcessor-aidl-sources",
|
|
|
|
":ProxyHandler-aidl-sources",
|
2020-01-13 15:03:35 +08:00
|
|
|
":net-utils-framework-common-srcs",
|
2019-08-19 15:24:49 +09:00
|
|
|
|
2019-10-10 19:27:31 +01:00
|
|
|
// AIDL from frameworks/base/native/
|
|
|
|
":platform-compat-native-aidl",
|
|
|
|
|
2019-08-19 15:24:49 +09:00
|
|
|
// AIDL sources from external directories
|
2019-10-29 15:15:18 -04:00
|
|
|
":credstore_aidl",
|
2019-08-19 15:24:49 +09:00
|
|
|
":dumpstate_aidl",
|
|
|
|
":framework_native_aidl",
|
|
|
|
":gatekeeper_aidl",
|
|
|
|
":gsiservice_aidl",
|
|
|
|
":incidentcompanion_aidl",
|
|
|
|
":installd_aidl",
|
|
|
|
":keystore_aidl",
|
|
|
|
":libaudioclient_aidl",
|
|
|
|
":libbinder_aidl",
|
|
|
|
":libbluetooth-binder-aidl",
|
|
|
|
":libcamera_client_aidl",
|
|
|
|
":libcamera_client_framework_aidl",
|
|
|
|
":libupdate_engine_aidl",
|
|
|
|
":storaged_aidl",
|
|
|
|
":vold_aidl",
|
|
|
|
|
|
|
|
// For the generated R.java and Manifest.java
|
|
|
|
":framework-res{.aapt.srcjar}",
|
|
|
|
|
|
|
|
// etc.
|
|
|
|
":framework-javastream-protos",
|
2020-01-27 16:36:45 -08:00
|
|
|
":statslog-framework-java-gen", // FrameworkStatsLog.java
|
2020-01-10 08:38:31 -08:00
|
|
|
|
|
|
|
// telephony annotations
|
|
|
|
":framework-telephony-annotations",
|
2019-08-19 15:24:49 +09:00
|
|
|
],
|
|
|
|
}
|
2019-08-07 22:45:07 +09:00
|
|
|
|
2019-12-02 16:30:22 +00:00
|
|
|
filegroup {
|
|
|
|
name: "framework-updatable-sources",
|
|
|
|
srcs: [
|
2019-12-17 10:41:21 -08:00
|
|
|
":framework-appsearch-sources",
|
2020-03-07 11:40:10 +00:00
|
|
|
":framework-mediaprovider-sources",
|
|
|
|
":framework-permission-sources",
|
2020-01-08 09:48:18 +00:00
|
|
|
":framework-sdkextensions-sources",
|
2019-12-12 11:03:55 -08:00
|
|
|
":framework-statsd-sources",
|
2020-03-07 11:40:10 +00:00
|
|
|
":framework-telephony-sources",
|
2019-12-16 20:15:20 +08:00
|
|
|
":framework-tethering-srcs",
|
2019-09-04 14:31:58 -07:00
|
|
|
":framework-wifi-updatable-sources",
|
2020-03-07 11:40:10 +00:00
|
|
|
":updatable-media-srcs",
|
2019-12-02 16:30:22 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2020-03-07 11:40:10 +00:00
|
|
|
java_library {
|
|
|
|
name: "framework-updatable-stubs-module_libs_api",
|
|
|
|
static_libs: [
|
|
|
|
"framework-appsearch-stubs", // TODO: Update to module_libs_api when there is one.
|
|
|
|
"framework-media-stubs-module_libs_api",
|
|
|
|
"framework-mediaprovider-stubs-module_libs_api",
|
|
|
|
"framework-permission-stubs-module_libs_api",
|
|
|
|
"framework-sdkextensions-stubs-module_libs_api",
|
|
|
|
"framework-statsd-stubs-module_libs_api",
|
|
|
|
"framework-telephony-stubs", // TODO: Update to module_libs_api when there is one.
|
|
|
|
"framework-tethering-stubs-module_libs_api",
|
|
|
|
"framework-wifi-stubs-module_libs_api",
|
|
|
|
],
|
|
|
|
sdk_version: "module_current",
|
|
|
|
visibility: [":__pkg__"],
|
|
|
|
}
|
|
|
|
|
2019-09-15 20:19:02 +09:00
|
|
|
filegroup {
|
|
|
|
name: "framework-all-sources",
|
|
|
|
srcs: [
|
2019-11-22 16:33:18 +00:00
|
|
|
":framework-mime-sources",
|
2019-09-15 20:19:02 +09:00
|
|
|
":framework-non-updatable-sources",
|
2019-12-02 16:30:22 +00:00
|
|
|
":framework-updatable-sources",
|
2019-09-15 20:19:02 +09:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2020-01-17 16:32:53 +09:00
|
|
|
// AIDL files under these paths are mixture of public and private ones.
|
|
|
|
// They shouldn't be exported across module boundaries.
|
2019-08-05 12:54:20 -07:00
|
|
|
java_defaults {
|
|
|
|
name: "framework-aidl-export-defaults",
|
|
|
|
aidl: {
|
2019-08-16 21:17:14 +09:00
|
|
|
export_include_dirs: [
|
|
|
|
"core/java",
|
|
|
|
"drm/java",
|
|
|
|
"graphics/java",
|
2019-10-29 15:15:18 -04:00
|
|
|
"identity/java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"keystore/java",
|
|
|
|
"location/java",
|
|
|
|
"lowpan/java",
|
|
|
|
"media/java",
|
|
|
|
"media/mca/effect/java",
|
|
|
|
"media/mca/filterfw/java",
|
|
|
|
"media/mca/filterpacks/java",
|
2019-10-07 17:41:26 -07:00
|
|
|
"mms/java",
|
2019-08-16 21:17:14 +09:00
|
|
|
"opengl/java",
|
|
|
|
"rs/java",
|
|
|
|
"sax/java",
|
|
|
|
"telecomm/java",
|
2020-03-07 11:40:10 +00:00
|
|
|
|
|
|
|
// TODO(b/148660295): remove this
|
|
|
|
"apex/media/framework/java",
|
|
|
|
|
|
|
|
// TODO(b/147699819): remove this
|
|
|
|
"telephony/java",
|
2019-08-16 21:17:14 +09:00
|
|
|
],
|
2019-08-05 12:54:20 -07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2019-08-19 15:24:49 +09:00
|
|
|
// Collection of classes that are generated from non-Java files that are not listed in
|
|
|
|
// framework_srcs. These have no or very limited dependency to the framework.
|
|
|
|
java_library {
|
|
|
|
name: "framework-internal-utils",
|
2017-11-16 00:15:28 -08:00
|
|
|
static_libs: [
|
2018-08-31 14:18:04 +01:00
|
|
|
"apex_aidl_interface-java",
|
2019-06-19 12:17:43 -07:00
|
|
|
"suspend_control_aidl_interface-java",
|
2017-11-16 00:15:28 -08:00
|
|
|
"framework-protos",
|
2019-01-12 17:44:29 -08:00
|
|
|
"game-driver-protos",
|
2017-11-16 00:15:28 -08:00
|
|
|
"android.hidl.base-V1.0-java",
|
|
|
|
"android.hardware.cas-V1.0-java",
|
2019-12-27 16:50:20 -08:00
|
|
|
"android.hardware.cas-V1.1-java",
|
|
|
|
"android.hardware.cas-V1.2-java",
|
2017-11-16 00:15:28 -08:00
|
|
|
"android.hardware.contexthub-V1.0-java",
|
2020-02-07 18:45:47 -05:00
|
|
|
"android.hardware.contexthub-V1.1-java",
|
2019-11-18 16:23:31 -08:00
|
|
|
"android.hardware.gnss-V1.0-java",
|
2020-01-14 15:31:01 -08:00
|
|
|
"android.hardware.gnss-V2.1-java",
|
2017-11-16 00:15:28 -08:00
|
|
|
"android.hardware.health-V1.0-java-constants",
|
2019-01-24 12:03:26 -08:00
|
|
|
"android.hardware.radio-V1.0-java",
|
|
|
|
"android.hardware.radio-V1.1-java",
|
|
|
|
"android.hardware.radio-V1.2-java",
|
|
|
|
"android.hardware.radio-V1.3-java",
|
|
|
|
"android.hardware.radio-V1.4-java",
|
2019-11-05 13:30:10 -08:00
|
|
|
"android.hardware.radio-V1.5-java",
|
2017-11-16 00:15:28 -08:00
|
|
|
"android.hardware.thermal-V1.0-java-constants",
|
2019-01-10 14:16:23 -08:00
|
|
|
"android.hardware.thermal-V1.0-java",
|
2018-11-01 11:57:39 -07:00
|
|
|
"android.hardware.thermal-V1.1-java",
|
|
|
|
"android.hardware.thermal-V2.0-java",
|
2017-11-16 00:15:28 -08:00
|
|
|
"android.hardware.tv.input-V1.0-java-constants",
|
2019-10-18 19:36:25 -07:00
|
|
|
"android.hardware.tv.tuner-V1.0-java-constants",
|
2017-11-16 00:15:28 -08:00
|
|
|
"android.hardware.usb-V1.0-java-constants",
|
|
|
|
"android.hardware.usb-V1.1-java-constants",
|
2018-12-09 14:49:38 -08:00
|
|
|
"android.hardware.usb-V1.2-java-constants",
|
2019-01-24 12:03:26 -08:00
|
|
|
"android.hardware.usb.gadget-V1.0-java",
|
2018-02-07 23:23:34 +00:00
|
|
|
"android.hardware.vibrator-V1.0-java",
|
|
|
|
"android.hardware.vibrator-V1.1-java",
|
|
|
|
"android.hardware.vibrator-V1.2-java",
|
2018-12-14 12:06:10 +09:00
|
|
|
"android.hardware.vibrator-V1.3-java",
|
2018-11-22 13:56:50 +00:00
|
|
|
"devicepolicyprotosnano",
|
2019-07-30 18:23:26 +09:00
|
|
|
|
|
|
|
"com.android.sysprop.apex",
|
2020-02-06 23:17:17 +00:00
|
|
|
"com.android.sysprop.init",
|
2019-07-30 18:23:26 +09:00
|
|
|
"PlatformProperties",
|
2017-11-16 00:15:28 -08:00
|
|
|
],
|
2019-08-19 15:24:49 +09:00
|
|
|
sdk_version: "core_platform",
|
|
|
|
installable: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
java_defaults {
|
|
|
|
name: "framework-defaults",
|
|
|
|
defaults: ["framework-aidl-export-defaults"],
|
|
|
|
installable: true,
|
|
|
|
|
|
|
|
aidl: {
|
|
|
|
generate_get_transaction_name: true,
|
|
|
|
},
|
|
|
|
|
2019-09-15 20:19:02 +09:00
|
|
|
srcs: ["core/java/**/*.logtags"],
|
|
|
|
|
2019-08-19 15:24:49 +09:00
|
|
|
exclude_srcs: [
|
|
|
|
// See comment on framework-atb-backward-compatibility module below
|
2020-01-24 12:00:33 -08:00
|
|
|
"core/java/android/content/pm/AndroidTestBaseUpdater.java",
|
2019-08-19 15:24:49 +09:00
|
|
|
],
|
|
|
|
|
|
|
|
sdk_version: "core_platform",
|
|
|
|
libs: [
|
2019-12-11 16:33:22 +00:00
|
|
|
"app-compat-annotations",
|
2019-08-19 15:24:49 +09:00
|
|
|
"ext",
|
2019-12-11 16:33:22 +00:00
|
|
|
"unsupportedappusage",
|
2019-08-19 15:24:49 +09:00
|
|
|
],
|
|
|
|
|
|
|
|
jarjar_rules: ":framework-jarjar-rules",
|
|
|
|
|
2019-08-18 15:19:45 +01:00
|
|
|
static_libs: [
|
|
|
|
"framework-internal-utils",
|
|
|
|
],
|
2017-11-16 00:15:28 -08:00
|
|
|
|
|
|
|
dxflags: [
|
|
|
|
"--core-library",
|
|
|
|
"--multi-dex",
|
|
|
|
],
|
2018-06-28 14:12:10 +01:00
|
|
|
|
2019-08-06 18:47:14 -07:00
|
|
|
plugins: [
|
|
|
|
"view-inspector-annotation-processor",
|
|
|
|
"staledataclass-annotation-processor",
|
|
|
|
],
|
2020-01-17 16:32:53 +09:00
|
|
|
|
|
|
|
required: [
|
|
|
|
// TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
|
|
|
|
"gps_debug.conf",
|
|
|
|
"protolog.conf.json.gz",
|
|
|
|
],
|
2018-06-28 14:12:10 +01:00
|
|
|
}
|
|
|
|
|
2019-03-08 10:44:22 -08:00
|
|
|
filegroup {
|
|
|
|
name: "framework-jarjar-rules",
|
2019-12-14 21:37:20 -08:00
|
|
|
srcs: ["framework-jarjar-rules.txt"],
|
2019-03-08 10:44:22 -08:00
|
|
|
}
|
|
|
|
|
2018-10-26 22:34:06 -07:00
|
|
|
filegroup {
|
|
|
|
name: "libincident_aidl",
|
|
|
|
srcs: [
|
2019-12-17 10:56:17 -08:00
|
|
|
"core/java/android/os/IIncidentDumpCallback.aidl",
|
2018-10-26 22:34:06 -07:00
|
|
|
"core/java/android/os/IIncidentManager.aidl",
|
|
|
|
"core/java/android/os/IIncidentReportStatusListener.aidl",
|
|
|
|
],
|
2019-06-05 15:51:24 -07:00
|
|
|
path: "core/java",
|
2018-10-26 22:34:06 -07:00
|
|
|
}
|
|
|
|
|
2018-12-12 19:45:09 +00:00
|
|
|
filegroup {
|
|
|
|
name: "libvibrator_aidl",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/os/IExternalVibrationController.aidl",
|
|
|
|
"core/java/android/os/IExternalVibratorService.aidl",
|
|
|
|
],
|
2019-06-05 15:51:24 -07:00
|
|
|
path: "core/java",
|
2018-12-12 19:45:09 +00:00
|
|
|
}
|
|
|
|
|
2020-02-10 13:29:01 -08:00
|
|
|
filegroup {
|
|
|
|
name: "libpowermanager_aidl",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/os/Temperature.aidl",
|
|
|
|
"core/java/android/os/CoolingDevice.aidl",
|
|
|
|
"core/java/android/os/IThermalEventListener.aidl",
|
|
|
|
"core/java/android/os/IThermalStatusListener.aidl",
|
|
|
|
"core/java/android/os/IThermalService.aidl",
|
|
|
|
],
|
|
|
|
path: "core/java",
|
|
|
|
}
|
|
|
|
|
2018-06-28 14:12:10 +01:00
|
|
|
java_library {
|
2019-08-05 12:54:20 -07:00
|
|
|
name: "framework-minus-apex",
|
2018-06-28 14:12:10 +01:00
|
|
|
defaults: ["framework-defaults"],
|
2019-09-15 20:19:02 +09:00
|
|
|
srcs: [":framework-non-updatable-sources"],
|
2019-10-21 14:35:14 +09:00
|
|
|
installable: true,
|
2018-06-28 14:12:10 +01:00
|
|
|
javac_shard_size: 150,
|
2019-10-21 14:35:14 +09:00
|
|
|
required: [
|
|
|
|
"framework-platform-compat-config",
|
|
|
|
"libcore-platform-compat-config",
|
|
|
|
"services-platform-compat-config",
|
2020-02-18 10:50:10 +08:00
|
|
|
"documents-ui-compat-config",
|
2019-10-21 14:35:14 +09:00
|
|
|
],
|
2020-03-20 09:12:52 +00:00
|
|
|
libs: ["framework-updatable-stubs-module_libs_api"],
|
2019-11-22 16:33:18 +00:00
|
|
|
static_libs: [
|
2019-11-29 19:39:45 +00:00
|
|
|
// If MimeMap ever becomes its own APEX, then this dependency would need to be removed
|
|
|
|
// in favor of an API stubs dependency in java_library "framework" below.
|
2019-11-22 16:33:18 +00:00
|
|
|
"mimemap",
|
|
|
|
],
|
2019-10-21 14:35:14 +09:00
|
|
|
// For backwards compatibility.
|
|
|
|
stem: "framework",
|
2019-12-09 14:45:07 +09:00
|
|
|
apex_available: ["//apex_available:platform"],
|
2020-01-03 21:07:38 +09:00
|
|
|
visibility: [
|
|
|
|
"//frameworks/base",
|
2020-02-04 21:20:02 +09:00
|
|
|
// TODO(b/147128803) remove the below lines
|
2020-01-03 21:07:38 +09:00
|
|
|
"//frameworks/base/apex/appsearch/framework",
|
|
|
|
"//frameworks/base/apex/blobstore/framework",
|
|
|
|
"//frameworks/base/apex/jobscheduler/framework",
|
2020-02-06 19:23:26 +08:00
|
|
|
"//frameworks/base/packages/Tethering/tests/unit",
|
2020-01-03 21:07:38 +09:00
|
|
|
],
|
2018-06-28 14:12:10 +01:00
|
|
|
}
|
|
|
|
|
2019-10-21 14:35:14 +09:00
|
|
|
// This "framework" module is NOT installed to the device. It's
|
|
|
|
// "framework-minus-apex" that gets installed to the device. Note that
|
|
|
|
// the filename is still framework.jar (via the stem property) for
|
|
|
|
// compatibility reason. The purpose of this module is to provide
|
|
|
|
// framework APIs (both public and private) for bundled apps.
|
|
|
|
// "framework-minus-apex" can't be used for the purpose because 1)
|
|
|
|
// many apps have already hardcoded the name "framework" and
|
|
|
|
// 2) it lacks API symbols from updatable modules - as it's clear from
|
|
|
|
// its suffix "-minus-apex".
|
2019-08-05 12:54:20 -07:00
|
|
|
java_library {
|
|
|
|
name: "framework",
|
|
|
|
defaults: ["framework-aidl-export-defaults"],
|
2019-10-21 14:35:14 +09:00
|
|
|
installable: false, // this lib is a build-only library
|
2019-08-05 12:54:20 -07:00
|
|
|
static_libs: [
|
|
|
|
"framework-minus-apex",
|
2020-03-07 11:40:10 +00:00
|
|
|
// TODO(b/146218515): should be removed
|
|
|
|
"framework-appsearch",
|
|
|
|
// TODO (b/147688669) should be removed
|
2020-01-10 08:38:31 -08:00
|
|
|
"framework-telephony",
|
2020-03-07 11:40:10 +00:00
|
|
|
"framework-updatable-stubs-module_libs_api",
|
2019-08-16 18:14:09 +01:00
|
|
|
],
|
2019-08-05 12:54:20 -07:00
|
|
|
sdk_version: "core_platform",
|
2019-12-09 14:45:07 +09:00
|
|
|
apex_available: ["//apex_available:platform"],
|
2019-08-05 12:54:20 -07:00
|
|
|
}
|
|
|
|
|
2019-09-15 20:19:02 +09:00
|
|
|
java_library {
|
|
|
|
name: "framework-all",
|
|
|
|
defaults: ["framework-defaults"],
|
|
|
|
srcs: [":framework-all-sources"],
|
|
|
|
installable: false,
|
2020-01-09 18:09:56 -08:00
|
|
|
static_libs: [
|
2020-01-27 19:42:27 +00:00
|
|
|
"exoplayer2-extractor",
|
2020-01-09 18:09:56 -08:00
|
|
|
"android.hardware.wifi-V1.0-java-constants",
|
2020-01-13 20:22:20 -08:00
|
|
|
],
|
|
|
|
libs: ["icing-java-proto-lite"],
|
2019-12-09 14:45:07 +09:00
|
|
|
apex_available: ["//apex_available:platform"],
|
2020-02-21 11:23:20 +00:00
|
|
|
visibility: [
|
|
|
|
// DO NOT ADD ANY MORE ENTRIES TO THIS LIST
|
|
|
|
"//external/robolectric-shadows:__subpackages__",
|
2020-03-20 09:12:52 +00:00
|
|
|
"//frameworks/base",
|
2020-02-21 11:23:20 +00:00
|
|
|
"//frameworks/layoutlib:__subpackages__",
|
|
|
|
],
|
2019-11-14 03:07:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
java_library {
|
|
|
|
name: "framework-annotation-proc",
|
2020-02-01 17:16:58 +09:00
|
|
|
srcs: [
|
|
|
|
":framework-all-sources",
|
|
|
|
"core/java/**/*.logtags",
|
|
|
|
],
|
|
|
|
sdk_version: "core_platform",
|
2019-12-11 16:33:22 +00:00
|
|
|
libs: [
|
|
|
|
"app-compat-annotations",
|
2020-02-01 17:16:58 +09:00
|
|
|
"ext",
|
|
|
|
"icing-java-proto-lite",
|
2019-12-11 16:33:22 +00:00
|
|
|
"unsupportedappusage",
|
|
|
|
],
|
2020-02-01 17:16:58 +09:00
|
|
|
|
2019-11-14 03:07:36 +00:00
|
|
|
installable: false,
|
2019-08-05 12:22:18 +01:00
|
|
|
plugins: [
|
|
|
|
"compat-changeid-annotation-processor",
|
|
|
|
],
|
2019-11-11 19:27:04 +00:00
|
|
|
static_libs: [
|
2020-02-01 17:16:58 +09:00
|
|
|
"framework-internal-utils",
|
2020-01-27 19:42:27 +00:00
|
|
|
"exoplayer2-extractor",
|
2020-01-17 19:02:49 +00:00
|
|
|
"android.hardware.wifi-V1.0-java-constants",
|
2019-11-11 19:27:04 +00:00
|
|
|
]
|
2019-08-05 12:22:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
platform_compat_config {
|
|
|
|
name: "framework-platform-compat-config",
|
2019-11-14 03:07:36 +00:00
|
|
|
src: ":framework-annotation-proc",
|
2018-06-28 14:12:10 +01:00
|
|
|
}
|
|
|
|
|
2019-06-05 10:35:08 +01:00
|
|
|
// A library including just UnsupportedAppUsage.java classes.
|
|
|
|
//
|
|
|
|
// Provided for target so that libraries can use it without depending on
|
|
|
|
// the whole of framework or the core platform API.
|
|
|
|
//
|
|
|
|
// Built for host so that the annotation processor can also use this annotation.
|
|
|
|
java_library {
|
2018-06-28 14:12:10 +01:00
|
|
|
name: "unsupportedappusage-annotation",
|
2019-06-05 10:35:08 +01:00
|
|
|
host_supported: true,
|
2018-06-28 14:12:10 +01:00
|
|
|
srcs: [
|
|
|
|
"core/java/android/annotation/IntDef.java",
|
2019-10-10 16:33:42 +01:00
|
|
|
],
|
|
|
|
static_libs: [
|
|
|
|
"art.module.api.annotations",
|
2018-06-28 14:12:10 +01:00
|
|
|
],
|
2019-06-05 10:35:08 +01:00
|
|
|
|
|
|
|
sdk_version: "core_current",
|
2017-11-16 00:15:28 -08:00
|
|
|
}
|
|
|
|
|
Conditionally remove android.test.base from bootclasspath
This makes the runtime handling of the android.test.base library
conditional based on a build flag REMOVE_ATB_FROM_BCP.
When REMOVE_ATB_FROM_BCP=true:
* The framework-atb-backward-compatibility is added to the
bootclasspath instead of android.test.base.
* Any APK that targets pre-P (or has a dependency on android.test.runner)
has android.test.base added to their library list.
Otherwise:
* The android.test.base library is added to the bootclasspath.
* Any APK that explicitly specifies that it depends on the
android.test.base library has the library removed as the classes
are available at runtime.
Added android.test.base to platform libraries so it can be used when
not on the bootclasspath.
Tested both cases by building with or without the build flag, flashing,
setting up, adding an account, adding a trusted place.
Also, tested that all combinations of REMOVE_ATB_FROM_BCP and
REMOVE_OAHL_FROM_BCP work.
adb install -r -g out/target/product/marlin/testcases/FrameworksCoreTests/FrameworksCoreTests.apk
adb shell am instrument -w -e class android.content.pm.PackageBackwardCompatibilityTest,android.content.pm.AndroidTestRunnerSplitUpdaterTest,android.content.pm.OrgApacheHttpLegacyUpdaterTest,android.content.pm.RemoveUnnecessaryOrgApacheHttpLegacyLibraryTest,android.content.pm.RemoveUnnecessaryAndroidTestBaseLibraryTest,android.content.pm.AndroidTestBaseUpdaterTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 30188076
Test: as above
Change-Id: I4b9d8a5bed6787cd334c2b13a458bbc0efc3f3b6
2018-01-25 09:58:32 +00:00
|
|
|
// A temporary build target that is conditionally included on the bootclasspath if
|
|
|
|
// android.test.base library has been removed and which provides support for
|
|
|
|
// maintaining backwards compatibility for APKs that target pre-P and depend on
|
|
|
|
// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
|
|
|
|
// specified on the build command line.
|
|
|
|
java_library {
|
|
|
|
name: "framework-atb-backward-compatibility",
|
2019-02-15 11:39:12 +00:00
|
|
|
installable: true,
|
2019-11-04 17:03:54 +00:00
|
|
|
libs: ["app-compat-annotations"],
|
Conditionally remove android.test.base from bootclasspath
This makes the runtime handling of the android.test.base library
conditional based on a build flag REMOVE_ATB_FROM_BCP.
When REMOVE_ATB_FROM_BCP=true:
* The framework-atb-backward-compatibility is added to the
bootclasspath instead of android.test.base.
* Any APK that targets pre-P (or has a dependency on android.test.runner)
has android.test.base added to their library list.
Otherwise:
* The android.test.base library is added to the bootclasspath.
* Any APK that explicitly specifies that it depends on the
android.test.base library has the library removed as the classes
are available at runtime.
Added android.test.base to platform libraries so it can be used when
not on the bootclasspath.
Tested both cases by building with or without the build flag, flashing,
setting up, adding an account, adding a trusted place.
Also, tested that all combinations of REMOVE_ATB_FROM_BCP and
REMOVE_OAHL_FROM_BCP work.
adb install -r -g out/target/product/marlin/testcases/FrameworksCoreTests/FrameworksCoreTests.apk
adb shell am instrument -w -e class android.content.pm.PackageBackwardCompatibilityTest,android.content.pm.AndroidTestRunnerSplitUpdaterTest,android.content.pm.OrgApacheHttpLegacyUpdaterTest,android.content.pm.RemoveUnnecessaryOrgApacheHttpLegacyLibraryTest,android.content.pm.RemoveUnnecessaryAndroidTestBaseLibraryTest,android.content.pm.AndroidTestBaseUpdaterTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 30188076
Test: as above
Change-Id: I4b9d8a5bed6787cd334c2b13a458bbc0efc3f3b6
2018-01-25 09:58:32 +00:00
|
|
|
srcs: [
|
2020-01-24 12:00:33 -08:00
|
|
|
"core/java/android/content/pm/AndroidTestBaseUpdater.java",
|
Conditionally remove android.test.base from bootclasspath
This makes the runtime handling of the android.test.base library
conditional based on a build flag REMOVE_ATB_FROM_BCP.
When REMOVE_ATB_FROM_BCP=true:
* The framework-atb-backward-compatibility is added to the
bootclasspath instead of android.test.base.
* Any APK that targets pre-P (or has a dependency on android.test.runner)
has android.test.base added to their library list.
Otherwise:
* The android.test.base library is added to the bootclasspath.
* Any APK that explicitly specifies that it depends on the
android.test.base library has the library removed as the classes
are available at runtime.
Added android.test.base to platform libraries so it can be used when
not on the bootclasspath.
Tested both cases by building with or without the build flag, flashing,
setting up, adding an account, adding a trusted place.
Also, tested that all combinations of REMOVE_ATB_FROM_BCP and
REMOVE_OAHL_FROM_BCP work.
adb install -r -g out/target/product/marlin/testcases/FrameworksCoreTests/FrameworksCoreTests.apk
adb shell am instrument -w -e class android.content.pm.PackageBackwardCompatibilityTest,android.content.pm.AndroidTestRunnerSplitUpdaterTest,android.content.pm.OrgApacheHttpLegacyUpdaterTest,android.content.pm.RemoveUnnecessaryOrgApacheHttpLegacyLibraryTest,android.content.pm.RemoveUnnecessaryAndroidTestBaseLibraryTest,android.content.pm.AndroidTestBaseUpdaterTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 30188076
Test: as above
Change-Id: I4b9d8a5bed6787cd334c2b13a458bbc0efc3f3b6
2018-01-25 09:58:32 +00:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2020-01-27 16:36:45 -08:00
|
|
|
genrule {
|
|
|
|
name: "statslog-framework-java-gen",
|
|
|
|
tools: ["stats-log-api-gen"],
|
|
|
|
cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
|
|
|
|
" --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
|
|
|
|
out: ["com/android/internal/util/FrameworkStatsLog.java"],
|
|
|
|
}
|
|
|
|
|
2020-02-06 22:56:21 -08:00
|
|
|
java_library {
|
|
|
|
name: "uieventloggerlib",
|
|
|
|
srcs: [
|
|
|
|
"core/java/com/android/internal/logging/UiEvent.java",
|
|
|
|
"core/java/com/android/internal/logging/UiEventLogger.java",
|
|
|
|
"core/java/com/android/internal/logging/UiEventLoggerImpl.java",
|
|
|
|
"core/java/com/android/internal/logging/InstanceId.java",
|
|
|
|
"core/java/com/android/internal/logging/InstanceIdSequence.java",
|
|
|
|
":statslog-framework-java-gen",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2017-11-16 00:15:28 -08:00
|
|
|
gensrcs {
|
|
|
|
name: "framework-javastream-protos",
|
|
|
|
depfile: true,
|
|
|
|
|
|
|
|
tools: [
|
|
|
|
"aprotoc",
|
|
|
|
"protoc-gen-javastream",
|
|
|
|
"soong_zip",
|
|
|
|
],
|
|
|
|
|
2019-11-18 13:34:56 +00:00
|
|
|
cmd: "mkdir -p $(genDir)/$(in) " +
|
|
|
|
"&& $(location aprotoc) " +
|
|
|
|
" --plugin=$(location protoc-gen-javastream) " +
|
|
|
|
" --dependency_out=$(depfile) " +
|
|
|
|
" --javastream_out=$(genDir)/$(in) " +
|
|
|
|
" -Iexternal/protobuf/src " +
|
|
|
|
" -I . " +
|
|
|
|
" $(in) " +
|
|
|
|
"&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
|
|
|
|
|
2018-01-10 11:34:26 -08:00
|
|
|
srcs: [
|
2020-01-15 15:57:20 -08:00
|
|
|
":ipconnectivity-proto-src",
|
2018-01-10 11:34:26 -08:00
|
|
|
"core/proto/**/*.proto",
|
|
|
|
"libs/incident/**/*.proto",
|
|
|
|
],
|
2017-11-16 00:15:28 -08:00
|
|
|
output_extension: "srcjar",
|
|
|
|
}
|
|
|
|
|
2020-01-28 22:04:20 -08:00
|
|
|
gensrcs {
|
|
|
|
name: "framework-cppstream-protos",
|
|
|
|
depfile: true,
|
|
|
|
|
|
|
|
tools: [
|
|
|
|
"aprotoc",
|
|
|
|
"protoc-gen-cppstream",
|
|
|
|
],
|
|
|
|
|
|
|
|
cmd: "mkdir -p $(genDir) " +
|
|
|
|
"&& $(location aprotoc) " +
|
|
|
|
" --plugin=$(location protoc-gen-cppstream) " +
|
|
|
|
" --dependency_out=$(depfile) " +
|
|
|
|
" --cppstream_out=$(genDir) " +
|
|
|
|
" -Iexternal/protobuf/src " +
|
|
|
|
" -I . " +
|
|
|
|
" $(in)",
|
|
|
|
|
|
|
|
srcs: [
|
|
|
|
":ipconnectivity-proto-src",
|
|
|
|
"core/proto/**/*.proto",
|
|
|
|
"libs/incident/**/*.proto",
|
|
|
|
],
|
|
|
|
|
|
|
|
output_extension: "proto.h",
|
|
|
|
}
|
|
|
|
|
2019-01-25 08:54:08 +09:00
|
|
|
filegroup {
|
2019-01-30 21:04:58 +09:00
|
|
|
name: "framework-annotations",
|
2019-01-25 08:54:08 +09:00
|
|
|
srcs: [
|
2020-01-09 18:09:56 -08:00
|
|
|
"core/java/android/annotation/CallbackExecutor.java",
|
2020-01-09 14:02:21 -08:00
|
|
|
"core/java/android/annotation/CheckResult.java",
|
2020-02-18 18:10:07 -08:00
|
|
|
"core/java/android/annotation/CurrentTimeMillisLong.java",
|
2020-02-21 07:37:30 -08:00
|
|
|
"core/java/android/annotation/Hide.java",
|
2019-01-25 08:54:08 +09:00
|
|
|
"core/java/android/annotation/IntDef.java",
|
2019-01-20 13:48:19 +09:00
|
|
|
"core/java/android/annotation/IntRange.java",
|
2020-02-20 17:30:58 +08:00
|
|
|
"core/java/android/annotation/LongDef.java",
|
2019-12-18 14:06:48 -07:00
|
|
|
"core/java/android/annotation/NonNull.java",
|
|
|
|
"core/java/android/annotation/Nullable.java",
|
|
|
|
"core/java/android/annotation/RequiresPermission.java",
|
|
|
|
"core/java/android/annotation/SdkConstant.java",
|
2020-01-09 18:09:56 -08:00
|
|
|
"core/java/android/annotation/StringDef.java",
|
2019-12-06 17:07:28 +00:00
|
|
|
"core/java/android/annotation/SystemApi.java",
|
2020-01-09 18:09:56 -08:00
|
|
|
"core/java/android/annotation/SystemService.java",
|
2019-12-18 14:06:48 -07:00
|
|
|
"core/java/android/annotation/TestApi.java",
|
2020-03-06 14:41:56 -07:00
|
|
|
"core/java/android/annotation/WorkerThread.java",
|
2019-01-29 15:38:52 +09:00
|
|
|
"core/java/com/android/internal/annotations/GuardedBy.java",
|
2019-01-25 08:54:08 +09:00
|
|
|
"core/java/com/android/internal/annotations/VisibleForTesting.java",
|
2020-01-09 14:02:21 -08:00
|
|
|
"core/java/com/android/internal/annotations/Immutable.java",
|
2019-05-23 16:20:12 +01:00
|
|
|
],
|
2019-01-30 21:04:58 +09:00
|
|
|
}
|
|
|
|
|
2019-11-08 15:18:04 +00:00
|
|
|
java_library {
|
|
|
|
name: "framework-annotations-lib",
|
|
|
|
srcs: [ ":framework-annotations" ],
|
2019-12-19 10:17:46 +00:00
|
|
|
sdk_version: "core_current",
|
2019-11-08 15:18:04 +00:00
|
|
|
}
|
|
|
|
|
2019-12-30 16:05:38 -08:00
|
|
|
filegroup {
|
|
|
|
name: "framework-ike-shared-srcs",
|
|
|
|
visibility: ["//frameworks/opt/net/ike"],
|
|
|
|
srcs: [
|
2020-01-07 21:21:52 -08:00
|
|
|
"core/java/android/annotation/StringDef.java",
|
2019-12-30 16:05:38 -08:00
|
|
|
"core/java/android/net/annotations/PolicyDirection.java",
|
2019-12-20 17:55:57 -08:00
|
|
|
"core/java/com/android/internal/util/IState.java",
|
|
|
|
"core/java/com/android/internal/util/State.java",
|
|
|
|
"core/java/com/android/internal/util/StateMachine.java",
|
2019-12-30 11:19:47 -08:00
|
|
|
"telephony/java/android/telephony/Annotation.java",
|
2019-12-30 16:05:38 -08:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-01-30 21:04:58 +09:00
|
|
|
filegroup {
|
|
|
|
name: "framework-networkstack-shared-srcs",
|
|
|
|
srcs: [
|
|
|
|
// TODO: remove these annotations as soon as we can use andoid.support.annotations.*
|
|
|
|
":framework-annotations",
|
|
|
|
"core/java/android/net/DhcpResults.java",
|
|
|
|
"core/java/android/util/LocalLog.java",
|
2019-01-25 08:54:08 +09:00
|
|
|
"core/java/com/android/internal/util/HexDump.java",
|
2019-01-20 13:48:19 +09:00
|
|
|
"core/java/com/android/internal/util/IndentingPrintWriter.java",
|
2019-01-25 08:54:08 +09:00
|
|
|
"core/java/com/android/internal/util/IState.java",
|
|
|
|
"core/java/com/android/internal/util/MessageUtils.java",
|
|
|
|
"core/java/com/android/internal/util/Preconditions.java",
|
2019-01-20 13:48:19 +09:00
|
|
|
"core/java/com/android/internal/util/RingBufferIndices.java",
|
2019-01-25 08:54:08 +09:00
|
|
|
"core/java/com/android/internal/util/State.java",
|
|
|
|
"core/java/com/android/internal/util/StateMachine.java",
|
2019-04-09 11:16:56 +09:00
|
|
|
"core/java/com/android/internal/util/TrafficStatsConstants.java",
|
2019-01-25 08:54:08 +09:00
|
|
|
"core/java/com/android/internal/util/WakeupMessage.java",
|
2019-12-19 20:30:34 +08:00
|
|
|
"core/java/com/android/internal/util/TokenBucket.java",
|
2019-01-25 08:54:08 +09:00
|
|
|
"core/java/android/net/shared/*.java",
|
2019-05-23 16:20:12 +01:00
|
|
|
],
|
2019-01-25 08:54:08 +09:00
|
|
|
}
|
|
|
|
|
2020-02-21 07:37:30 -08:00
|
|
|
filegroup {
|
|
|
|
name: "framework-services-net-module-wifi-shared-srcs",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/net/DhcpResults.java",
|
|
|
|
"core/java/android/net/shared/Inet4AddressUtils.java",
|
|
|
|
"core/java/android/net/shared/InetAddressUtils.java",
|
|
|
|
"core/java/android/net/util/IpUtils.java",
|
|
|
|
"core/java/android/util/LocalLog.java",
|
|
|
|
"core/java/com/android/internal/util/Preconditions.java",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-12-16 20:15:20 +08:00
|
|
|
// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
|
2019-09-03 15:58:06 +08:00
|
|
|
filegroup {
|
|
|
|
name: "framework-tethering-shared-srcs",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/util/LocalLog.java",
|
2019-12-16 20:15:20 +08:00
|
|
|
"core/java/com/android/internal/util/IndentingPrintWriter.java",
|
|
|
|
"core/java/com/android/internal/util/IState.java",
|
|
|
|
"core/java/com/android/internal/util/MessageUtils.java",
|
|
|
|
"core/java/com/android/internal/util/Preconditions.java",
|
|
|
|
"core/java/com/android/internal/util/State.java",
|
|
|
|
"core/java/com/android/internal/util/StateMachine.java",
|
2020-01-08 20:58:23 +08:00
|
|
|
"core/java/com/android/internal/util/TrafficStatsConstants.java",
|
2019-12-06 15:24:53 +08:00
|
|
|
"core/java/android/net/shared/Inet4AddressUtils.java",
|
2019-12-16 20:15:20 +08:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2017-10-02 17:14:22 -07:00
|
|
|
// Build ext.jar
|
|
|
|
// ============================================================
|
|
|
|
java_library {
|
|
|
|
name: "ext",
|
2018-06-27 11:00:11 -07:00
|
|
|
installable: true,
|
2019-06-12 13:47:18 +01:00
|
|
|
sdk_version: "core_platform",
|
2017-10-02 17:14:22 -07:00
|
|
|
static_libs: [
|
|
|
|
"libphonenumber-platform",
|
|
|
|
"tagsoup",
|
2017-10-31 14:31:01 +00:00
|
|
|
"rappor",
|
2017-10-02 17:14:22 -07:00
|
|
|
],
|
|
|
|
dxflags: ["--core-library"],
|
|
|
|
}
|
|
|
|
|
2018-05-17 10:49:26 -07:00
|
|
|
// ==== java proto host library ==============================
|
|
|
|
java_library_host {
|
|
|
|
name: "platformprotos",
|
|
|
|
srcs: [
|
2020-01-15 15:57:20 -08:00
|
|
|
":ipconnectivity-proto-src",
|
2018-05-17 10:49:26 -07:00
|
|
|
"cmds/am/proto/instrumentation_data.proto",
|
2018-08-30 16:23:44 -07:00
|
|
|
"cmds/statsd/src/**/*.proto",
|
2018-05-17 10:49:26 -07:00
|
|
|
"core/proto/**/*.proto",
|
|
|
|
"libs/incident/proto/**/*.proto",
|
|
|
|
],
|
|
|
|
proto: {
|
|
|
|
include_dirs: ["external/protobuf/src"],
|
|
|
|
type: "full",
|
|
|
|
},
|
|
|
|
errorprone: {
|
2019-05-23 16:20:12 +01:00
|
|
|
javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
|
2018-05-17 10:49:26 -07:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2018-08-20 13:57:24 -07:00
|
|
|
// ==== java proto device library (for test only) ==============================
|
|
|
|
java_library {
|
|
|
|
name: "platformprotosnano",
|
|
|
|
proto: {
|
|
|
|
type: "nano",
|
|
|
|
output_params: ["store_unknown_fields=true"],
|
|
|
|
include_dirs: ["external/protobuf/src"],
|
|
|
|
},
|
2019-02-11 15:55:13 +00:00
|
|
|
exclude_srcs: [
|
|
|
|
"core/proto/android/privacy.proto",
|
|
|
|
"core/proto/android/section.proto",
|
|
|
|
],
|
2019-12-19 10:17:46 +00:00
|
|
|
sdk_version: "9",
|
2018-08-20 13:57:24 -07:00
|
|
|
srcs: [
|
2020-01-15 15:57:20 -08:00
|
|
|
":ipconnectivity-proto-src",
|
2018-08-20 13:57:24 -07:00
|
|
|
"core/proto/**/*.proto",
|
|
|
|
"libs/incident/proto/android/os/**/*.proto",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
// ==== java proto device library (for test only) ==============================
|
|
|
|
java_library {
|
|
|
|
name: "platformprotoslite",
|
|
|
|
proto: {
|
|
|
|
type: "lite",
|
|
|
|
include_dirs: ["external/protobuf/src"],
|
|
|
|
},
|
|
|
|
|
|
|
|
srcs: [
|
2020-01-15 15:57:20 -08:00
|
|
|
":ipconnectivity-proto-src",
|
2018-08-20 13:57:24 -07:00
|
|
|
"core/proto/**/*.proto",
|
|
|
|
"libs/incident/proto/android/os/**/*.proto",
|
|
|
|
],
|
2019-02-11 15:55:13 +00:00
|
|
|
exclude_srcs: [
|
|
|
|
"core/proto/android/privacy.proto",
|
|
|
|
"core/proto/android/section.proto",
|
|
|
|
],
|
2019-12-19 10:17:46 +00:00
|
|
|
sdk_version: "core_current",
|
2018-08-20 13:57:24 -07:00
|
|
|
// Protos have lots of MissingOverride and similar.
|
|
|
|
errorprone: {
|
|
|
|
javacflags: ["-XepDisableAllChecks"],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2017-05-02 14:14:56 -07:00
|
|
|
// ==== c++ proto device library ==============================
|
2019-02-11 15:55:13 +00:00
|
|
|
cc_defaults {
|
|
|
|
name: "libplatformprotos-defaults",
|
|
|
|
|
2017-05-02 14:14:56 -07:00
|
|
|
proto: {
|
|
|
|
export_proto_headers: true,
|
|
|
|
include_dirs: ["external/protobuf/src"],
|
|
|
|
},
|
|
|
|
|
2017-10-03 09:57:55 -07:00
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
],
|
2017-11-18 20:32:56 -08:00
|
|
|
|
|
|
|
srcs: [
|
2020-01-15 15:57:20 -08:00
|
|
|
":ipconnectivity-proto-src",
|
2017-11-18 20:32:56 -08:00
|
|
|
"core/proto/**/*.proto",
|
|
|
|
],
|
2019-02-11 15:55:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
cc_library {
|
|
|
|
name: "libplatformprotos",
|
|
|
|
defaults: ["libplatformprotos-defaults"],
|
|
|
|
host_supported: true,
|
2017-11-18 20:32:56 -08:00
|
|
|
|
2017-05-02 14:14:56 -07:00
|
|
|
target: {
|
|
|
|
host: {
|
|
|
|
proto: {
|
|
|
|
type: "full",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
android: {
|
|
|
|
proto: {
|
|
|
|
type: "lite",
|
|
|
|
},
|
2019-02-11 15:55:13 +00:00
|
|
|
shared_libs: [
|
|
|
|
"libprotobuf-cpp-lite",
|
|
|
|
],
|
2017-05-02 14:14:56 -07:00
|
|
|
shared: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2019-04-03 18:19:43 -07:00
|
|
|
// This library is meant for vendor code that needs to output protobuf. It links
|
|
|
|
// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
|
|
|
|
// binary compatibility.
|
|
|
|
cc_library {
|
|
|
|
name: "libplatformprotos-static",
|
|
|
|
defaults: ["libplatformprotos-defaults"],
|
|
|
|
host_supported: false,
|
|
|
|
|
|
|
|
// This is okay because this library is only built as a static library. The C++
|
|
|
|
// API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
|
|
|
|
// but is not authorized to be used outside of debugging.
|
|
|
|
vendor_available: true,
|
|
|
|
|
|
|
|
target: {
|
|
|
|
android: {
|
|
|
|
proto: {
|
|
|
|
type: "lite",
|
|
|
|
},
|
|
|
|
static_libs: [
|
|
|
|
"libprotobuf-cpp-lite",
|
|
|
|
],
|
|
|
|
shared: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-02-11 15:55:13 +00:00
|
|
|
// This is the full proto version of libplatformprotos. It may only
|
|
|
|
// be used by test code that is not shipped on the device.
|
|
|
|
cc_library {
|
|
|
|
name: "libplatformprotos-test",
|
|
|
|
defaults: ["libplatformprotos-defaults"],
|
|
|
|
host_supported: false,
|
|
|
|
|
|
|
|
target: {
|
|
|
|
android: {
|
|
|
|
proto: {
|
|
|
|
type: "full",
|
|
|
|
},
|
|
|
|
shared: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2019-10-30 15:20:59 -07:00
|
|
|
filegroup {
|
|
|
|
name: "incremental_aidl",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
|
|
|
|
],
|
|
|
|
path: "core/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
2019-11-29 15:20:18 -08:00
|
|
|
name: "dataloader_aidl",
|
2019-10-30 15:20:59 -07:00
|
|
|
srcs: [
|
2019-12-13 15:42:18 -08:00
|
|
|
"core/java/android/content/pm/DataLoaderParamsParcel.aidl",
|
2019-12-17 12:10:41 -08:00
|
|
|
"core/java/android/content/pm/DataLoaderType.aidl",
|
2019-12-13 15:42:18 -08:00
|
|
|
"core/java/android/content/pm/FileSystemControlParcel.aidl",
|
2020-02-26 17:59:41 -08:00
|
|
|
"core/java/android/content/pm/IDataLoader.aidl",
|
|
|
|
"core/java/android/content/pm/IDataLoaderManager.aidl",
|
|
|
|
"core/java/android/content/pm/InstallationFileParcel.aidl",
|
|
|
|
"core/java/android/content/pm/InstallationFileLocation.aidl",
|
2019-11-29 15:20:18 -08:00
|
|
|
"core/java/android/content/pm/IDataLoaderStatusListener.aidl",
|
2019-12-13 15:42:18 -08:00
|
|
|
"core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
|
|
|
|
"core/java/android/content/pm/NamedParcelFileDescriptor.aidl",
|
2019-12-17 21:48:16 -08:00
|
|
|
],
|
|
|
|
path: "core/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "incremental_manager_aidl",
|
|
|
|
srcs: [
|
2020-02-04 13:42:59 -08:00
|
|
|
"core/java/android/os/incremental/IIncrementalService.aidl",
|
2020-01-10 11:53:24 -08:00
|
|
|
"core/java/android/os/incremental/IncrementalNewFileParams.aidl",
|
2019-10-30 15:20:59 -07:00
|
|
|
],
|
|
|
|
path: "core/java",
|
|
|
|
}
|
|
|
|
|
|
|
|
aidl_interface {
|
|
|
|
name: "libincremental_aidl",
|
|
|
|
srcs: [
|
|
|
|
":incremental_aidl",
|
2019-11-29 15:20:18 -08:00
|
|
|
],
|
|
|
|
backend: {
|
|
|
|
java: {
|
|
|
|
sdk_version: "28",
|
|
|
|
},
|
|
|
|
cpp: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
ndk: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
aidl_interface {
|
|
|
|
name: "libdataloader_aidl",
|
|
|
|
srcs: [
|
|
|
|
":dataloader_aidl",
|
2019-10-30 15:20:59 -07:00
|
|
|
],
|
2019-12-17 21:48:16 -08:00
|
|
|
imports: [
|
|
|
|
"libincremental_aidl",
|
|
|
|
],
|
2019-10-30 15:20:59 -07:00
|
|
|
backend: {
|
|
|
|
java: {
|
|
|
|
sdk_version: "28",
|
|
|
|
},
|
|
|
|
cpp: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
ndk: {
|
2019-12-17 21:48:16 -08:00
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
aidl_interface {
|
|
|
|
name: "libincremental_manager_aidl",
|
|
|
|
srcs: [
|
|
|
|
":incremental_manager_aidl",
|
|
|
|
],
|
|
|
|
imports: [
|
|
|
|
"libincremental_aidl",
|
|
|
|
"libdataloader_aidl",
|
|
|
|
],
|
|
|
|
backend: {
|
|
|
|
java: {
|
|
|
|
sdk_version: "28",
|
|
|
|
},
|
|
|
|
cpp: {
|
2019-10-30 15:20:59 -07:00
|
|
|
enabled: true,
|
|
|
|
},
|
2019-12-17 21:48:16 -08:00
|
|
|
ndk: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2019-10-30 15:20:59 -07:00
|
|
|
},
|
|
|
|
}
|
2019-02-11 15:55:13 +00:00
|
|
|
|
2018-03-29 13:31:04 -07:00
|
|
|
// TODO(b/77285514): remove this once the last few hidl interfaces have been
|
|
|
|
// updated to use hwbinder.stubs.
|
2017-10-02 16:58:41 -07:00
|
|
|
java_library {
|
|
|
|
name: "hwbinder",
|
2019-06-12 13:47:18 +01:00
|
|
|
sdk_version: "core_platform",
|
2017-10-02 16:58:41 -07:00
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/os/HidlSupport.java",
|
2018-01-10 15:45:36 -08:00
|
|
|
"core/java/android/annotation/IntDef.java",
|
2019-11-06 09:53:34 -08:00
|
|
|
"core/java/android/annotation/IntRange.java",
|
2017-10-02 16:58:41 -07:00
|
|
|
"core/java/android/annotation/NonNull.java",
|
2019-03-04 17:56:30 -08:00
|
|
|
"core/java/android/annotation/Nullable.java",
|
2018-01-10 15:45:36 -08:00
|
|
|
"core/java/android/annotation/SystemApi.java",
|
2019-01-11 10:19:51 -08:00
|
|
|
"core/java/android/annotation/TestApi.java",
|
2019-11-06 09:53:34 -08:00
|
|
|
"core/java/android/os/HidlMemory.java",
|
2017-10-02 16:58:41 -07:00
|
|
|
"core/java/android/os/HwBinder.java",
|
|
|
|
"core/java/android/os/HwBlob.java",
|
|
|
|
"core/java/android/os/HwParcel.java",
|
|
|
|
"core/java/android/os/IHwBinder.java",
|
|
|
|
"core/java/android/os/IHwInterface.java",
|
|
|
|
"core/java/android/os/DeadObjectException.java",
|
|
|
|
"core/java/android/os/DeadSystemException.java",
|
2018-07-24 17:03:44 -07:00
|
|
|
"core/java/android/os/NativeHandle.java",
|
2017-10-02 16:58:41 -07:00
|
|
|
"core/java/android/os/RemoteException.java",
|
|
|
|
"core/java/android/util/AndroidException.java",
|
|
|
|
],
|
2019-12-10 17:47:53 +00:00
|
|
|
libs: [ "unsupportedappusage" ],
|
2017-10-02 16:58:41 -07:00
|
|
|
|
|
|
|
dxflags: ["--core-library"],
|
|
|
|
installable: false,
|
|
|
|
}
|
2017-11-08 20:48:46 -08:00
|
|
|
|
|
|
|
python_defaults {
|
|
|
|
name: "base_default",
|
|
|
|
version: {
|
|
|
|
py2: {
|
|
|
|
enabled: false,
|
|
|
|
embedded_launcher: false,
|
|
|
|
},
|
2020-03-05 11:58:47 -08:00
|
|
|
py3: {
|
|
|
|
enabled: true,
|
|
|
|
embedded_launcher: true,
|
|
|
|
},
|
2017-11-08 20:48:46 -08:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
python_binary_host {
|
|
|
|
name: "fontchain_linter",
|
|
|
|
defaults: ["base_default"],
|
|
|
|
main: "tools/fonts/fontchain_linter.py",
|
|
|
|
srcs: [
|
|
|
|
"tools/fonts/fontchain_linter.py",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"fontTools",
|
|
|
|
],
|
|
|
|
}
|
2018-02-27 11:24:03 -08:00
|
|
|
|
2018-11-20 10:05:44 +09:00
|
|
|
filegroup {
|
|
|
|
name: "framework-media-annotation-srcs",
|
|
|
|
srcs: [
|
2019-12-18 14:06:48 -07:00
|
|
|
":framework-annotations",
|
2018-11-20 10:05:44 +09:00
|
|
|
"core/java/android/annotation/CallbackExecutor.java",
|
2019-01-22 17:16:07 +09:00
|
|
|
"core/java/android/annotation/CallSuper.java",
|
2018-11-20 10:05:44 +09:00
|
|
|
"core/java/android/annotation/DrawableRes.java",
|
|
|
|
"core/java/android/annotation/LongDef.java",
|
|
|
|
"core/java/android/annotation/StringDef.java",
|
2019-12-18 14:06:48 -07:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
name: "framework-mediaprovider-annotation-sources",
|
|
|
|
srcs: [
|
|
|
|
":framework-annotations",
|
|
|
|
"core/java/android/annotation/BytesLong.java",
|
|
|
|
"core/java/android/annotation/CurrentTimeSecondsLong.java",
|
|
|
|
"core/java/android/annotation/DurationMillisLong.java",
|
2018-11-20 10:05:44 +09:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-02-18 15:28:35 +00:00
|
|
|
// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
|
|
|
|
// annotations to private apis
|
|
|
|
aidl_mapping {
|
|
|
|
name: "framework-aidl-mappings",
|
2019-09-15 20:19:02 +09:00
|
|
|
srcs: [":framework-all-sources"],
|
2019-05-23 16:20:12 +01:00
|
|
|
output: "framework-aidl-mappings.txt",
|
2019-04-11 04:08:40 +00:00
|
|
|
}
|
2019-06-26 14:47:58 +01:00
|
|
|
|
2019-09-05 22:07:42 -07:00
|
|
|
// Avoid including Parcelable classes as we don't want to have two copies of
|
2020-01-14 19:25:13 -08:00
|
|
|
// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
|
|
|
|
// and TeleService app (packages/services/Telephony).
|
2019-09-05 22:07:42 -07:00
|
|
|
filegroup {
|
2020-01-14 19:25:13 -08:00
|
|
|
name: "framework-telephony-common-shared-srcs",
|
2019-09-05 22:07:42 -07:00
|
|
|
srcs: [
|
2019-12-24 14:13:25 -08:00
|
|
|
"core/java/android/os/BasicShellCommandHandler.java",
|
2019-09-05 22:07:42 -07:00
|
|
|
"core/java/android/os/RegistrantList.java",
|
|
|
|
"core/java/android/os/Registrant.java",
|
|
|
|
"core/java/android/util/LocalLog.java",
|
|
|
|
"core/java/android/util/TimeUtils.java",
|
|
|
|
"core/java/com/android/internal/os/SomeArgs.java",
|
2019-12-13 16:45:34 -08:00
|
|
|
"core/java/com/android/internal/util/AsyncChannel.java",
|
2020-01-14 14:04:10 -08:00
|
|
|
"core/java/com/android/internal/util/AsyncService.java",
|
2019-12-13 16:45:34 -08:00
|
|
|
"core/java/com/android/internal/util/BitwiseInputStream.java",
|
2019-10-31 11:48:43 -07:00
|
|
|
"core/java/com/android/internal/util/FastXmlSerializer.java",
|
|
|
|
"core/java/com/android/internal/util/HexDump.java",
|
2019-12-02 10:42:20 -08:00
|
|
|
"core/java/com/android/internal/util/IState.java",
|
2019-10-31 11:48:43 -07:00
|
|
|
"core/java/com/android/internal/util/IndentingPrintWriter.java",
|
2019-09-05 22:07:42 -07:00
|
|
|
"core/java/com/android/internal/util/Preconditions.java",
|
|
|
|
"core/java/com/android/internal/util/State.java",
|
|
|
|
"core/java/com/android/internal/util/StateMachine.java",
|
2019-10-31 11:48:43 -07:00
|
|
|
"core/java/com/android/internal/util/UserIcons.java",
|
2019-09-05 22:07:42 -07:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2020-01-14 19:25:13 -08:00
|
|
|
// Avoid including Parcelable classes as we don't want to have two copies of
|
|
|
|
// Parcelable cross the process. This is used by framework-telephony (frameworks/base/telephony).
|
|
|
|
filegroup {
|
|
|
|
name: "framework-telephony-shared-srcs",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/util/RecurrenceRule.java",
|
|
|
|
"core/java/com/android/internal/os/SomeArgs.java",
|
|
|
|
"core/java/com/android/internal/util/BitwiseInputStream.java",
|
|
|
|
"core/java/com/android/internal/util/BitwiseOutputStream.java",
|
|
|
|
"core/java/com/android/internal/util/HexDump.java",
|
|
|
|
"core/java/com/android/internal/util/IndentingPrintWriter.java",
|
|
|
|
"core/java/com/android/internal/util/Preconditions.java",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2019-10-08 18:39:03 -07:00
|
|
|
// Avoid including Parcelable classes as we don't want to have two copies of
|
|
|
|
// Parcelable cross the process.
|
|
|
|
filegroup {
|
|
|
|
name: "framework-cellbroadcast-shared-srcs",
|
|
|
|
srcs: [
|
2019-11-20 13:55:18 -08:00
|
|
|
"core/java/android/os/HandlerExecutor.java",
|
2019-10-08 18:39:03 -07:00
|
|
|
"core/java/android/util/LocalLog.java",
|
2019-11-20 13:55:18 -08:00
|
|
|
"core/java/com/android/internal/util/IState.java",
|
|
|
|
"core/java/com/android/internal/util/Preconditions.java",
|
2019-10-08 18:39:03 -07:00
|
|
|
"core/java/com/android/internal/util/State.java",
|
|
|
|
"core/java/com/android/internal/util/StateMachine.java",
|
|
|
|
],
|
2019-10-08 16:16:47 +01:00
|
|
|
}
|
2019-10-16 13:16:04 -07:00
|
|
|
|
2019-10-23 18:06:33 -07:00
|
|
|
filegroup {
|
|
|
|
name: "framework-ims-common-shared-srcs",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/os/RegistrantList.java",
|
|
|
|
"core/java/android/os/Registrant.java",
|
|
|
|
"core/java/com/android/internal/os/SomeArgs.java",
|
|
|
|
"core/java/com/android/internal/util/Preconditions.java",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2020-01-09 14:02:21 -08:00
|
|
|
// utility classes statically linked into framework-wifi and dynamically linked
|
|
|
|
// into wifi-service
|
|
|
|
java_library {
|
|
|
|
name: "framework-wifi-util-lib",
|
|
|
|
sdk_version: "core_current",
|
|
|
|
srcs: [
|
|
|
|
"core/java/android/content/pm/BaseParceledListSlice.java",
|
|
|
|
"core/java/android/content/pm/ParceledListSlice.java",
|
2020-01-09 18:09:56 -08:00
|
|
|
"core/java/android/net/shared/Inet4AddressUtils.java",
|
|
|
|
"core/java/android/os/HandlerExecutor.java",
|
2020-01-09 14:02:21 -08:00
|
|
|
"core/java/com/android/internal/util/AsyncChannel.java",
|
|
|
|
"core/java/com/android/internal/util/AsyncService.java",
|
|
|
|
"core/java/com/android/internal/util/Protocol.java",
|
|
|
|
"core/java/com/android/internal/util/Preconditions.java",
|
2020-01-09 18:09:56 -08:00
|
|
|
"telephony/java/android/telephony/Annotation.java",
|
2020-01-17 19:02:49 +00:00
|
|
|
":net-utils-framework-wifi-common-srcs",
|
2020-01-09 14:02:21 -08:00
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"framework-annotations-lib",
|
|
|
|
"unsupportedappusage",
|
|
|
|
"android_system_stubs_current",
|
|
|
|
],
|
|
|
|
visibility: ["//frameworks/base/wifi"],
|
|
|
|
}
|
|
|
|
|
2020-02-10 15:58:26 -08:00
|
|
|
filegroup {
|
|
|
|
name: "framework-wifi-util-lib-aidls",
|
|
|
|
srcs: ["core/java/android/content/pm/ParceledListSlice.aidl"],
|
|
|
|
path: "core/java",
|
|
|
|
}
|
|
|
|
|
2020-01-09 14:02:21 -08:00
|
|
|
// utility classes statically linked into wifi-service
|
2019-10-16 13:16:04 -07:00
|
|
|
filegroup {
|
2019-12-06 13:49:47 -08:00
|
|
|
name: "framework-wifi-service-shared-srcs",
|
2019-10-16 13:16:04 -07:00
|
|
|
srcs: [
|
2019-12-09 07:39:41 -08:00
|
|
|
"core/java/android/net/InterfaceConfiguration.java",
|
2020-01-08 11:10:15 -08:00
|
|
|
"core/java/android/os/BasicShellCommandHandler.java",
|
2019-12-04 13:03:47 -08:00
|
|
|
"core/java/android/util/BackupUtils.java",
|
2019-10-16 13:16:04 -07:00
|
|
|
"core/java/android/util/Rational.java",
|
|
|
|
"core/java/com/android/internal/util/FastXmlSerializer.java",
|
|
|
|
"core/java/com/android/internal/util/HexDump.java",
|
|
|
|
"core/java/com/android/internal/util/IState.java",
|
|
|
|
"core/java/com/android/internal/util/MessageUtils.java",
|
|
|
|
"core/java/com/android/internal/util/State.java",
|
|
|
|
"core/java/com/android/internal/util/StateMachine.java",
|
|
|
|
"core/java/com/android/internal/util/WakeupMessage.java",
|
|
|
|
],
|
2020-01-17 19:02:49 +00:00
|
|
|
visibility: ["//frameworks/opt/net/wifi/service"],
|
2019-10-16 13:16:04 -07:00
|
|
|
}
|
2019-12-20 14:35:43 +09:00
|
|
|
|
|
|
|
// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
|
|
|
|
metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
|
|
|
|
"--ignore-classes-on-classpath " +
|
|
|
|
"--hide-package com.android.server " +
|
|
|
|
"--error UnhiddenSystemApi " +
|
|
|
|
"--hide RequiresPermission " +
|
|
|
|
"--hide CallbackInterface " +
|
|
|
|
"--hide MissingPermission --hide BroadcastBehavior " +
|
|
|
|
"--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
|
|
|
|
"--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
|
2019-11-20 17:51:42 -08:00
|
|
|
"--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
|
|
|
|
"--api-lint-ignore-prefix android.icu. " +
|
|
|
|
"--api-lint-ignore-prefix java. " +
|
|
|
|
"--api-lint-ignore-prefix junit. " +
|
|
|
|
"--api-lint-ignore-prefix org. "
|
2019-12-20 14:35:43 +09:00
|
|
|
|
|
|
|
build = [
|
|
|
|
"StubLibraries.bp",
|
|
|
|
"ApiDocs.bp",
|
|
|
|
]
|
2020-01-10 08:38:31 -08:00
|
|
|
|
|
|
|
// TODO(b/147699819): move to frameworks/base/telephony/ folder
|
|
|
|
droidstubs {
|
|
|
|
name: "framework-telephony-stubs-srcs",
|
|
|
|
srcs: [
|
|
|
|
":framework-telephony-sources",
|
|
|
|
":framework_native_aidl",
|
|
|
|
":framework-javastream-protos",
|
|
|
|
],
|
|
|
|
aidl: {
|
|
|
|
local_include_dirs: [
|
|
|
|
"core/java",
|
|
|
|
"telecomm/java"
|
|
|
|
],
|
|
|
|
},
|
|
|
|
libs: [
|
|
|
|
"framework-annotations-lib",
|
|
|
|
"android.hardware.radio-V1.5-java",
|
|
|
|
],
|
2020-01-17 19:03:34 +00:00
|
|
|
check_api: {
|
|
|
|
current: {
|
|
|
|
// TODO(b/147699819): remove telephony prefix when moved
|
|
|
|
api_file: "telephony/api/system-current.txt",
|
|
|
|
removed_api_file: "telephony/api/system-removed.txt",
|
|
|
|
},
|
|
|
|
},
|
2020-01-10 08:38:31 -08:00
|
|
|
defaults: ["framework-module-stubs-defaults-systemapi"],
|
|
|
|
filter_packages: ["android.telephony"],
|
|
|
|
sdk_version: "system_current",
|
|
|
|
}
|
|
|
|
|
|
|
|
java_library {
|
|
|
|
name: "framework-telephony-stubs",
|
|
|
|
srcs: [":framework-telephony-stubs-srcs"],
|
|
|
|
// TODO(b/147699819): move public aidls to a separate folder and potentially remove
|
|
|
|
// below aidl exports.
|
|
|
|
aidl: {
|
|
|
|
export_include_dirs: ["telephony/java"],
|
|
|
|
},
|
2020-01-16 20:50:11 -08:00
|
|
|
sdk_version: "core_current",
|
|
|
|
libs: ["android_system_stubs_current"],
|
2020-01-10 08:38:31 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
java_library {
|
|
|
|
name: "framework-telephony",
|
|
|
|
srcs: [
|
|
|
|
":framework-telephony-sources",
|
2020-01-14 19:25:13 -08:00
|
|
|
":framework-telephony-shared-srcs",
|
2020-01-10 08:38:31 -08:00
|
|
|
],
|
|
|
|
// TODO: change to framework-system-stub to build against system APIs.
|
|
|
|
libs: [
|
|
|
|
"framework-minus-apex",
|
|
|
|
"unsupportedappusage",
|
|
|
|
],
|
|
|
|
static_libs: [
|
|
|
|
"libphonenumber-platform",
|
|
|
|
"app-compat-annotations",
|
|
|
|
],
|
|
|
|
sdk_version: "core_platform",
|
|
|
|
aidl: {
|
|
|
|
export_include_dirs: ["telephony/java"],
|
|
|
|
include_dirs: [
|
|
|
|
"frameworks/native/aidl/binder",
|
|
|
|
"frameworks/native/aidl/gui",
|
|
|
|
]
|
|
|
|
},
|
2020-01-14 19:25:13 -08:00
|
|
|
jarjar_rules: ":framework-telephony-jarjar-rules",
|
2020-01-10 08:38:31 -08:00
|
|
|
dxflags: [
|
|
|
|
"--core-library",
|
|
|
|
"--multi-dex",
|
|
|
|
],
|
|
|
|
// This is to break the dependency from boot jars.
|
|
|
|
dex_preopt: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
installable: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
|
|
|
// TODO (b/147690217): move to frameworks/base/telephony/common.
|
|
|
|
name: "framework-telephony-annotations",
|
|
|
|
srcs: ["telephony/java/android/telephony/Annotation.java"],
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
2020-01-14 19:25:13 -08:00
|
|
|
name: "framework-telephony-jarjar-rules",
|
2020-01-10 08:38:31 -08:00
|
|
|
srcs: ["telephony/framework-telephony-jarjar-rules.txt"],
|
|
|
|
}
|