/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivitySettingsManager.java | 410 context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_MOBILE, (int) def.getSeconds()); in getMobileDataActivityTimeout() 426 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_MOBILE, in setMobileDataActivityTimeout() 441 context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_WIFI, (int) def.getSeconds()); in getWifiDataActivityTimeout() 457 Settings.Global.putInt(context.getContentResolver(), DATA_ACTIVITY_TIMEOUT_WIFI, in setWifiDataActivityTimeout() 472 final int duration = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleValidityDuration() 491 context.getContentResolver(), DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS, time); in setDnsResolverSampleValidityDuration() 503 context.getContentResolver(), DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT, def); in getDnsResolverSuccessThresholdPercent() 519 context.getContentResolver(), DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT, percent); in setDnsResolverSuccessThresholdPercent() 531 final int minSamples = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleRanges() 533 final int maxSamples = Settings.Global.getInt(context.getContentResolver(), in getDnsResolverSampleRanges() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | CaptionCustomFragment.java | 200 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/notification/ |
D | RedactNotificationPreferenceControllerTest.java | 96 when(mMockContext.getContentResolver()).thenReturn(mContext.getContentResolver()); in setUp() 130 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noSecureLockscreen() 133 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noSecureLockscreen() 153 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noWorkProfile() 212 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_adminSaysNoNotifications() 215 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_adminSaysNoNotifications() 227 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noNotifications() 230 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noNotifications() 242 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_workProfileLocked() 245 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_workProfileLocked() [all …]
|
D | ShowOnLockscreenNotificationPreferenceControllerTest.java | 83 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_noNotifsOnLockscreen() 87 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_noNotifsOnLockscreen() 102 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_alertingNotifsOnLockscreen() 105 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_alertingNotifsOnLockscreen() 119 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_allNotifsOnLockscreen() 122 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_allNotifsOnLockscreen() 148 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo() 151 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo() 175 Settings.Secure.putInt(mContext.getContentResolver(), in onPreferenceChange_allToAlerting() 178 Settings.Secure.putInt(mContext.getContentResolver(), in onPreferenceChange_allToAlerting() [all …]
|
D | BubbleNotificationPreferenceControllerTest.java | 103 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, OFF); in updateState_settingIsOff_preferenceSetUnchecked() 104 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in updateState_settingIsOff_preferenceSetUnchecked() 114 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, OFF); in onSwitchChanged_true_settingIsOff_flagShouldOn() 118 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in onSwitchChanged_true_settingIsOff_flagShouldOn() 124 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, ON); in onSwitchChanged_false_settingIsOn_flagShouldOff() 128 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in onSwitchChanged_false_settingIsOn_flagShouldOff() 134 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, ON); in setChecked_setFalse_disablesSetting() 137 int updatedValue = Settings.Global.getInt(mContext.getContentResolver(), in setChecked_setFalse_disablesSetting() 145 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, OFF); in setChecked_setTrue_enablesSetting() 148 int updatedValue = Settings.Global.getInt(mContext.getContentResolver(), in setChecked_setTrue_enablesSetting()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/development/ |
D | DevelopmentSettingsUtilTest.java | 54 when(mSpiedContext.getContentResolver()).thenReturn(mContext.getContentResolver()); in setUp() 60 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_isAdmin_shouldReturnFalse() 69 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_isAdmin_shouldReturnTrue() 79 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_shouldReturnFalse() 89 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_hasDisallowDebuggingRestriction_shouldReturnFalse() 102 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_doesNotHaveDisallowDebuggingRestriction_shouldReturnTrue() 110 Settings.Global.putInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setTrue() 115 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setTrue() 121 Settings.Global.putInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setFalse() 126 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in setDevelopmentSettingsEnabled_setFalse() [all …]
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | OneHandedSettingsUtils.java | 95 return Settings.Secure.getIntForUser(context.getContentResolver(), in isOneHandedModeEnabled() 106 Settings.Secure.putIntForUser(context.getContentResolver(), in setOneHandedModeEnabled() 117 return Settings.Secure.getIntForUser(context.getContentResolver(), in isTapsAppToExitEnabled() 128 return Settings.Secure.putIntForUser(context.getContentResolver(), in setTapsAppToExitEnabled() 139 return Settings.Secure.getIntForUser(context.getContentResolver(), in getTimeoutValue() 170 Settings.Secure.putIntForUser(context.getContentResolver(), in setTimeoutValue() 181 return Settings.Secure.getIntForUser(context.getContentResolver(), in isSwipeDownNotificationEnabled() 192 Settings.Secure.putIntForUser(context.getContentResolver(), in setSwipeDownNotificationEnabled() 208 return Settings.Secure.putStringForUser(context.getContentResolver(), in setNavigationBarMode() 221 return Settings.Secure.getIntForUser(context.getContentResolver(), in getNavigationBarMode() [all …]
|
D | PowerMenuSettingsUtils.java | 68 context.getContentResolver(), in isLongPressPowerForAssistantEnabled() 98 context.getContentResolver(), in setLongPressPowerForAssistant() 103 context.getContentResolver(), in setLongPressPowerForAssistant() 113 context.getContentResolver(), in setLongPressPowerForPowerMenu() 121 context.getContentResolver(), in setLongPressPowerForPowerMenu() 144 final ContentResolver resolver = mContext.getContentResolver(); in registerObserver() 150 final ContentResolver resolver = mContext.getContentResolver(); in unregisterObserver()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | WirelessDebuggingEnablerTest.java | 89 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked() 96 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldBeChecked() 109 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked() 116 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_switchBarShouldNotBeChecked() 130 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_true_wifiConnected_shouldSetAdbWifiEnabledTrue() 139 assertThat(Global.getInt(mContext.getContentResolver(), in onSwitchToggled_true_wifiConnected_shouldSetAdbWifiEnabledTrue() 146 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_true_wifiNotConnected_shouldSetAdbWifiEnabledFalse() 155 assertThat(Global.getInt(mContext.getContentResolver(), in onSwitchToggled_true_wifiNotConnected_shouldSetAdbWifiEnabledFalse() 162 Global.putInt(mContext.getContentResolver(), in onSwitchToggled_false_wifiConnected_shouldSetAdbWifiEnabledFalse() 171 assertThat(Global.getInt(mContext.getContentResolver(), in onSwitchToggled_false_wifiConnected_shouldSetAdbWifiEnabledFalse() [all …]
|
D | SimulateColorSpacePreferenceControllerTest.java | 78 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_disabledSelected_shouldTurnOffPreference() 89 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 91 final int settingValue = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 100 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOff_shouldSetValueToDisabled() 110 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy() 112 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy() 124 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOnControlledByAccessibility_shouldSetOverridedSummary() 139 Settings.Secure.putInt(mContext.getContentResolver(), in onDeveloperOptionsSwitchDisabled_notControlledByDevOptions_shouldDisableAndReset() 145 final int settingValue = Settings.Secure.getInt(mContext.getContentResolver(), in onDeveloperOptionsSwitchDisabled_notControlledByDevOptions_shouldDisableAndReset() 154 Settings.Secure.putInt(mContext.getContentResolver(), in onDeveloperOptionsSwitchDisabled_controlledByDevOptions_shouldDisableAndNotReset() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/ |
D | WirelessDebuggingTest.java | 64 doReturn(mContext.getContentResolver()).when(mWirelessDebugging).getContentResolver(); in setUp() 76 Global.putInt(mContext.getContentResolver(), in adbWifiEnabled_shouldReturnEnabled() 84 Global.putInt(mContext.getContentResolver(), in adbWifiDisabled_shouldReturnDisabled() 93 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi() 108 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi() 123 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi() 138 Global.putInt(mContext.getContentResolver(), in setIsEnabled_false_keyguardLocked_WifiConnected_shouldDisableAdbWifi() 155 Global.putInt(mContext.getContentResolver(), in setIsEnabled_true_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi() 177 Global.putInt(mContext.getContentResolver(), in setIsEnabled_true_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi() 193 Global.putInt(mContext.getContentResolver(), in setIsEnabled_true_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | ResetEsimPreferenceControllerTest.java | 70 mDevelopmentSettingsEnabled = Settings.Global.getInt(mContext.getContentResolver(), in setUp() 72 mEuiccProvisioned = Settings.Global.getInt(mContext.getContentResolver(), in setUp() 76 Settings.Global.putInt(mContext.getContentResolver(), in setUp() 78 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.EUICC_PROVISIONED, 0); in setUp() 91 Settings.Global.putInt(mContext.getContentResolver(), in tearDown() 93 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.EUICC_PROVISIONED, in tearDown() 168 Settings.Global.putInt(mContext.getContentResolver(), in getAvailabilityStatus_euiccNotProvisioned_developer_available() 177 Settings.Global.putInt(mContext.getContentResolver(), in getAvailabilityStatus_euiccNotProvisioned_developer_available_zoneWrite() 188 Settings.Global.putInt(mContext.getContentResolver(), in getAvailabilityStatus_euiccNotProvisioned_developer_available_zoneRead() 199 Settings.Global.putInt(mContext.getContentResolver(), in getAvailabilityStatus_euiccNotProvisioned_developer_available_zoneHidden() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | PreventRingingSwitchPreferenceControllerTest.java | 86 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushOff_uncheck() 96 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushVibrate_setChecked() 106 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in updateState_hushMute_setChecked() 116 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushOff_checked_returnHushVibrate() 121 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in onSwitchChanged_wasHushOff_checked_returnHushVibrate() 127 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushMute_unchecked_returnHushOff() 132 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in onSwitchChanged_wasHushMute_unchecked_returnHushOff() 139 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushMute_checked_returnHushMute() 144 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in onSwitchChanged_wasHushMute_checked_returnHushMute() 151 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushVibrate_checked_returnHushVibrate() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/ |
D | VoiceInputUtilsTest.java | 42 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_nullInteraction_nullRecognition_returnsNull() 44 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_nullInteraction_nullRecognition_returnsNull() 51 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_emptyInteraction_emptyRecognition_returnsNull() 53 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_emptyInteraction_emptyRecognition_returnsNull() 62 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_hasInteraction_returnsInteraction() 64 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_hasInteraction_returnsInteraction() 72 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_noInteraction_hasRecognition_returnsRecogntion() 74 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_noInteraction_hasRecognition_returnsRecogntion()
|
D | ScreenshotContextPreferenceControllerTest.java | 73 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_screenshotEnabled_preferenceChecked() 84 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_screenshotDisabled_preferenceUnchecked() 95 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_structureEnabled_preferenceEnabled() 106 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_structureDisabled_preferenceDisabled() 115 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_screenshotEnabled() 119 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_screenshotEnabled() 125 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleFalse_screenshotDisabled() 129 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in callChangeListener_toggleFalse_screenshotDisabled()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | ContactsProviderTest.java | 39 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts() 57 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, in testInsertContacts() 75 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile() 95 getContext().getContentResolver().insert(ContactsContract.Profile.CONTENT_URI, in testInsertProfile() 113 getContext().getContentResolver().update(ContactsContract.Profile.CONTENT_URI, in testUpdateProfile() 131 getContext().getContentResolver().query( in testQueryPhoneEnterprise() 150 getContext().getContentResolver().query( in testRawContactsEntityCorp()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/ |
D | InputMethodUtilTest.java | 89 Settings.Secure.putString(mContext.getContentResolver(), in setUp() 91 Settings.Secure.putString(mContext.getContentResolver(), in setUp() 219 assertThat(InputMethodUtil.isInputMethodEnabled(mContext.getContentResolver(), info)) in isInputMethodEnabled_isDisabled_returnsFalse() 228 assertThat(InputMethodUtil.isInputMethodEnabled(mContext.getContentResolver(), info)) in isInputMethodEnabled_isEnabled_returnsTrue() 237 InputMethodUtil.enableInputMethod(mContext.getContentResolver(), info); in enableInputMethod_alreadyEnabled_remainsUnchanged() 239 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_alreadyEnabled_remainsUnchanged() 246 Settings.Secure.putString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME() 251 InputMethodUtil.enableInputMethod(mContext.getContentResolver(), info); in enableInputMethod_noEnabledInputMethods_addsIME() 253 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME() 263 InputMethodUtil.enableInputMethod(mContext.getContentResolver(), info); in enableInputMethod_someEnabledInputMethods_addsIME() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | CaptioningAppearancePreferenceControllerTest.java | 73 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_smallestScale_shouldReturnExpectedSummary() 84 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_smallScale_shouldReturnExpectedSummary() 95 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_mediumScale_shouldReturnExpectedSummary() 106 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_largeScale_shouldReturnExpectedSummary() 117 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_largestScale_shouldReturnExpectedSummary() 128 Settings.Secure.putInt(mContext.getContentResolver(), in getSummary_setByAppPreset_shouldReturnExpectedSummary() 138 Settings.Secure.putInt(mContext.getContentResolver(), in getSummary_whiteOnBlackPreset_shouldReturnExpectedSummary() 148 Settings.Secure.putInt(mContext.getContentResolver(), in getSummary_blackOnWhitePreset_shouldReturnExpectedSummary() 158 Settings.Secure.putInt(mContext.getContentResolver(), in getSummary_yellowOnBlackPreset_shouldReturnExpectedSummary() 168 Settings.Secure.putInt(mContext.getContentResolver(), in getSummary_yellowOnBluePreset_shouldReturnExpectedSummary() [all …]
|
D | AccessibilityTimeoutUtilsTest.java | 38 Settings.Secure.putString(mContext.getContentResolver(), in getSecureAccessibilityTimeoutValue_byDefault_shouldReturnDefaultValue() 42 mContext.getContentResolver()); in getSecureAccessibilityTimeoutValue_byDefault_shouldReturnDefaultValue() 48 Settings.Secure.putString(mContext.getContentResolver(), in getSecureAccessibilityTimeoutValue_invalidTimeout_shouldReturnDefaultValue() 52 mContext.getContentResolver()); in getSecureAccessibilityTimeoutValue_invalidTimeout_shouldReturnDefaultValue() 58 Settings.Secure.putString(mContext.getContentResolver(), in getSecureAccessibilityTimeoutValue_validTimeout_shouldReturnValidValue() 62 mContext.getContentResolver()); in getSecureAccessibilityTimeoutValue_validTimeout_shouldReturnValidValue()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/ |
D | ThemeTogglePreferenceControllerTest.java | 97 ContentResolver resolver = spy(mContext.getContentResolver()); in onStart_registersContentObserver() 98 when(mContext.getContentResolver()).thenReturn(resolver); in onStart_registersContentObserver() 109 ContentResolver resolver = spy(mContext.getContentResolver()); in onStop_unregistersContentObserver() 110 when(mContext.getContentResolver()).thenReturn(resolver); in onStop_unregistersContentObserver() 120 Settings.Global.putInt(mContext.getContentResolver(), in testRefreshUi_sensorMode_sensorButtonChecked() 136 Settings.Global.putInt(mContext.getContentResolver(), in testRefreshUi_dayMode_dayButtonChecked() 152 Settings.Global.putInt(mContext.getContentResolver(), in testRefreshUi_nightMode_nightButtonChecked() 168 Settings.Global.putInt(mContext.getContentResolver(), in testHandlePreferenceChanged_setSensor() 175 int themeMode = Settings.Global.getInt(mContext.getContentResolver(), in testHandlePreferenceChanged_setSensor() 183 Settings.Global.putInt(mContext.getContentResolver(), in testHandlePreferenceChanged_setDay() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceControllerTest.java | 119 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 125 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 134 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiScanningDisabled_showsDialog() 148 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() 154 assertThat(Settings.Global.getInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() 163 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in onCreate_wifiWakeupEnabled_wifiScanningEnabled_locationEnabled_isChecked() 175 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in onCreate_wifiWakeupDisabled_wifiScanningEnabled_locationEnabled_isNotChecked() 187 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in onCreate_wifiWakeupEnabled_wifiScanningDisabled_locationEnabled_isNotChecked() 199 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in onCreate_wifiWakeupEnabled_wifiScanningEnabled_locationDisabled_isNotChecked() 214 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.WIFI_WAKEUP_ENABLED, in onConfirmWifiScanning_setsWifiScanningOn() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/wm/ |
D | BarControlPolicyTest.java | 66 mContext.getContentResolver(), in reloadFromSetting_invalidPolicyControlString_doesNotSetFilters() 80 mContext.getContentResolver(), in reloadFromSetting_validPolicyControlString_setsFilters() 94 mContext.getContentResolver(), in reloadFromSetting_filtersSet_doesNotSetFiltersAgain() 115 mContext.getContentResolver(), in getBarVisibilities_immersiveStatusForAppAndMatchingApp_hidesStatusBar() 129 mContext.getContentResolver(), in getBarVisibilities_immersiveStatusForAppAndNonMatchingApp_showsSystemBars() 143 mContext.getContentResolver(), in getBarVisibilities_immersiveStatusForAppsAndNonApp_showsSystemBars() 157 mContext.getContentResolver(), in getBarVisibilities_immersiveFullForAppAndMatchingApp_hidesSystemBars() 171 mContext.getContentResolver(), in getBarVisibilities_immersiveFullForAppAndNonMatchingApp_showsSystemBars() 185 mContext.getContentResolver(), in getBarVisibilities_immersiveFullForAppsAndNonApp_showsSystemBars()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accessibility/ |
D | ShowCaptionsSwitchPreferenceControllerTest.java | 56 Settings.Secure.putInt(mContext.getContentResolver(), in tearDown() 62 Settings.Secure.putInt(mContext.getContentResolver(), in testRefreshUi_captionsDisabled_switchSetToOff() 72 Settings.Secure.putInt(mContext.getContentResolver(), in testRefreshUi_captionsEnabled_switchSetToOn() 82 Settings.Secure.putInt(mContext.getContentResolver(), in testSwitchedSetOn_setsSystemCaptionSettingsEnabled() 88 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in testSwitchedSetOn_setsSystemCaptionSettingsEnabled() 94 Settings.Secure.putInt(mContext.getContentResolver(), in testSwitchedSetOff_setsSystemCaptionSettingsDisabled() 100 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in testSwitchedSetOff_setsSystemCaptionSettingsDisabled()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputRotaryServiceTest.java | 139 public ContentResolver getContentResolver() { in getContentResolver() method in CarInputRotaryServiceTest.MockContext 166 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() 174 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() 180 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() 189 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() 200 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty() 217 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_withoutRotaryService_whenRotaryServiceIsEmpty() 227 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_withoutRotaryService_whenRotaryServiceIsEmpty() 232 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_withoutRotaryService_whenRotaryServiceIsEmpty() 246 mMockContext.getContentResolver(), in accessibilitySettingsUpdated_accessibilityServicesAlreadyEnabled() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | SettingsFacade.java | 40 Secure.putIntForUser(context.getContentResolver(), USER_SETUP_COMPLETE, 1, userId); in setUserSetupCompleted() 47 return Secure.getInt(context.getContentResolver(), USER_SETUP_COMPLETE, 0) != 0; in isUserSetupCompleted() 54 return Global.getInt(context.getContentResolver(), DEVICE_PROVISIONED, 0) != 0; in isDeviceProvisioned() 61 Secure.putIntForUser(context.getContentResolver(), in setProfileContactRemoteSearch() 69 Secure.putIntForUser(context.getContentResolver(), in setCrossProfileCalendarEnabled() 88 context.getContentResolver(), USER_SETUP_PERSONALIZATION_STATE) in isDeferredSetup()
|