//######################################################################## // Build FrameworksUiServicesTests package //######################################################################## package { // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import // all of the 'license_kinds' from "frameworks_base_license" // to get the below license kinds: // SPDX-license-identifier-Apache-2.0 default_applicable_licenses: ["frameworks_base_license"], } android_test { name: "FrameworksUiServicesTests", // Include test java files srcs: [ "src/**/*.java", ], static_libs: [ "services.accessibility", "services.core", "services.devicepolicy", "services.net", "services.usage", "guava", "androidx.test.rules", "hamcrest-library", "mockito-target-inline-minus-junit4", "platform-test-annotations", "platformprotosnano", "statsdprotolite", "hamcrest-library", "testables", "truth-prebuilt", // TODO: remove once Android migrates to JUnit 4.12, // which provides assertThrows "testng", ], libs: [ "android.test.runner", "android.test.base", "android.test.mock", ], dxflags: ["--multi-dex"], platform_apis: true, test_suites: ["device-tests"], certificate: "platform", compile_multilib: "both", // These are not normally accessible from apps so they must be explicitly included. jni_libs: [ "libdexmakerjvmtiagent", "libmultiplejvmtiagentsinterferenceagent", "libbacktrace", "libbase", "libbinder", "libc++", "libcutils", "liblog", "liblzma", "libnativehelper", "libui", "libunwindstack", "libutils", "netd_aidl_interface-V5-cpp", ], }