Home
last modified time | relevance | path

Searched refs:contentResolver (Results 1 – 10 of 10) sorted by relevance

/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DEnableAodRule.kt36 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()
DSysuiDemoModeRule.kt24 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()
DSettingOverrideRule.java30 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()
DCustomClockRule.kt29 val contentResolver = context.contentResolver in isLockscreenCustomClockSet() constant
32 contentResolver, in isLockscreenCustomClockSet()
DNotesRoleManagerRule.kt46 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()
DSecureSettingRule.kt13 Settings.Secure.getString(context.contentResolver, settingName) in getSettingValueAsString()
16 Settings.Secure.putString(context.contentResolver, settingName, value) in getSettingValueAsString()
DSystemSettingRule.kt14 Settings.System.getString(context.contentResolver, settingName) in getSettingValueAsString()
DEnsureDeviceSettingsRule.kt58 context.contentResolver, in checkStayAwakeEnabled()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DLockscreenUtils.java217 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/
DSystemUiJankTests.java146 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()