blob: c3b001471a12fa29c5a04d70c378f8b952afb48b [file] [log] [blame]
Anton Hansson24c88f42019-12-13 16:17:27 +00001// 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
15mainline_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
29stubs_defaults {
30 name: "framework-module-stubs-defaults-publicapi",
31 args: mainline_stubs_args,
32 installable: false,
33}
34
35stubs_defaults {
36 name: "framework-module-stubs-defaults-systemapi",
Jiyong Park7be934f2020-01-06 16:22:32 +090037 args: mainline_stubs_args +
38 " --show-annotation android.annotation.SystemApi\\(" +
39 "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," +
40 "process=android.annotation.SystemApi.Process.ALL\\) ",
41 installable: false,
42}
43
44stubs_defaults {
45 name: "framework-module-stubs-defaults-module_apps_api",
46 args: mainline_stubs_args +
47 " --show-annotation android.annotation.SystemApi\\(" +
48 "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," +
49 "process=android.annotation.SystemApi.Process.ALL\\) " +
50 " --show-annotation android.annotation.SystemApi\\(" +
51 "client=android.annotation.SystemApi.Client.MODULE_APPS," +
52 "process=android.annotation.SystemApi.Process.ALL\\) ",
53 installable: false,
54}
55
56stubs_defaults {
57 name: "framework-module-stubs-defaults-module_libs_api",
58 args: mainline_stubs_args +
59 " --show-annotation android.annotation.SystemApi\\(" +
60 "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS," +
61 "process=android.annotation.SystemApi.Process.ALL\\) " +
62 " --show-annotation android.annotation.SystemApi\\(" +
63 "client=android.annotation.SystemApi.Client.MODULE_APPS," +
64 "process=android.annotation.SystemApi.Process.ALL\\) " +
65 " --show-annotation android.annotation.SystemApi\\(" +
66 "client=android.annotation.SystemApi.Client.MODULE_LIBRARIES," +
67 "process=android.annotation.SystemApi.Process.ALL\\) ",
Anton Hansson24c88f42019-12-13 16:17:27 +000068 installable: false,
69}