Make wifi module use shared metalava args

Also (hopefully) temporarily filter out com.android.server
from the stubs, as the wifi module has a server class in
it.

Bug: 137191822
Test: m
Change-Id: I2c62fc16c676305e9ee739285f49656075f38b97
This commit is contained in:
Anton Hansson
2019-12-17 10:03:52 +00:00
parent 132a186bdb
commit 0c2ebe2bbf
2 changed files with 4 additions and 16 deletions

View File

@@ -26,6 +26,9 @@ mainline_stubs_args =
"--hide Typo " +
"--hide UnavailableSymbol "
// TODO: remove this server classes are cleaned up.
mainline_stubs_args += "--hide-package com.android.server "
stubs_defaults {
name: "framework-module-stubs-defaults-publicapi",
args: mainline_stubs_args,

View File

@@ -58,21 +58,6 @@ java_library {
}
}
metalava_wifi_docs_args =
"--hide-package com.android.server " +
"--error UnhiddenSystemApi " +
"--hide RequiresPermission " +
"--hide MissingPermission " +
"--hide BroadcastBehavior " +
"--hide HiddenSuperclass " +
"--hide DeprecationMismatch " +
"--hide UnavailableSymbol " +
"--hide SdkConstant " +
"--hide HiddenTypeParameter " +
"--hide Todo --hide Typo " +
"--hide HiddenTypedefConstant " +
"--show-annotation android.annotation.SystemApi "
droidstubs {
name: "framework-wifi-stubs-srcs",
srcs: [
@@ -82,7 +67,7 @@ droidstubs {
aidl: {
include_dirs: ["frameworks/base/core/java"],
},
args: metalava_wifi_docs_args,
defaults: [ "framework-module-stubs-defaults-systemapi" ],
sdk_version: "core_current",
libs: ["android_system_stubs_current"],
}