Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 1 | // Copyright (C) 2019 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Aaron Huang | 57a9496 | 2020-01-03 20:35:55 +0800 | [diff] [blame] | 15 | // 1. The "net-utils-framework-common" library is also compiled into the framework and placed on the |
| 16 | // boot classpath. It uses jarjar rules so that anything outside the framework can use this |
| 17 | // library directly. |
| 18 | // 2. The "net-utils-services-common" library is for use by modules and frameworks/base/services. |
| 19 | // It does not need to be jarjared because it is not placed on the bootclasspath. |
Lorenzo Colitti | e14bd34 | 2020-01-14 14:47:16 +0900 | [diff] [blame] | 20 | // 3. The "net-utils-telephony-common-srcs" filegroup is for use specifically by telephony, which |
| 21 | // places many of its classes, even non-API service classes, on the boot classpath. Any file that |
| 22 | // is added to this filegroup *must* have a corresponding jarjar rule in the telephony jarjar |
| 23 | // rules file. Otherwise, it will end up on the boot classpath and other modules will not be able |
| 24 | // to provide their own copy. |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 25 | |
Adrian Roos | 0607dd9 | 2020-03-27 00:30:41 +0100 | [diff] [blame] | 26 | // Note: all filegroups here must have the right path attribute because otherwise, if they are |
| 27 | // included in the bootclasspath, they could incorrectly be included in the SDK documentation even |
| 28 | // though they are not in the current.txt files. |
| 29 | |
Bob Badour | 1b8c744 | 2021-02-12 15:39:10 -0800 | [diff] [blame] | 30 | package { |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 31 | default_team: "trendy_team_fwk_core_networking", |
Bob Badour | 1b8c744 | 2021-02-12 15:39:10 -0800 | [diff] [blame] | 32 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 33 | } |
| 34 | |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 35 | java_library { |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 36 | name: "net-utils-device-common", |
| 37 | srcs: [ |
| 38 | "device/com/android/net/module/util/arp/ArpPacket.java", |
| 39 | "device/com/android/net/module/util/DeviceConfigUtils.java", |
| 40 | "device/com/android/net/module/util/DomainUtils.java", |
| 41 | "device/com/android/net/module/util/FdEventsReader.java", |
Patrick Rohr | aa06b2b | 2024-06-17 14:18:36 -0700 | [diff] [blame] | 42 | "device/com/android/net/module/util/FeatureVersions.java", |
| 43 | "device/com/android/net/module/util/HandlerUtils.java", |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 44 | "device/com/android/net/module/util/NetworkMonitorUtils.java", |
| 45 | "device/com/android/net/module/util/PacketReader.java", |
| 46 | "device/com/android/net/module/util/SharedLog.java", |
| 47 | "device/com/android/net/module/util/SocketUtils.java", |
Patrick Rohr | aa06b2b | 2024-06-17 14:18:36 -0700 | [diff] [blame] | 48 | "device/com/android/net/module/util/SyncStateMachine.java", |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 49 | // This library is used by system modules, for which the system health impact of Kotlin |
| 50 | // has not yet been evaluated. Annotations may need jarjar'ing. |
| 51 | // "src_devicecommon/**/*.kt", |
| 52 | ], |
| 53 | sdk_version: "module_current", |
| 54 | min_sdk_version: "30", |
| 55 | target_sdk_version: "30", |
| 56 | apex_available: [ |
| 57 | "//apex_available:anyapex", |
| 58 | "//apex_available:platform", |
| 59 | ], |
| 60 | visibility: [ |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 61 | "//frameworks/base/packages/Tethering", |
Baligh Uddin | f8c1282 | 2021-05-21 04:26:52 +0000 | [diff] [blame] | 62 | "//packages/modules/Connectivity:__subpackages__", |
| 63 | "//packages/modules/Connectivity/framework:__subpackages__", |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 64 | "//frameworks/opt/net/ike", |
| 65 | "//frameworks/opt/net/wifi/service", |
Baligh Uddin | fcbda3a | 2020-12-24 06:12:25 +0000 | [diff] [blame] | 66 | "//packages/modules/Wifi/service", |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 67 | "//frameworks/opt/net/telephony", |
Xiao Ma | 6f95cef | 2020-09-08 19:16:15 +0900 | [diff] [blame] | 68 | "//packages/modules/NetworkStack:__subpackages__", |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 69 | "//packages/modules/CaptivePortalLogin", |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 70 | ], |
| 71 | static_libs: [ |
Patrick Rohr | aa06b2b | 2024-06-17 14:18:36 -0700 | [diff] [blame] | 72 | "modules-utils-statemachine", |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 73 | "net-utils-framework-common", |
| 74 | ], |
| 75 | libs: [ |
| 76 | "androidx.annotation_annotation", |
| 77 | "framework-annotations-lib", |
| 78 | "framework-configinfrastructure", |
| 79 | "framework-connectivity.stubs.module_lib", |
| 80 | ], |
| 81 | lint: { |
| 82 | strict_updatability_linting: true, |
| 83 | error_checks: ["NewApi"], |
| 84 | }, |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 85 | } |
| 86 | |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 87 | java_defaults { |
| 88 | name: "lib_mockito_extended", |
| 89 | static_libs: [ |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 90 | "mockito-target-extended-minus-junit4", |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 91 | ], |
| 92 | jni_libs: [ |
| 93 | "libdexmakerjvmtiagent", |
| 94 | "libstaticjvmtiagent", |
| 95 | ], |
| 96 | } |
| 97 | |
Aswin Sankar | 601d6f9 | 2021-10-11 13:12:16 -0700 | [diff] [blame] | 98 | java_library { |
| 99 | name: "net-utils-dnspacket-common", |
| 100 | srcs: [ |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 101 | "framework/**/DnsPacket.java", |
| 102 | "framework/**/DnsPacketUtils.java", |
| 103 | "framework/**/DnsSvcbPacket.java", |
| 104 | "framework/**/DnsSvcbRecord.java", |
| 105 | "framework/**/HexDump.java", |
| 106 | "framework/**/NetworkStackConstants.java", |
Aswin Sankar | 601d6f9 | 2021-10-11 13:12:16 -0700 | [diff] [blame] | 107 | ], |
| 108 | sdk_version: "module_current", |
| 109 | visibility: [ |
| 110 | "//packages/services/Iwlan:__subpackages__", |
| 111 | ], |
Junyu Lai | 85e24e8 | 2022-09-15 07:34:51 +0000 | [diff] [blame] | 112 | libs: [ |
Mike Yu | 9b96c83 | 2023-09-18 08:26:08 +0000 | [diff] [blame] | 113 | "androidx.annotation_annotation", |
Junyu Lai | 85e24e8 | 2022-09-15 07:34:51 +0000 | [diff] [blame] | 114 | "framework-annotations-lib", |
| 115 | "framework-connectivity.stubs.module_lib", |
| 116 | ], |
Aswin Sankar | 601d6f9 | 2021-10-11 13:12:16 -0700 | [diff] [blame] | 117 | } |
| 118 | |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 119 | filegroup { |
| 120 | name: "net-utils-framework-common-srcs", |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 121 | srcs: ["framework/**/*.java"], |
| 122 | path: "framework", |
Remi NGUYEN VAN | 651faf7 | 2021-03-24 22:40:37 +0900 | [diff] [blame] | 123 | visibility: [ |
| 124 | "//frameworks/base", |
Baligh Uddin | 27e5fcd | 2021-05-22 13:16:30 +0000 | [diff] [blame] | 125 | "//packages/modules/Connectivity:__subpackages__", |
Remi NGUYEN VAN | 651faf7 | 2021-03-24 22:40:37 +0900 | [diff] [blame] | 126 | ], |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 127 | } |
| 128 | |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 129 | // The net-utils-device-common-bpf library requires the callers to contain |
| 130 | // net-utils-device-common-struct-base. |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 131 | java_library { |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 132 | name: "net-utils-device-common-bpf", |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 133 | srcs: [ |
Tyler Wear | 92f3c24 | 2022-02-15 15:21:43 -0800 | [diff] [blame] | 134 | "device/com/android/net/module/util/BpfBitmap.java", |
Hungming Chen | b3e71a2 | 2022-06-23 21:34:54 +0800 | [diff] [blame] | 135 | "device/com/android/net/module/util/BpfDump.java", |
Tyler Wear | aafd9c1 | 2021-10-19 11:01:46 -0700 | [diff] [blame] | 136 | "device/com/android/net/module/util/BpfMap.java", |
Tyler Wear | e48ee4a | 2022-02-15 15:30:50 -0800 | [diff] [blame] | 137 | "device/com/android/net/module/util/BpfUtils.java", |
markchien | 2e5fece | 2022-01-21 10:16:54 +0800 | [diff] [blame] | 138 | "device/com/android/net/module/util/IBpfMap.java", |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 139 | "device/com/android/net/module/util/JniUtil.java", |
Lorenzo Colitti | 05be2f5 | 2024-06-02 13:24:21 +0900 | [diff] [blame] | 140 | "device/com/android/net/module/util/SingleWriterBpfMap.java", |
Patrick Rohr | 29b0d95 | 2022-01-12 21:42:24 +0100 | [diff] [blame] | 141 | "device/com/android/net/module/util/TcUtils.java", |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 142 | ], |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 143 | sdk_version: "module_current", |
Maciej Żenczykowski | 127a144 | 2023-09-19 23:17:10 +0000 | [diff] [blame] | 144 | min_sdk_version: "30", |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 145 | visibility: [ |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 146 | "//packages/modules/Connectivity:__subpackages__", |
| 147 | "//packages/modules/NetworkStack:__subpackages__", |
| 148 | ], |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 149 | libs: [ |
| 150 | "androidx.annotation_annotation", |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 151 | "framework-connectivity.stubs.module_lib", |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 152 | "net-utils-device-common-struct-base", |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 153 | ], |
| 154 | apex_available: [ |
| 155 | "com.android.tethering", |
| 156 | "//apex_available:platform", |
| 157 | ], |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 158 | lint: { |
| 159 | strict_updatability_linting: true, |
| 160 | error_checks: ["NewApi"], |
| 161 | }, |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 162 | } |
| 163 | |
| 164 | java_library { |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 165 | name: "net-utils-device-common-struct-base", |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 166 | srcs: [ |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 167 | "device/com/android/net/module/util/Struct.java", |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 168 | ], |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 169 | sdk_version: "module_current", |
Maciej Żenczykowski | 127a144 | 2023-09-19 23:17:10 +0000 | [diff] [blame] | 170 | min_sdk_version: "30", |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 171 | visibility: [ |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 172 | "//packages/modules/Connectivity:__subpackages__", |
| 173 | "//packages/modules/NetworkStack:__subpackages__", |
| 174 | ], |
| 175 | static_libs: [ |
| 176 | "net-utils-framework-common", |
| 177 | ], |
| 178 | libs: [ |
| 179 | "androidx.annotation_annotation", |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 180 | "framework-annotations-lib", // Required by InetAddressUtils.java |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 181 | "framework-connectivity.stubs.module_lib", |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 182 | ], |
| 183 | apex_available: [ |
| 184 | "com.android.tethering", |
| 185 | "//apex_available:platform", |
| 186 | ], |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 187 | lint: { |
| 188 | strict_updatability_linting: true, |
| 189 | error_checks: ["NewApi"], |
| 190 | }, |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 191 | } |
| 192 | |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 193 | // The net-utils-device-common-struct library requires the callers to contain |
| 194 | // net-utils-device-common-struct-base. |
Yang Sun | 1c9fb59 | 2024-02-19 10:37:26 +0800 | [diff] [blame] | 195 | java_library { |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 196 | name: "net-utils-device-common-struct", |
Yang Sun | 1c9fb59 | 2024-02-19 10:37:26 +0800 | [diff] [blame] | 197 | srcs: [ |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 198 | "device/com/android/net/module/util/Ipv6Utils.java", |
| 199 | "device/com/android/net/module/util/PacketBuilder.java", |
| 200 | "device/com/android/net/module/util/structs/*.java", |
Yang Sun | 1c9fb59 | 2024-02-19 10:37:26 +0800 | [diff] [blame] | 201 | ], |
| 202 | sdk_version: "module_current", |
| 203 | min_sdk_version: "30", |
| 204 | visibility: [ |
| 205 | "//packages/modules/Connectivity:__subpackages__", |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 206 | "//packages/modules/NetworkStack:__subpackages__", |
Yang Sun | 1c9fb59 | 2024-02-19 10:37:26 +0800 | [diff] [blame] | 207 | ], |
| 208 | libs: [ |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 209 | "androidx.annotation_annotation", |
| 210 | "framework-annotations-lib", // Required by IpUtils.java |
| 211 | "framework-connectivity.stubs.module_lib", |
| 212 | "net-utils-device-common-struct-base", |
Yang Sun | 1c9fb59 | 2024-02-19 10:37:26 +0800 | [diff] [blame] | 213 | ], |
| 214 | apex_available: [ |
| 215 | "com.android.tethering", |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 216 | "//apex_available:platform", |
Yang Sun | 1c9fb59 | 2024-02-19 10:37:26 +0800 | [diff] [blame] | 217 | ], |
| 218 | lint: { |
| 219 | strict_updatability_linting: true, |
| 220 | error_checks: ["NewApi"], |
| 221 | }, |
| 222 | } |
| 223 | |
Junyu Lai | 626045a | 2023-08-28 18:49:44 +0800 | [diff] [blame] | 224 | // The net-utils-device-common-netlink library requires the callers to contain |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 225 | // net-utils-device-common-struct and net-utils-device-common-struct-base. |
Xiao Ma | 57b3442 | 2021-07-01 13:57:02 +0000 | [diff] [blame] | 226 | java_library { |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 227 | name: "net-utils-device-common-netlink", |
| 228 | srcs: [ |
Yan Yan | f085fad | 2023-11-20 18:51:30 +0000 | [diff] [blame] | 229 | "device/com/android/net/module/util/netlink/**/*.java", |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 230 | ], |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 231 | sdk_version: "module_current", |
Maciej Żenczykowski | 127a144 | 2023-09-19 23:17:10 +0000 | [diff] [blame] | 232 | min_sdk_version: "30", |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 233 | visibility: [ |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 234 | "//packages/modules/Connectivity:__subpackages__", |
| 235 | "//packages/modules/NetworkStack:__subpackages__", |
| 236 | ], |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 237 | libs: [ |
| 238 | "androidx.annotation_annotation", |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 239 | "framework-connectivity.stubs.module_lib", |
Junyu Lai | 626045a | 2023-08-28 18:49:44 +0800 | [diff] [blame] | 240 | // For libraries which are statically linked in framework-connectivity, do not |
| 241 | // statically link here because callers of this library might already have a static |
| 242 | // version linked. |
| 243 | "net-utils-device-common-struct", |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 244 | "net-utils-device-common-struct-base", |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 245 | ], |
| 246 | apex_available: [ |
| 247 | "com.android.tethering", |
| 248 | "//apex_available:platform", |
| 249 | ], |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 250 | lint: { |
| 251 | strict_updatability_linting: true, |
| 252 | error_checks: ["NewApi"], |
| 253 | }, |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 254 | } |
| 255 | |
Junyu Lai | 626045a | 2023-08-28 18:49:44 +0800 | [diff] [blame] | 256 | // The net-utils-device-common-ip library requires the callers to contain |
Yang Sun | 3aa62e6 | 2024-03-12 21:23:19 +0800 | [diff] [blame] | 257 | // net-utils-device-common-struct and net-utils-device-common-struct-base. |
markchien | f3448f9 | 2021-11-10 01:06:51 +0800 | [diff] [blame] | 258 | java_library { |
Chalard Jean | b61091b | 2021-10-07 15:29:13 +0900 | [diff] [blame] | 259 | // TODO : this target should probably be folded into net-utils-device-common |
| 260 | name: "net-utils-device-common-ip", |
| 261 | srcs: [ |
| 262 | "device/com/android/net/module/util/ip/*.java", |
| 263 | ], |
| 264 | sdk_version: "module_current", |
Maciej Żenczykowski | 127a144 | 2023-09-19 23:17:10 +0000 | [diff] [blame] | 265 | min_sdk_version: "30", |
Chalard Jean | b61091b | 2021-10-07 15:29:13 +0900 | [diff] [blame] | 266 | visibility: [ |
Chalard Jean | b61091b | 2021-10-07 15:29:13 +0900 | [diff] [blame] | 267 | "//packages/modules/Connectivity:__subpackages__", |
| 268 | "//packages/modules/NetworkStack:__subpackages__", |
| 269 | ], |
| 270 | libs: [ |
| 271 | "framework-annotations-lib", |
| 272 | "framework-connectivity", |
| 273 | ], |
| 274 | static_libs: [ |
| 275 | "net-utils-device-common", |
| 276 | "net-utils-device-common-netlink", |
| 277 | "net-utils-framework-common", |
| 278 | "netd-client", |
| 279 | ], |
| 280 | apex_available: [ |
| 281 | "com.android.tethering", |
| 282 | "//apex_available:platform", |
| 283 | ], |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 284 | lint: { |
Motomu Utsumi | a1a0034 | 2024-06-13 09:29:47 +0000 | [diff] [blame] | 285 | strict_updatability_linting: true, |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 286 | error_checks: ["NewApi"], |
| 287 | }, |
Chalard Jean | b61091b | 2021-10-07 15:29:13 +0900 | [diff] [blame] | 288 | } |
| 289 | |
| 290 | java_library { |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 291 | name: "net-utils-framework-common", |
Remi NGUYEN VAN | ce241a3 | 2020-01-14 21:42:09 +0900 | [diff] [blame] | 292 | srcs: [ |
| 293 | ":net-utils-framework-common-srcs", |
Remi NGUYEN VAN | ce241a3 | 2020-01-14 21:42:09 +0900 | [diff] [blame] | 294 | ], |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 295 | sdk_version: "module_current", |
Maciej Żenczykowski | 127a144 | 2023-09-19 23:17:10 +0000 | [diff] [blame] | 296 | min_sdk_version: "30", |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 297 | libs: [ |
Jooyung Han | b3b6798 | 2022-06-24 14:56:24 +0900 | [diff] [blame] | 298 | "androidx.annotation_annotation", |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 299 | "framework-annotations-lib", |
| 300 | "framework-connectivity.stubs.module_lib", |
paulhu | cdb069e | 2022-02-14 15:28:50 +0800 | [diff] [blame] | 301 | "framework-connectivity-t.stubs.module_lib", |
Mark White | 66d39cd | 2023-08-07 15:20:07 +0000 | [diff] [blame] | 302 | "framework-location.stubs.module_lib", |
Remi NGUYEN VAN | 7f0d0e3 | 2022-01-25 19:08:12 +0900 | [diff] [blame] | 303 | ], |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 304 | jarjar_rules: "jarjar-rules-shared.txt", |
| 305 | visibility: [ |
Luke Huang | fd5479e | 2020-06-20 11:38:17 +0800 | [diff] [blame] | 306 | "//cts/tests/tests/net", |
Chalard Jean | ceaf7d0 | 2020-06-26 18:34:52 +0900 | [diff] [blame] | 307 | "//cts/tests/tests/wifi", |
Baligh Uddin | e685c81 | 2020-10-31 04:28:58 +0000 | [diff] [blame] | 308 | "//packages/modules/Connectivity/tests/cts/net", |
Baligh Uddin | ae4770d | 2020-10-29 02:12:06 +0000 | [diff] [blame] | 309 | "//packages/modules/Connectivity/Tethering", |
Chalard Jean | a9f4991 | 2020-10-15 18:06:30 +0900 | [diff] [blame] | 310 | "//frameworks/base/tests:__subpackages__", |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 311 | "//frameworks/opt/net/ike", |
| 312 | "//frameworks/opt/telephony", |
Chalard Jean | 1978919 | 2020-10-01 12:45:31 +0900 | [diff] [blame] | 313 | "//frameworks/base/wifi:__subpackages__", |
Remi NGUYEN VAN | 38afb0c | 2020-11-10 18:04:27 +0900 | [diff] [blame] | 314 | "//packages/modules/Connectivity:__subpackages__", |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 315 | "//packages/modules/NetworkStack:__subpackages__", |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 316 | "//packages/modules/CaptivePortalLogin", |
Baligh Uddin | fcbda3a | 2020-12-24 06:12:25 +0000 | [diff] [blame] | 317 | "//packages/modules/Wifi/framework/tests:__subpackages__", |
Junyu Lai | b24df14 | 2022-01-10 10:31:11 +0000 | [diff] [blame] | 318 | "//packages/apps/Settings", |
Chalard Jean | 7592a34 | 2021-04-19 18:04:34 +0900 | [diff] [blame] | 319 | ], |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 320 | lint: { |
| 321 | strict_updatability_linting: true, |
| 322 | error_checks: ["NewApi"], |
| 323 | }, |
Paul Hu | 8d47d84 | 2023-03-31 14:59:49 +0800 | [diff] [blame] | 324 | errorprone: { |
| 325 | enabled: true, |
| 326 | // Error-prone checking only warns of problems when building. To make the build fail with |
| 327 | // these errors, list the specific error-prone problems below. |
| 328 | javacflags: [ |
| 329 | "-Xep:NullablePrimitive:ERROR", |
| 330 | ], |
| 331 | }, |
Spandan Das | 2b83e77 | 2023-12-21 20:46:31 +0000 | [diff] [blame] | 332 | apex_available: [ |
| 333 | "//apex_available:platform", |
| 334 | "com.android.tethering", |
| 335 | ], |
Aaron Huang | f73ff8c | 2019-12-06 18:12:24 +0800 | [diff] [blame] | 336 | } |
Anton Hansson | 0ceeb7c | 2022-05-30 12:01:49 +0000 | [diff] [blame] | 337 | |
| 338 | java_library { |
| 339 | name: "net-utils-services-common", |
David Su | 2dbab64 | 2020-10-26 14:51:01 -0700 | [diff] [blame] | 340 | srcs: [ |
| 341 | "device/android/net/NetworkFactory.java", |
Chalard Jean | 7592a34 | 2021-04-19 18:04:34 +0900 | [diff] [blame] | 342 | "device/android/net/NetworkFactoryImpl.java", |
| 343 | "device/android/net/NetworkFactoryLegacyImpl.java", |
| 344 | "device/android/net/NetworkFactoryShim.java", |
David Su | 2dbab64 | 2020-10-26 14:51:01 -0700 | [diff] [blame] | 345 | ], |
Chalard Jean | d580242 | 2021-10-27 19:02:14 +0900 | [diff] [blame] | 346 | sdk_version: "module_current", |
David Su | dc0a568 | 2021-01-29 04:42:27 +0000 | [diff] [blame] | 347 | min_sdk_version: "30", |
Chalard Jean | 7592a34 | 2021-04-19 18:04:34 +0900 | [diff] [blame] | 348 | static_libs: [ |
| 349 | "modules-utils-build_system", |
| 350 | ], |
Chalard Jean | d580242 | 2021-10-27 19:02:14 +0900 | [diff] [blame] | 351 | libs: [ |
| 352 | "framework-annotations-lib", |
| 353 | "framework-connectivity", |
| 354 | ], |
Xiao Ma | 2bbc2f7 | 2022-01-24 07:58:12 +0000 | [diff] [blame] | 355 | // TODO: remove "apex_available:platform". |
| 356 | apex_available: [ |
| 357 | "//apex_available:platform", |
William Escande | fbe576b | 2022-08-22 11:28:00 -0700 | [diff] [blame] | 358 | "com.android.btservices", |
Xiao Ma | 2bbc2f7 | 2022-01-24 07:58:12 +0000 | [diff] [blame] | 359 | "com.android.tethering", |
Anton Hansson | 0ceeb7c | 2022-05-30 12:01:49 +0000 | [diff] [blame] | 360 | "com.android.wifi", |
Xiao Ma | 2bbc2f7 | 2022-01-24 07:58:12 +0000 | [diff] [blame] | 361 | ], |
Aaron Huang | 57a9496 | 2020-01-03 20:35:55 +0800 | [diff] [blame] | 362 | visibility: [ |
markchien | 32a6e9c | 2022-01-20 14:34:15 +0800 | [diff] [blame] | 363 | // TODO: remove after NetworkStatsService moves to the module. |
Remi NGUYEN VAN | 376f8d4 | 2020-01-15 18:26:29 +0900 | [diff] [blame] | 364 | "//frameworks/base/services/net", |
Xiao Ma | 2bbc2f7 | 2022-01-24 07:58:12 +0000 | [diff] [blame] | 365 | "//packages/modules/Connectivity/service", |
Remi NGUYEN VAN | 0cf724a | 2021-11-19 18:33:12 +0900 | [diff] [blame] | 366 | "//packages/modules/Connectivity/tests:__subpackages__", |
Roopa Sattiraju | 98fa3bf | 2022-02-03 18:53:23 -0800 | [diff] [blame] | 367 | "//packages/modules/Bluetooth/android/app", |
Nate(Qiang) Jiang | ce723aa | 2022-06-01 21:28:32 +0000 | [diff] [blame] | 368 | "//packages/modules/Wifi/service:__subpackages__", |
Aaron Huang | 57a9496 | 2020-01-03 20:35:55 +0800 | [diff] [blame] | 369 | ], |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 370 | lint: { |
| 371 | strict_updatability_linting: true, |
| 372 | error_checks: ["NewApi"], |
| 373 | }, |
Aaron Huang | 57a9496 | 2020-01-03 20:35:55 +0800 | [diff] [blame] | 374 | } |
Lorenzo Colitti | e14bd34 | 2020-01-14 14:47:16 +0900 | [diff] [blame] | 375 | |
Igor Chernyshev | a25f109 | 2022-12-20 00:07:38 -0800 | [diff] [blame] | 376 | java_library { |
| 377 | name: "net-utils-device-common-async", |
| 378 | srcs: [ |
| 379 | "device/com/android/net/module/util/async/*.java", |
| 380 | ], |
| 381 | sdk_version: "module_current", |
Maciej Żenczykowski | 127a144 | 2023-09-19 23:17:10 +0000 | [diff] [blame] | 382 | min_sdk_version: "30", |
Igor Chernyshev | a25f109 | 2022-12-20 00:07:38 -0800 | [diff] [blame] | 383 | visibility: [ |
Igor Chernyshev | a25f109 | 2022-12-20 00:07:38 -0800 | [diff] [blame] | 384 | "//packages/modules/Connectivity:__subpackages__", |
| 385 | ], |
| 386 | libs: [ |
| 387 | "framework-annotations-lib", |
| 388 | ], |
| 389 | static_libs: [ |
| 390 | ], |
| 391 | apex_available: [ |
| 392 | "com.android.tethering", |
| 393 | "//apex_available:platform", |
| 394 | ], |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 395 | lint: { |
| 396 | strict_updatability_linting: true, |
| 397 | error_checks: ["NewApi"], |
| 398 | }, |
Igor Chernyshev | a25f109 | 2022-12-20 00:07:38 -0800 | [diff] [blame] | 399 | } |
| 400 | |
Igor Chernyshev | 810be2b | 2023-04-06 15:52:26 -0700 | [diff] [blame] | 401 | java_library { |
| 402 | name: "net-utils-device-common-wear", |
| 403 | srcs: [ |
| 404 | "device/com/android/net/module/util/wear/*.java", |
| 405 | ], |
| 406 | sdk_version: "module_current", |
Maciej Żenczykowski | 127a144 | 2023-09-19 23:17:10 +0000 | [diff] [blame] | 407 | min_sdk_version: "30", |
Igor Chernyshev | 810be2b | 2023-04-06 15:52:26 -0700 | [diff] [blame] | 408 | visibility: [ |
Igor Chernyshev | 810be2b | 2023-04-06 15:52:26 -0700 | [diff] [blame] | 409 | "//packages/modules/Connectivity:__subpackages__", |
| 410 | ], |
| 411 | libs: [ |
| 412 | "framework-annotations-lib", |
| 413 | ], |
| 414 | static_libs: [ |
| 415 | "net-utils-device-common-async", |
| 416 | ], |
| 417 | apex_available: [ |
| 418 | "com.android.tethering", |
| 419 | "//apex_available:platform", |
| 420 | ], |
Motomu Utsumi | 195a30f | 2023-09-27 16:03:30 +0900 | [diff] [blame] | 421 | lint: { |
| 422 | strict_updatability_linting: true, |
| 423 | error_checks: ["NewApi"], |
| 424 | }, |
Igor Chernyshev | 810be2b | 2023-04-06 15:52:26 -0700 | [diff] [blame] | 425 | } |
| 426 | |
Yuyang Huang | f67388b | 2023-03-29 16:51:09 +0900 | [diff] [blame] | 427 | // Limited set of utilities for use by service-connectivity-mdns-standalone-build-test, to make sure |
| 428 | // the mDNS code can build with only system APIs. |
| 429 | // The mDNS code is platform code so it should use framework-annotations-lib, contrary to apps that |
| 430 | // should use sdk_version: "system_current" and only androidx.annotation_annotation. But this build |
| 431 | // rule verifies that the mDNS code can be built into apps, if code transformations are applied to |
| 432 | // the annotations. |
| 433 | // When using "system_current", framework annotations are not available; they would appear as |
| 434 | // package-private as they are marked as such in the system_current stubs. So build against |
| 435 | // core_platform and add the stubs manually in "libs". See http://b/147773144#comment7. |
| 436 | java_library { |
| 437 | name: "net-utils-device-common-mdns-standalone-build-test", |
| 438 | // Build against core_platform and add the stub libraries manually in "libs", as annotations |
| 439 | // are already included in android_system_stubs_current but package-private, so |
| 440 | // "framework-annotations-lib" needs to be manually included before |
| 441 | // "android_system_stubs_current" (b/272392042) |
| 442 | sdk_version: "core_platform", |
| 443 | srcs: [ |
| 444 | "device/com/android/net/module/util/FdEventsReader.java", |
Yuyang Huang | f67388b | 2023-03-29 16:51:09 +0900 | [diff] [blame] | 445 | "device/com/android/net/module/util/SharedLog.java", |
| 446 | "framework/com/android/net/module/util/ByteUtils.java", |
| 447 | "framework/com/android/net/module/util/CollectionUtils.java", |
Yuyang Huang | e4eb87a | 2023-05-02 18:44:51 +0900 | [diff] [blame] | 448 | "framework/com/android/net/module/util/HexDump.java", |
Yuyang Huang | f67388b | 2023-03-29 16:51:09 +0900 | [diff] [blame] | 449 | "framework/com/android/net/module/util/LinkPropertiesUtils.java", |
| 450 | ], |
| 451 | libs: [ |
| 452 | "framework-annotations-lib", |
| 453 | "android_system_stubs_current", |
| 454 | "androidx.annotation_annotation", |
| 455 | ], |
| 456 | visibility: ["//packages/modules/Connectivity/service-t"], |
| 457 | } |
| 458 | |
Handa Wang | 9b0df36 | 2024-07-02 13:17:43 +0000 | [diff] [blame^] | 459 | java_library { |
| 460 | name: "net-utils-framework-connectivity", |
| 461 | srcs: [ |
| 462 | ":net-utils-framework-connectivity-srcs", |
| 463 | ], |
| 464 | sdk_version: "module_current", |
| 465 | min_sdk_version: "30", |
| 466 | apex_available: [ |
| 467 | "com.android.tethering", |
| 468 | "//apex_available:platform", |
| 469 | ], |
| 470 | visibility: [ |
| 471 | "//packages/modules/Connectivity:__subpackages__", |
| 472 | "//packages/modules/NetworkStack:__subpackages__", |
| 473 | ], |
| 474 | libs: [ |
| 475 | "androidx.annotation_annotation", |
| 476 | "framework-annotations-lib", |
| 477 | "framework-configinfrastructure", |
| 478 | "framework-connectivity.stubs.module_lib", |
| 479 | ], |
| 480 | lint: { |
| 481 | strict_updatability_linting: true, |
| 482 | error_checks: ["NewApi"], |
| 483 | }, |
| 484 | } |
| 485 | |
| 486 | java_defaults { |
| 487 | name: "net-utils-non-bootclasspath-defaults", |
| 488 | sdk_version: "module_current", |
| 489 | min_sdk_version: "30", |
| 490 | jarjar_rules: "jarjar-rules-shared.txt", |
| 491 | libs: [ |
| 492 | "androidx.annotation_annotation", |
| 493 | "framework-annotations-lib", |
| 494 | "framework-configinfrastructure", |
| 495 | "framework-connectivity", |
| 496 | "framework-connectivity.stubs.module_lib", |
| 497 | "framework-connectivity-t.stubs.module_lib", |
| 498 | "framework-location.stubs.module_lib", |
| 499 | "framework-tethering", |
| 500 | "unsupportedappusage", |
| 501 | ], |
| 502 | static_libs: [ |
| 503 | "modules-utils-build_system", |
| 504 | "modules-utils-statemachine", |
| 505 | "net-utils-non-bootclasspath-aidl-java", |
| 506 | "netd-client", |
| 507 | ], |
| 508 | apex_available: [ |
| 509 | "com.android.tethering", |
| 510 | "//apex_available:platform", |
| 511 | ], |
| 512 | visibility: [ |
| 513 | "//packages/modules/Connectivity:__subpackages__", |
| 514 | ], |
| 515 | defaults_visibility: [ |
| 516 | "//visibility:private", |
| 517 | ], |
| 518 | lint: { |
| 519 | strict_updatability_linting: true, |
| 520 | error_checks: ["NewApi"], |
| 521 | }, |
| 522 | } |
| 523 | |
| 524 | java_library { |
| 525 | name: "net-utils-service-connectivity", |
| 526 | srcs: [ |
| 527 | ":net-utils-all-srcs", |
| 528 | ], |
| 529 | exclude_srcs: [ |
| 530 | ":net-utils-framework-connectivity-srcs", |
| 531 | ], |
| 532 | libs: [ |
| 533 | "net-utils-framework-connectivity", |
| 534 | ], |
| 535 | defaults: ["net-utils-non-bootclasspath-defaults"], |
| 536 | } |
| 537 | |
| 538 | java_library { |
| 539 | name: "net-utils-tethering", |
| 540 | srcs: [ |
| 541 | ":net-utils-all-srcs", |
| 542 | ":framework-connectivity-shared-srcs", |
| 543 | ], |
| 544 | defaults: ["net-utils-non-bootclasspath-defaults"], |
| 545 | } |
| 546 | |
| 547 | aidl_interface { |
| 548 | name: "net-utils-non-bootclasspath-aidl", |
| 549 | srcs: [ |
| 550 | ":net-utils-aidl-srcs", |
| 551 | ], |
| 552 | unstable: true, |
| 553 | backend: { |
| 554 | java: { |
| 555 | enabled: true, |
| 556 | min_sdk_version: "30", |
| 557 | apex_available: [ |
| 558 | "com.android.tethering", |
| 559 | ], |
| 560 | }, |
| 561 | cpp: { |
| 562 | enabled: false, |
| 563 | }, |
| 564 | ndk: { |
| 565 | enabled: false, |
| 566 | }, |
| 567 | rust: { |
| 568 | enabled: false, |
| 569 | }, |
| 570 | }, |
| 571 | include_dirs: [ |
| 572 | "packages/modules/Connectivity/framework/aidl-export", |
| 573 | ], |
| 574 | visibility: [ |
| 575 | "//system/tools/aidl/build", |
| 576 | ], |
| 577 | } |
| 578 | |
Lorenzo Colitti | e14bd34 | 2020-01-14 14:47:16 +0900 | [diff] [blame] | 579 | // Use a filegroup and not a library for telephony sources, as framework-annotations cannot be |
| 580 | // included either (some annotations would be duplicated on the bootclasspath). |
| 581 | filegroup { |
| 582 | name: "net-utils-telephony-common-srcs", |
| 583 | srcs: [ |
| 584 | // Any class here *must* have a corresponding jarjar rule in the telephony build rules. |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 585 | "device/android/net/NetworkFactory.java", |
Chalard Jean | 7592a34 | 2021-04-19 18:04:34 +0900 | [diff] [blame] | 586 | "device/android/net/NetworkFactoryImpl.java", |
| 587 | "device/android/net/NetworkFactoryLegacyImpl.java", |
| 588 | "device/android/net/NetworkFactoryShim.java", |
Lorenzo Colitti | e14bd34 | 2020-01-14 14:47:16 +0900 | [diff] [blame] | 589 | ], |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 590 | path: "device", |
Lorenzo Colitti | e14bd34 | 2020-01-14 14:47:16 +0900 | [diff] [blame] | 591 | visibility: [ |
| 592 | "//frameworks/opt/telephony", |
| 593 | ], |
| 594 | } |
Roshan Pius | 864bdec | 2020-01-16 09:19:11 -0800 | [diff] [blame] | 595 | |
| 596 | // Use a filegroup and not a library for wifi sources, as this needs corresponding jar-jar |
| 597 | // rules on the wifi side. |
| 598 | // Any class here *must* have a corresponding jarjar rule in the wifi build rules. |
| 599 | filegroup { |
| 600 | name: "net-utils-framework-wifi-common-srcs", |
| 601 | srcs: [ |
Chalard Jean | b61091b | 2021-10-07 15:29:13 +0900 | [diff] [blame] | 602 | "framework/com/android/net/module/util/DnsSdTxtRecord.java", |
| 603 | "framework/com/android/net/module/util/Inet4AddressUtils.java", |
| 604 | "framework/com/android/net/module/util/InetAddressUtils.java", |
| 605 | "framework/com/android/net/module/util/MacAddressUtils.java", |
| 606 | "framework/com/android/net/module/util/NetUtils.java", |
Roshan Pius | 864bdec | 2020-01-16 09:19:11 -0800 | [diff] [blame] | 607 | ], |
Chalard Jean | 48c6c7d | 2020-06-25 23:39:15 +0900 | [diff] [blame] | 608 | path: "framework", |
Roshan Pius | 864bdec | 2020-01-16 09:19:11 -0800 | [diff] [blame] | 609 | visibility: [ |
| 610 | "//frameworks/base", |
| 611 | ], |
| 612 | } |
| 613 | |
| 614 | // Use a filegroup and not a library for wifi sources, as this needs corresponding jar-jar |
| 615 | // rules on the wifi side. |
| 616 | // Any class here *must* have a corresponding jarjar rule in the wifi build rules. |
| 617 | filegroup { |
| 618 | name: "net-utils-wifi-service-common-srcs", |
| 619 | srcs: [ |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 620 | "device/android/net/NetworkFactory.java", |
| 621 | "device/android/net/NetworkFactoryImpl.java", |
| 622 | "device/android/net/NetworkFactoryLegacyImpl.java", |
| 623 | "device/android/net/NetworkFactoryShim.java", |
Roshan Pius | 864bdec | 2020-01-16 09:19:11 -0800 | [diff] [blame] | 624 | ], |
| 625 | visibility: [ |
| 626 | "//frameworks/opt/net/wifi/service", |
Baligh Uddin | fcbda3a | 2020-12-24 06:12:25 +0000 | [diff] [blame] | 627 | "//packages/modules/Wifi/service", |
Roshan Pius | 864bdec | 2020-01-16 09:19:11 -0800 | [diff] [blame] | 628 | ], |
| 629 | } |
Handa Wang | 9b0df36 | 2024-07-02 13:17:43 +0000 | [diff] [blame^] | 630 | |
| 631 | // Use a file group containing classes necessary for framework-connectivity. The file group should |
| 632 | // be as small as possible because because the classes end up in the bootclasspath and R8 is not |
| 633 | // used to remove unused classes. |
| 634 | filegroup { |
| 635 | name: "net-utils-framework-connectivity-srcs", |
| 636 | srcs: [ |
| 637 | "device/com/android/net/module/util/BpfBitmap.java", |
| 638 | "device/com/android/net/module/util/BpfDump.java", |
| 639 | "device/com/android/net/module/util/BpfMap.java", |
| 640 | "device/com/android/net/module/util/BpfUtils.java", |
| 641 | "device/com/android/net/module/util/IBpfMap.java", |
| 642 | "device/com/android/net/module/util/JniUtil.java", |
| 643 | "device/com/android/net/module/util/SingleWriterBpfMap.java", |
| 644 | "device/com/android/net/module/util/Struct.java", |
| 645 | "device/com/android/net/module/util/TcUtils.java", |
| 646 | "framework/com/android/net/module/util/HexDump.java", |
| 647 | ], |
| 648 | visibility: ["//visibility:private"], |
| 649 | } |
| 650 | |
| 651 | filegroup { |
| 652 | name: "net-utils-all-srcs", |
| 653 | srcs: [ |
| 654 | "device/**/*.java", |
| 655 | ":net-utils-framework-common-srcs", |
| 656 | ], |
| 657 | visibility: ["//visibility:private"], |
| 658 | } |
| 659 | |
| 660 | filegroup { |
| 661 | name: "net-utils-aidl-srcs", |
| 662 | srcs: [ |
| 663 | "device/**/*.aidl", |
| 664 | ], |
| 665 | path: "device", |
| 666 | visibility: ["//visibility:private"], |
| 667 | } |