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

1 2 3 4 5 6 7 8 9

  /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));
AccessibilitySettings.java 258 Settings.Secure.putInt(getContentResolver(),
259 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue));
265 Settings.Secure.putInt(getContentResolver(),
266 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, (checked ? 1 : 0));
306 Settings.Secure.putInt(getContentResolver(),
307 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED,
312 Settings.Secure.putInt(getContentResolver(),
313 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
315 ? Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP
316 : Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF))
    [all...]
ToggleScreenMagnificationPreferenceFragment.java 29 Settings.Secure.putInt(getContentResolver(),
30 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, enabled ? 1 : 0);
  /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"));
71 assertEquals("content://settings/secure/test_service",
72 Settings.Secure.getUriFor("test_service").toString());
75 Uri tables[] = { Settings.System.CONTENT_URI, Settings.Secure.CONTENT_URI };
131 assertEquals(null, Settings.Secure.getString(r, "test_key"))
    [all...]
  /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...]
  /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/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);
  /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...]
DefaultEmergencyPreference.java 60 String previousValue = Settings.Secure.getString(mContentResolver,
61 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION);
64 Settings.Secure.putString(mContentResolver,
65 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION,
81 String currentPkg = Settings.Secure.getString(mContentResolver,
82 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION);
123 String defaultPackage = Settings.Secure.getString(mContentResolver,
124 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION);
128 Settings.Secure.putString(mContentResolver,
129 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION
    [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/Settings/src/com/android/settings/print/
PrintSettingsUtils.java 41 String enabledServicesSetting = Settings.Secure.getString(context
42 .getContentResolver(), Settings.Secure.ENABLED_PRINT_SERVICES);
74 Settings.Secure.putString(context.getContentResolver(),
75 Settings.Secure.ENABLED_PRINT_SERVICES,
  /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,
56 int settingsTtyMode = android.provider.Settings.Secure.getInt(
58 Settings.Secure.PREFERRED_TTY_MODE,
69 Settings.Secure.putInt(
71 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);
LocationModeDeviceOnlyTestActivity.java 20 import android.provider.Settings.Secure;
48 testIsExpectedMode(1, Secure.LOCATION_MODE_SENSORS_ONLY);
LocationModeHighAccuracyTestActivity.java 20 import android.provider.Settings.Secure;
48 testIsExpectedMode(1, Secure.LOCATION_MODE_HIGH_ACCURACY);
LocationModeOffTestActivity.java 20 import android.provider.Settings.Secure;
44 testIsExpectedMode(0, Secure.LOCATION_MODE_OFF);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
LocationControllerImpl.java 113 ? Settings.Secure.LOCATION_MODE_HIGH_ACCURACY : Settings.Secure.LOCATION_MODE_OFF;
116 return Settings.Secure
117 .putIntForUser(cr, Settings.Secure.LOCATION_MODE, mode, currentUserId);
127 int mode = Settings.Secure.getIntForUser(resolver, Settings.Secure.LOCATION_MODE,
128 Settings.Secure.LOCATION_MODE_OFF, ActivityManager.getCurrentUser());
129 return mode != Settings.Secure.LOCATION_MODE_OFF;
  /frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
ApplicationRestrictionsTest.java 66 Settings.Secure.putInt(context.getContentResolver(),
67 Settings.Secure.USER_SETUP_COMPLETE, 0);
69 Settings.Secure.putInt(context.getContentResolver(),
70 Settings.Secure.USER_SETUP_COMPLETE, 1);
83 Settings.Secure.putInt(getContext().getContentResolver(),
84 Settings.Secure.USER_SETUP_COMPLETE, 0);
86 Settings.Secure.putInt(getContext().getContentResolver(),
87 Settings.Secure.USER_SETUP_COMPLETE, 1);

Completed in 4733 milliseconds

1 2 3 4 5 6 7 8 9