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