/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
BatterySaverUtilsTest.java | 34 import android.provider.Settings.Secure; 70 Secure.putString(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, "null"); 71 Secure.putString(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, "null"); 80 Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); 82 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); 87 Secure.putInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1); // Already acked [all...] |
/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...] |
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
SettingsHelperRestoreTest.java | 51 /** Tests for {@link Settings.Secure#ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED}. */ 57 Settings.Secure.putInt( 59 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, 66 Settings.Secure.getUriFor( 67 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED), 68 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, 73 Settings.Secure.getInt( 75 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED)) 84 Settings.Secure.putInt( 86 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED [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);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
SettingsCompat.java | 24 = Settings.Secure.SWIPE_UP_TO_SWITCH_APPS_ENABLED;
|
/frameworks/base/core/java/com/android/internal/app/ |
ColorDisplayController.java | 30 import android.provider.Settings.Secure; 145 return Secure.getIntForUser(mContext.getContentResolver(), 146 Secure.NIGHT_DISPLAY_ACTIVATED, 0, mUserId) == 1; 157 Secure.putStringForUser(mContext.getContentResolver(), 158 Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME, 162 return Secure.putIntForUser(mContext.getContentResolver(), 163 Secure.NIGHT_DISPLAY_ACTIVATED, activated ? 1 : 0, mUserId); 172 final String lastActivatedTime = Secure.getStringForUser( 173 cr, Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME, mUserId); 194 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/src/com/android/settings/development/ |
SimulateColorSpacePreferenceController.java | 72 final boolean enabled = Settings.Secure.getInt( 73 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, SETTING_VALUE_OFF) 77 final String mode = Integer.toString(Settings.Secure.getInt( 78 cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, 100 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 103 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 105 Settings.Secure.putInt(cr, Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, newMode) [all...] |
AppsNotRespondingPreferenceController.java | 49 Settings.Secure.putInt(mContext.getContentResolver(), 50 Settings.Secure.ANR_SHOW_BACKGROUND, 57 final int mode = Settings.Secure.getInt(mContext.getContentResolver(), 58 Settings.Secure.ANR_SHOW_BACKGROUND, SETTING_VALUE_OFF); 65 Settings.Secure.putInt(mContext.getContentResolver(), 66 Settings.Secure.ANR_SHOW_BACKGROUND, SETTING_VALUE_OFF);
|
ShowFirstCrashDialogPreferenceController.java | 58 Settings.Secure.putInt(mContext.getContentResolver(), 59 Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION, 66 final int mode = Settings.Secure.getInt(mContext.getContentResolver(), 67 Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION, SETTING_VALUE_OFF); 74 Settings.Secure.putInt(mContext.getContentResolver(), 75 Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION, SETTING_VALUE_OFF);
|
UsbAudioRoutingPreferenceController.java | 50 Settings.Secure.putInt(mContext.getContentResolver(), 51 Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED, 58 final int usbAudioRoutingMode = Settings.Secure.getInt(mContext.getContentResolver(), 59 Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED, SETTING_VALUE_OFF); 66 Settings.Secure.putInt(mContext.getContentResolver(), 67 Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED, SETTING_VALUE_OFF);
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
SettingsBackupTest.java | 502 Settings.Secure.ACCESSIBILITY_SOFT_KEYBOARD_MODE, 503 Settings.Secure.ALLOWED_GEOLOCATION_ORIGINS, 504 Settings.Secure.ALWAYS_ON_VPN_APP, 505 Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN, 506 Settings.Secure.ANDROID_ID, 507 Settings.Secure.ANR_SHOW_BACKGROUND, 508 Settings.Secure.ASSISTANT, 509 Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 510 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 511 Settings.Secure.ASSIST_STRUCTURE_ENABLED [all...] |
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/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
BatterySaverUtils.java | 24 import android.provider.Settings.Secure; 108 Secure.getInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, 0) + 1; 109 Secure.putInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, count); 116 && Secure.getInt(cr, 117 Secure.SUPPRESS_AUTO_BATTERY_SAVER_SUGGESTION, 0) == 0) { 128 if (Secure.getInt(context.getContentResolver(), 129 Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 0) != 0) { 148 Secure.putInt(context.getContentResolver(), Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
LocationEnablerTest.java | 121 assertThat(mEnabler.isEnabled(Settings.Secure.LOCATION_MODE_OFF)).isFalse(); 128 assertThat(mEnabler.isEnabled(Settings.Secure.LOCATION_MODE_OFF)).isFalse(); 135 assertThat(mEnabler.isEnabled(Settings.Secure.LOCATION_MODE_BATTERY_SAVING)).isTrue(); 148 Settings.Secure.putInt(mContext.getContentResolver(), 149 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_BATTERY_SAVING); 151 mEnabler.setLocationMode(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); 153 verify(mListener).onLocationModeChanged(Settings.Secure.LOCATION_MODE_BATTERY_SAVING, true); 159 Settings.Secure.putInt(mContext.getContentResolver(), 160 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_BATTERY_SAVING) [all...] |
LocationPreferenceControllerTest.java | 34 import android.provider.Settings.Secure; 101 Secure.putInt(contentResolver, Secure.LOCATION_MODE, Secure.LOCATION_MODE_OFF); 110 Secure.putInt(contentResolver, Secure.LOCATION_MODE, Secure.LOCATION_MODE_SENSORS_ONLY); 119 Secure.putInt(contentResolver, 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...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
PreventRingingPreferenceControllerTest.java | 19 import static android.provider.Settings.Secure.VOLUME_HUSH_GESTURE; 20 import static android.provider.Settings.Secure.VOLUME_HUSH_MUTE; 21 import static android.provider.Settings.Secure.VOLUME_HUSH_OFF; 22 import static android.provider.Settings.Secure.VOLUME_HUSH_VIBRATE; 92 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, 93 Settings.Secure.VOLUME_HUSH_MUTE); 100 Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.VOLUME_HUSH_GESTURE, 101 Settings.Secure.VOLUME_HUSH_VIBRATE) [all...] |
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
LocationSettingsTests.java | 97 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), 98 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); 101 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_SENSORS_ONLY); 106 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), 107 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY); 109 verifyLocationSettingsMode(Settings.Secure.LOCATION_MODE_BATTERY_SAVING); 114 Settings.Secure.putInt(getInstrumentation().getContext().getContentResolver(), 115 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_SENSORS_ONLY) [all...] |
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
BluetoothOnWhileDrivingPreferenceController.java | 46 return Settings.Secure.getInt( 48 Settings.Secure.BLUETOOTH_ON_WHILE_DRIVING, 56 return Settings.Secure.putInt( 57 mContext.getContentResolver(), Settings.Secure.BLUETOOTH_ON_WHILE_DRIVING, value);
|
/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...] |
/development/apps/SdkSetup/src/com/android/sdksetup/ |
DefaultActivity.java | 46 Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1); 53 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, 59 Settings.Secure.putInt(getContentResolver(),Settings.Secure.ADB_ENABLED, 1);
|
/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(),
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
AppsNotRespondingPreferenceControllerTest.java | 64 final int mode = Settings.Secure.getInt(mContext.getContentResolver(), 65 Settings.Secure.ANR_SHOW_BACKGROUND, -1 /* default */); 74 final int mode = Settings.Secure.getInt(mContext.getContentResolver(), 75 Settings.Secure.ANR_SHOW_BACKGROUND, -1 /* default */); 82 Settings.Secure.putInt(mContext.getContentResolver(), 83 Settings.Secure.ANR_SHOW_BACKGROUND, SETTING_VALUE_OFF); 91 Settings.Secure.putInt(mContext.getContentResolver(), 92 Settings.Secure.ANR_SHOW_BACKGROUND, SETTING_VALUE_ON); 102 final int mode = Settings.Secure.getInt(mContext.getContentResolver(), 103 Settings.Secure.ANR_SHOW_BACKGROUND, -1 /* default */) [all...] |