HomeSort by relevance Sort by last modified time
    Searched refs:Secure (Results 1 - 25 of 279) 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/services/accessibility/java/com/android/server/accessibility/
DisplayAdjustmentUtils.java 21 import android.provider.Settings.Secure;
63 if (Secure.getIntForUser(cr,
64 Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) {
65 daltonizerMode = Secure.getIntForUser(cr,
66 Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, DEFAULT_DISPLAY_DALTONIZER, userId);
86 final boolean invertColors = Secure.getIntForUser(cr,
87 Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0;
  /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/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...]
  /frameworks/base/core/java/com/android/internal/app/
NightDisplayController.java 28 import android.provider.Settings.Secure;
108 return Secure.getIntForUser(mContext.getContentResolver(),
109 Secure.NIGHT_DISPLAY_ACTIVATED, 0, mUserId) == 1;
119 return Secure.putIntForUser(mContext.getContentResolver(),
120 Secure.NIGHT_DISPLAY_ACTIVATED, activated ? 1 : 0, mUserId);
129 int autoMode = Secure.getIntForUser(mContext.getContentResolver(),
130 Secure.NIGHT_DISPLAY_AUTO_MODE, -1, mUserId);
133 Slog.d(TAG, "Using default value for setting: " + Secure.NIGHT_DISPLAY_AUTO_MODE);
164 return Secure.putIntForUser(mContext.getContentResolver(),
165 Secure.NIGHT_DISPLAY_AUTO_MODE, autoMode, mUserId)
    [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/StorageManager/src/com/android/storagemanager/automatic/
AutomaticStorageManagementJobService.java 59 Settings.Secure.putLong(getContentResolver(),
60 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN,
67 Settings.Secure.getInt(getContentResolver(),
68 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 0) != 0;
94 return Settings.Secure.getInt(getContentResolver(),
95 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN,
96 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN_DEFAULT);
  /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...]
  /packages/apps/Settings/src/com/android/settings/gestures/
GestureSettings.java 26 import android.provider.Settings.Secure;
73 int cameraDisabled = Secure.getInt(
74 getContentResolver(), Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 0);
104 int doubleTwistEnabled = Secure.getInt(
105 getContentResolver(), Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED, 1);
160 Secure.putInt(getContentResolver(),
161 Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, enabled ? 0 : 1);
163 Secure.putInt(getContentResolver(), Secure.DOZE_PULSE_ON_PICK_UP, enabled ? 1 : 0);
165 Secure.putInt(getContentResolver(), Secure.DOZE_PULSE_ON_DOUBLE_TAP, enabled ? 1 : 0)
    [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/core/java/com/android/internal/hardware/
AmbientDisplayConfiguration.java 45 return boolSetting(Settings.Secure.DOZE_ENABLED, user) && pulseOnNotificationAvailable();
53 return boolSetting(Settings.Secure.DOZE_PULSE_ON_PICK_UP, user)
63 return boolSetting(Settings.Secure.DOZE_PULSE_ON_DOUBLE_TAP, user)
84 return Settings.Secure.getIntForUser(mContext.getContentResolver(), name, 1, user) != 0;
  /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...]
  /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,
  /packages/apps/Settings/src/com/android/settings/deletionhelper/
AutomaticStorageManagerSettings.java 89 int value = Settings.Secure.getInt(cr,
90 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN,
91 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN_DEFAULT);
96 long freedBytes = Settings.Secure.getLong(cr,
97 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED,
99 long lastRunMillis = Settings.Secure.getLong(cr,
100 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN,
117 Settings.Secure.getInt(getContentResolver(),
118 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 0) != 0;
131 Settings.Secure.putInt(getContentResolver()
    [all...]

Completed in 752 milliseconds

1 2 3 4 5 6 7 8 91011>>