/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceControllerTest.java | 30 import android.provider.Settings; 87 assertThat(actual.getAction()).isEqualTo(Settings.ACTION_LOCATION_SOURCE_SETTINGS); in handlePreferenceClicked_locationDisabled_startNewActivity() 93 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() 99 Settings.Global.WIFI_WAKEUP_ENABLED, 1)) in handlePreferenceClicked_wifiWakeupEnabled_disablesWifiWakeup() 106 Settings.Global.putInt(mContext.getContentResolver(), in handlePreferenceClicked_wifiScanningDisabled_showsDialog() 107 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); 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() 122 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 1); in handlePreferenceClicked_wifiScanningEnabled_wifiWakeupDisabled_enablesWifiWakeup() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | CaptionCustomFragment.java | 21 import android.provider.Settings; 200 final String typeface = Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsFontFamily() 201 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE); in getCaptionsFontFamily() 207 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily() 208 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, null); in setCaptionsFontFamily() 210 Settings.Secure.putString(getContext().getContentResolver(), in setCaptionsFontFamily() 211 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, fontFamily); in setCaptionsFontFamily() 216 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsTextColor() 217 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 0) & 0x00ffffff); in getCaptionsTextColor() 222 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextColor() [all …]
|
D | DevelopmentFragment.java | 47 import android.provider.Settings; 280 || Settings.Global.getInt(mContentResolver, in onCreatePreferences() 281 Settings.Global.DEVICE_PROVISIONED, 0) == 0) { in onCreatePreferences() 589 updateSwitchPreference(mEnableAdb, Settings.Global.getInt(cr, in updateAllOptions() 590 Settings.Global.ADB_ENABLED, 0) != 0); in updateAllOptions() 596 updateSwitchPreference(mKeepScreenOn, Settings.Global.getInt(cr, in updateAllOptions() 597 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0) != 0); in updateAllOptions() 604 updateSwitchPreference(mDebugViewAttributes, Settings.Global.getInt(cr, in updateAllOptions() 605 Settings.Global.DEBUG_VIEW_ATTRIBUTES, 0) != 0); in updateAllOptions() 606 updateSwitchPreference(mForceAllowOnExternal, Settings.Global.getInt(cr, in updateAllOptions() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | FragmentResolver.java | 22 import android.provider.Settings; 81 case Settings.ACTION_SETTINGS: in getFragmentForIntent() 84 case Settings.ACTION_NIGHT_DISPLAY_SETTINGS: in getFragmentForIntent() 87 case Settings.ACTION_DISPLAY_SETTINGS: in getFragmentForIntent() 90 case Settings.ACTION_SOUND_SETTINGS: in getFragmentForIntent() 91 case Settings.Panel.ACTION_VOLUME: in getFragmentForIntent() 94 case Settings.Panel.ACTION_INTERNET_CONNECTIVITY: in getFragmentForIntent() 98 case Settings.ACTION_WIFI_SETTINGS: in getFragmentForIntent() 99 case Settings.ACTION_WIRELESS_SETTINGS: in getFragmentForIntent() 100 case Settings.Panel.ACTION_WIFI: in getFragmentForIntent() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcEnablerTest.java | 27 import android.provider.Settings; 58 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 0); in isToggleable_AirplaneModeOff_shouldReturnTrue() 59 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOff_shouldReturnTrue() 60 Settings.Global.AIRPLANE_MODE_RADIOS, Settings.Global.RADIO_NFC); in isToggleable_AirplaneModeOff_shouldReturnTrue() 61 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOff_shouldReturnTrue() 62 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS, Settings.Global.RADIO_NFC); in isToggleable_AirplaneModeOff_shouldReturnTrue() 70 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 1); in isToggleable_AirplaneModeOnNfcNotInAirplaneModeRadio_shouldReturnTrue() 71 Settings.Global.putString(contentResolver, Settings.Global.AIRPLANE_MODE_RADIOS, ""); in isToggleable_AirplaneModeOnNfcNotInAirplaneModeRadio_shouldReturnTrue() 79 Settings.Global.putInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, 1); in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue() 80 Settings.Global.putString(contentResolver, in isToggleable_AirplaneModeOnNfcToggleable_shouldReturnTrue() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SettingsValues.java | 134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); in SettingsValues() 135 mVibrateOn = Settings.readVibrationEnabled(prefs, res); in SettingsValues() 136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); in SettingsValues() 137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); in SettingsValues() 143 mIncludesOtherImesInLanguageSwitchList = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS in SettingsValues() 144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) in SettingsValues() 146 mShowsLanguageSwitchKey = Settings.ENABLE_SHOW_LANGUAGE_SWITCH_KEY_SETTINGS in SettingsValues() 147 ? Settings.readShowsLanguageSwitchKey(prefs) : true /* forcibly */; in SettingsValues() 148 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); in SettingsValues() 149 mUsePersonalizedDicts = prefs.getBoolean(Settings.PREF_KEY_USE_PERSONALIZED_DICTS, true); in SettingsValues() [all …]
|
D | AdvancedSettingsFragment.java | 59 if (!Settings.isInternal(prefs)) { in onCreate() 60 removePreference(Settings.SCREEN_DEBUG); in onCreate() 64 removePreference(Settings.PREF_VIBRATION_DURATION_SETTINGS); in onCreate() 68 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { in onCreate() 69 removePreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onCreate() 73 (ListPreference) findPreference(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onCreate() 88 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate() 101 updateListPreferenceSummaryToCurrentValue(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY); in onResume() 107 if (key.equals(Settings.PREF_POPUP_ON)) { in onSharedPreferenceChanged() 108 setPreferenceEnabled(Settings.PREF_KEY_PREVIEW_POPUP_DISMISS_DELAY, in onSharedPreferenceChanged() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/gamedriver/ |
D | GameDriverEnableForAllAppsPreferenceControllerTest.java | 35 import android.provider.Settings; 80 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in setUp() 81 Settings.Global.putInt( in setUp() 82 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in setUp() 91 Settings.Global.putInt( in getAvailability_developmentSettingsEnabledAndGameDriverSettingsOn_available() 92 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in getAvailability_developmentSettingsEnabledAndGameDriverSettingsOn_available() 99 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable() 106 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in getAvailability_gameDriverOff_conditionallyUnavailable() 113 Settings.Global.putInt( in displayPreference_shouldAddListPreference() 114 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in displayPreference_shouldAddListPreference() [all …]
|
D | GameDriverAppPreferenceControllerTest.java | 34 import android.provider.Settings; 99 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in getAvailability_developmentSettingsEnabledAndGameDriverOn_available() 100 Settings.Global.putInt( in getAvailability_developmentSettingsEnabledAndGameDriverOn_available() 101 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in getAvailability_developmentSettingsEnabledAndGameDriverOn_available() 109 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable() 117 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in getAvailability_gameDriverOff_conditionallyUnavailable() 153 Settings.Global.putInt(mResolver, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in updateState_available_visible() 154 Settings.Global.putInt( in updateState_available_visible() 155 mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_DEFAULT); in updateState_available_visible() 163 Settings.Global.putInt(mResolver, Settings.Global.GAME_DRIVER_ALL_APPS, GAME_DRIVER_OFF); in updateState_gameDriverOff_notVisible() [all …]
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | LocationSettingsTests.java | 21 import android.provider.Settings; 60 Settings.ACTION_SECURITY_SETTINGS); in testLoadingLocationSettings() 97 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationDeviceOnlyMode() 98 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_ON); in testLocationDeviceOnlyMode() 101 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationDeviceOnlyMode() 106 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationBatterySavingMode() 107 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationBatterySavingMode() 109 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_BATTERY_SAVING); in testLocationBatterySavingMode() 114 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationHighAccuracyMode() 115 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationHighAccuracyMode() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | SimulateColorSpacePreferenceControllerTest.java | 32 import android.provider.Settings; 78 throws Settings.SettingNotFoundException { in onPreferenceChange_disabledSelected_shouldTurnOffPreference() 81 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_disabledSelected_shouldTurnOffPreference() 82 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); in onPreferenceChange_disabledSelected_shouldTurnOffPreference() 89 throws Settings.SettingNotFoundException { in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 92 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 93 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 94 final int settingValue = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 95 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER); in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference() 103 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOff_shouldSetValueToDisabled() [all …]
|
D | WaitForDebuggerPreferenceControllerTest.java | 38 import android.provider.Settings; 81 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in onPreferenceChange_settingEnabledFoobarApp_waitForDebuggerShouldBeOn() 93 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in onPreferenceChange_settingDisabledFoobarApp_waitForDebuggerShouldBeOff() 103 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled() 104 Settings.Global in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled() 105 .putInt(mContentResolver, Settings.Global.WAIT_FOR_DEBUGGER, SETTING_VALUE_ON); in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled() 115 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled() 116 Settings.Global in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled() 117 .putInt(mContentResolver, Settings.Global.WAIT_FOR_DEBUGGER, SETTING_VALUE_ON); in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled() 127 Settings.Global.putString(mContentResolver, Settings.Global.DEBUG_APP, debugApp); in updateState_settingDisabledNullDebugApp_preferenceShouldNotBeCheckedAndDisabled() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | PreventRingingGesturePreferenceControllerTest.java | 27 import android.provider.Settings; 83 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_mute() 84 Settings.Secure.VOLUME_HUSH_MUTE); in testUpdateState_mute() 94 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_vibrate() 95 Settings.Secure.VOLUME_HUSH_VIBRATE); in testUpdateState_vibrate() 105 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in testUpdateState_off() 106 Settings.Secure.VOLUME_HUSH_OFF); 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() 129 Settings.Secure.VOLUME_HUSH_OFF); in testRadioButtonClicked_mute() [all …]
|
D | PreventRingingSwitchPreferenceControllerTest.java | 19 import static android.provider.Settings.Secure.VOLUME_HUSH_MUTE; 20 import static android.provider.Settings.Secure.VOLUME_HUSH_OFF; 21 import static android.provider.Settings.Secure.VOLUME_HUSH_VIBRATE; 34 import android.provider.Settings; 87 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() 123 Settings.Secure.VOLUME_HUSH_GESTURE, UNKNOWN)).isEqualTo(VOLUME_HUSH_VIBRATE); in onSwitchChanged_wasHushOff_checked_returnHushVibrate() [all …]
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | PreventRingingSwitchPreferenceController.java | 24 import android.provider.Settings; 65 int preventRinging = Settings.Secure.getInt(mContext.getContentResolver(), in displayPreference() 66 Settings.Secure.VOLUME_HUSH_GESTURE, in displayPreference() 67 Settings.Secure.VOLUME_HUSH_VIBRATE); in displayPreference() 68 boolean isChecked = preventRinging != Settings.Secure.VOLUME_HUSH_OFF; in displayPreference() 69 Settings.Secure.putInt(mContext.getContentResolver(), in displayPreference() 70 Settings.Secure.VOLUME_HUSH_GESTURE, isChecked in displayPreference() 71 ? Settings.Secure.VOLUME_HUSH_OFF in displayPreference() 72 : Settings.Secure.VOLUME_HUSH_VIBRATE); in displayPreference() 92 int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in updateState() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/development/ |
D | DevelopmentSettingsUtilTest.java | 25 import android.provider.Settings; 65 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_isAdmin_notDemo_shouldReturnFalse() 66 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 0); in isEnabled_settingsOff_isAdmin_notDemo_shouldReturnFalse() 74 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_isAdmin_notDemo_shouldReturnTrue() 75 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_isAdmin_notDemo_shouldReturnTrue() 83 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_notDemo_shouldReturnFalse() 84 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_notAdmin_notDemo_shouldReturnFalse() 94 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOn_notAdmin_isDemo_shouldReturnTrue() 95 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 1); in isEnabled_settingsOn_notAdmin_isDemo_shouldReturnTrue() 105 Settings.Global.putInt(mContext.getContentResolver(), in isEnabled_settingsOff_notAdmin_isDemo_shouldReturnFalse() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilitySettings.java | 41 import android.provider.Settings; 166 Settings.Global.WINDOW_ANIMATION_SCALE, Settings.Global.TRANSITION_ANIMATION_SCALE, 167 Settings.Global.ANIMATOR_DURATION_SCALE 348 Settings.Secure.putInt(getContentResolver(), in handleLongPressTimeoutPreferenceChange() 349 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue)); in handleLongPressTimeoutPreferenceChange() 397 return (Settings.Global.getInt( in isRampingRingerEnabled() 399 Settings.Global.APPLY_RAMPING_RINGER, 0) == 1) in isRampingRingerEnabled() 405 Settings.Secure.putInt(getContentResolver(), in handleToggleTextContrastPreferenceClick() 406 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, in handleToggleTextContrastPreferenceClick() 411 Settings.Secure.putInt(getContentResolver(), in handleTogglePowerButtonEndsCallPreferenceClick() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RedactNotificationPreferenceControllerTest.java | 21 import static android.provider.Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS; 22 import static android.provider.Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS; 41 import android.provider.Settings; 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() [all …]
|
D | ShowOnLockscreenNotificationPreferenceControllerTest.java | 20 import static android.provider.Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS; 21 import static android.provider.Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS; 29 import android.provider.Settings; 84 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() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/ |
D | AssistConfigBasePreferenceControllerTest.java | 32 import android.provider.Settings; 87 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED)); in getSettingUris() 125 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in getAvailabilityStatus_hasAssistComponent_isAvailable() 139 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in onStart_registersObserver() 145 Settings.Secure.getUriFor(Settings.Secure.ASSISTANT))).isNotEmpty(); in onStart_registersObserver() 147 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED))).isNotEmpty(); in onStart_registersObserver() 153 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in onStop_unregistersObserver() 160 Settings.Secure.getUriFor(Settings.Secure.ASSISTANT))).isEmpty(); in onStop_unregistersObserver() 162 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED))).isEmpty(); in onStop_unregistersObserver() 168 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in onChange_changeRegisteredSetting_callsRefreshUi() [all …]
|
D | ScreenshotContextPreferenceControllerTest.java | 26 import android.provider.Settings; 71 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in setUp() 81 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_screenshotEnabled_preferenceChecked() 82 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 1); in refreshUi_screenshotEnabled_preferenceChecked() 92 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_screenshotDisabled_preferenceUnchecked() 93 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 0); in refreshUi_screenshotDisabled_preferenceUnchecked() 103 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_structureEnabled_preferenceEnabled() 104 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1); in refreshUi_structureEnabled_preferenceEnabled() 114 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_structureDisabled_preferenceDisabled() 115 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0); in refreshUi_structureDisabled_preferenceDisabled() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | AccessibilitySettings.java | 40 import android.provider.Settings; 167 Settings.Global.WINDOW_ANIMATION_SCALE, Settings.Global.TRANSITION_ANIMATION_SCALE, 168 Settings.Global.ANIMATOR_DURATION_SCALE 347 Settings.Secure.putInt(getContentResolver(), in handleLongPressTimeoutPreferenceChange() 348 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue)); in handleLongPressTimeoutPreferenceChange() 395 Settings.Secure.putInt(getContentResolver(), in handleToggleTextContrastPreferenceClick() 396 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, in handleToggleTextContrastPreferenceClick() 401 Settings.Secure.putInt(getContentResolver(), in handleTogglePowerButtonEndsCallPreferenceClick() 402 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, in handleTogglePowerButtonEndsCallPreferenceClick() 404 ? Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP in handleTogglePowerButtonEndsCallPreferenceClick() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/ |
D | InputMethodUtilTest.java | 31 import android.provider.Settings; 87 Settings.Secure.putString(mContext.getContentResolver(), in setUp() 88 Settings.Secure.ENABLED_INPUT_METHODS, DUMMY_ENABLED_INPUT_METHODS); in setUp() 89 Settings.Secure.putString(mContext.getContentResolver(), in setUp() 90 Settings.Secure.DEFAULT_INPUT_METHOD, DUMMY_ENABLED_INPUT_METHOD_ID_DEFAULT); in setUp() 174 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_alreadyEnabled_remainsUnchanged() 175 Settings.Secure.ENABLED_INPUT_METHODS)).isEqualTo(DUMMY_ENABLED_INPUT_METHODS); in enableInputMethod_alreadyEnabled_remainsUnchanged() 180 Settings.Secure.putString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME() 181 Settings.Secure.ENABLED_INPUT_METHODS, ""); in enableInputMethod_noEnabledInputMethods_addsIME() 187 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/ |
D | PreventRingingSwitchPreferenceController.java | 24 import android.provider.Settings; 65 int preventRinging = Settings.Secure.getInt(mContext.getContentResolver(), in displayPreference() 66 Settings.Secure.VOLUME_HUSH_GESTURE, in displayPreference() 67 Settings.Secure.VOLUME_HUSH_VIBRATE); in displayPreference() 68 boolean isChecked = preventRinging != Settings.Secure.VOLUME_HUSH_OFF; in displayPreference() 69 Settings.Secure.putInt(mContext.getContentResolver(), in displayPreference() 70 Settings.Secure.VOLUME_HUSH_GESTURE, isChecked in displayPreference() 71 ? Settings.Secure.VOLUME_HUSH_OFF in displayPreference() 72 : Settings.Secure.VOLUME_HUSH_VIBRATE); in displayPreference() 92 int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in updateState() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | LocationScanningPreferenceControllerTest.java | 22 import android.provider.Settings; 51 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOn() 52 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 1); in testLocationScanning_WifiOnBleOn() 53 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOn() 54 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE, 1); in testLocationScanning_WifiOnBleOn() 61 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOff() 62 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 1); in testLocationScanning_WifiOnBleOff() 63 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOnBleOff() 64 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE, 0); in testLocationScanning_WifiOnBleOff() 71 Settings.Global.putInt(mContext.getContentResolver(), in testLocationScanning_WifiOffBleOn() [all …]
|