blob: b30ee808442e580fe4702b4a0efde1fc1d75b4f5 [file] [log] [blame]
paulhu73a82032021-11-18 15:29:03 +08001//
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//
16
Junyu Laiad166b42021-12-07 08:25:31 +000017// NetworkStats related libraries.
18
19filegroup {
20 name: "framework-connectivity-netstats-internal-sources",
21 srcs: [
22 "src/android/app/usage/*.java",
Junyu Lai61ebc2f2021-12-27 13:56:00 +000023 "src/android/net/DataUsageRequest.*",
24 "src/android/net/INetworkStatsService.aidl",
25 "src/android/net/INetworkStatsSession.aidl",
26 "src/android/net/NetworkIdentity.java",
27 "src/android/net/NetworkIdentitySet.java",
Junyu Laiad166b42021-12-07 08:25:31 +000028 "src/android/net/NetworkStateSnapshot.*",
Junyu Lai61ebc2f2021-12-27 13:56:00 +000029 "src/android/net/NetworkStats.*",
30 "src/android/net/NetworkStatsAccess.*",
31 "src/android/net/NetworkStatsCollection.*",
32 "src/android/net/NetworkStatsHistory.*",
Junyu Laiad166b42021-12-07 08:25:31 +000033 "src/android/net/NetworkTemplate.*",
34 "src/android/net/TrafficStats.java",
35 "src/android/net/UnderlyingNetworkInfo.*",
36 "src/android/net/netstats/**/*.*",
37 ],
38 path: "src",
39 visibility: [
40 "//visibility:private",
41 ],
42}
43
44filegroup {
Junyu Laiad166b42021-12-07 08:25:31 +000045 name: "framework-connectivity-netstats-sources",
46 srcs: [
47 ":framework-connectivity-netstats-internal-sources",
Junyu Laiad166b42021-12-07 08:25:31 +000048 ],
49 visibility: [
50 "//visibility:private",
51 ],
52}
53
54// Nsd related libraries.
55
paulhu73a82032021-11-18 15:29:03 +080056filegroup {
57 name: "framework-connectivity-nsd-internal-sources",
58 srcs: [
Junyu Laiad166b42021-12-07 08:25:31 +000059 "src/android/net/nsd/*.aidl",
60 "src/android/net/nsd/*.java",
paulhu73a82032021-11-18 15:29:03 +080061 ],
62 path: "src",
63 visibility: [
64 "//visibility:private",
65 ],
66}
67
68filegroup {
paulhu73a82032021-11-18 15:29:03 +080069 name: "framework-connectivity-nsd-sources",
70 srcs: [
71 ":framework-connectivity-nsd-internal-sources",
paulhu73a82032021-11-18 15:29:03 +080072 ],
73 visibility: [
Junyu Laiad166b42021-12-07 08:25:31 +000074 "//visibility:private",
paulhu73a82032021-11-18 15:29:03 +080075 ],
76}
Junyu Laiad166b42021-12-07 08:25:31 +000077
Aaron Huang9a708a42021-12-10 17:36:49 +080078// IpSec related libraries.
79
80filegroup {
81 name: "framework-connectivity-ipsec-sources",
82 srcs: [
83 "src/android/net/IIpSecService.aidl",
84 "src/android/net/IpSec*.*",
85 ],
86 path: "src",
87 visibility: [
88 "//visibility:private",
89 ],
90}
91
Xiao Ma202317d2021-12-14 09:38:32 +000092// Ethernet related libraries.
93
94filegroup {
95 name: "framework-connectivity-ethernet-sources",
96 srcs: [
97 "src/android/net/EthernetManager.java",
James Mattis1ecadfa2022-01-28 13:42:38 -080098 "src/android/net/EthernetNetworkManagementException.java",
99 "src/android/net/EthernetNetworkManagementException.aidl",
Xiao Ma202317d2021-12-14 09:38:32 +0000100 "src/android/net/EthernetNetworkSpecifier.java",
James Mattis1ecadfa2022-01-28 13:42:38 -0800101 "src/android/net/EthernetNetworkUpdateRequest.java",
102 "src/android/net/EthernetNetworkUpdateRequest.aidl",
Xiao Ma202317d2021-12-14 09:38:32 +0000103 "src/android/net/IEthernetManager.aidl",
104 "src/android/net/IEthernetServiceListener.aidl",
Patrick Rohrd6156a92022-03-17 19:19:21 +0000105 "src/android/net/INetworkInterfaceOutcomeReceiver.aidl",
Xiao Ma202317d2021-12-14 09:38:32 +0000106 "src/android/net/ITetheredInterfaceCallback.aidl",
107 ],
108 path: "src",
109 visibility: [
110 "//visibility:private",
111 ],
112}
113
Junyu Laiad166b42021-12-07 08:25:31 +0000114// Connectivity-T common libraries.
115
116filegroup {
paulhue46555d2021-11-23 16:16:13 +0800117 name: "framework-connectivity-tiramisu-internal-sources",
118 srcs: [
119 "src/android/net/ConnectivityFrameworkInitializerTiramisu.java",
120 ],
121 path: "src",
122 visibility: [
123 "//visibility:private",
124 ],
125}
126
paulhu66f61ac2021-12-14 23:09:55 +0800127filegroup {
128 name: "framework-connectivity-tiramisu-updatable-sources",
129 srcs: [
Xiao Madbc8e0f2021-12-28 09:16:09 +0000130 ":framework-connectivity-ethernet-sources",
Aaron Huangb944ff12022-01-12 15:11:01 +0800131 ":framework-connectivity-ipsec-sources",
Junyu Lai6313e552022-01-26 09:00:41 +0000132 ":framework-connectivity-netstats-sources",
Junyu Laiad166b42021-12-07 08:25:31 +0000133 ":framework-connectivity-nsd-sources",
paulhue46555d2021-11-23 16:16:13 +0800134 ":framework-connectivity-tiramisu-internal-sources",
Junyu Laiad166b42021-12-07 08:25:31 +0000135 ],
paulhu66f61ac2021-12-14 23:09:55 +0800136 visibility: [
137 "//frameworks/base",
138 "//packages/modules/Connectivity:__subpackages__",
139 ],
paulhue46555d2021-11-23 16:16:13 +0800140}
Lorenzo Colittid2ae7392022-01-29 21:07:33 +0900141
142cc_library_shared {
143 name: "libframework-connectivity-tiramisu-jni",
144 min_sdk_version: "30",
145 cflags: [
146 "-Wall",
147 "-Werror",
148 "-Wno-unused-parameter",
149 // Don't warn about S API usage even with
150 // min_sdk 30: the library is only loaded
151 // on S+ devices
152 "-Wno-unguarded-availability",
153 "-Wthread-safety",
154 ],
155 srcs: [
156 "jni/android_net_TrafficStats.cpp",
157 "jni/onload.cpp",
158 ],
159 shared_libs: [
Remi NGUYEN VANa24baed2022-02-02 13:22:57 +0900160 "libandroid",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +0900161 "liblog",
Remi NGUYEN VANa24baed2022-02-02 13:22:57 +0900162 "libnativehelper",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +0900163 ],
164 stl: "none",
165 apex_available: [
166 "com.android.tethering",
Lorenzo Colittid2ae7392022-01-29 21:07:33 +0900167 ],
168}