Home
last modified time | relevance | path

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

12345678910>>...27

/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.java46 Settings.Secure.getUriFor(Settings.Secure.ONE_HANDED_MODE_ENABLED);
48 Settings.Secure.getUriFor(Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED);
50 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS);
52 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE);
54 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_QS_TARGETS);
95 return Settings.Secure.getIntForUser(context.getContentResolver(), in isOneHandedModeEnabled()
96 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, sCurrentUserId) == ON; in isOneHandedModeEnabled()
106 Settings.Secure.putIntForUser(context.getContentResolver(), in setOneHandedModeEnabled()
107 Settings.Secure.ONE_HANDED_MODE_ENABLED, enable ? ON : OFF, sCurrentUserId); in setOneHandedModeEnabled()
117 return Settings.Secure.getIntForUser(context.getContentResolver(), in isTapsAppToExitEnabled()
[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 …]
/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;
84 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in getAvailabilityStatus_a11yBtnModeFloatingMenu_returnAvailable()
92 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in getAvailabilityStatus_a11yBtnModeNavigationBar_returnDisabledDependentSetting()
100 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in displayPreference_floatingMenuMode_fadeEnabled_preferenceEnabled()
102 Settings.Secure.putInt(mContentResolver, in displayPreference_floatingMenuMode_fadeEnabled_preferenceEnabled()
103 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED, /* ON */ 1); in displayPreference_floatingMenuMode_fadeEnabled_preferenceEnabled()
112 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in displayPreference_floatingMenuMode_fadeDisabled_preferenceDisabled()
114 Settings.Secure.putInt(mContentResolver, in displayPreference_floatingMenuMode_fadeDisabled_preferenceDisabled()
115 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED, /* OFF */ 0); in displayPreference_floatingMenuMode_fadeDisabled_preferenceDisabled()
[all …]
DCaptioningAppearancePreferenceControllerTest.java73 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_smallestScale_shouldReturnExpectedSummary()
74 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 0.25f); in getSummary_smallestScale_shouldReturnExpectedSummary()
84 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_smallScale_shouldReturnExpectedSummary()
85 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 0.5f); in getSummary_smallScale_shouldReturnExpectedSummary()
95 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_mediumScale_shouldReturnExpectedSummary()
96 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 1.0f); in getSummary_mediumScale_shouldReturnExpectedSummary()
106 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_largeScale_shouldReturnExpectedSummary()
107 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 1.5f); in getSummary_largeScale_shouldReturnExpectedSummary()
117 Settings.Secure.putFloat(mContext.getContentResolver(), in getSummary_largestScale_shouldReturnExpectedSummary()
118 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 2.0f); in getSummary_largestScale_shouldReturnExpectedSummary()
[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;
76 Settings.Secure.putInt(mContentResolver, Settings.Secure.ACCESSIBILITY_BUTTON_MODE, in onChange_a11yBtnModeNavigationBar_getNavigationBarDrawable()
88 Settings.Secure.putInt(mContentResolver, in onChange_updateFloatingMenuSize_expectedPreviewDrawable()
89 Settings.Secure.ACCESSIBILITY_BUTTON_MODE, ACCESSIBILITY_BUTTON_MODE_FLOATING_MENU); in onChange_updateFloatingMenuSize_expectedPreviewDrawable()
90 Settings.Secure.putInt(mContentResolver, in onChange_updateFloatingMenuSize_expectedPreviewDrawable()
91 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_SIZE, /* small size */ 0); in onChange_updateFloatingMenuSize_expectedPreviewDrawable()
98 Settings.Secure.putInt(mContentResolver, in onChange_updateFloatingMenuSize_expectedPreviewDrawable()
99 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_SIZE, /* large size */ 1); in onChange_updateFloatingMenuSize_expectedPreviewDrawable()
113 Settings.Secure.getUriFor(Settings.Secure.ACCESSIBILITY_BUTTON_MODE), false, in onResume_registerSpecificContentObserver()
[all …]
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPluginServiceTest.java47 assertThat(Settings.Secure.getInt( in onCreate_serviceAvailable_enablesFeatureInSettings()
48 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE, -1)).isEqualTo(1); in onCreate_serviceAvailable_enablesFeatureInSettings()
49 assertThat(Settings.Secure.getInt( in onCreate_serviceAvailable_enablesFeatureInSettings()
50 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(1); in onCreate_serviceAvailable_enablesFeatureInSettings()
60 assertThat(Settings.Secure.getInt( in onCreate_serviceUnavailable_disablesFeatureInSettings()
61 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_AVAILABLE, -1)).isEqualTo(0); in onCreate_serviceUnavailable_disablesFeatureInSettings()
62 assertThat(Settings.Secure.getInt( in onCreate_serviceUnavailable_disablesFeatureInSettings()
63 cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, -1)).isEqualTo(1); in onCreate_serviceUnavailable_disablesFeatureInSettings()
69 Settings.Secure.putInt(cr, Settings.Secure.GLOBAL_ACTIONS_PANEL_ENABLED, 0); in onCreate_doesNotOverridePanelEnabledSettingIfOff()
73 assertThat(Settings.Secure.getInt( in onCreate_doesNotOverridePanelEnabledSettingIfOff()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
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 …]
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 …]
DOneHandedSettingsUtilsTest.java60 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setOneHandedModeEnabled_setEnable_shouldReturnEnabled()
61 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, mCurrentUserId)).isEqualTo(ON); in setOneHandedModeEnabled_setEnable_shouldReturnEnabled()
68 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setOneHandedModeEnabled_setDisable_shouldReturnDisabled()
69 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, mCurrentUserId)).isEqualTo(OFF); in setOneHandedModeEnabled_setDisable_shouldReturnDisabled()
76 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setTapsAppToExitEnabled_setEnable_shouldReturnEnabled()
77 Settings.Secure.TAPS_APP_TO_EXIT, OFF, mCurrentUserId)).isEqualTo(ON); in setTapsAppToExitEnabled_setEnable_shouldReturnEnabled()
84 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setTapsAppToExitEnabled_setDisable_shouldReturnDisabled()
85 Settings.Secure.TAPS_APP_TO_EXIT, OFF, mCurrentUserId)).isEqualTo(OFF); in setTapsAppToExitEnabled_setDisable_shouldReturnDisabled()
93 assertThat(Settings.Secure.getIntForUser(mContext.getContentResolver(), in setTimeout_setNever_shouldReturnNeverValue()
94 Settings.Secure.ONE_HANDED_MODE_TIMEOUT, in setTimeout_setNever_shouldReturnNeverValue()
[all …]
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DSettingsCompat.java24 Settings.Secure.ENABLED_ACCESSIBILITY_AUDIO_DESCRIPTION_BY_DEFAULT;
27 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED;
30 return Settings.Secure.getStringForUser(resolver, name, userHandle); in getStringForUser()
35 return Settings.Secure.putStringForUser(resolver, name, value, userHandle); in putStringForUser()
38 public static String ATTENTIVE_TIMEOUT = Settings.Secure.ATTENTIVE_TIMEOUT;
39 public static String SLEEP_TIMEOUT = Settings.Secure.SLEEP_TIMEOUT;
41 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK;
43 Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP;
44 public static String SCREENSAVER_ENABLED = Settings.Secure.SCREENSAVER_ENABLED;
47 Settings.Secure.MATCH_CONTENT_FRAMERATE_ALWAYS;
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DSimulateColorSpacePreferenceControllerTest.java78 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_disabledSelected_shouldTurnOffPreference()
79 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); in onPreferenceChange_disabledSelected_shouldTurnOffPreference()
89 final int enabled = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference()
90 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED); in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference()
91 final int settingValue = Settings.Secure.getInt(mContext.getContentResolver(), in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference()
92 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER); in onPreferenceChange_monochromacySelected_shouldEnableAndSelectPreference()
100 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOff_shouldSetValueToDisabled()
101 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF); in updateState_settingOff_shouldSetValueToDisabled()
110 Settings.Secure.putInt(mContext.getContentResolver(), in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy()
111 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_ON); in updateState_settingOnMonochromacyEnabled_shouldSelectMonochromacy()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/customizationtool/
DCustomizationToolController.java35 String accessibilityServices = Settings.Secure.getString( in isCustomizationToolActive()
36 mContentResolver, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); in isCustomizationToolActive()
40 String serviceStatus = Settings.Secure.getString( in isCustomizationToolActive()
41 mContentResolver, Settings.Secure.ACCESSIBILITY_ENABLED); in isCustomizationToolActive()
47 Settings.Secure.putString( in toggleCustomizationTool()
48 mContentResolver, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, SERVICE); in toggleCustomizationTool()
49 Settings.Secure.putString(mContentResolver, in toggleCustomizationTool()
50 Settings.Secure.ACCESSIBILITY_ENABLED, /* value = */"1"); in toggleCustomizationTool()
53 Settings.Secure.putString(mContentResolver, in toggleCustomizationTool()
54 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, newAccessibilityServices); in toggleCustomizationTool()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/
DVoiceInputUtilsTest.java42 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_nullInteraction_nullRecognition_returnsNull()
43 Settings.Secure.VOICE_INTERACTION_SERVICE, null); in getCurrentService_nullInteraction_nullRecognition_returnsNull()
44 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_nullInteraction_nullRecognition_returnsNull()
45 Settings.Secure.VOICE_RECOGNITION_SERVICE, null); in getCurrentService_nullInteraction_nullRecognition_returnsNull()
51 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
52 Settings.Secure.VOICE_INTERACTION_SERVICE, ""); in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
53 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
54 Settings.Secure.VOICE_RECOGNITION_SERVICE, ""); in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
62 Settings.Secure.putString(mContext.getContentResolver(), in getCurrentService_hasInteraction_returnsInteraction()
63 Settings.Secure.VOICE_INTERACTION_SERVICE, interaction.flattenToString()); in getCurrentService_hasInteraction_returnsInteraction()
[all …]
DScreenshotContextPreferenceControllerTest.java73 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()
116 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 0); in callChangeListener_toggleTrue_screenshotEnabled()
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DLocationSettingsTests.java100 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationDeviceOnlyMode()
101 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_ON); in testLocationDeviceOnlyMode()
104 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationDeviceOnlyMode()
109 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationBatterySavingMode()
110 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationBatterySavingMode()
112 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_BATTERY_SAVING); in testLocationBatterySavingMode()
117 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), in testLocationHighAccuracyMode()
118 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY); in testLocationHighAccuracyMode()
120 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_ON); in testLocationHighAccuracyMode()
151 if (mode == Settings.Secure.LOCATION_MODE_ON) { in verifyLocationSettingsMode()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/
DPreferredShortcutsTest.java112 Settings.Secure.putInt( in updatePreferredShortcutsFromSetting_magnificationWithTripleTapAndVolumeKeyShortcuts_preferredShortcutsMatches()
114 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, in updatePreferredShortcutsFromSetting_magnificationWithTripleTapAndVolumeKeyShortcuts_preferredShortcutsMatches()
153 Settings.Secure.putString(sContentResolver, in updatePreferredShortcutsFromSetting_multipleComponents_preferredShortcutsMatches()
154 Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS, target1); in updatePreferredShortcutsFromSetting_multipleComponents_preferredShortcutsMatches()
155 Settings.Secure.putString(sContentResolver, in updatePreferredShortcutsFromSetting_multipleComponents_preferredShortcutsMatches()
156 Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE, in updatePreferredShortcutsFromSetting_multipleComponents_preferredShortcutsMatches()
181 Settings.Secure.putString(sContentResolver, in updatePreferredShortcutFromSettings_colorInversionWithQsAndSoftwareShortcut_preferredShortcutsMatches()
182 Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS, target); in updatePreferredShortcutFromSettings_colorInversionWithQsAndSoftwareShortcut_preferredShortcutsMatches()
183 Settings.Secure.putString(sContentResolver, in updatePreferredShortcutFromSettings_colorInversionWithQsAndSoftwareShortcut_preferredShortcutsMatches()
184 Settings.Secure.ACCESSIBILITY_QS_TARGETS, target); in updatePreferredShortcutFromSettings_colorInversionWithQsAndSoftwareShortcut_preferredShortcutsMatches()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accessibility/
DShowCaptionsSwitchPreferenceControllerTest.java56 Settings.Secure.putInt(mContext.getContentResolver(), in tearDown()
57 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 0); in tearDown()
62 Settings.Secure.putInt(mContext.getContentResolver(), in testRefreshUi_captionsDisabled_switchSetToOff()
63 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 0); in testRefreshUi_captionsDisabled_switchSetToOff()
72 Settings.Secure.putInt(mContext.getContentResolver(), in testRefreshUi_captionsEnabled_switchSetToOn()
73 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 1); in testRefreshUi_captionsEnabled_switchSetToOn()
82 Settings.Secure.putInt(mContext.getContentResolver(), in testSwitchedSetOn_setsSystemCaptionSettingsEnabled()
83 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 0); in testSwitchedSetOn_setsSystemCaptionSettingsEnabled()
88 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), in testSwitchedSetOn_setsSystemCaptionSettingsEnabled()
89 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 0)).isEqualTo(1); in testSwitchedSetOn_setsSystemCaptionSettingsEnabled()
[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;
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()
[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;
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()
[all …]
/packages/apps/Settings/src/com/android/settings/development/
DSimulateColorSpacePreferenceController.java72 final boolean enabled = Settings.Secure.getInt( in updateSimulateColorSpace()
73 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in updateSimulateColorSpace()
77 final String mode = Integer.toString(Settings.Secure.getInt( in updateSimulateColorSpace()
78 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, in updateSimulateColorSpace()
102 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
105 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, in writeSimulateColorSpace()
107 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, newMode); in writeSimulateColorSpace()
117 final boolean enabled = Settings.Secure.getInt( in usingDevelopmentColorSpace()
118 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) in usingDevelopmentColorSpace()
121 final String mode = Integer.toString(Settings.Secure.getInt( in usingDevelopmentColorSpace()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputRotaryServiceTest.java165 Settings.Secure.putStringForUser( in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
167 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
173 String enabledServices = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
175 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
179 String enabled = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
181 Settings.Secure.ACCESSIBILITY_ENABLED, in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
188 enabledServices = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
190 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
199 enabled = Settings.Secure.getStringForUser( in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
201 Settings.Secure.ACCESSIBILITY_ENABLED, in accessibilitySettingsUpdated_whenRotaryServiceIsNotEmpty()
[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()

12345678910>>...27