Home
last modified time | relevance | path

Searched refs:Secure (Results 1 – 25 of 388) sorted by relevance

12345678910>>...16

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java200 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()
223 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 0xff000000) & 0xff000000; in setCaptionsTextColor()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DPreventRingingGesturePreferenceControllerTest.java83 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()
132 assertThat(Settings.Secure.VOLUME_HUSH_MUTE).isEqualTo( in testRadioButtonClicked_mute()
[all …]
DPreventRingingSwitchPreferenceControllerTest.java19 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;
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()
128 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushMute_unchecked_returnHushOff()
[all …]
DGesturesSettingsPreferenceControllerTest.java108 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 0); in updateState_assistSupported_shouldSetToAssistGestureStatus()
109 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 0); in updateState_assistSupported_shouldSetToAssistGestureStatus()
113 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 1); in updateState_assistSupported_shouldSetToAssistGestureStatus()
114 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 0); in updateState_assistSupported_shouldSetToAssistGestureStatus()
118 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 0); in updateState_assistSupported_shouldSetToAssistGestureStatus()
119 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 1); in updateState_assistSupported_shouldSetToAssistGestureStatus()
/packages/apps/Settings/src/com/android/settings/gestures/
DPreventRingingSwitchPreferenceController.java65 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()
93 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE); in updateState()
[all …]
DPreventRingingGesturePreferenceController.java120 if (preventRingingSetting != Settings.Secure.getInt(mContext.getContentResolver(), in onRadioButtonClicked()
121 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE)) { in onRadioButtonClicked()
122 Settings.Secure.putInt(mContext.getContentResolver(), in onRadioButtonClicked()
123 Settings.Secure.VOLUME_HUSH_GESTURE, preventRingingSetting); in onRadioButtonClicked()
129 int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in updateState()
130 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE); in updateState()
131 final boolean isVibrate = preventRingingSetting == Settings.Secure.VOLUME_HUSH_VIBRATE; in updateState()
132 final boolean isMute = preventRingingSetting == Settings.Secure.VOLUME_HUSH_MUTE; in updateState()
140 if (preventRingingSetting == Settings.Secure.VOLUME_HUSH_OFF) { in updateState()
183 return Settings.Secure.VOLUME_HUSH_MUTE; in keyToSetting()
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DLocationSettingsTests.java97 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()
117 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_ON); in testLocationHighAccuracyMode()
148 if (mode == Settings.Secure.LOCATION_MODE_ON) { in verifyLocationSettingsMode()
[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()
82 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); in onPreferenceChange_disabledSelected_shouldTurnOffPreference()
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()
104 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF); in updateState_settingOff_shouldSetValueToDisabled()
113 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy()
114 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_ON); in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactNotificationPreferenceControllerTest.java21 import static android.provider.Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS;
22 import static android.provider.Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS;
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()
[all …]
DShowOnLockscreenNotificationPreferenceControllerTest.java20 import static android.provider.Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS;
21 import static android.provider.Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS;
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()
152 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_dpmSaysNo()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/
DAssistConfigBasePreferenceControllerTest.java87 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()
176 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED)), 0); in onChange_changeRegisteredSetting_callsRefreshUi()
[all …]
DScreenshotContextPreferenceControllerTest.java71 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()
123 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_screenshotEnabled()
[all …]
DTextContextPreferenceControllerTest.java71 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in setUp()
81 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_contextEnabled_preferenceChecked()
82 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1); in refreshUi_contextEnabled_preferenceChecked()
92 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_contextDisabled_preferenceUnchecked()
93 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0); in refreshUi_contextDisabled_preferenceUnchecked()
101 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_contextEnabled()
102 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0); in callChangeListener_toggleTrue_contextEnabled()
105 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_contextEnabled()
106 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0)).isEqualTo(1); in callChangeListener_toggleTrue_contextEnabled()
111 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleFalse_contextDisabled()
[all …]
DVoiceInputUtilsTest.java62 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
63 Settings.Secure.VOICE_INTERACTION_SERVICE, ""); in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
64 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
65 Settings.Secure.VOICE_RECOGNITION_SERVICE, ""); in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
73 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_hasInteraction_returnsInteraction()
74 Settings.Secure.VOICE_INTERACTION_SERVICE, interaction.flattenToString()); in getCurrentService_hasInteraction_returnsInteraction()
75 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_hasInteraction_returnsInteraction()
76 Settings.Secure.VOICE_RECOGNITION_SERVICE, recognition.flattenToString()); in getCurrentService_hasInteraction_returnsInteraction()
83 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_noInteraction_hasRecognition_returnsRecogntion()
84 Settings.Secure.VOICE_INTERACTION_SERVICE, ""); in getCurrentService_noInteraction_hasRecognition_returnsRecogntion()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/
DPreventRingingSwitchPreferenceController.java65 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()
93 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE); in updateState()
[all …]
DPreventRingingGesturePreferenceController.java120 if (preventRingingSetting != Settings.Secure.getInt(mContext.getContentResolver(), in onRadioButtonClicked()
121 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE)) { in onRadioButtonClicked()
122 Settings.Secure.putInt(mContext.getContentResolver(), in onRadioButtonClicked()
123 Settings.Secure.VOLUME_HUSH_GESTURE, preventRingingSetting); in onRadioButtonClicked()
129 int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in updateState()
130 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE); in updateState()
131 final boolean isVibrate = preventRingingSetting == Settings.Secure.VOLUME_HUSH_VIBRATE; in updateState()
132 final boolean isMute = preventRingingSetting == Settings.Secure.VOLUME_HUSH_MUTE; in updateState()
140 if (preventRingingSetting == Settings.Secure.VOLUME_HUSH_OFF) { in updateState()
183 return Settings.Secure.VOLUME_HUSH_MUTE; in keyToSetting()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DInputMethodUtilTest.java91 Settings.Secure.putString(mContext.getContentResolver(), in setUp()
92 Settings.Secure.ENABLED_INPUT_METHODS, DUMMY_ENABLED_INPUT_METHODS); in setUp()
93 Settings.Secure.putString(mContext.getContentResolver(), in setUp()
94 Settings.Secure.DEFAULT_INPUT_METHOD, DUMMY_ENABLED_INPUT_METHOD_ID_DEFAULT); in setUp()
222 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_alreadyEnabled_remainsUnchanged()
223 Settings.Secure.ENABLED_INPUT_METHODS)).isEqualTo(DUMMY_ENABLED_INPUT_METHODS); in enableInputMethod_alreadyEnabled_remainsUnchanged()
228 Settings.Secure.putString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME()
229 Settings.Secure.ENABLED_INPUT_METHODS, ""); in enableInputMethod_noEnabledInputMethods_addsIME()
235 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME()
236 Settings.Secure.ENABLED_INPUT_METHODS)).isEqualTo( in enableInputMethod_noEnabledInputMethods_addsIME()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DSimulateColorSpacePreferenceController.java73 final boolean enabled = Settings.Secure.getInt( in updateSimulateColorSpace()
74 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in updateSimulateColorSpace()
78 final String mode = Integer.toString(Settings.Secure.getInt( in updateSimulateColorSpace()
79 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, in updateSimulateColorSpace()
101 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
104 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
106 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, newMode); in writeSimulateColorSpace()
116 final boolean enabled = Settings.Secure.getInt( in usingDevelopmentColorSpace()
117 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in usingDevelopmentColorSpace()
120 final String mode = Integer.toString(Settings.Secure.getInt( in usingDevelopmentColorSpace()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DSimulateColorSpacePreferenceController.java73 final boolean enabled = Settings.Secure.getInt( in updateSimulateColorSpace()
74 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in updateSimulateColorSpace()
78 final String mode = Integer.toString(Settings.Secure.getInt( in updateSimulateColorSpace()
79 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, in updateSimulateColorSpace()
101 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
104 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
106 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, newMode); in writeSimulateColorSpace()
116 final boolean enabled = Settings.Secure.getInt( in usingDevelopmentColorSpace()
117 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in usingDevelopmentColorSpace()
120 final String mode = Integer.toString(Settings.Secure.getInt( in usingDevelopmentColorSpace()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityShortcutPreferenceFragment.java78 Settings.Secure.putInt(getContentResolver(), in onCreate()
79 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, in onCreate()
92 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN), in onResume()
115 Settings.Secure.putInt( in onInstallSwitchBarToggleSwitch()
116 getContentResolver(), Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, 1); in onInstallSwitchBarToggleSwitch()
120 onPreferenceToggled(Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, enabled); in onInstallSwitchBarToggleSwitch()
127 Settings.Secure.putInt(getContentResolver(), preferenceKey, enabled ? 1 : 0); in onPreferenceToggled()
137 Settings.Secure.putInt( in updatePreferences()
138 getContentResolver(), Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, 0); in updatePreferences()
140 boolean isEnabled = Settings.Secure in updatePreferences()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DAccessibilityShortcutPreferenceFragment.java78 Settings.Secure.putInt(getContentResolver(), in onCreate()
79 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, in onCreate()
92 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN), in onResume()
115 Settings.Secure.putInt( in onInstallSwitchBarToggleSwitch()
116 getContentResolver(), Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, 1); in onInstallSwitchBarToggleSwitch()
120 onPreferenceToggled(Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, enabled); in onInstallSwitchBarToggleSwitch()
127 Settings.Secure.putInt(getContentResolver(), preferenceKey, enabled ? 1 : 0); in onPreferenceToggled()
137 Settings.Secure.putInt( in updatePreferences()
138 getContentResolver(), Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, 0); in updatePreferences()
140 boolean isEnabled = Settings.Secure in updatePreferences()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionFragment.java198 return Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsEnabled()
199 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 0) != 0; in getCaptionsEnabled()
203 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsEnabled()
204 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, enabled ? 1 : 0); in setCaptionsEnabled()
208 return Settings.Secure.getInt(getContext().getContentResolver(), in getCaptionsStyle()
209 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, 0); in getCaptionsStyle()
213 Settings.Secure.putInt(getContext().getContentResolver(), in setCaptionsStyle()
214 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, style); in setCaptionsStyle()
220 final String captionLocale = Settings.Secure.getString(getContext().getContentResolver(), in getCaptionsLocale()
221 Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE); in getCaptionsLocale()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DMagnificationGesturesPreferenceControllerTest.java63 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_shouldRefreshSummary()
64 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, ON); in updateState_shouldRefreshSummary()
69 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_shouldRefreshSummary()
70 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, OFF); in updateState_shouldRefreshSummary()
87 Settings.Secure.putInt(mContext.getContentResolver(), in isChecked_enabled()
88 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, ON); in isChecked_enabled()
95 Settings.Secure.putInt(mContext.getContentResolver(), in isChecked_disabled()
96 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, OFF); in isChecked_disabled()
105 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in setChecked_enabled()
106 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, -1)) in setChecked_enabled()
[all …]
DMagnificationNavbarPreferenceControllerTest.java88 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_shouldRefreshSummary()
89 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, ON); in updateState_shouldRefreshSummary()
94 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_shouldRefreshSummary()
95 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, OFF); in updateState_shouldRefreshSummary()
112 Settings.Secure.putInt(mContext.getContentResolver(), in isChecked_enabled()
113 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, ON); in isChecked_enabled()
120 Settings.Secure.putInt(mContext.getContentResolver(), in isChecked_disabled()
121 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, OFF); in isChecked_disabled()
130 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in setChecked_enabled()
131 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, -1)) in setChecked_enabled()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DScreenshotContextPreferenceController.java41 boolean checked = Settings.Secure.getInt(getContext().getContentResolver(), in updateState()
42 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 1) != 0; in updateState()
45 boolean contextChecked = Settings.Secure.getInt(getContext().getContentResolver(), in updateState()
46 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1) != 0; in updateState()
52 Settings.Secure.putInt(getContext().getContentResolver(), in handlePreferenceChanged()
53 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, (boolean) newValue ? 1 : 0); in handlePreferenceChanged()
60 Settings.Secure.getUriFor(Settings.Secure.ASSIST_SCREENSHOT_ENABLED), in getSettingUris()
61 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED)); in getSettingUris()

12345678910>>...16