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 | |
| 17 | package { |
| 18 | // See: http://go/android-license-faq |
| 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 20 | } |
| 21 | |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 22 | // NetworkStats related libraries. |
| 23 | |
| 24 | filegroup { |
| 25 | name: "framework-connectivity-netstats-internal-sources", |
| 26 | srcs: [ |
| 27 | "src/android/app/usage/*.java", |
Junyu Lai | 61ebc2f | 2021-12-27 13:56:00 +0000 | [diff] [blame] | 28 | "src/android/net/DataUsageRequest.*", |
| 29 | "src/android/net/INetworkStatsService.aidl", |
| 30 | "src/android/net/INetworkStatsSession.aidl", |
| 31 | "src/android/net/NetworkIdentity.java", |
| 32 | "src/android/net/NetworkIdentitySet.java", |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 33 | "src/android/net/NetworkStateSnapshot.*", |
Junyu Lai | 61ebc2f | 2021-12-27 13:56:00 +0000 | [diff] [blame] | 34 | "src/android/net/NetworkStats.*", |
| 35 | "src/android/net/NetworkStatsAccess.*", |
| 36 | "src/android/net/NetworkStatsCollection.*", |
| 37 | "src/android/net/NetworkStatsHistory.*", |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 38 | "src/android/net/NetworkTemplate.*", |
| 39 | "src/android/net/TrafficStats.java", |
| 40 | "src/android/net/UnderlyingNetworkInfo.*", |
| 41 | "src/android/net/netstats/**/*.*", |
| 42 | ], |
| 43 | path: "src", |
| 44 | visibility: [ |
| 45 | "//visibility:private", |
| 46 | ], |
| 47 | } |
| 48 | |
| 49 | filegroup { |
| 50 | name: "framework-connectivity-netstats-aidl-export-sources", |
| 51 | srcs: [ |
| 52 | "aidl-export/android/net/NetworkStats.aidl", |
| 53 | "aidl-export/android/net/NetworkTemplate.aidl", |
| 54 | ], |
| 55 | path: "aidl-export", |
| 56 | visibility: [ |
| 57 | "//visibility:private", |
| 58 | ], |
| 59 | } |
| 60 | |
| 61 | filegroup { |
| 62 | name: "framework-connectivity-netstats-sources", |
| 63 | srcs: [ |
| 64 | ":framework-connectivity-netstats-internal-sources", |
| 65 | ":framework-connectivity-netstats-aidl-export-sources", |
| 66 | ], |
| 67 | visibility: [ |
| 68 | "//visibility:private", |
| 69 | ], |
| 70 | } |
| 71 | |
| 72 | // Nsd related libraries. |
| 73 | |
paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 74 | filegroup { |
| 75 | name: "framework-connectivity-nsd-internal-sources", |
| 76 | srcs: [ |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 77 | "src/android/net/nsd/*.aidl", |
| 78 | "src/android/net/nsd/*.java", |
paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 79 | ], |
| 80 | path: "src", |
| 81 | visibility: [ |
| 82 | "//visibility:private", |
| 83 | ], |
| 84 | } |
| 85 | |
| 86 | filegroup { |
| 87 | name: "framework-connectivity-nsd-aidl-export-sources", |
| 88 | srcs: [ |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 89 | "aidl-export/android/net/nsd/*.aidl", |
paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 90 | ], |
| 91 | path: "aidl-export", |
| 92 | visibility: [ |
| 93 | "//visibility:private", |
| 94 | ], |
| 95 | } |
| 96 | |
| 97 | filegroup { |
| 98 | name: "framework-connectivity-nsd-sources", |
| 99 | srcs: [ |
| 100 | ":framework-connectivity-nsd-internal-sources", |
| 101 | ":framework-connectivity-nsd-aidl-export-sources", |
| 102 | ], |
| 103 | visibility: [ |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 104 | "//visibility:private", |
paulhu | 73a8203 | 2021-11-18 15:29:03 +0800 | [diff] [blame] | 105 | ], |
| 106 | } |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 107 | |
Aaron Huang | 9a708a4 | 2021-12-10 17:36:49 +0800 | [diff] [blame] | 108 | // IpSec related libraries. |
| 109 | |
| 110 | filegroup { |
| 111 | name: "framework-connectivity-ipsec-sources", |
| 112 | srcs: [ |
| 113 | "src/android/net/IIpSecService.aidl", |
| 114 | "src/android/net/IpSec*.*", |
| 115 | ], |
| 116 | path: "src", |
| 117 | visibility: [ |
| 118 | "//visibility:private", |
| 119 | ], |
| 120 | } |
| 121 | |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 122 | // Ethernet related libraries. |
| 123 | |
| 124 | filegroup { |
| 125 | name: "framework-connectivity-ethernet-sources", |
| 126 | srcs: [ |
| 127 | "src/android/net/EthernetManager.java", |
James Mattis | 1ecadfa | 2022-01-28 13:42:38 -0800 | [diff] [blame] | 128 | "src/android/net/EthernetNetworkManagementException.java", |
| 129 | "src/android/net/EthernetNetworkManagementException.aidl", |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 130 | "src/android/net/EthernetNetworkSpecifier.java", |
James Mattis | 1ecadfa | 2022-01-28 13:42:38 -0800 | [diff] [blame] | 131 | "src/android/net/EthernetNetworkUpdateRequest.java", |
| 132 | "src/android/net/EthernetNetworkUpdateRequest.aidl", |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 133 | "src/android/net/IEthernetManager.aidl", |
James Mattis | 1ecadfa | 2022-01-28 13:42:38 -0800 | [diff] [blame] | 134 | "src/android/net/IEthernetNetworkManagementListener.aidl", |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 135 | "src/android/net/IEthernetServiceListener.aidl", |
| 136 | "src/android/net/ITetheredInterfaceCallback.aidl", |
| 137 | ], |
| 138 | path: "src", |
| 139 | visibility: [ |
| 140 | "//visibility:private", |
| 141 | ], |
| 142 | } |
| 143 | |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 144 | // Connectivity-T common libraries. |
| 145 | |
| 146 | filegroup { |
paulhu | e46555d | 2021-11-23 16:16:13 +0800 | [diff] [blame] | 147 | name: "framework-connectivity-tiramisu-internal-sources", |
| 148 | srcs: [ |
| 149 | "src/android/net/ConnectivityFrameworkInitializerTiramisu.java", |
| 150 | ], |
| 151 | path: "src", |
| 152 | visibility: [ |
| 153 | "//visibility:private", |
| 154 | ], |
| 155 | } |
| 156 | |
| 157 | filegroup { |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 158 | name: "framework-connectivity-tiramisu-sources", |
| 159 | srcs: [ |
Xiao Ma | 202317d | 2021-12-14 09:38:32 +0000 | [diff] [blame] | 160 | ":framework-connectivity-ethernet-sources", |
Aaron Huang | 9a708a4 | 2021-12-10 17:36:49 +0800 | [diff] [blame] | 161 | ":framework-connectivity-ipsec-sources", |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 162 | ":framework-connectivity-netstats-sources", |
paulhu | 66f61ac | 2021-12-14 23:09:55 +0800 | [diff] [blame] | 163 | ], |
| 164 | visibility: ["//frameworks/base"], |
| 165 | } |
| 166 | |
| 167 | filegroup { |
| 168 | name: "framework-connectivity-tiramisu-updatable-sources", |
| 169 | srcs: [ |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 170 | ":framework-connectivity-nsd-sources", |
paulhu | e46555d | 2021-11-23 16:16:13 +0800 | [diff] [blame] | 171 | ":framework-connectivity-tiramisu-internal-sources", |
Junyu Lai | ad166b4 | 2021-12-07 08:25:31 +0000 | [diff] [blame] | 172 | ], |
paulhu | 66f61ac | 2021-12-14 23:09:55 +0800 | [diff] [blame] | 173 | visibility: [ |
| 174 | "//frameworks/base", |
| 175 | "//packages/modules/Connectivity:__subpackages__", |
| 176 | ], |
paulhu | e46555d | 2021-11-23 16:16:13 +0800 | [diff] [blame] | 177 | } |
Lorenzo Colitti | d2ae739 | 2022-01-29 21:07:33 +0900 | [diff] [blame] | 178 | |
| 179 | cc_library_shared { |
| 180 | name: "libframework-connectivity-tiramisu-jni", |
| 181 | min_sdk_version: "30", |
| 182 | cflags: [ |
| 183 | "-Wall", |
| 184 | "-Werror", |
| 185 | "-Wno-unused-parameter", |
| 186 | // Don't warn about S API usage even with |
| 187 | // min_sdk 30: the library is only loaded |
| 188 | // on S+ devices |
| 189 | "-Wno-unguarded-availability", |
| 190 | "-Wthread-safety", |
| 191 | ], |
| 192 | srcs: [ |
| 193 | "jni/android_net_TrafficStats.cpp", |
| 194 | "jni/onload.cpp", |
| 195 | ], |
| 196 | shared_libs: [ |
| 197 | "liblog", |
| 198 | ], |
| 199 | static_libs: [ |
| 200 | "libnativehelper_compat_libc++", |
| 201 | ], |
| 202 | stl: "none", |
| 203 | apex_available: [ |
| 204 | "com.android.tethering", |
| 205 | // TODO: remove when ConnectivityT moves to APEX. |
| 206 | "//apex_available:platform", |
| 207 | ], |
| 208 | } |