1//######################################################################## 2// Build FrameworksUiServicesTests package 3//######################################################################## 4 5package { 6 // See: http://go/android-license-faq 7 // A large-scale-change added 'default_applicable_licenses' to import 8 // all of the 'license_kinds' from "frameworks_base_license" 9 // to get the below license kinds: 10 // SPDX-license-identifier-Apache-2.0 11 default_applicable_licenses: ["frameworks_base_license"], 12} 13 14android_test { 15 name: "FrameworksUiServicesTests", 16 17 // Include test java files 18 srcs: [ 19 "src/**/*.java", 20 ], 21 22 static_libs: [ 23 "services.accessibility", 24 "services.core", 25 "services.devicepolicy", 26 "services.net", 27 "services.usage", 28 "guava", 29 "androidx.test.rules", "hamcrest-library", 30 "mockito-target-inline-minus-junit4", 31 "platform-test-annotations", 32 "platformprotosnano", 33 "statsdprotolite", 34 "hamcrest-library", 35 "testables", 36 "truth-prebuilt", 37 // TODO: remove once Android migrates to JUnit 4.12, 38 // which provides assertThrows 39 "testng", 40 ], 41 42 libs: [ 43 "android.test.runner", 44 "android.test.base", 45 "android.test.mock", 46 ], 47 48 dxflags: ["--multi-dex"], 49 50 platform_apis: true, 51 test_suites: ["device-tests"], 52 53 certificate: "platform", 54 55 compile_multilib: "both", 56 57 // These are not normally accessible from apps so they must be explicitly included. 58 jni_libs: [ 59 "libdexmakerjvmtiagent", 60 "libmultiplejvmtiagentsinterferenceagent", 61 "libbacktrace", 62 "libbase", 63 "libbinder", 64 "libc++", 65 "libcutils", 66 "liblog", 67 "liblzma", 68 "libnativehelper", 69 "libui", 70 "libunwindstack", 71 "libutils", 72 "netd_aidl_interface-V5-cpp", 73 ], 74} 75