**Root cause** The ReduceBrightColorsIntensityPreferenceControllerTest would modify the settings during test. However, since this is a unit test, it shouldn't trigger modifying the brightness on the attached test device. Otherwise, the test would be unstable depends on how stable the device is, which should be tested by the integration test. Bug: 397762527 Test: abtd Flag: EXEMPT test only Change-Id: I0c0d7327d4356482295121c11c3a1e5ed814ffec
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
package {
|
|
default_team: "trendy_team_android_settings_app",
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "packages_apps_Settings_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["packages_apps_Settings_license"],
|
|
}
|
|
|
|
android_test {
|
|
name: "SettingsUnitTests",
|
|
|
|
certificate: "platform",
|
|
|
|
libs: [
|
|
"telephony-common",
|
|
"ims-common",
|
|
],
|
|
|
|
static_libs: [
|
|
"aconfig_settings_flags_lib",
|
|
"androidx.arch.core_core-testing",
|
|
"androidx.lifecycle_lifecycle-runtime-testing",
|
|
"androidx.test.espresso.core",
|
|
"androidx.test.ext.junit",
|
|
"androidx.test.rules",
|
|
"flag-junit",
|
|
"kotlin-test",
|
|
"mockito-kotlin2",
|
|
"mockito-target-minus-junit4",
|
|
"platform-test-annotations",
|
|
"platform-test-rules",
|
|
"testables",
|
|
"truth",
|
|
"kotlinx_coroutines_test",
|
|
"SettingsLibPreference-testutils",
|
|
"Settings-testutils2",
|
|
"servicestests-utils",
|
|
// Don't add SettingsLib libraries here - you can use them directly as they are in the
|
|
// instrumented Settings app.
|
|
],
|
|
|
|
errorprone: {
|
|
javacflags: ["-Xep:CheckReturnValue:WARN"],
|
|
},
|
|
// Include all test java/kotlin files.
|
|
srcs: [
|
|
"src/**/*.java",
|
|
"src/**/*.kt",
|
|
],
|
|
use_resource_processor: true,
|
|
platform_apis: true,
|
|
test_suites: ["device-tests"],
|
|
|
|
instrumentation_for: "Settings",
|
|
}
|