paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 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 | // |
| 16 | |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 17 | // NetworkStats related libraries. |
| 18 | |
| 19 | filegroup { |
| 20 | name: "services.connectivity-netstats-sources", |
| 21 | srcs: [ |
| 22 | "src/com/android/server/net/NetworkIdentity*.java", |
| 23 | "src/com/android/server/net/NetworkStats*.java", |
markchien | e1825f1 | 2022-01-18 18:26:28 +0800 | [diff] [blame] | 24 | "src/com/android/server/net/BpfInterfaceMapUpdater.java", |
| 25 | "src/com/android/server/net/InterfaceMapValue.java", |
Patrick Rohr | 27e7842 | 2022-02-02 22:28:28 +0100 | [diff] [blame] | 26 | "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 Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 31 | ], |
| 32 | path: "src", |
| 33 | visibility: [ |
| 34 | "//visibility:private", |
| 35 | ], |
| 36 | } |
| 37 | |
Remi NGUYEN VAN | a24baed | 2022-02-02 13:22:57 +0900 | [diff] [blame] | 38 | // For test code only. |
| 39 | filegroup { |
| 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 | |
| 50 | filegroup { |
| 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 | |
markchien | e1825f1 | 2022-01-18 18:26:28 +0800 | [diff] [blame] | 62 | cc_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 | } |