blob: f2e758fe99918e1cdc4509a18b23e4c66742f35d [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: "services.connectivity-netstats-sources",
21 srcs: [
22 "src/com/android/server/net/NetworkIdentity*.java",
23 "src/com/android/server/net/NetworkStats*.java",
markchiene1825f12022-01-18 18:26:28 +080024 "src/com/android/server/net/BpfInterfaceMapUpdater.java",
25 "src/com/android/server/net/InterfaceMapValue.java",
Patrick Rohr27e78422022-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 Laiad166b42021-12-07 08:25:31 +000031 ],
32 path: "src",
33 visibility: [
34 "//visibility:private",
35 ],
36}
37
Remi NGUYEN VANa24baed2022-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
markchiene1825f12022-01-18 18:26:28 +080062cc_library_shared {
63 name: "libcom_android_net_module_util_jni",
64 min_sdk_version: "30",
65 cflags: [
66 "-Wall",
67 "-Werror",
68 "-Wno-unused-parameter",
69 "-Wthread-safety",
70 ],
71 srcs: [
72 "jni/onload.cpp",
73 ],
74 stl: "libc++_static",
75 static_libs: [
76 "libnet_utils_device_common_bpfjni",
77 ],
78 shared_libs: [
79 "liblog",
80 "libnativehelper",
81 ],
82 apex_available: [
83 "//apex_available:platform",
84 ],
85}