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 "frameworks-base-testutils", 24 "services.accessibility", 25 "services.core", 26 "services.devicepolicy", 27 "services.net", 28 "services.usage", 29 "service-permission.stubs.system_server", 30 "guava", 31 "androidx.test.rules", 32 "hamcrest-library", 33 "mockito-target-inline-minus-junit4", 34 "platform-compat-test-rules", 35 "platform-test-annotations", 36 "platformprotosnano", 37 "statsdprotolite", 38 "StatsdTestUtils", 39 "hamcrest-library", 40 "servicestests-utils", 41 "testables", 42 "truth", 43 "TestParameterInjector", 44 // TODO: remove once Android migrates to JUnit 4.12, 45 // which provides assertThrows 46 "testng", 47 "flag-junit", 48 "notification_flags_lib", 49 "platform-test-rules", 50 "SettingsLib", 51 "libprotobuf-java-lite", 52 "platformprotoslite", 53 "platform-parametric-runner-lib", 54 ], 55 56 libs: [ 57 "android.test.runner.stubs.system", 58 "android.test.base.stubs.system", 59 "android.test.mock.stubs.system", 60 ], 61 62 dxflags: ["--multi-dex"], 63 64 platform_apis: true, 65 66 test_suites: [ 67 "device-tests", 68 "automotive-tests", 69 ], 70 71 certificate: "platform", 72 73 compile_multilib: "both", 74 75 // These are not normally accessible from apps so they must be explicitly included. 76 jni_libs: [ 77 "libdexmakerjvmtiagent", 78 "libmultiplejvmtiagentsinterferenceagent", 79 "libbase", 80 "libbinder", 81 "libc++", 82 "libcutils", 83 "liblog", 84 "liblzma", 85 "libnativehelper", 86 "libui", 87 "libunwindstack", 88 "libutils", 89 "netd_aidl_interface-V5-cpp", 90 ], 91 92 // Required for TestParameterInjector 93 javacflags: ["-parameters"], 94} 95 96test_module_config { 97 name: "FrameworksUiServicesTests_notification", 98 base: "FrameworksUiServicesTests", 99 test_suites: [ 100 "automotive-tests", 101 "device-tests", 102 ], 103 exclude_annotations: ["androidx.test.filters.LargeTest"], 104} 105