HomeSort by relevance Sort by last modified time
    Searched refs:Secure (Results 1 - 25 of 269) sorted by null

1 2 3 4 5 6 7 8 91011

  /cts/tests/tests/provider/src/android/provider/cts/
Settings_SecureTest.java 23 import android.provider.Settings.Secure;
35 private static final String STRING_VALUE_SETTING = Secure.ANDROID_ID;
50 assertNull(Secure.getString(cr, NO_SUCH_SETTING));
52 String value = Secure.getString(cr, STRING_VALUE_SETTING);
62 assertEquals(10, Secure.getInt(cr, "int", 10));
63 assertEquals(20, Secure.getLong(cr, "long", 20));
64 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001);
68 assertNull(Secure.getString(cr, NO_SUCH_SETTING));
71 Secure.putInt(cr, NO_SUCH_SETTING, -1);
77 Secure.getInt(cr, NO_SUCH_SETTING)
    [all...]
  /cts/tests/tests/permission2/src/android/permission2/cts/
NoWriteSecureSettingsPermissionTest.java 25 * Verify secure settings cannot be written to without required permissions.
30 * Verify that write to secure settings requires permissions.
38 values.put(Settings.Secure.NAME, Settings.Secure.ACCESSIBILITY_ENABLED);
39 values.put(Settings.Secure.VALUE, Boolean.TRUE);
40 getContext().getContentResolver().insert(Settings.Secure.CONTENT_URI, values);
  /packages/apps/Settings/src/com/android/settings/accessibility/
SettingsContentObserver.java 31 contentResolver.registerContentObserver(Settings.Secure.getUriFor(
32 Settings.Secure.ACCESSIBILITY_ENABLED), false, this);
33 contentResolver.registerContentObserver(Settings.Secure.getUriFor(
34 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES), false, this);
ToggleDaltonizerPreferenceFragment.java 33 private static final String ENABLED = Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED;
34 private static final String TYPE = Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER;
57 Settings.Secure.putInt(getContentResolver(), ENABLED, enabled ? 1 : 0);
63 Settings.Secure.putInt(getContentResolver(), TYPE, Integer.parseInt((String) newValue));
82 Settings.Secure.getInt(getContentResolver(), ENABLED, 0) == 1);
94 Settings.Secure.getInt(getContentResolver(), TYPE, DEFAULT_TYPE));
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
CaptionCustomFragment.java 199 final String typeface = Settings.Secure.getString(getContext().getContentResolver(),
200 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE);
206 Settings.Secure.putString(getContext().getContentResolver(),
207 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, null);
209 Settings.Secure.putString(getContext().getContentResolver(),
210 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, fontFamily);
215 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver(),
216 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 0) & 0x00ffffff);
221 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(),
222 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 0xff000000) & 0xff000000
    [all...]
  /cts/tests/tests/bluetooth/src/android/bluetooth/cts/
TestUtils.java 62 return Settings.Secure.getInt(context.getContentResolver(),
63 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
70 Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE,
78 return getLocationMode(context) != Settings.Secure.LOCATION_MODE_OFF;
85 setLocationMode(context, Settings.Secure.LOCATION_MODE_SENSORS_ONLY);
92 setLocationMode(context, Settings.Secure.LOCATION_MODE_OFF);
  /frameworks/base/core/java/android/view/accessibility/
CaptioningManager.java 28 import android.provider.Settings.Secure;
75 return Secure.getInt(
76 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_ENABLED, DEFAULT_ENABLED) == 1;
86 return Secure.getString(mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_LOCALE);
116 return Secure.getFloat(
117 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, DEFAULT_FONT_SCALE);
125 return Secure.getInt(
126 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_PRESET, DEFAULT_PRESET);
152 registerObserver(Secure.ACCESSIBILITY_CAPTIONING_ENABLED)
    [all...]
  /platform_testing/tests/functional/settingstests/src/com/android/settings/functional/
LocationSettingsTests.java 96 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(),
97 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_BATTERY_SAVING);
99 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_SENSORS_ONLY);
104 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(),
105 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY);
107 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_BATTERY_SAVING);
112 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(),
113 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY)
    [all...]
