/cts/tests/tests/provider/src/android/provider/cts/ |
Settings_SecureTest.java | 24 import android.provider.Settings.Secure; 36 private static final String STRING_VALUE_SETTING = Secure.ANDROID_ID; 51 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); 53 String value = Secure.getString(cr, STRING_VALUE_SETTING); 63 assertEquals(10, Secure.getInt(cr, "int", 10)); 64 assertEquals(20, Secure.getLong(cr, "long", 20)); 65 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001); 69 assertNull(Secure.getString(cr, NO_SUCH_SETTING)); 72 Secure.putInt(cr, NO_SUCH_SETTING, -1); 78 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);
|
AccessibilityShortcutPreferenceFragment.java | 67 Settings.Secure.putInt(getContentResolver(), 68 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, 90 Settings.Secure.putInt( 91 getContentResolver(), Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, 1); 95 onPreferenceToggled(Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, enabled); 102 Settings.Secure.putInt(getContentResolver(), preferenceKey, enabled ? 1 : 0); 112 Settings.Secure.putInt( 113 getContentResolver(), Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, 0); 115 boolean isEnabled = Settings.Secure 116 .getInt(cr, Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED, 1) == 1 [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
NightDisplayController.java | 29 import android.provider.Settings.Secure; 142 return Secure.getIntForUser(mContext.getContentResolver(), 143 Secure.NIGHT_DISPLAY_ACTIVATED, 0, mUserId) == 1; 154 Secure.putStringForUser(mContext.getContentResolver(), 155 Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME, 159 return Secure.putIntForUser(mContext.getContentResolver(), 160 Secure.NIGHT_DISPLAY_ACTIVATED, activated ? 1 : 0, mUserId); 169 final String lastActivatedTime = Secure.getStringForUser( 170 cr, Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME, mUserId); 191 int autoMode = Secure.getIntForUser(mContext.getContentResolver() [all...] |
/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);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
LocationPreferenceControllerTest.java | 33 import android.provider.Settings.Secure; 102 Secure.putInt(mContext.getContentResolver(), 103 Secure.LOCATION_MODE, Secure.LOCATION_MODE_OFF); 111 Secure.putInt(mContext.getContentResolver(), 112 Secure.LOCATION_MODE, Secure.LOCATION_MODE_SENSORS_ONLY); 121 Secure.putInt(mContext.getContentResolver(), 122 Secure.LOCATION_MODE, Secure.LOCATION_MODE_HIGH_ACCURACY) [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
CaptioningManager.java | 29 import android.provider.Settings.Secure; 70 return Secure.getInt( 71 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_ENABLED, DEFAULT_ENABLED) == 1; 81 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); 147 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...] |
SettingsBackupTest.java | 413 Settings.Secure.ACCESSIBILITY_SOFT_KEYBOARD_MODE, 414 Settings.Secure.ALLOWED_GEOLOCATION_ORIGINS, 415 Settings.Secure.ALWAYS_ON_VPN_APP, 416 Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN, 417 Settings.Secure.ANDROID_ID, 418 Settings.Secure.ANR_SHOW_BACKGROUND, 419 Settings.Secure.ASSISTANT, 420 Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 421 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 422 Settings.Secure.ASSIST_STRUCTURE_ENABLED [all...] |
/frameworks/base/tests/testables/tests/src/android/testing/ |
TestableSettingsProviderTest.java | 20 import android.provider.Settings.Secure; 45 Settings.Secure.putString(mContentResolver, NONEXISTENT_SETTING, null); 52 String value = Secure.getString(mContentResolver, NONEXISTENT_SETTING); 64 Secure.putString(mContentResolver, NONEXISTENT_SETTING, "something"); 66 assertEquals("something", Secure.getString(mContentResolver, NONEXISTENT_SETTING)); 72 Secure.putStringForUser(mContentResolver, NONEXISTENT_SETTING, "something", 0); 73 Secure.putStringForUser(mContentResolver, NONEXISTENT_SETTING, "else", 1); 75 Secure.getStringForUser(mContentResolver, NONEXISTENT_SETTING, 0)); 77 Secure.getStringForUser(mContentResolver, NONEXISTENT_SETTING, 1)); 83 assertTrue(Secure.getInt(mContentResolver, Secure.USER_SETUP_COMPLETE, 0) != 0) [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
SettingsFacade.java | 21 import static android.provider.Settings.Secure.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH; 22 import static android.provider.Settings.Secure.USER_SETUP_COMPLETE; 26 import android.provider.Settings.Secure; 37 Secure.putIntForUser(context.getContentResolver(), USER_SETUP_COMPLETE, 1, userId); 44 return Secure.getInt(context.getContentResolver(), USER_SETUP_COMPLETE, 0) != 0; 73 Secure.putIntForUser(context.getContentResolver(),
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
DisplayAdjustmentUtils.java | 22 import android.provider.Settings.Secure; 66 if (Secure.getIntForUser(cr, 67 Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) { 68 daltonizerMode = Secure.getIntForUser(cr, 69 Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, DEFAULT_DISPLAY_DALTONIZER, userId); 94 final boolean invertColors = Secure.getIntForUser(cr, 95 Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0;
|
/packages/apps/Settings/src/com/android/settings/display/ |
VrDisplayPreferencePicker.java | 51 int current = Settings.Secure.getIntForUser(getContext().getContentResolver(), 52 Settings.Secure.VR_DISPLAY_MODE, Settings.Secure.VR_DISPLAY_MODE_LOW_PERSISTENCE, 64 return Settings.Secure.putIntForUser(getContext().getContentResolver(), 65 Settings.Secure.VR_DISPLAY_MODE, 0, mUserId); 67 return Settings.Secure.putIntForUser(getContext().getContentResolver(), 68 Settings.Secure.VR_DISPLAY_MODE, 1, mUserId);
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationMode.java | 103 int mode = Settings.Secure.LOCATION_MODE_OFF; 105 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; 107 mode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING; 109 mode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY; 117 case Settings.Secure.LOCATION_MODE_OFF: 120 case Settings.Secure.LOCATION_MODE_SENSORS_ONLY: 123 case Settings.Secure.LOCATION_MODE_BATTERY_SAVING: 126 case Settings.Secure.LOCATION_MODE_HIGH_ACCURACY: 133 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF) && !restricted;
|
LocationPreferenceController.java | 23 import android.provider.Settings.Secure; 105 int mode = Secure.getInt(context.getContentResolver(), 106 Secure.LOCATION_MODE, Secure.LOCATION_MODE_OFF); 107 if (mode != Secure.LOCATION_MODE_OFF) { 116 case Secure.LOCATION_MODE_OFF: 118 case Secure.LOCATION_MODE_SENSORS_ONLY: 120 case Secure.LOCATION_MODE_BATTERY_SAVING: 122 case Secure.LOCATION_MODE_HIGH_ACCURACY: 134 return new InlineListPayload(Secure.LOCATION_MODE [all...] |
LocationSettingsBase.java | 98 return Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE, 110 mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, 111 Settings.Secure.LOCATION_MODE_OFF); 124 int mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, 125 Settings.Secure.LOCATION_MODE_OFF);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
GesturesSettingsPreferenceControllerTest.java | 106 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 0); 107 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 0); 111 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 1); 112 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 0); 116 Settings.Secure.putInt(cr, Settings.Secure.ASSIST_GESTURE_ENABLED, 0) [all...] |
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
AutomaticStorageManagementJobService.java | 68 Settings.Secure.putLong(getContentResolver(), 69 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN, 76 Settings.Secure.getInt(getContentResolver(), 77 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 0) != 0; 110 return Settings.Secure.getInt( 112 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN, 147 Settings.Secure.getInt( 149 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY, 153 Settings.Secure.putInt( 154 cr, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY, 1) [all...] |
/packages/apps/Settings/src/com/android/settings/deletionhelper/ |
AutomaticStorageManagerDescriptionPreferenceController.java | 56 Settings.Secure.getLong( 57 cr, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED, 0); 59 Settings.Secure.getLong(cr, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN, 0); 73 return Settings.Secure.getInt(cr, Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 0)
|
/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/assist/ |
DefaultAssistPicker.java | 168 Settings.Secure.putString(getContext().getContentResolver(), 169 Settings.Secure.ASSISTANT, ""); 170 Settings.Secure.putString(getContext().getContentResolver(), 171 Settings.Secure.VOICE_INTERACTION_SERVICE, ""); 172 Settings.Secure.putString(getContext().getContentResolver(), 173 Settings.Secure.VOICE_RECOGNITION_SERVICE, getDefaultRecognizer()); 184 Settings.Secure.putString(getContext().getContentResolver(), 185 Settings.Secure.ASSISTANT, serviceComponentName); 186 Settings.Secure.putString(getContext().getContentResolver(), 187 Settings.Secure.VOICE_INTERACTION_SERVICE, serviceComponentName) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/ |
AssistContextPreferenceControllerTest.java | 71 Settings.Secure.putString(mContext.getContentResolver(), 72 Settings.Secure.ASSISTANT, "com.android.settings/assist"); 78 Settings.Secure.putString(mContext.getContentResolver(), 79 Settings.Secure.ASSISTANT, ""); 85 Settings.Secure.putString(mContext.getContentResolver(), 86 Settings.Secure.ASSISTANT, "com.android.settings/assist"); 88 Settings.Secure.putInt(mContext.getContentResolver(), 89 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deletionhelper/ |
AutomaticStorageManagerDescriptionPreferenceControllerTest.java | 51 Settings.Secure.putInt( 53 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 65 Settings.Secure.putInt( 67 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 69 Settings.Secure.putLong( 71 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED, 73 Settings.Secure.putLong( 75 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN,
|