/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...] |
/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);
|
ToggleScreenMagnificationPreferenceFragment.java | 27 Settings.Secure.putInt(getContentResolver(), 28 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, enabled ? 1 : 0);
|
CaptionPropertiesFragment.java | 195 Settings.Secure.putInt( 196 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, value); 206 Settings.Secure.putInt( 207 cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, argb); 209 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, value); 211 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, value); 214 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, value) [all...] |
AccessibilitySettings.java | 242 Settings.Secure.putInt(getContentResolver(), 243 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue)); 285 Settings.Secure.putInt(getContentResolver(), 286 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, 288 ? Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP 289 : Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF)); 298 Settings.Secure.putInt(getContentResolver(), 299 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD, 321 extras.putBoolean(EXTRA_CHECKED, Settings.Secure.getInt(getContentResolver(), 322 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, 0) == 1) [all...] |
AccessibilityUtils.java | 40 final String enabledServicesSetting = Settings.Secure.getString( 41 context.getContentResolver(), Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES);
|
/frameworks/base/core/java/android/view/accessibility/ |
CaptioningManager.java | 26 import android.provider.Settings.Secure; 72 return Secure.getInt( 73 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_ENABLED, DEFAULT_ENABLED) == 1; 82 return Secure.getString(mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_LOCALE); 111 return Secure.getFloat( 112 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, DEFAULT_FONT_SCALE); 120 return Secure.getInt( 121 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_PRESET, DEFAULT_PRESET); 146 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")); 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...] |
/cts/tests/tests/permission2/src/android/permission2/cts/ |
NoWriteSecureSettingsPermissionTest.java | 22 * Verify secure settings cannot be written to without required permissions. 27 * Verify that write to secure settings requires permissions. 33 assertWritingContentUriRequiresPermission(android.provider.Settings.Secure.CONTENT_URI,
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationSettingsBase.java | 86 mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, 87 Settings.Secure.LOCATION_MODE_OFF); 97 Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, mode); 103 int mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, 104 Settings.Secure.LOCATION_MODE_OFF); 114 return new CursorLoader(getActivity(), Settings.Secure.CONTENT_URI, null, 116 new String[] { Settings.Secure.LOCATION_MODE }, null) [all...] |
LocationMode.java | 96 int mode = Settings.Secure.LOCATION_MODE_OFF; 98 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; 100 mode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING; 102 mode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY; 110 case Settings.Secure.LOCATION_MODE_OFF: 113 case Settings.Secure.LOCATION_MODE_SENSORS_ONLY: 116 case Settings.Secure.LOCATION_MODE_BATTERY_SAVING: 119 case Settings.Secure.LOCATION_MODE_HIGH_ACCURACY: 126 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF) && !restricted;
|
/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/print/ |
SettingsUtils.java | 40 String enabledServicesSetting = Settings.Secure.getString(context 41 .getContentResolver(), Settings.Secure.ENABLED_PRINT_SERVICES); 71 Settings.Secure.putString(context.getContentResolver(), 72 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");
|
/frameworks/base/services/java/com/android/server/am/ |
CoreSettingsObserver.java | 34 * in {@link Settings.Secure}. 43 sCoreSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 76 Uri uri = Settings.Secure.getUriFor(setting); 89 String value = Settings.Secure.getString(context.getContentResolver(), 93 int value = Settings.Secure.getInt(context.getContentResolver(), 97 float value = Settings.Secure.getFloat(context.getContentResolver(), 101 long value = Settings.Secure.getLong(context.getContentResolver(),
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/identity/ |
SettingsSecureBasedIdentificationGenerator.java | 17 * Unique identificator implementation that uses the Settings.Secure.ANDROID_ID field and MD5 44 return Settings.Secure.getString(mContext.getContentResolver(), Settings.Secure.ANDROID_ID);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
LocationController.java | 131 ? Settings.Secure.LOCATION_MODE_HIGH_ACCURACY : Settings.Secure.LOCATION_MODE_OFF; 134 return Settings.Secure 135 .putIntForUser(cr, Settings.Secure.LOCATION_MODE, mode, currentUserId); 145 int mode = Settings.Secure.getIntForUser(resolver, Settings.Secure.LOCATION_MODE, 146 Settings.Secure.LOCATION_MODE_OFF, ActivityManager.getCurrentUser()); 147 return mode != Settings.Secure.LOCATION_MODE_OFF;
|
/frameworks/base/core/java/android/service/dreams/ |
Sandman.java | 111 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,
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
PaymentBackend.java | 78 String componentString = Settings.Secure.getString(mContext.getContentResolver(), 79 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT); 88 Settings.Secure.putString(mContext.getContentResolver(), 89 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT,
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsHelper.java | 62 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) { 65 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) { 129 if (Settings.Secure.ACCESSIBILITY_ENABLED.equals(name) 130 || Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION.equals(name) 131 || Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD.equals(name) 132 || Settings.Secure.TOUCH_EXPLORATION_ENABLED.equals(name)) { 133 return Settings.Secure.getInt(mContext.getContentResolver(), name, 0) != 0; 134 } else if (Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES.equals(name) 135 || Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES.equals(name)) { 136 return !TextUtils.isEmpty(Settings.Secure.getString [all...] |
DatabaseHelper.java | 41 import android.provider.Settings.Secure; 83 private static final String TABLE_SECURE = "secure"; 123 db.execSQL("CREATE TABLE secure (" + 128 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); 278 // This introduces the new secure settings table. 291 Settings.Secure.ADB_ENABLED, 292 Settings.Secure.ANDROID_ID, 293 Settings.Secure.BLUETOOTH_ON, 294 Settings.Secure.DATA_ROAMING, 295 Settings.Secure.DEVICE_PROVISIONED [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
EnableAccessibilityController.java | 252 Settings.Secure.putStringForUser(resolver, 253 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, 256 Settings.Secure.putStringForUser(resolver, 257 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES, 261 Settings.Secure.putIntForUser(resolver, Settings.Secure.TOUCH_EXPLORATION_ENABLED, 265 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION, 268 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_ENABLED [all...] |
/frameworks/testing/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
ShellUiAutomatorBridge.java | 60 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
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
InputMethodAndSubtypeUtil.java | 91 return Settings.Secure.getInt(resolver, 92 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE); 103 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); 109 final String enabledInputMethodsStr = Settings.Secure.getString( 110 resolver, Settings.Secure.ENABLED_INPUT_METHODS); 139 String disabledIMEsStr = Settings.Secure.getString( 140 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); 154 String currentInputMethodId = Settings.Secure.getString(resolver, 155 Settings.Secure.DEFAULT_INPUT_METHOD) [all...] |
/development/apps/SdkSetup/src/com/android/sdksetup/ |
DefaultActivity.java | 45 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED,
|