AccessibilitySettingsTests.java 62 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 0, 1);
68 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 1, 0);
74 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, 1, 2);
80 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, 2, 1);
84 * nice with Settings.System.putInt or Settings.Secure.putInt.
118 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD, 0, 1);
124 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD, 1, 0);
130 Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON, 0, 1);
136 Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON, 1, 0);
142 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/provider/
SettingsProviderTest.java 43 Settings.Secure.putString(r, "test_service", "Value");
44 assertEquals("Value", Settings.Secure.getString(r, "test_service"));
47 Settings.Secure.putString(r, "test_service", "New");
48 assertEquals("New", Settings.Secure.getString(r, "test_service"));
51 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null));
52 assertEquals(null, Settings.Secure.getString(r, "test_service"));
70 testRowNameContentUri(Settings.Secure.CONTENT_URI, Settings.Secure.NAME,
71 Settings.Secure.VALUE, testKey, testValue, secondTestValue);
74 Settings.Secure.putString(getContext().getContentResolver(), testKey, null)
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
ManagedProfileSettingsTask.java 23 import static android.provider.Settings.Secure.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH;
37 Settings.Secure.putIntForUser(mContentResolver, MANAGED_PROFILE_CONTACT_REMOTE_SEARCH,
  /packages/apps/Settings/src/com/android/settings/location/
LocationMode.java 102 int mode = Settings.Secure.LOCATION_MODE_OFF;
104 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY;
106 mode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING;
108 mode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY;
116 case Settings.Secure.LOCATION_MODE_OFF:
119 case Settings.Secure.LOCATION_MODE_SENSORS_ONLY:
122 case Settings.Secure.LOCATION_MODE_BATTERY_SAVING:
125 case Settings.Secure.LOCATION_MODE_HIGH_ACCURACY:
132 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF) && !restricted;
LocationSettingsBase.java 100 mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE,
101 Settings.Secure.LOCATION_MODE_OFF);
111 Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, mode);
117 int mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE,
118 Settings.Secure.LOCATION_MODE_OFF);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
NightModeController.java 22 import android.provider.Settings.Secure;
83 COLOR_MATRIX_CUSTOM_VALUES, Secure.TWILIGHT_MODE);
89 TunerService.get(mContext).setValue(Secure.TWILIGHT_MODE, isNight
90 ? Secure.TWILIGHT_MODE_AUTO_OVERRIDE_ON
91 : Secure.TWILIGHT_MODE_AUTO_OVERRIDE_OFF);
93 TunerService.get(mContext).setValue(Secure.TWILIGHT_MODE,
94 Secure.TWILIGHT_MODE_AUTO);
97 TunerService.get(mContext).setValue(Secure.TWILIGHT_MODE, isNight
98 ? Secure.TWILIGHT_MODE_LOCKED_ON : Secure.TWILIGHT_MODE_LOCKED_OFF)
    [all...]
  /frameworks/base/services/accessibility/java/com/android/server/accessibility/
