blob: 4e669b655a63d4c821e764c2c402d819796f8e70 [file] [log] [blame]
paulhu9dbe49f2021-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 Lai8074ed32021-12-07 08:25:31 +000017// NetworkStats related libraries.
18
19filegroup {
20 name: "services.connectivity-netstats-sources",
21 srcs: [
22 "src/com/android/server/net/NetworkIdentity*.java",
23 "src/com/android/server/net/NetworkStats*.java",
markchiendebfc402022-01-18 18:26:28 +080024 "src/com/android/server/net/BpfInterfaceMapUpdater.java",
25 "src/com/android/server/net/InterfaceMapValue.java",
Patrick Rohrfc3b4202022-02-02 22:28:28 +010026 "src/com/android/server/net/CookieTagMapKey.java",
27 "src/com/android/server/net/CookieTagMapValue.java",
28 "src/com/android/server/net/StatsMapKey.java",
29 "src/com/android/server/net/StatsMapValue.java",
30 "src/com/android/server/net/UidStatsMapKey.java",
Junyu Lai8074ed32021-12-07 08:25:31 +000031 ],
32 path: "src",
33 visibility: [
34 "//visibility:private",
35 ],
36}
37
Remi NGUYEN VAN63d42a22022-02-02 13:22:57 +090038// For test code only.
39filegroup {
40 name: "lib_networkStatsFactory_native",
41 srcs: [
42 "jni/com_android_server_net_NetworkStatsFactory.cpp",
43 ],
44 path: "jni",
45 visibility: [
46 "//packages/modules/Connectivity:__subpackages__",
47 ],
48}
49
50filegroup {
51 name: "services.connectivity-netstats-jni-sources",
52 srcs: [
53 "jni/com_android_server_net_NetworkStatsFactory.cpp",
54 "jni/com_android_server_net_NetworkStatsService.cpp",
55 ],
56 path: "jni",
57 visibility: [
58 "//packages/modules/Connectivity:__subpackages__",
59 ],
60}
61
Junyu Lai8074ed32021-12-07 08:25:31 +000062// Connectivity-T common libraries.
63
Xiao Ma3574a862021-12-28 09:16:09 +000064// TODO: remove this empty filegroup.
Junyu Lai8074ed32021-12-07 08:25:31 +000065filegroup {
66 name: "services.connectivity-tiramisu-sources",
Xiao Ma3574a862021-12-28 09:16:09 +000067 srcs: [],
paulhu9dbe49f2021-11-18 15:29:03 +080068 path: "src",
Aaron Huang8f4e2362021-12-10 17:36:49 +080069 visibility: ["//frameworks/base/services/core"],
70}
paulhu172aa682021-12-14 23:09:55 +080071
markchiendebfc402022-01-18 18:26:28 +080072cc_library_shared {
73 name: "libcom_android_net_module_util_jni",
74 min_sdk_version: "30",
75 cflags: [
76 "-Wall",
77 "-Werror",
78 "-Wno-unused-parameter",
79 "-Wthread-safety",
80 ],
81 srcs: [
82 "jni/onload.cpp",
83 ],
84 stl: "libc++_static",
85 static_libs: [
86 "libnet_utils_device_common_bpfjni",
87 ],
88 shared_libs: [
89 "liblog",
90 "libnativehelper",
91 ],
92 apex_available: [
93 "//apex_available:platform",
94 ],
95}