Home
last modified time | relevance | path

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

12345678910>>...17

/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/src/com/android/settings/gestures/
DOneHandedSettingsUtils.java45 Settings.Secure.getUriFor(Settings.Secure.ONE_HANDED_MODE_ENABLED);
47 Settings.Secure.getUriFor(Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED);
49 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS);
90 return Settings.Secure.getIntForUser(context.getContentResolver(), in isOneHandedModeEnabled()
91 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, sCurrentUserId) == ON; in isOneHandedModeEnabled()
101 Settings.Secure.putIntForUser(context.getContentResolver(), in setOneHandedModeEnabled()
102 Settings.Secure.ONE_HANDED_MODE_ENABLED, enable ? ON : OFF, sCurrentUserId); in setOneHandedModeEnabled()
112 return Settings.Secure.getIntForUser(context.getContentResolver(), in isTapsAppToExitEnabled()
113 Settings.Secure.TAPS_APP_TO_EXIT, OFF, sCurrentUserId) == ON; in isTapsAppToExitEnabled()
123 return Settings.Secure.putIntForUser(context.getContentResolver(), in setTapsAppToExitEnabled()
[all …]
DPreventRingingSwitchPreferenceController.java59 int preventRinging = Settings.Secure.getInt(mContext.getContentResolver(), in displayPreference()
60 Settings.Secure.VOLUME_HUSH_GESTURE, in displayPreference()
61 Settings.Secure.VOLUME_HUSH_VIBRATE); in displayPreference()
62 boolean isChecked = preventRinging != Settings.Secure.VOLUME_HUSH_OFF; in displayPreference()
63 Settings.Secure.putInt(mContext.getContentResolver(), in displayPreference()
64 Settings.Secure.VOLUME_HUSH_GESTURE, isChecked in displayPreference()
65 ? Settings.Secure.VOLUME_HUSH_OFF in displayPreference()
66 : Settings.Secure.VOLUME_HUSH_VIBRATE); in displayPreference()
85 int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in updateState()
86 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE); in updateState()
[all …]
DPreventRingingParentPreferenceController.java19 import static android.provider.Settings.Secure.VOLUME_HUSH_GESTURE;
20 import static android.provider.Settings.Secure.VOLUME_HUSH_MUTE;
21 import static android.provider.Settings.Secure.VOLUME_HUSH_VIBRATE;
71 final int preventRinging = Settings.Secure.getInt(mContext.getContentResolver(), in isChecked()
72 Settings.Secure.VOLUME_HUSH_GESTURE, in isChecked()
73 Settings.Secure.VOLUME_HUSH_VIBRATE); in isChecked()
74 return preventRinging != Settings.Secure.VOLUME_HUSH_OFF; in isChecked()
79 final int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in setChecked()
80 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE); in setChecked()
81 final int newRingingSetting = preventRingingSetting == Settings.Secure.VOLUME_HUSH_OFF in setChecked()
[all …]
DPreventRingingGesturePreferenceController.java105 if (preventRingingSetting != Settings.Secure.getInt(mContext.getContentResolver(), in onRadioButtonClicked()
106 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE)) { in onRadioButtonClicked()
107 Settings.Secure.putInt(mContext.getContentResolver(), in onRadioButtonClicked()
108 Settings.Secure.VOLUME_HUSH_GESTURE, preventRingingSetting); in onRadioButtonClicked()
114 int preventRingingSetting = Settings.Secure.getInt(mContext.getContentResolver(), in updateState()
115 Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_VIBRATE); in updateState()
116 final boolean isVibrate = preventRingingSetting == Settings.Secure.VOLUME_HUSH_VIBRATE; in updateState()
117 final boolean isMute = preventRingingSetting == Settings.Secure.VOLUME_HUSH_MUTE; in updateState()
125 if (preventRingingSetting == Settings.Secure.VOLUME_HUSH_OFF) { in updateState()
152 return Settings.Secure.VOLUME_HUSH_MUTE; in keyToSetting()
[all …]
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPluginServiceTest.java50 assertThat(Settings.Secure.getInt( in onCreate_serviceAvailable_enablesFeatureInSettings()
51 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE, -1)).isEqualTo(1); in onCreate_serviceAvailable_enablesFeatureInSettings()
52 assertThat(Settings.Secure.getInt( in onCreate_serviceAvailable_enablesFeatureInSettings()
53 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(1); in onCreate_serviceAvailable_enablesFeatureInSettings()
63 assertThat(Settings.Secure.getInt( in onCreate_serviceUnavailable_disablesFeatureInSettings()
64 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE, -1)).isEqualTo(0); in onCreate_serviceUnavailable_disablesFeatureInSettings()
65 assertThat(Settings.Secure.getInt( in onCreate_serviceUnavailable_disablesFeatureInSettings()
66 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(1); in onCreate_serviceUnavailable_disablesFeatureInSettings()
72 Settings.Secure.putInt(cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, 0); in onCreate_doesNotOverridePanelEnabledSettingIfOff()
76 assertThat(Settings.Secure.getInt( in onCreate_doesNotOverridePanelEnabledSettingIfOff()
[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;
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()
122 Settings.Secure.VOLUME_HUSH_GESTURE, UNKNOWN)).isEqualTo(VOLUME_HUSH_VIBRATE); in onSwitchChanged_wasHushOff_checked_returnHushVibrate()
127 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, in onSwitchChanged_wasHushMute_unchecked_returnHushOff()
[all …]
DOneHandedSettingsUtilsTest.java61 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setOneHandedModeEnabled_setEnable_shouldReturnEnabled()
62 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, mCurrentUserId)).isEqualTo(ON); in setOneHandedModeEnabled_setEnable_shouldReturnEnabled()
69 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setOneHandedModeEnabled_setDisable_shouldReturnDisabled()
70 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, mCurrentUserId)).isEqualTo(OFF); in setOneHandedModeEnabled_setDisable_shouldReturnDisabled()
77 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setTapsAppToExitEnabled_setEnable_shouldReturnEnabled()
78 Settings.Secure.TAPS_APP_TO_EXIT, OFF, mCurrentUserId)).isEqualTo(ON); in setTapsAppToExitEnabled_setEnable_shouldReturnEnabled()
85 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setTapsAppToExitEnabled_setDisable_shouldReturnDisabled()
86 Settings.Secure.TAPS_APP_TO_EXIT, OFF, mCurrentUserId)).isEqualTo(OFF); in setTapsAppToExitEnabled_setDisable_shouldReturnDisabled()
94 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setTimeout_setNever_shouldReturnNeverValue()
95 Settings.Secure.ONE_HANDED_MODE_TIMEOUT, in setTimeout_setNever_shouldReturnNeverValue()
[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/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/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/
DAssistConfigBasePreferenceControllerTest.java83 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED)); in getSettingUris()
116 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in getAvailabilityStatus_hasAssistComponent_isAvailable()
130 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in onStart_registersObserver()
136 Settings.Secure.getUriFor(Settings.Secure.ASSISTANT))).isNotEmpty(); in onStart_registersObserver()
138 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED))).isNotEmpty(); in onStart_registersObserver()
144 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in onStop_unregistersObserver()
151 Settings.Secure.getUriFor(Settings.Secure.ASSISTANT))).isEmpty(); in onStop_unregistersObserver()
153 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED))).isEmpty(); in onStop_unregistersObserver()
159 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in onChange_changeRegisteredSetting_callsRefreshUi()
167 Settings.Secure.getUriFor(Settings.Secure.ASSIST_STRUCTURE_ENABLED)), 0); in onChange_changeRegisteredSetting_callsRefreshUi()
[all …]
DScreenshotContextPreferenceControllerTest.java63 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in setUp()
73 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_screenshotEnabled_preferenceChecked()
74 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 1); in refreshUi_screenshotEnabled_preferenceChecked()
84 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_screenshotDisabled_preferenceUnchecked()
85 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 0); in refreshUi_screenshotDisabled_preferenceUnchecked()
95 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_structureEnabled_preferenceEnabled()
96 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1); in refreshUi_structureEnabled_preferenceEnabled()
106 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_structureDisabled_preferenceDisabled()
107 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0); in refreshUi_structureDisabled_preferenceDisabled()
115 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_screenshotEnabled()
[all …]
DTextContextPreferenceControllerTest.java63 Settings.Secure.putStringForUser(mContext.getContentResolver(), Settings.Secure.ASSISTANT, in setUp()
73 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_contextEnabled_preferenceChecked()
74 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1); in refreshUi_contextEnabled_preferenceChecked()
84 Settings.Secure.putInt(mContext.getContentResolver(), in refreshUi_contextDisabled_preferenceUnchecked()
85 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0); in refreshUi_contextDisabled_preferenceUnchecked()
93 Settings.Secure.putInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_contextEnabled()
94 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0); in callChangeListener_toggleTrue_contextEnabled()
97 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in callChangeListener_toggleTrue_contextEnabled()
98 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0)).isEqualTo(1); in callChangeListener_toggleTrue_contextEnabled()
103 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/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DFloatingMenuTransparencyPreferenceControllerTest.java19 import static android.provider.Settings.Secure.ACCESSIBILITY_BUTTON_MODE_FLOATING_MENU;
20 import static android.provider.Settings.Secure.ACCESSIBILITY_BUTTON_MODE_NAVIGATION_BAR;
72 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in getAvailabilityStatus_a11yBtnModeFloatingMenu_returnAvailable()
80 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in getAvailabilityStatus_a11yBtnModeNavigationBar_returnDisabledDependentSetting()
89 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in onChange_a11yBtnModeChangeToNavigationBar_preferenceDisabled()
100 Settings.Secure.putFloat(mContext.getContentResolver(), in getSliderPosition_putNormalOpacityValue_expectedValue()
101 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_OPACITY, in getSliderPosition_putNormalOpacityValue_expectedValue()
109 Settings.Secure.putFloat(mContext.getContentResolver(), in getSliderPosition_putOutOfBoundOpacityValue_defaultValue()
110 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_OPACITY, 0.01f); in getSliderPosition_putOutOfBoundOpacityValue_defaultValue()
121 final float value = Settings.Secure.getFloat(mContext.getContentResolver(), in setSliderPosition_expectedValue()
[all …]
DAccessibilityButtonPreviewPreferenceControllerTest.java19 import static android.provider.Settings.Secure.ACCESSIBILITY_BUTTON_MODE_FLOATING_MENU;
20 import static android.provider.Settings.Secure.ACCESSIBILITY_BUTTON_MODE_NAVIGATION_BAR;
70 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in onChange_a11yBtnModeNavigationBar_getNavigationBarDrawable()
83 Settings.Secure.putInt(mContentResolver, in onChange_updatePreviewPreferenceWithConfig_expectedPreviewDrawable()
84 Settings.Secure.ACCESSIBILITY_BUTTON_MODE, ACCESSIBILITY_BUTTON_MODE_FLOATING_MENU); in onChange_updatePreviewPreferenceWithConfig_expectedPreviewDrawable()
85 Settings.Secure.putInt(mContentResolver, in onChange_updatePreviewPreferenceWithConfig_expectedPreviewDrawable()
86 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_SIZE, /* small size */ 0); in onChange_updatePreviewPreferenceWithConfig_expectedPreviewDrawable()
87 Settings.Secure.putFloat(mContentResolver, in onChange_updatePreviewPreferenceWithConfig_expectedPreviewDrawable()
88 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_OPACITY, 0.1f); in onChange_updatePreviewPreferenceWithConfig_expectedPreviewDrawable()
104 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_BUTTON_MODE), false, in onResume_registerSpecificContentObserver()
[all …]
DFloatingMenuFadePreferenceControllerTest.java19 import static android.provider.Settings.Secure.ACCESSIBILITY_BUTTON_MODE_FLOATING_MENU;
20 import static android.provider.Settings.Secure.ACCESSIBILITY_BUTTON_MODE_NAVIGATION_BAR;
72 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in getAvailabilityStatus_a11yBtnModeFloatingMenu_returnAvailable()
80 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in getAvailabilityStatus_a11yBtnModeNavigationBar_returnDisabledDependentSetting()
88 Settings.Secure.putInt(mContentResolver, in updateState_keyFloatingMenuFadeDisabled_fadeIsDisabled()
89 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED, OFF); in updateState_keyFloatingMenuFadeDisabled_fadeIsDisabled()
100 final int actualValue = Settings.Secure.getInt(mContentResolver, in onPreferenceChange_floatingMenuFadeEnabled_keyFloatingMenuFadeIsOn()
101 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED, OFF); in onPreferenceChange_floatingMenuFadeEnabled_keyFloatingMenuFadeIsOn()
108 Settings.Secure.putInt(mContentResolver, in onChange_floatingMenuFadeChangeToDisabled_preferenceDisabled()
109 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED, OFF); in onChange_floatingMenuFadeChangeToDisabled_preferenceDisabled()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
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 …]
DRedactNotificationPreferenceControllerTest.java21 import static android.provider.Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS;
22 import static android.provider.Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS;
126 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noSecureLockscreen()
129 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noSecureLockscreen()
148 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noWorkProfile()
207 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_adminSaysNoNotifications()
210 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_adminSaysNoNotifications()
222 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noNotifications()
225 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_noNotifications()
237 Settings.Secure.putIntForUser(mContext.getContentResolver(), in getAvailabilityStatus_workProfileLocked()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/
DInputMethodUtilTest.java89 Settings.Secure.putString(mContext.getContentResolver(), in setUp()
90 Settings.Secure.ENABLED_INPUT_METHODS, PLACEHOLDER_ENABLED_INPUT_METHODS); in setUp()
91 Settings.Secure.putString(mContext.getContentResolver(), in setUp()
92 Settings.Secure.DEFAULT_INPUT_METHOD, PLACEHOLDER_ENABLED_INPUT_METHOD_ID_DEFAULT); in setUp()
226 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_alreadyEnabled_remainsUnchanged()
227 Settings.Secure.ENABLED_INPUT_METHODS)).isEqualTo( in enableInputMethod_alreadyEnabled_remainsUnchanged()
233 Settings.Secure.putString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME()
234 Settings.Secure.ENABLED_INPUT_METHODS, ""); in enableInputMethod_noEnabledInputMethods_addsIME()
240 assertThat(Settings.Secure.getString(mContext.getContentResolver(), in enableInputMethod_noEnabledInputMethods_addsIME()
241 Settings.Secure.ENABLED_INPUT_METHODS)).isEqualTo( in enableInputMethod_noEnabledInputMethods_addsIME()
[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/tests/unit/src/com/android/settings/sound/
DMediaControlsRecommendationControllerTest.java51 mOriginalRecommendation = Settings.Secure.getInt(mContentResolver, in setUp()
52 Settings.Secure.MEDIA_CONTROLS_RECOMMENDATION, 1); in setUp()
58 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RECOMMENDATION, in tearDown()
69 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RECOMMENDATION, 1); in setChecked_enable_shouldTurnOn()
75 assertThat(Settings.Secure.getInt(mContentResolver, in setChecked_enable_shouldTurnOn()
76 Settings.Secure.MEDIA_CONTROLS_RECOMMENDATION, -1)).isEqualTo(0); in setChecked_enable_shouldTurnOn()
81 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RECOMMENDATION, 0); in setChecked_disable_shouldTurnOff()
87 assertThat(Settings.Secure.getInt(mContentResolver, in setChecked_disable_shouldTurnOff()
88 Settings.Secure.MEDIA_CONTROLS_RECOMMENDATION, -1)).isEqualTo(1); in setChecked_disable_shouldTurnOff()
DMediaControlsPreferenceControllerTest.java51 mOriginalResume = Settings.Secure.getInt(mContentResolver, in setUp()
52 Settings.Secure.MEDIA_CONTROLS_RESUME, 1); in setUp()
58 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RESUME, in tearDown()
69 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RESUME, 1); in setChecked_enable_shouldTurnOn()
75 assertThat(Settings.Secure.getInt(mContentResolver, in setChecked_enable_shouldTurnOn()
76 Settings.Secure.MEDIA_CONTROLS_RESUME, -1)).isEqualTo(0); in setChecked_enable_shouldTurnOn()
81 Settings.Secure.putInt(mContentResolver, Settings.Secure.MEDIA_CONTROLS_RESUME, 0); in setChecked_disable_shouldTurnOff()
87 assertThat(Settings.Secure.getInt(mContentResolver, in setChecked_disable_shouldTurnOff()
88 Settings.Secure.MEDIA_CONTROLS_RESUME, -1)).isEqualTo(1); in setChecked_disable_shouldTurnOff()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/
DMatchContentFrameRateFragment.java110 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_SEAMLESSS_ONLY; in onPreferenceTreeClick()
114 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_ALWAYS; in onPreferenceTreeClick()
118 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_NEVER; in onPreferenceTreeClick()
129 Settings.Secure.putInt( in onPreferenceTreeClick()
131 Settings.Secure.MATCH_CONTENT_FRAME_RATE, in onPreferenceTreeClick()
147 return Settings.Secure.getInt( in getCurrentSettingValue()
149 Settings.Secure.MATCH_CONTENT_FRAME_RATE, in getCurrentSettingValue()
150 Settings.Secure.MATCH_CONTENT_FRAMERATE_SEAMLESSS_ONLY); in getCurrentSettingValue()
156 case (Settings.Secure.MATCH_CONTENT_FRAMERATE_NEVER): { in preferenceKeyFromSetting()
159 case (Settings.Secure.MATCH_CONTENT_FRAMERATE_SEAMLESSS_ONLY): { in preferenceKeyFromSetting()
[all …]

12345678910>>...17