1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_base_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_base_license"], 8} 9 10android_test { 11 name: "DisplayServiceTests", 12 13 srcs: [ 14 "src/**/*.java", 15 "src/**/*.kt", 16 ], 17 18 libs: [ 19 "android.test.mock.stubs.system", 20 ], 21 22 static_libs: [ 23 "androidx.test.ext.junit", 24 "androidx.test.rules", 25 "compatibility-device-util-axt", 26 "flag-junit", 27 "frameworks-base-testutils", 28 "junit", 29 "junit-params", 30 "kotlin-test", 31 "mockito-kotlin2", 32 "mockingservicestests-utils-mockito", 33 "platform-compat-test-rules", 34 "platform-test-annotations", 35 "service-permission.stubs.system_server", 36 "services.core", 37 "servicestests-utils", 38 "testables", 39 "TestParameterInjector", 40 ], 41 42 defaults: [ 43 "modules-utils-testable-device-config-defaults", 44 ], 45 46 platform_apis: true, 47 test_suites: [ 48 "device-tests", 49 "automotive-tests", 50 ], 51 52 data: [ 53 ":DisplayManagerTestApp", 54 ], 55 56 certificate: "platform", 57 58 dxflags: ["--multi-dex"], 59 60 optimize: { 61 enabled: false, 62 }, 63} 64 65test_module_config { 66 name: "DisplayServiceTests_server_display", 67 base: "DisplayServiceTests", 68 test_suites: [ 69 "automotive-tests", 70 "device-tests", 71 ], 72 include_filters: ["com.android.server.display"], 73} 74