Reference Sources.bp from Android.bp, so that they are used as build files. Sources.bp is separate from Android.bp as it was migrated from the Android.bp files in the old code location. They can be merged into the main Android.bp file (or removed by removing the filegroups) after the migration is done. Also remove references to the AIDL filegroups, as files are now merged into the common framework/aidl-export directory which is used as include directory for aidl source generation already, so they do not need to be referenced separately. framework/aidl-export can contain AIDLs for S- API classes that became updatable API in T (the contents of framework-t), as they are the same as any other API class for the purposes of AIDL code generation: it's OK for any S+ code to reference S+ API classes. Finally, fix reference to mByteStream in IpConfigStoreTest. It was already wrong but did not break the build because the test was not being built in the old location. Bug: 222234190 Test: TH Merged-In: I1fe5091361c7766dc7b6b4fb8c7b62d403e950bb Change-Id: If738f607be84b3d7e2045a83a4d2976ed0d4e188
175 lines
4.7 KiB
Text
175 lines
4.7 KiB
Text
//
|
|
// Copyright (C) 2021 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
|
|
// NetworkStats related libraries.
|
|
|
|
filegroup {
|
|
name: "framework-connectivity-netstats-internal-sources",
|
|
srcs: [
|
|
"src/android/app/usage/*.java",
|
|
"src/android/net/DataUsageRequest.*",
|
|
"src/android/net/INetworkStatsService.aidl",
|
|
"src/android/net/INetworkStatsSession.aidl",
|
|
"src/android/net/NetworkIdentity.java",
|
|
"src/android/net/NetworkIdentitySet.java",
|
|
"src/android/net/NetworkStateSnapshot.*",
|
|
"src/android/net/NetworkStats.*",
|
|
"src/android/net/NetworkStatsAccess.*",
|
|
"src/android/net/NetworkStatsCollection.*",
|
|
"src/android/net/NetworkStatsHistory.*",
|
|
"src/android/net/NetworkTemplate.*",
|
|
"src/android/net/TrafficStats.java",
|
|
"src/android/net/UnderlyingNetworkInfo.*",
|
|
"src/android/net/netstats/**/*.*",
|
|
],
|
|
path: "src",
|
|
visibility: [
|
|
"//visibility:private",
|
|
],
|
|
}
|
|
|
|
filegroup {
|
|
name: "framework-connectivity-netstats-sources",
|
|
srcs: [
|
|
":framework-connectivity-netstats-internal-sources",
|
|
],
|
|
visibility: [
|
|
"//visibility:private",
|
|
],
|
|
}
|
|
|
|
// Nsd related libraries.
|
|
|
|
filegroup {
|
|
name: "framework-connectivity-nsd-internal-sources",
|
|
srcs: [
|
|
"src/android/net/nsd/*.aidl",
|
|
"src/android/net/nsd/*.java",
|
|
],
|
|
path: "src",
|
|
visibility: [
|
|
"//visibility:private",
|
|
],
|
|
}
|
|
|
|
filegroup {
|
|
name: "framework-connectivity-nsd-sources",
|
|
srcs: [
|
|
":framework-connectivity-nsd-internal-sources",
|
|
],
|
|
visibility: [
|
|
"//visibility:private",
|
|
],
|
|
}
|
|
|
|
// IpSec related libraries.
|
|
|
|
filegroup {
|
|
name: "framework-connectivity-ipsec-sources",
|
|
srcs: [
|
|
"src/android/net/IIpSecService.aidl",
|
|
"src/android/net/IpSec*.*",
|
|
],
|
|
path: "src",
|
|
visibility: [
|
|
"//visibility:private",
|
|
],
|
|
}
|
|
|
|
// Ethernet related libraries.
|
|
|
|
filegroup {
|
|
name: "framework-connectivity-ethernet-sources",
|
|
srcs: [
|
|
"src/android/net/EthernetManager.java",
|
|
"src/android/net/EthernetNetworkManagementException.java",
|
|
"src/android/net/EthernetNetworkManagementException.aidl",
|
|
"src/android/net/EthernetNetworkSpecifier.java",
|
|
"src/android/net/EthernetNetworkUpdateRequest.java",
|
|
"src/android/net/EthernetNetworkUpdateRequest.aidl",
|
|
"src/android/net/IEthernetManager.aidl",
|
|
"src/android/net/IEthernetServiceListener.aidl",
|
|
"src/android/net/INetworkInterfaceOutcomeReceiver.aidl",
|
|
"src/android/net/ITetheredInterfaceCallback.aidl",
|
|
],
|
|
path: "src",
|
|
visibility: [
|
|
"//visibility:private",
|
|
],
|
|
}
|
|
|
|
// Connectivity-T common libraries.
|
|
|
|
filegroup {
|
|
name: "framework-connectivity-tiramisu-internal-sources",
|
|
srcs: [
|
|
"src/android/net/ConnectivityFrameworkInitializerTiramisu.java",
|
|
],
|
|
path: "src",
|
|
visibility: [
|
|
"//visibility:private",
|
|
],
|
|
}
|
|
|
|
// TODO: remove this empty filegroup.
|
|
filegroup {
|
|
name: "framework-connectivity-tiramisu-sources",
|
|
srcs: [],
|
|
visibility: ["//frameworks/base"],
|
|
}
|
|
|
|
filegroup {
|
|
name: "framework-connectivity-tiramisu-updatable-sources",
|
|
srcs: [
|
|
":framework-connectivity-ethernet-sources",
|
|
":framework-connectivity-ipsec-sources",
|
|
":framework-connectivity-netstats-sources",
|
|
":framework-connectivity-nsd-sources",
|
|
":framework-connectivity-tiramisu-internal-sources",
|
|
],
|
|
visibility: [
|
|
"//frameworks/base",
|
|
"//packages/modules/Connectivity:__subpackages__",
|
|
],
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "libframework-connectivity-tiramisu-jni",
|
|
min_sdk_version: "30",
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-Wno-unused-parameter",
|
|
// Don't warn about S API usage even with
|
|
// min_sdk 30: the library is only loaded
|
|
// on S+ devices
|
|
"-Wno-unguarded-availability",
|
|
"-Wthread-safety",
|
|
],
|
|
srcs: [
|
|
"jni/android_net_TrafficStats.cpp",
|
|
"jni/onload.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libandroid",
|
|
"liblog",
|
|
"libnativehelper",
|
|
],
|
|
stl: "none",
|
|
apex_available: [
|
|
"com.android.tethering",
|
|
],
|
|
}
|