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

Commit 0c2ebe2b authored by Anton Hansson's avatar Anton Hansson
Browse files

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
parent 132a186b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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,
+1 −16
Original line number Diff line number Diff line
@@ -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"],
}