Anton Hansson | 24c88f4 | 2019-12-13 16:17:27 +0000 | [diff] [blame] | 1 | // Copyright (C) 2019 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | mainline_stubs_args = |
| 16 | "--error UnhiddenSystemApi " + |
| 17 | "--hide BroadcastBehavior " + |
| 18 | "--hide DeprecationMismatch " + |
| 19 | "--hide HiddenSuperclass " + |
| 20 | "--hide HiddenTypedefConstant " + |
| 21 | "--hide HiddenTypeParameter " + |
| 22 | "--hide MissingPermission " + |
| 23 | "--hide RequiresPermission " + |
| 24 | "--hide SdkConstant " + |
| 25 | "--hide Todo " + |
| 26 | "--hide Typo " + |
| 27 | "--hide UnavailableSymbol " |
| 28 | |
Anton Hansson | 0c2ebe2 | 2019-12-17 10:03:52 +0000 | [diff] [blame] | 29 | // TODO: remove this server classes are cleaned up. |
| 30 | mainline_stubs_args += "--hide-package com.android.server " |
| 31 | |
Anton Hansson | 24c88f4 | 2019-12-13 16:17:27 +0000 | [diff] [blame] | 32 | stubs_defaults { |
| 33 | name: "framework-module-stubs-defaults-publicapi", |
| 34 | args: mainline_stubs_args, |
| 35 | installable: false, |
| 36 | } |
| 37 | |
| 38 | stubs_defaults { |
| 39 | name: "framework-module-stubs-defaults-systemapi", |
Jiyong Park | 2afff6c | 2020-01-06 16:22:32 +0900 | [diff] [blame] | 40 | args: mainline_stubs_args + |
| 41 | " --show-annotation android.annotation.SystemApi\\(" + |
| 42 | "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," + |
| 43 | "process=android.annotation.SystemApi.Process.ALL\\) ", |
| 44 | installable: false, |
| 45 | } |
| 46 | |
| 47 | stubs_defaults { |
| 48 | name: "framework-module-stubs-defaults-module_apps_api", |
| 49 | args: mainline_stubs_args + |
| 50 | " --show-annotation android.annotation.SystemApi\\(" + |
| 51 | "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," + |
| 52 | "process=android.annotation.SystemApi.Process.ALL\\) " + |
| 53 | " --show-annotation android.annotation.SystemApi\\(" + |
| 54 | "client=android.annotation.SystemApi.Client.MODULE_APPS," + |
| 55 | "process=android.annotation.SystemApi.Process.ALL\\) ", |
| 56 | installable: false, |
| 57 | } |
| 58 | |
| 59 | stubs_defaults { |
| 60 | name: "framework-module-stubs-defaults-module_libs_api", |
| 61 | args: mainline_stubs_args + |
| 62 | " --show-annotation android.annotation.SystemApi\\(" + |
| 63 | "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," + |
| 64 | "process=android.annotation.SystemApi.Process.ALL\\) " + |
| 65 | " --show-annotation android.annotation.SystemApi\\(" + |
| 66 | "client=android.annotation.SystemApi.Client.MODULE_APPS," + |
| 67 | "process=android.annotation.SystemApi.Process.ALL\\) " + |
| 68 | " --show-annotation android.annotation.SystemApi\\(" + |
| 69 | "client=android.annotation.SystemApi.Client.MODULE_LIBRARIES," + |
| 70 | "process=android.annotation.SystemApi.Process.ALL\\) ", |
Anton Hansson | 24c88f4 | 2019-12-13 16:17:27 +0000 | [diff] [blame] | 71 | installable: false, |
| 72 | } |