Home
last modified time | relevance | path

Searched refs:getContentResolver (Results 1 – 25 of 1592) sorted by relevance

12345678910>>...64

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactNotificationPreferenceControllerTest.java91 when(mMockContext.getContentResolver()).thenReturn(mContext.getContentResolver()); in setUp()
115 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noSecureLockscreen()
118 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noSecureLockscreen()
137 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noWorkProfile()
152 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_adminSaysNoRedaction()
155 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_adminSaysNoRedaction()
170 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_adminSaysNoNotifications()
173 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_adminSaysNoNotifications()
185 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noNotifications()
188 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noNotifications()
[all …]
DShowOnLockscreenNotificationPreferenceControllerTest.java84 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_noNotifsOnLockscreen()
88 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_noNotifsOnLockscreen()
103 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_alertingNotifsOnLockscreen()
106 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_alertingNotifsOnLockscreen()
120 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_allNotifsOnLockscreen()
123 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_allNotifsOnLockscreen()
149 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo()
152 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo()
176 Settings.Secure.putInt(mContext.getContentResolver(), in onPreferenceChange_allToAlerting()
179 Settings.Secure.putInt(mContext.getContentResolver(), in onPreferenceChange_allToAlerting()
[all …]
DBubblePreferenceControllerTest.java106 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in testIsAvailable_notIfAppBlocked()
115 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in testIsAvailable_notIfChannelBlocked()
125 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in testIsAvailable_channel_notIfAppOff()
139 Settings.Global.putInt(mContext.getContentResolver(), in testIsNotAvailable_ifOffGlobally_app()
151 Settings.Global.putInt(mContext.getContentResolver(), in testIsAvailable_notIfOffGlobally_channel()
161 Settings.Global.putInt(mContext.getContentResolver(), in testIsAvailable_app_evenIfOffGlobally()
171 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in testIsAvailable_app()
184 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in testIsAvailable_defaultChannel()
196 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in testIsAvailable_channel()
208 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, SYSTEM_WIDE_ON); in testIsAvailable_channelAppOff()
[all …]
DBadgingNotificationPreferenceControllerTest.java94 Settings.Secure.putInt(context.getContentResolver(), NOTIFICATION_BADGING, ON); in updateState_preferenceSetCheckedWhenSettingIsOn()
107 Settings.Secure.putInt(context.getContentResolver(), NOTIFICATION_BADGING, OFF); in updateState_preferenceSetUncheckedWhenSettingIsOff()
118 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, OFF); in isChecked_settingIsOff_shouldReturnFalse()
125 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, ON); in isChecked_settingIsOn_shouldReturnTrue()
132 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, ON); in setChecked_setFalse_disablesSetting()
135 int updatedValue = Settings.Secure.getInt(mContext.getContentResolver(), in setChecked_setFalse_disablesSetting()
143 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, OFF); in setChecked_setTrue_enablesSetting()
146 int updatedValue = Settings.Secure.getInt(mContext.getContentResolver(), in setChecked_setTrue_enablesSetting()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/preferences/
DWifiWakeupTogglePreferenceControllerTest.java93 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup()
98 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup()
106 Settings.Global.putInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningDisabled_showsDialog()
108 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiScanningDisabled_showsDialog()
121 Settings.Global.putInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup()
123 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup()
128 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup()
136 Settings.Global.putInt(mContext.getContentResolver(), in refreshUi_wifiWakeupEnabled_wifiScanningEnabled_locationEnabled_isChecked()
138 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in refreshUi_wifiWakeupEnabled_wifiScanningEnabled_locationEnabled_isChecked()
150 Settings.Global.putInt(mContext.getContentResolver(), in refreshUi_wifiWakeupDisabled_wifiScanningEnabled_locationEnabled_isNotChecked()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java200 final String typeface = Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsFontFamily()
207 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily()
210 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily()
216 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextColor()
222 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextColor()
224 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsTextColor()
229 return opacityToString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextOpacity()
234 final int color = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextOpacity()
237 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsTextOpacity()
242 return Integer.toString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsEdgeType()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiWakeupPreferenceControllerTest.java69 Settings.Global.putInt(mContext.getContentResolver(), WIFI_SCAN_ALWAYS_AVAILABLE, 1); in setUp()
95 assertThat(Settings.Global.getInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 0)) in handlePreferenceTreeClick_matchingKeyAndType_shouldUpdateSetting()
101 Settings.Global.putInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 1); in handlePreferenceTreeClick_wifiWakeupEnableScanningDisable_wifiWakeupEnable()
102 Settings.Global.putInt(mContext.getContentResolver(), WIFI_SCAN_ALWAYS_AVAILABLE, 0); in handlePreferenceTreeClick_wifiWakeupEnableScanningDisable_wifiWakeupEnable()
106 final boolean isWifiWakeupEnabled = Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceTreeClick_wifiWakeupEnableScanningDisable_wifiWakeupEnable()
115 Settings.Global.putInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 1); in updateState_preferenceSetCheckedWhenWakeupSettingEnabled()
116 Settings.Global.putInt(mContext.getContentResolver(), WIFI_SCAN_ALWAYS_AVAILABLE, 1); in updateState_preferenceSetCheckedWhenWakeupSettingEnabled()
128 Settings.Global.putInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 0); in updateState_preferenceSetUncheckedWhenWakeupSettingDisabled()
140 Settings.Global.putInt(mContext.getContentResolver(), WIFI_WAKEUP_ENABLED, 1); in updateState_preferenceSetUncheckedWhenWifiScanningDisabled()
141 Settings.Global.putInt(mContext.getContentResolver(), WIFI_SCAN_ALWAYS_AVAILABLE, 0); in updateState_preferenceSetUncheckedWhenWifiScanningDisabled()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DInputMethodUtilTest.java91 Settings.Secure.putString(mContext.getContentResolver(), in setUp()
93 Settings.Secure.putString(mContext.getContentResolver(), in setUp()
202 assertThat(InputMethodUtil.isInputMethodEnabled(mContext.getContentResolver(), info)) in isInputMethodEnabled_isDisabled_returnsFalse()
211 assertThat(InputMethodUtil.isInputMethodEnabled(mContext.getContentResolver(), info)) in isInputMethodEnabled_isEnabled_returnsTrue()
220 InputMethodUtil.enableInputMethod(mContext.getContentResolver(), info); in enableInputMethod_alreadyEnabled_remainsUnchanged()
222 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_alreadyEnabled_remainsUnchanged()
228 Settings.Secure.putString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME()
233 InputMethodUtil.enableInputMethod(mContext.getContentResolver(), info); in enableInputMethod_noEnabledInputMethods_addsIME()
235 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME()
245 InputMethodUtil.enableInputMethod(mContext.getContentResolver(), info); in enableInputMethod_someEnabledInputMethods_addsIME()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/development/
DDevelopmentSettingsUtilTest.java65 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_isAdmin_notDemo_shouldReturnFalse()
74 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_isAdmin_notDemo_shouldReturnTrue()
83 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_notDemo_shouldReturnFalse()
94 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_isDemo_shouldReturnTrue()
105 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_notAdmin_isDemo_shouldReturnFalse()
116 Settings.Global.putInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setTrue()
121 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setTrue()
127 Settings.Global.putInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setFalse()
132 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setFalse()
138 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, in isDeviceProvisioned_true()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DSimulateColorSpacePreferenceControllerTest.java81 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_disabledSelected_shouldTurnOffPreference()
92 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference()
94 final int settingValue = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference()
103 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOff_shouldSetValueToDisabled()
113 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy()
115 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy()
127 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOnControlledByAccessibility_shouldSetOverridedSummary()
140 Settings.Secure.putInt(mContext.getContentResolver(), in onDeveloperOptionsSwitchDisabled_notControlledByDevOptions_shouldDisableAndReset()
146 final int settingValue = Settings.Secure.getInt(mContext.getContentResolver(), in onDeveloperOptionsSwitchDisabled_notControlledByDevOptions_shouldDisableAndReset()
155 Settings.Secure.putInt(mContext.getContentResolver(), in onDeveloperOptionsSwitchDisabled_controlledByDevOptions_shouldDisableAndNotReset()
[all …]
DWirelessDebuggingEnablerTest.java87 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked()
94 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked()
107 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked()
114 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked()
127 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_true_shouldSetAdbWifiEnabledTrue()
138 assertThat(Global.getInt(mContext.getContentResolver(), in onSwitchToggled_true_shouldSetAdbWifiEnabledTrue()
145 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_false_shouldSetAdbWifiEnabledFalse()
156 assertThat(Global.getInt(mContext.getContentResolver(), in onSwitchToggled_false_shouldSetAdbWifiEnabledFalse()
DNotificationChannelWarningsPreferenceControllerTest.java64 final int mode = Settings.Global.getInt(mContext.getContentResolver(), in onPreferenceChange_settingEnabled_shouldEnableNotificationChannelWarnings()
75 final int mode = Settings.Global.getInt(mContext.getContentResolver(), in onPreferenceChange_settingDisabled_shouldDisableNotificationChannelWarnings()
84 Settings.Global.putInt(mContext.getContentResolver(), in updateState_settingEnabled_preferenceShouldBeChecked()
95 Settings.Global.putInt(mContext.getContentResolver(), in updateState_settingDisabled_preferenceShouldNotBeChecked()
108 Settings.Global.putString(mContext.getContentResolver(), in updateState_settingUndefinedDebuggingEnabled_preferenceShouldBeChecked()
120 Settings.Global.putString(mContext.getContentResolver(), in updateState_settingUndefinedDebuggingDisabled_preferenceShouldNotBeChecked()
131 final int mode = Settings.Global.getInt(mContext.getContentResolver(), in onDeveloperOptionsSwitchDisabled_preferenceShouldBeDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DPreventRingingSwitchPreferenceControllerTest.java87 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushOff_uncheck()
97 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushVibrate_setChecked()
107 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushMute_setChecked()
117 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushOff_checked_returnHushVibrate()
122 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in onSwitchChanged_wasHushOff_checked_returnHushVibrate()
128 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushMute_unchecked_returnHushOff()
133 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in onSwitchChanged_wasHushMute_unchecked_returnHushOff()
140 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushMute_checked_returnHushMute()
145 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in onSwitchChanged_wasHushMute_checked_returnHushMute()
152 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushVibrate_checked_returnHushVibrate()
[all …]
DPreventRingingGesturePreferenceControllerTest.java83 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_mute()
94 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_vibrate()
105 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_off()
116 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_other()
128 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testRadioButtonClicked_mute()
133 Settings.Secure.getInt(mContext.getContentResolver(), in testRadioButtonClicked_mute()
142 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testRadioButtonClicked_vibrate()
147 Settings.Secure.getInt(mContext.getContentResolver(), in testRadioButtonClicked_vibrate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DAccessibilitySettings.java319 mSettingsContentObserver.register(getContentResolver()); in onResume()
329 mSettingsContentObserver.unregister(getContentResolver()); in onPause()
347 Settings.Secure.putInt(getContentResolver(), in handleLongPressTimeoutPreferenceChange()
395 Settings.Secure.putInt(getContentResolver(), in handleToggleTextContrastPreferenceClick()
401 Settings.Secure.putInt(getContentResolver(), in handleTogglePowerButtonEndsCallPreferenceClick()
414 Settings.Secure.putInt(getContentResolver(), in handleToggleLargePointerIconPreferenceClick()
423 Settings.Global.putString(getContentResolver(), animationPreference, newAnimationValue); in handleToggleDisableAnimations()
428 Settings.System.putIntForUser(getContentResolver(), Settings.System.MASTER_MONO, in handleToggleMasterMonoPreferenceClick()
706 Settings.Secure.getInt(getContentResolver(), in updateSystemPreferences()
718 final int incallPowerBehavior = Settings.Secure.getInt(getContentResolver(), in updateSystemPreferences()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettings.java326 mSettingsContentObserver.register(getContentResolver()); in onResume()
336 mSettingsContentObserver.unregister(getContentResolver()); in onPause()
354 Settings.Secure.putInt(getContentResolver(), in handleLongPressTimeoutPreferenceChange()
404 context.getContentResolver(), in isRampingRingerEnabled()
411 Settings.Secure.putInt(getContentResolver(), in handleToggleTextContrastPreferenceClick()
417 Settings.Secure.putInt(getContentResolver(), in handleTogglePowerButtonEndsCallPreferenceClick()
430 Settings.Secure.putInt(getContentResolver(), in handleToggleLargePointerIconPreferenceClick()
439 Settings.Global.putString(getContentResolver(), animationPreference, newAnimationValue); in handleToggleDisableAnimations()
444 Settings.System.putIntForUser(getContentResolver(), Settings.System.MASTER_MONO, in handleToggleMasterMonoPreferenceClick()
758 Settings.Secure.getInt(getContentResolver(), in updateSystemPreferences()
[all …]
DVibrationPreferenceFragment.java122 getContext().getContentResolver(), vibrationEnabledSetting, 1) == 1); in updateSettings()
125 Settings.Global.putInt(getContext().getContentResolver(), in updateSettings()
128 Settings.System.putInt(getContext().getContentResolver(), in updateSettings()
132 int previousIntensity = Settings.System.getInt(getContext().getContentResolver(), in updateSettings()
152 Settings.System.putInt(getContext().getContentResolver(), in updateSettings()
211 int vibrationIntensity = Settings.System.getInt(getContext().getContentResolver(), in getDefaultKey()
218 getContext().getContentResolver(), vibrationEnabledSetting, 1) == 1); in getDefaultKey()
285 getContext().getContentResolver().registerContentObserver( in register()
290 getContext().getContentResolver().unregisterContentObserver(this); in unregister()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DSettingsFacade.java38 Secure.putIntForUser(context.getContentResolver(), USER_SETUP_COMPLETE, 1, userId); in setUserSetupCompleted()
45 return Secure.getInt(context.getContentResolver(), USER_SETUP_COMPLETE, 0) != 0; in isUserSetupCompleted()
52 return Global.getInt(context.getContentResolver(), DEVICE_PROVISIONED, 0) != 0; in isDeviceProvisioned()
59 Global.putInt(context.getContentResolver(), DEVICE_PROVISIONED, 1); in setDeviceProvisioned()
66 Global.putInt(context.getContentResolver(), PACKAGE_VERIFIER_ENABLE, in setPackageVerifierEnabled()
74 return Global.getInt(context.getContentResolver(), PACKAGE_VERIFIER_ENABLE, 0) != 0; in isPackageVerifierEnabled()
81 Secure.putIntForUser(context.getContentResolver(), in setProfileContactRemoteSearch()
89 Secure.putIntForUser(context.getContentResolver(), in setCrossProfileCalendarEnabled()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt228 val cr: ContentResolver = context.getContentResolver() in <lambda>()
255 Settings.System.putString(context.getContentResolver(), NEXT_ALARM_FORMATTED, time) in <lambda>()
307 val cr: ContentResolver = context.getContentResolver() in <lambda>()
412 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>()
434 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>()
456 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>()
478 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>()
500 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>()
548 AlarmInstance.updateInstance(context.getContentResolver(), instance) in <lambda>()
595 val contentResolver: ContentResolver = context.getContentResolver() in <lambda>()
[all …]
DAlarmStateManager.java184 final ContentResolver cr = context.getContentResolver(); in getNextFiringAlarm()
211 Settings.System.putString(context.getContentResolver(), NEXT_ALARM_FORMATTED, time); in updateNextAlarmInSystemSettings()
263 ContentResolver cr = context.getContentResolver(); in updateParentAlarm()
359 ContentResolver contentResolver = context.getContentResolver(); in setSilentState()
381 ContentResolver contentResolver = context.getContentResolver(); in setLowNotificationState()
403 ContentResolver contentResolver = context.getContentResolver(); in setHideNotificationState()
425 ContentResolver contentResolver = context.getContentResolver(); in setHighNotificationState()
447 ContentResolver contentResolver = context.getContentResolver(); in setFiredState()
492 AlarmInstance.updateInstance(context.getContentResolver(), instance); in setSnoozeState()
537 ContentResolver contentResolver = context.getContentResolver(); in setMissedState()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/
DScreenshotContextPreferenceControllerTest.java71 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in setUp()
81 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_screenshotEnabled_preferenceChecked()
92 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_screenshotDisabled_preferenceUnchecked()
103 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_structureEnabled_preferenceEnabled()
114 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_structureDisabled_preferenceDisabled()
123 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_screenshotEnabled()
127 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_screenshotEnabled()
133 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleFalse_screenshotDisabled()
137 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in callChangeListener_toggleFalse_screenshotDisabled()
DTextContextPreferenceControllerTest.java71 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in setUp()
81 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_contextEnabled_preferenceChecked()
92 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_contextDisabled_preferenceUnchecked()
101 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_contextEnabled()
105 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_contextEnabled()
111 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleFalse_contextDisabled()
115 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in callChangeListener_toggleFalse_contextDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationScanningPreferenceControllerTest.java51 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOn()
53 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOn()
61 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOff()
63 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOff()
71 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOffBleOn()
73 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOffBleOn()
81 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOffBleOff()
83 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOffBleOff()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBroadcastReceiverTest.java102 doReturn(resolver).when(mContext).getContentResolver(); in onReceive_toggleChanged()
127 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_synchronously_notifyChange_should_be_called()
128 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_synchronously_notifyChange_should_be_called()
161 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_asynchronously_notifyChange_should_not_be_called()
162 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_asynchronously_notifyChange_should_not_be_called()
193 doReturn(resolver).when(mContext).getContentResolver(); in onReceive_sliderChanged()
265 final ContentResolver resolver = spy(mContext.getContentResolver()); in toggleUpdate_unavailableUriNotified()
266 doReturn(resolver).when(mContext).getContentResolver(); in toggleUpdate_unavailableUriNotified()
269 Settings.Global.putInt(mContext.getContentResolver(), in toggleUpdate_unavailableUriNotified()
303 final ContentResolver resolver = spy(mContext.getContentResolver()); in sliderUpdate_unavailableUriNotified()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DNotificationVibrationIntensityPreferenceControllerTest.java96 Settings.System.putInt(mContext.getContentResolver(), in updateState_withMultipleIntensitySuport_shouldRefreshSummary()
102 Settings.System.putInt(mContext.getContentResolver(), in updateState_withMultipleIntensitySuport_shouldRefreshSummary()
108 Settings.System.putInt(mContext.getContentResolver(), in updateState_withMultipleIntensitySuport_shouldRefreshSummary()
114 Settings.System.putInt(mContext.getContentResolver(), in updateState_withMultipleIntensitySuport_shouldRefreshSummary()
126 Settings.System.putInt(mContext.getContentResolver(), in updateState_withoutMultipleIntensitySupport_shouldRefreshSummary()
132 Settings.System.putInt(mContext.getContentResolver(), in updateState_withoutMultipleIntensitySupport_shouldRefreshSummary()
138 Settings.System.putInt(mContext.getContentResolver(), in updateState_withoutMultipleIntensitySupport_shouldRefreshSummary()
144 Settings.System.putInt(mContext.getContentResolver(), in updateState_withoutMultipleIntensitySupport_shouldRefreshSummary()

12345678910>>...64