• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20filegroup {
21    name: "framework-annotations",
22    srcs: [
23        ":framework-metalava-annotations",
24        "com/android/internal/annotations/*.java",
25    ],
26
27    // TODO: Prune this list
28    visibility: [
29        "//frameworks/base",
30        "//frameworks/base/services/net",
31        "//frameworks/base/tools/processors/intdef_mappings",
32        "//frameworks/libs/net/common",
33        "//packages/apps/CellBroadcastReceiver",
34        "//packages/apps/CellBroadcastReceiver/legacy",
35        "//packages/modules/CellBroadcastService",
36        "//packages/modules/NetworkStack/common/netlinkclient",
37        "//packages/modules/NetworkStack/common/networkstackclient",
38        "//packages/services/Iwlan",
39    ],
40}
41
42filegroup {
43    name: "framework-metalava-annotations",
44    srcs: ["android/annotation/*.java"],
45    visibility: [
46        // This group of files is needed by any metalava invocation that enabled enhancement of
47        // documentation (via javadoc tags like @paramDoc and @returnDoc). They are public for
48        // this purpose. However, java compilation should generally depend (dynamically) on
49        // framework-annotations-lib instead.
50        "//visibility:public",
51    ],
52}
53
54java_library {
55    name: "framework-annotations-lib",
56    srcs: [":framework-annotations"],
57    sdk_version: "core_current",
58    host_supported: true,
59    visibility: [
60        "//visibility:public",
61    ],
62}
63
64filegroup {
65    name: "framework-api-annotations",
66    srcs: [
67        "android/annotation/Discouraged.java",
68        "android/annotation/SystemApi.java",
69        "android/annotation/TestApi.java",
70    ],
71
72    visibility: [
73        "//art",
74        "//libcore",
75    ],
76}
77
78// TODO(b/183183152) This build rule should really be alongside the source in
79// com/android/modules/utils/ but cannot be due to b/183183152
80filegroup {
81    name: "module-utils-os-aidls",
82    srcs: [
83        "com/android/modules/utils/ParceledListSlice.aidl",
84        "com/android/modules/utils/StringParceledListSlice.aidl",
85    ],
86    visibility: [
87        "//frameworks/base/wifi",
88        "//packages/modules/Wifi/framework",
89        "//frameworks/libs/modules-utils/java/com/android/modules/utils",
90    ],
91}
92
93filegroup {
94    name: "modules-utils-synchronous-result-receiver-aidl",
95    srcs: [
96        "com/android/modules/utils/ISynchronousResultReceiver.aidl",
97        "com/android/modules/utils/SynchronousResultReceiver.aidl",
98    ],
99    visibility: [
100        "//frameworks/libs/modules-utils/java/com/android/modules/utils",
101        "//packages/modules/Bluetooth/system/binder",
102    ],
103}
104
105// This file group is deprecated; new users should use modules-utils-preconditions
106filegroup {
107    name: "modules-utils-preconditions-srcs",
108    srcs: [
109        "com/android/internal/util/Preconditions.java",
110    ],
111    visibility: [
112        // TODO: Prune this list
113        "//frameworks/base",
114        "//frameworks/base/core/java",
115    ],
116}
117