/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | EnableAodRule.kt | 36 val contentResolver: ContentResolver = context.contentResolver in starting() constant 38 Settings.Secure.getInt(contentResolver, Settings.Secure.DOZE_ALWAYS_ON, 0) == 1 in starting() 41 assertThat(Settings.Secure.putInt(contentResolver, Settings.Secure.DOZE_ALWAYS_ON, 1)) in starting() 49 val contentResolver: ContentResolver = context.contentResolver in finished() constant 50 assertThat(Settings.Secure.putInt(contentResolver, Settings.Secure.DOZE_ALWAYS_ON, 1)) in finished()
|
D | SysuiDemoModeRule.kt | 24 private val contentResolver = context.contentResolver constant in android.platform.test.rule.SysuiDemoModeRule 33 if (!Settings.Global.putInt(contentResolver, DEMO_MODE_FLAG, ENABLE_VALUE)) { in starting() 38 if (!Settings.Global.putInt(contentResolver, DEMO_MODE_TUNER_FLAG, ENABLE_VALUE)) { in starting() 46 if (!Settings.Global.putInt(contentResolver, DEMO_MODE_TUNER_FLAG, DISABLE_VALUE)) { in finished() 50 if (!Settings.Global.putInt(contentResolver, DEMO_MODE_FLAG, DISABLE_VALUE)) { in finished()
|
D | SettingOverrideRule.java | 30 private final ContentResolver contentResolver = InstrumentationRegistry.getInstrumentation() field in SettingOverrideRule 47 mOriginalValue = Settings.Secure.getString(contentResolver, mSettingName); in starting() 49 if (!Settings.Secure.putString(contentResolver, mSettingName, mOverrideValue)) { in starting() 56 Settings.Secure.putString(contentResolver, mSettingName, mOriginalValue); in finished()
|
D | CustomClockRule.kt | 29 val contentResolver = context.contentResolver in isLockscreenCustomClockSet() constant 32 contentResolver, in isLockscreenCustomClockSet()
|
D | NotesRoleManagerRule.kt | 46 private val contentResolver = context.contentResolver constant 70 Settings.Global.getInt(contentResolver, Settings.Global.STYLUS_EVER_USED, /* def= */ 0) in starting() 85 Settings.Global.putInt(contentResolver, Settings.Global.STYLUS_EVER_USED, stylusEverUsed) in setStylusEverUsed()
|
D | SecureSettingRule.kt | 13 Settings.Secure.getString(context.contentResolver, settingName) in getSettingValueAsString() 16 Settings.Secure.putString(context.contentResolver, settingName, value) in getSettingValueAsString()
|
D | SystemSettingRule.kt | 14 Settings.System.getString(context.contentResolver, settingName) in getSettingValueAsString()
|
D | EnsureDeviceSettingsRule.kt | 58 context.contentResolver, in checkStayAwakeEnabled()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ |
D | LockscreenUtils.java | 217 final ContentResolver contentResolver = in ensureAoD() local 220 contentResolver, Settings.Secure.DOZE_ALWAYS_ON, 0); in ensureAoD() 224 contentResolver, Settings.Secure.DOZE_ALWAYS_ON, enabled ? 1 : 0); in ensureAoD() 229 final ContentResolver contentResolver = in recoverAoD() local 232 contentResolver, Settings.Secure.DOZE_ALWAYS_ON, sPreviousAodSetting); in recoverAoD()
|
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
D | SystemUiJankTests.java | 146 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in setUp() local 147 Settings.Secure.putInt(contentResolver, Settings.Secure.DOZE_ALWAYS_ON, 1); in setUp() 163 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in tearDown() local 164 Settings.Secure.putInt(contentResolver, Settings.Secure.DOZE_ALWAYS_ON, in tearDown()
|