Searched refs:Secure (Results 1 - 25 of 89) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/provider/
H A DSettingsProviderTest.java43 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"));
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"));
149 Settings.Secure
[all...]
/frameworks/base/core/java/android/view/accessibility/
H A DCaptioningManager.java28 import android.provider.Settings.Secure;
74 return Secure.getInt(
75 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_ENABLED, DEFAULT_ENABLED) == 1;
85 return Secure.getString(mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_LOCALE);
115 return Secure.getFloat(
116 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, DEFAULT_FONT_SCALE);
124 return Secure.getInt(
125 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_PRESET, DEFAULT_PRESET);
151 registerObserver(Secure
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DDisplayAdjustmentUtils.java63 if (Settings.Secure.getIntForUser(cr,
64 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0) {
68 if (Settings.Secure.getIntForUser(cr,
69 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) {
83 if (Settings.Secure.getIntForUser(cr,
84 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0) {
88 if (Settings.Secure.getIntForUser(cr,
89 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) {
90 final int daltonizerMode = Settings.Secure.getIntForUser(cr,
91 Settings.Secure
[all...]
/frameworks/base/core/java/android/service/fingerprint/
H A DFingerprintUtils.java36 String fingerIdsRaw = Settings.Secure.getStringForUser(res,
37 Settings.Secure.USER_FINGERPRINT_IDS, userId);
66 Settings.Secure.putStringForUser(res, Settings.Secure.USER_FINGERPRINT_IDS,
86 Settings.Secure.putStringForUser(res, Settings.Secure.USER_FINGERPRINT_IDS,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DSecureSetting.java23 import android.provider.Settings.Secure;
48 return Secure.getIntForUser(mContext.getContentResolver(), mSettingName, DEFAULT, mUserId);
52 Secure.putIntForUser(mContext.getContentResolver(), mSettingName, value, mUserId);
62 Secure.getUriFor(mSettingName), false, this, mUserId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DLocationControllerImpl.java121 ? Settings.Secure.LOCATION_MODE_HIGH_ACCURACY : Settings.Secure.LOCATION_MODE_OFF;
124 return Settings.Secure
125 .putIntForUser(cr, Settings.Secure.LOCATION_MODE, mode, currentUserId);
135 int mode = Settings.Secure.getIntForUser(resolver, Settings.Secure.LOCATION_MODE,
136 Settings.Secure.LOCATION_MODE_OFF, ActivityManager.getCurrentUser());
137 return mode != Settings.Secure.LOCATION_MODE_OFF;
H A DZenModeControllerImpl.java35 import android.provider.Settings.Secure;
253 return Secure.getIntForUser(mResolver, Secure.USER_SETUP_COMPLETE, 0, mUserId) != 0;
267 Secure.getUriFor(Secure.USER_SETUP_COMPLETE), false, this, mUserId);
274 || Secure.getUriFor(Secure.USER_SETUP_COMPLETE).equals(uri)) {
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DApplicationRestrictionsTest.java66 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);
/frameworks/base/core/java/android/service/dreams/
H A DSandman.java111 return Settings.Secure.getIntForUser(context.getContentResolver(),
112 Settings.Secure.SCREENSAVER_ENABLED, def,
119 return Settings.Secure.getIntForUser(context.getContentResolver(),
120 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, def,
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java66 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) {
69 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) {
144 if (Settings.Secure.ACCESSIBILITY_ENABLED.equals(name)
145 || Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION.equals(name)
146 || Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD.equals(name)
147 || Settings.Secure.TOUCH_EXPLORATION_ENABLED.equals(name)) {
148 return Settings.Secure.getInt(mContext.getContentResolver(), name, 0) != 0;
149 } else if (Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES.equals(name)
150 || Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES.equals(name)) {
151 return !TextUtils.isEmpty(Settings.Secure
[all...]
H A DDatabaseHelper.java42 import android.provider.Settings.Secure;
290 Settings.Secure.ADB_ENABLED,
291 Settings.Secure.ANDROID_ID,
292 Settings.Secure.BLUETOOTH_ON,
293 Settings.Secure.DATA_ROAMING,
294 Settings.Secure.DEVICE_PROVISIONED,
295 Settings.Secure.HTTP_PROXY,
296 Settings.Secure.INSTALL_NON_MARKET_APPS,
297 Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
298 Settings.Secure
[all...]
H A DSettingsProvider.java56 import android.provider.Settings.Secure;
130 // These must match Settings.Secure.MOVED_TO_GLOBAL
132 Settings.Secure.getMovedKeys(sSecureGlobalKeys);
140 sRestrictedKeys.put(Settings.Secure.LOCATION_MODE, UserManager.DISALLOW_SHARE_LOCATION);
141 sRestrictedKeys.put(Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
143 sRestrictedKeys.put(Settings.Secure.INSTALL_NON_MARKET_APPS,
152 for (int i = 0; i < Settings.Secure.CLONE_TO_MANAGED_PROFILE.length; i++) {
153 sSecureCloneToManagedKeys.add(Settings.Secure.CLONE_TO_MANAGED_PROFILE[i]);
269 property = Settings.Secure.SYS_PROP_SETTING_VERSION;
556 final Cursor c = queryForUser(Settings.Secure
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DEnableAccessibilityController.java254 Settings.Secure.putStringForUser(resolver,
255 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
258 Settings.Secure.putStringForUser(resolver,
259 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES,
263 Settings.Secure.putIntForUser(resolver, Settings.Secure.TOUCH_EXPLORATION_ENABLED,
267 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION,
270 Settings.Secure.putIntForUser(resolver, Settings.Secure
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DCoreSettingsObserver.java34 * in {@link Settings.Secure}.
47 sSecureSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class);
88 Uri uri = Settings.Secure.getUriFor(setting);
114 value = Settings.Secure.getString(context.getContentResolver(), setting);
124 value = Settings.Secure.getInt(context.getContentResolver(), setting, 0);
134 value = Settings.Secure.getFloat(context.getContentResolver(), setting, 0);
144 value = Settings.Secure.getLong(context.getContentResolver(), setting, 0);
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/
H A DShellUiAutomatorBridge.java60 String providerName = Settings.Secure.CONTENT_URI.getAuthority();
69 cursor = provider.query(null, Settings.Secure.CONTENT_URI,
71 Settings.Secure.VALUE
74 Settings.Secure.LONG_PRESS_TIMEOUT
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsService.java42 import android.provider.Settings.Secure;
136 String value = Settings.Secure.getString(cr, validSetting);
154 final String OWNER_INFO = Secure.LOCK_SCREEN_OWNER_INFO;
155 String ownerInfo = Settings.Secure.getStringForUser(cr, OWNER_INFO, userId);
158 Settings.Secure.putStringForUser(cr, ownerInfo, "", userId);
164 final String OWNER_INFO_ENABLED = Secure.LOCK_SCREEN_OWNER_INFO_ENABLED;
167 int ivalue = Settings.Secure.getIntForUser(cr, OWNER_INFO_ENABLED, userId);
176 Settings.Secure.putIntForUser(cr, OWNER_INFO_ENABLED, 0, userId);
417 Secure.LOCK_PATTERN_ENABLED,
418 Secure
[all...]
H A DCertBlacklister.java73 return Settings.Secure.getString(mContentResolver, mKey);
130 Settings.Secure.getUriFor(PUBKEY_BLACKLIST_KEY),
137 Settings.Secure.getUriFor(SERIAL_BLACKLIST_KEY),
/frameworks/base/core/java/android/provider/
H A DSettings.java1214 MOVED_TO_SECURE.add(Secure.ANDROID_ID);
1215 MOVED_TO_SECURE.add(Secure.HTTP_PROXY);
1216 MOVED_TO_SECURE.add(Secure.LOCATION_PROVIDERS_ALLOWED);
1217 MOVED_TO_SECURE.add(Secure.LOCK_BIOMETRIC_WEAK_FLAGS);
1218 MOVED_TO_SECURE.add(Secure.LOCK_PATTERN_ENABLED);
1219 MOVED_TO_SECURE.add(Secure.LOCK_PATTERN_VISIBLE);
1220 MOVED_TO_SECURE.add(Secure.LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED);
1221 MOVED_TO_SECURE.add(Secure.LOGGING_ID);
1222 MOVED_TO_SECURE.add(Secure.PARENTAL_CONTROL_ENABLED);
1223 MOVED_TO_SECURE.add(Secure
2963 public static final class Secure extends NameValueTable { class in class:Settings
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DObscureSpeechDelegate.java89 if (Settings.Secure.getIntForUser(mContentResolver,
90 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD, 0, UserHandle.USER_CURRENT) != 0) {
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionManagerService.java134 String curInteractorStr = Settings.Secure.getStringForUser(
136 Settings.Secure.VOICE_INTERACTION_SERVICE, userHandle);
235 String curService = Settings.Secure.getStringForUser(
236 mResolver, Settings.Secure.VOICE_INTERACTION_SERVICE, mCurUser);
314 String curInteractor = Settings.Secure.getStringForUser(
316 Settings.Secure.VOICE_INTERACTION_SERVICE, userHandle);
326 Settings.Secure.putStringForUser(mContext.getContentResolver(),
327 Settings.Secure.VOICE_INTERACTION_SERVICE,
361 String curRecognizer = Settings.Secure.getStringForUser(
363 Settings.Secure
[all...]
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DInputMethodUtils.java1007 Settings.Secure.putStringForUser(
1008 mResolver, Settings.Secure.ENABLED_INPUT_METHODS, str, mCurrentUserId);
1016 mEnabledInputMethodsStrCache = Settings.Secure.getStringForUser(
1017 mResolver, Settings.Secure.ENABLED_INPUT_METHODS, mCurrentUserId);
1075 Settings.Secure.putStringForUser(
1076 mResolver, Settings.Secure.INPUT_METHODS_SUBTYPE_HISTORY, str, mCurrentUserId);
1195 Slog.d(TAG, "getSubtypeHistoryStr: " + Settings.Secure.getStringForUser(
1196 mResolver, Settings.Secure.INPUT_METHODS_SUBTYPE_HISTORY, mCurrentUserId));
1198 return Settings.Secure.getStringForUser(
1199 mResolver, Settings.Secure
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DTtsEngines.java32 import static android.provider.Settings.Secure.getString;
116 Settings.Secure.TTS_DEFAULT_SYNTH);
325 * value from {@link Settings.Secure#TTS_DEFAULT_LOCALE}, failing which the
333 getString(mContext.getContentResolver(), Settings.Secure.TTS_DEFAULT_LOCALE));
362 * read the value from {@link Settings.Secure#TTS_DEFAULT_LOCALE}. If
369 getString(mContext.getContentResolver(), Settings.Secure.TTS_DEFAULT_LOCALE),
521 final String prefList = Settings.Secure.getString(mContext.getContentResolver(),
522 Settings.Secure.TTS_DEFAULT_LOCALE);
533 Settings.Secure.putString(mContext.getContentResolver(),
534 Settings.Secure
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DColorInversionTile.java19 import android.provider.Settings.Secure;
42 Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED) {
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationBlacklist.java61 mContext.getContentResolver().registerContentObserver(Settings.Secure.getUriFor(
63 // mContext.getContentResolver().registerContentObserver(Settings.Secure.getUriFor(
129 flatString = Settings.Secure.getStringForUser(mContext.getContentResolver(), key,
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DAccessibilityManagerServiceTest.java571 boolean isEnabled = (Settings.Secure.getInt(context.getContentResolver(),
572 Settings.Secure.ACCESSIBILITY_ENABLED, 0) == 1 ? true : false);
578 Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.ACCESSIBILITY_ENABLED,
600 String enabledServices = Settings.Secure.getString(context.getContentResolver(),
601 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES);
615 Settings.Secure.putString(context.getContentResolver(),
616 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, servicesToEnable.toString());

Completed in 370 milliseconds

1234