Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit 89062555 authored by Anton Hansson's avatar Anton Hansson Committed by Automerger Merge Worker
Browse files

Merge "Split android-non-updatable-stubs-defaults in two" am: 70ab0685 am: e55397e9

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1958860

Change-Id: Ia4926c922cd1663690f118b7fa996787fc995b08
parents 9f28d7cf e55397e9
Branches
Tags
No related merge requests found
...@@ -503,7 +503,9 @@ filegroup { ...@@ -503,7 +503,9 @@ filegroup {
visibility: ["//visibility:private"], visibility: ["//visibility:private"],
} }
// These defaults are used for both the jar stubs and the doc stubs. // Defaults for all stubs that include the non-updatable framework. These defaults do not include
// module symbols, so will not compile correctly on their own. Users must add module APIs to the
// classpath (or sources) somehow.
stubs_defaults { stubs_defaults {
name: "android-non-updatable-stubs-defaults", name: "android-non-updatable-stubs-defaults",
srcs: [":android-non-updatable-stub-sources"], srcs: [":android-non-updatable-stub-sources"],
...@@ -511,17 +513,14 @@ stubs_defaults { ...@@ -511,17 +513,14 @@ stubs_defaults {
system_modules: "none", system_modules: "none",
java_version: "1.8", java_version: "1.8",
arg_files: ["core/res/AndroidManifest.xml"], arg_files: ["core/res/AndroidManifest.xml"],
// TODO(b/147699819): remove below aidl includes.
aidl: { aidl: {
local_include_dirs: [ local_include_dirs: [
"apex/media/aidl/stable",
"media/aidl", "media/aidl",
"telephony/java", "telephony/java",
], ],
include_dirs: [ include_dirs: [
"frameworks/av/aidl", "frameworks/av/aidl",
"frameworks/native/libs/permission/aidl", "frameworks/native/libs/permission/aidl",
"packages/modules/Connectivity/framework/aidl-export",
], ],
}, },
// These are libs from framework-internal-utils that are required (i.e. being referenced) // These are libs from framework-internal-utils that are required (i.e. being referenced)
...@@ -543,6 +542,30 @@ stubs_defaults { ...@@ -543,6 +542,30 @@ stubs_defaults {
"android.hardware.usb.gadget-V1.0-java", "android.hardware.usb.gadget-V1.0-java",
"android.hardware.vibrator-V1.3-java", "android.hardware.vibrator-V1.3-java",
"framework-protos", "framework-protos",
],
filter_packages: packages_to_document,
high_mem: true, // Lots of sources => high memory use, see b/170701554
installable: false,
annotations_enabled: true,
previous_api: ":android.api.public.latest",
merge_annotations_dirs: ["metalava-manual"],
defaults_visibility: ["//visibility:private"],
visibility: ["//frameworks/base/api"],
}
// Defaults with module APIs in the classpath (mostly from prebuilts).
// Suitable for compiling android-non-updatable.
stubs_defaults {
name: "module-classpath-stubs-defaults",
aidl: {
local_include_dirs: [
"apex/media/aidl/stable",
],
include_dirs: [
"packages/modules/Connectivity/framework/aidl-export",
],
},
libs: [
"art.module.public.api", "art.module.public.api",
"sdk_module-lib_current_framework-tethering", "sdk_module-lib_current_framework-tethering",
// There are a few classes from modules used by the core that // There are a few classes from modules used by the core that
...@@ -553,14 +576,7 @@ stubs_defaults { ...@@ -553,14 +576,7 @@ stubs_defaults {
// NOTE: The below can be removed once the prebuilt stub contains IKE. // NOTE: The below can be removed once the prebuilt stub contains IKE.
"sdk_system_current_android.net.ipsec.ike", "sdk_system_current_android.net.ipsec.ike",
], ],
filter_packages: packages_to_document,
high_mem: true, // Lots of sources => high memory use, see b/170701554
installable: false,
annotations_enabled: true,
previous_api: ":android.api.public.latest",
merge_annotations_dirs: ["metalava-manual"],
defaults_visibility: ["//visibility:private"], defaults_visibility: ["//visibility:private"],
visibility: ["//frameworks/base/api"],
} }
build = [ build = [
......
...@@ -57,7 +57,10 @@ framework_docs_only_libs = [ ...@@ -57,7 +57,10 @@ framework_docs_only_libs = [
stubs_defaults { stubs_defaults {
name: "android-non-updatable-doc-stubs-defaults", name: "android-non-updatable-doc-stubs-defaults",
defaults: ["android-non-updatable-stubs-defaults"], defaults: [
"android-non-updatable-stubs-defaults",
"module-classpath-stubs-defaults",
],
srcs: [ srcs: [
// No longer part of the stubs, but are included in the docs. // No longer part of the stubs, but are included in the docs.
":android-test-base-sources", ":android-test-base-sources",
......
...@@ -29,7 +29,10 @@ ...@@ -29,7 +29,10 @@
droidstubs { droidstubs {
name: "api-stubs-docs-non-updatable", name: "api-stubs-docs-non-updatable",
defaults: ["android-non-updatable-stubs-defaults"], defaults: [
"android-non-updatable-stubs-defaults",
"module-classpath-stubs-defaults",
],
args: metalava_framework_docs_args, args: metalava_framework_docs_args,
check_api: { check_api: {
current: { current: {
...@@ -78,7 +81,10 @@ module_libs = " --show-annotation android.annotation.SystemApi\\(" + ...@@ -78,7 +81,10 @@ module_libs = " --show-annotation android.annotation.SystemApi\\(" +
droidstubs { droidstubs {
name: "system-api-stubs-docs-non-updatable", name: "system-api-stubs-docs-non-updatable",
defaults: ["android-non-updatable-stubs-defaults"], defaults: [
"android-non-updatable-stubs-defaults",
"module-classpath-stubs-defaults",
],
args: metalava_framework_docs_args + priv_apps, args: metalava_framework_docs_args + priv_apps,
check_api: { check_api: {
current: { current: {
...@@ -114,7 +120,10 @@ droidstubs { ...@@ -114,7 +120,10 @@ droidstubs {
droidstubs { droidstubs {
name: "test-api-stubs-docs-non-updatable", name: "test-api-stubs-docs-non-updatable",
defaults: ["android-non-updatable-stubs-defaults"], defaults: [
"android-non-updatable-stubs-defaults",
"module-classpath-stubs-defaults",
],
args: metalava_framework_docs_args + test + priv_apps_in_stubs, args: metalava_framework_docs_args + test + priv_apps_in_stubs,
check_api: { check_api: {
current: { current: {
...@@ -156,7 +165,10 @@ droidstubs { ...@@ -156,7 +165,10 @@ droidstubs {
droidstubs { droidstubs {
name: "module-lib-api-stubs-docs-non-updatable", name: "module-lib-api-stubs-docs-non-updatable",
defaults: ["android-non-updatable-stubs-defaults"], defaults: [
"android-non-updatable-stubs-defaults",
"module-classpath-stubs-defaults",
],
args: metalava_framework_docs_args + priv_apps_in_stubs + module_libs, args: metalava_framework_docs_args + priv_apps_in_stubs + module_libs,
check_api: { check_api: {
current: { current: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment