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 | |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 62 | // Nsd related libraries. |
| 63 | |
paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 64 | filegroup { |
| 65 | name: "services.connectivity-nsd-sources", |
| 66 | srcs: [ |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 67 | "src/com/android/server/INativeDaemon*.java", |
| 68 | "src/com/android/server/NativeDaemon*.java", |
| 69 | "src/com/android/server/Nsd*.java", |
| 70 | ], |
| 71 | path: "src", |
| 72 | visibility: [ |
| 73 | "//visibility:private", |
| 74 | ], |
| 75 | } |
| 76 | |
Aaron Huang | 9a708a4 | 2021-12-10 17:36:49 +0800 | [diff] [blame] | 77 | // IpSec related libraries. |
| 78 | |
| 79 | filegroup { |
| 80 | name: "services.connectivity-ipsec-sources", |
| 81 | srcs: [ |
| 82 | "src/com/android/server/IpSecService.java", |
| 83 | ], |
| 84 | path: "src", |
| 85 | visibility: [ |
| 86 | "//visibility:private", |
| 87 | ], |
| 88 | } |
| 89 | |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 90 | // Ethernet related libraries. |
| 91 | |
| 92 | filegroup { |
| 93 | name: "services.connectivity-ethernet-sources", |
| 94 | srcs: [ |
Xiao Ma | e3da3eb | 2021-12-28 06:33:23 +0000 | [diff] [blame] | 95 | "src/com/android/server/net/DelayedDiskWrite.java", |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 96 | "src/com/android/server/net/IpConfigStore.java", |
| 97 | ], |
| 98 | path: "src", |
| 99 | visibility: [ |
Xiao Ma | dbc8e0f | 2021-12-28 09:16:09 +0000 | [diff] [blame] | 100 | "//frameworks/opt/net/ethernet/tests", |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 101 | ], |
| 102 | } |
| 103 | |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 104 | // Connectivity-T common libraries. |
| 105 | |
Xiao Ma | dbc8e0f | 2021-12-28 09:16:09 +0000 | [diff] [blame] | 106 | // TODO: remove this empty filegroup. |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 107 | filegroup { |
| 108 | name: "services.connectivity-tiramisu-sources", |
Xiao Ma | dbc8e0f | 2021-12-28 09:16:09 +0000 | [diff] [blame] | 109 | srcs: [], |
paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 110 | path: "src", |
Aaron Huang | 9a708a4 | 2021-12-10 17:36:49 +0800 | [diff] [blame] | 111 | visibility: ["//frameworks/base/services/core"], |
| 112 | } |
paulhu | 66f61ac | 2021-12-14 23:09:55 +0800 | [diff] [blame] | 113 | |
| 114 | filegroup { |
| 115 | name: "services.connectivity-tiramisu-updatable-sources", |
| 116 | srcs: [ |
Xiao Ma | dbc8e0f | 2021-12-28 09:16:09 +0000 | [diff] [blame] | 117 | ":services.connectivity-ethernet-sources", |
Aaron Huang | b944ff1 | 2022-01-12 15:11:01 +0800 | [diff] [blame] | 118 | ":services.connectivity-ipsec-sources", |
Junyu Lai | 6313e55 | 2022-01-26 09:00:41 +0000 | [diff] [blame] | 119 | ":services.connectivity-netstats-sources", |
paulhu | 66f61ac | 2021-12-14 23:09:55 +0800 | [diff] [blame] | 120 | ":services.connectivity-nsd-sources", |
| 121 | ], |
| 122 | path: "src", |
| 123 | visibility: [ |
| 124 | "//packages/modules/Connectivity:__subpackages__", |
| 125 | ], |
| 126 | } |
markchien | e1825f1 | 2022-01-18 18:26:28 +0800 | [diff] [blame] | 127 | |
| 128 | cc_library_shared { |
| 129 | name: "libcom_android_net_module_util_jni", |
| 130 | min_sdk_version: "30", |
| 131 | cflags: [ |
| 132 | "-Wall", |
| 133 | "-Werror", |
| 134 | "-Wno-unused-parameter", |
| 135 | "-Wthread-safety", |
| 136 | ], |
| 137 | srcs: [ |
| 138 | "jni/onload.cpp", |
| 139 | ], |
| 140 | stl: "libc++_static", |
| 141 | static_libs: [ |
| 142 | "libnet_utils_device_common_bpfjni", |
| 143 | ], |
| 144 | shared_libs: [ |
| 145 | "liblog", |
| 146 | "libnativehelper", |
| 147 | ], |
| 148 | apex_available: [ |
| 149 | "//apex_available:platform", |
| 150 | ], |
| 151 | } |