1//
2// Copyright (C) 2019 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//
16
17// Shared utility sources to be used by multiple network modules
18// TODO: remove all frameworks/base dependencies on packages/modules/NetworkStack and
19// frameworks/base/packages/Tethering by moving these files to frameworks/libs/net.
20package {
21    default_applicable_licenses: ["Android-Apache-2.0"],
22}
23
24filegroup {
25    name: "net-module-utils-srcs",
26    srcs: [
27        "src/android/net/util/SharedLog.java",
28        "src/android/net/shared/NetdUtils.java",
29        "src/android/net/shared/NetworkMonitorUtils.java",
30        "src/android/net/shared/RouteUtils.java",
31        "src/android/net/util/InterfaceParams.java",
32    ],
33    visibility: [
34        "//frameworks/base/services/net",
35        "//frameworks/base/packages/Connectivity/service",
36        "//packages/modules/Connectivity/service",
37    ]
38}
39
40filegroup {
41    name: "networkstack-module-utils-srcs",
42    srcs: ["src/**/*.java"],
43    visibility: [
44        "//packages/modules/NetworkStack",
45    ]
46}
47
48// Shared utility sources to be used by tethering modules
49filegroup {
50    name: "tethering-module-utils-srcs",
51    srcs: [
52        "src/android/net/ip/ConntrackMonitor.java",
53        "src/android/net/ip/InterfaceController.java",
54        "src/android/net/ip/IpNeighborMonitor.java",
55        "src/android/net/ip/NetlinkMonitor.java",
56        "src/android/net/netlink/*.java",
57        "src/android/net/shared/NetdUtils.java",
58        "src/android/net/shared/RouteUtils.java",
59        "src/android/net/util/InterfaceParams.java",
60        "src/android/net/util/SharedLog.java",
61    ],
62    visibility: [
63        "//frameworks/base/packages/Tethering",
64        "//packages/modules/Connectivity/Tethering"
65    ],
66}
67