DisplayAdjustmentUtils.java 69 if (Settings.Secure.getIntForUser(cr,
70 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0) {
74 if (Settings.Secure.getIntForUser(cr,
75 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) {
89 if (Settings.Secure.getIntForUser(cr,
90 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0) {
94 if (Settings.Secure.getIntForUser(cr,
95 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) {
96 final int daltonizerMode = Settings.Secure.getIntForUser(cr,
97 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, DEFAULT_DISPLAY_DALTONIZER
    [all...]
  /packages/apps/Provision/src/com/android/provision/
DefaultActivity.java 36 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
  /packages/apps/Settings/src/com/android/settings/applications/
DefaultAssistPreference.java 71 Settings.Secure.putString(getContext().getContentResolver(),
72 Settings.Secure.ASSISTANT, ITEM_NONE_VALUE);
73 Settings.Secure.putString(getContext().getContentResolver(),
74 Settings.Secure.VOICE_INTERACTION_SERVICE, "");
75 Settings.Secure.putString(getContext().getContentResolver(),
76 Settings.Secure.VOICE_RECOGNITION_SERVICE, getDefaultRecognizer());
89 Settings.Secure.putString(getContext().getContentResolver(),
90 Settings.Secure.ASSISTANT, serviceComponentName);
91 Settings.Secure.putString(getContext().getContentResolver(),
92 Settings.Secure.VOICE_INTERACTION_SERVICE, serviceComponentName)
    [all...]
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java 58 * @see Secure#SETTINGS_TO_BACKUP
66 sBroadcastOnRestore.add(Settings.Secure.ENABLED_NOTIFICATION_LISTENERS);
67 sBroadcastOnRestore.add(Settings.Secure.ENABLED_VR_LISTENERS);
68 sBroadcastOnRestore.add(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES);
69 sBroadcastOnRestore.add(Settings.Secure.ENABLED_INPUT_METHODS);
84 return Settings.Secure.getStringForUser(resolver, name, userHandle);
118 if (destination.equals(Settings.Secure.CONTENT_URI)) {
139 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) {
142 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) {
240 case Settings.Secure.ACCESSIBILITY_ENABLED
    [all...]
  /development/apps/SdkSetup/src/com/android/sdksetup/
DefaultActivity.java 43 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);
47 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
SecureSetting.java 23 import android.provider.Settings.Secure;
27 /** Helper for managing a secure setting. **/
48 return Secure.getIntForUser(mContext.getContentResolver(), mSettingName, DEFAULT, mUserId);
52 Secure.putIntForUser(mContext.getContentResolver(), mSettingName, value, mUserId);
62 Secure.getUriFor(mSettingName), false, this, mUserId);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
CaptionFragment.java 191 return Settings.Secure.getInt(getContext().getContentResolver(),
192 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 0) != 0;
196 Settings.Secure.putInt(getContext().getContentResolver(),
197 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, enabled ? 1 : 0);
201 return Settings.Secure.getInt(getContext().getContentResolver(),
202 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, 0);
206 Settings.Secure.putInt(getContext().getContentResolver(),
207 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, style);
213 return Settings.Secure.getString(getContext().getContentResolver(),
214 Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE)
    [all...]
LocationFragment.java 174 int mode = Settings.Secure.LOCATION_MODE_OFF;
179 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY;
181 mode = Settings.Secure.LOCATION_MODE_OFF;
186 int currentMode = Settings.Secure.getInt(getActivity().getContentResolver(),
187 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF);
192 Settings.Secure.putInt(getActivity().getContentResolver(),
193 Settings.Secure.LOCATION_MODE, mode);
204 final int mode = Settings.Secure.getInt(getActivity().getContentResolver(),
205 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
SettingsSecureCompatUtils.java 22 // Note that Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD has been introduced
25 android.provider.Settings.Secure.class, "ACCESSIBILITY_SPEAK_PASSWORD");
  /packages/services/Telephony/src/com/android/phone/settings/
TtyModeListPreference.java 44 int settingsTtyMode = Settings.Secure.getInt(getContext().getContentResolver(),
45 Settings.Secure.PREFERRED_TTY_MODE,
55 int settingsTtyMode = android.provider.Settings.Secure.getInt(
57 Settings.Secure.PREFERRED_TTY_MODE,
68 Settings.Secure.putInt(
70 Settings.Secure.PREFERRED_TTY_MODE,
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
LocationModeBatterySavingTestActivity.java 20 import android.provider.Settings.Secure;
48 testIsExpectedMode(1, Secure.LOCATION_MODE_BATTERY_SAVING);

Completed in 468 milliseconds

1 2 3 4 5 6 7 8 91011