• 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        "android/annotation/*.java",
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
42java_library {
43    name: "framework-annotations-lib",
44    srcs: [":framework-annotations"],
45    sdk_version: "core_current",
46    visibility: [
47        "//visibility:public",
48    ],
49}
50
51filegroup {
52    name: "framework-api-annotations",
53    srcs: [
54        "android/annotation/SystemApi.java",
55        "android/annotation/TestApi.java",
56    ],
57
58    visibility: [
59        "//art",
60        "//libcore",
61    ],
62}
63
64// TODO(b/183183152) This build rule should really be alongside the source in
65// com/android/modules/utils/ but cannot be due to b/183183152
66filegroup {
67    name: "module-utils-os-aidls",
68    srcs: [
69        "com/android/modules/utils/ParceledListSlice.aidl",
70        "com/android/modules/utils/StringParceledListSlice.aidl",
71    ],
72    visibility: [
73        "//frameworks/base/wifi",
74        "//packages/modules/Wifi/framework",
75        "//frameworks/libs/modules-utils/java/com/android/modules/utils",
76    ],
77}
78
79// This file group is deprecated; new users should use modules-utils-preconditions
80filegroup {
81    name: "modules-utils-preconditions-srcs",
82    srcs: [
83        "com/android/internal/util/Preconditions.java",
84    ],
85    visibility: [
86        // TODO: Prune this list
87        "//frameworks/base",
88        "//frameworks/base/core/java",
89    ],
90}
91
92