1//######################################################################## 2// Build FrameworksNetTests package 3//######################################################################## 4package { 5 // See: http://go/android-license-faq 6 // A large-scale-change added 'default_applicable_licenses' to import 7 // all of the 'license_kinds' from "Android-Apache-2.0" 8 // to get the below license kinds: 9 // SPDX-license-identifier-Apache-2.0 10 default_applicable_licenses: ["Android-Apache-2.0"], 11} 12 13java_defaults { 14 name: "FrameworksNetTests-jni-defaults", 15 jni_libs: [ 16 "ld-android", 17 "libbacktrace", 18 "libbase", 19 "libbinder", 20 "libbpf", 21 "libbpf_android", 22 "libc++", 23 "libcgrouprc", 24 "libcrypto", 25 "libcutils", 26 "libdl_android", 27 "libhidl-gen-utils", 28 "libhidlbase", 29 "libjsoncpp", 30 "liblog", 31 "liblzma", 32 "libnativehelper", 33 "libnetdbpf", 34 "libnetdutils", 35 "libnetworkstatsfactorytestjni", 36 "libpackagelistparser", 37 "libpcre2", 38 "libprocessgroup", 39 "libselinux", 40 "libtinyxml2", 41 "libui", 42 "libunwindstack", 43 "libutils", 44 "libutilscallstack", 45 "libvndksupport", 46 "libziparchive", 47 "libz", 48 "netd_aidl_interface-V5-cpp", 49 ], 50} 51 52android_library { 53 name: "FrameworksNetTestsLib", 54 min_sdk_version: "30", 55 defaults: [ 56 "framework-connectivity-test-defaults", 57 ], 58 srcs: [ 59 "java/**/*.java", 60 "java/**/*.kt", 61 ], 62 jarjar_rules: "jarjar-rules.txt", 63 static_libs: [ 64 "androidx.test.rules", 65 "androidx.test.uiautomator", 66 "bouncycastle-repackaged-unbundled", 67 "core-tests-support", 68 "FrameworksNetCommonTests", 69 "frameworks-base-testutils", 70 "frameworks-net-integration-testutils", 71 "framework-protos", 72 "mockito-target-minus-junit4", 73 "net-tests-utils", 74 "platform-compat-test-rules", 75 "platform-test-annotations", 76 "service-connectivity-pre-jarjar", 77 "services.core", 78 "services.net", 79 ], 80 libs: [ 81 "android.net.ipsec.ike.stubs.module_lib", 82 "android.test.runner", 83 "android.test.base", 84 "android.test.mock", 85 "ServiceConnectivityResources", 86 ], 87 visibility: ["//packages/modules/Connectivity/tests:__subpackages__"], 88} 89 90android_test { 91 name: "FrameworksNetTests", 92 min_sdk_version: "30", 93 defaults: [ 94 "framework-connectivity-test-defaults", 95 "FrameworksNetTests-jni-defaults", 96 ], 97 test_suites: ["device-tests"], 98 static_libs: [ 99 "FrameworksNetTestsLib", 100 ], 101 jni_libs: [ 102 "libservice-connectivity", 103 ] 104} 105