/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
LocationSwitchBarControllerTest.java | 105 mController.onLocationModeChanged(Settings.Secure.LOCATION_MODE_BATTERY_SAVING, false); 115 mController.onLocationModeChanged(Settings.Secure.LOCATION_MODE_BATTERY_SAVING, true); 125 mController.onLocationModeChanged(Settings.Secure.LOCATION_MODE_BATTERY_SAVING, false); 137 mController.onLocationModeChanged(Settings.Secure.LOCATION_MODE_BATTERY_SAVING, false); 148 mController.onLocationModeChanged(Settings.Secure.LOCATION_MODE_OFF, false);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
VisibilityPreferenceControllerTest.java | 95 // by default the lockscreen is secure 98 Settings.Secure.putInt(mContext.getContentResolver(), 99 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 1); 100 Settings.Secure.putInt(mContext.getContentResolver(), 101 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1); 192 Settings.Secure.putInt(mContext.getContentResolver(), 193 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0); 217 Settings.Secure.putIntForUser(mContext.getContentResolver(), 218 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0, primaryUserId); 238 Settings.Secure.putInt(mContext.getContentResolver() [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
PunctuationTests.java | 19 import android.provider.Settings.Secure; 158 + Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID) 168 + Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID)
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
InstrumentedAccessibilityService.java | 140 final String enabledServices = Settings.Secure.getString( 142 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); 154 .putSecureSetting(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, 156 .putSecureSetting(Settings.Secure.ACCESSIBILITY_ENABLED, "1") 162 .putSecureSetting(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, 210 .deleteSecureSetting(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES) 211 .deleteSecureSetting(Settings.Secure.ACCESSIBILITY_ENABLED)
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
MagnificationPreferenceFragment.java | 54 // Pseudo ComponentName used to represent navbar magnification in Settings.Secure. 109 if (!Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED.equals(key)) { 112 if (Settings.Secure.getInt(context.getContentResolver(), 113 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, 0) == 0) { 118 final String assignedId = Settings.Secure.getString(context.getContentResolver(), 119 Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT); 142 return Settings.Secure.getInt(contentResolver, settingsKey, OFF) == ON; 147 return Settings.Secure.putInt(contentResolver, settingsKey, isChecked ? ON : OFF);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
DoubleTapPowerPreferenceControllerTest.java | 19 import static android.provider.Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED; 119 Settings.Secure.putInt(mContentResolver, 120 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 0); 124 int updatedValue = Settings.Secure.getInt(mContentResolver, 125 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, -1); 135 Settings.Secure.putInt(mContentResolver, 136 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, currentValue);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowSettings.java | 53 @Implements(value = Settings.Secure.class, inheritImplementationMethods = true) 76 Settings.Secure.putInt(RuntimeEnvironment.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0);
|
/frameworks/base/services/core/java/com/android/server/ |
CertBlacklister.java | 73 return Settings.Secure.getString(mContentResolver, mKey); 130 Settings.Secure.getUriFor(PUBKEY_BLACKLIST_KEY), 137 Settings.Secure.getUriFor(SERIAL_BLACKLIST_KEY),
|
/packages/apps/Settings/src/com/android/settings/display/ |
AmbientDisplayNotificationsPreferenceController.java | 16 import static android.provider.Settings.Secure.DOZE_ENABLED; 81 Settings.Secure.putInt(mContext.getContentResolver(), DOZE_ENABLED, isChecked ? ON : OFF); 105 return new InlineSwitchPayload(Settings.Secure.DOZE_ENABLED, 106 ResultPayload.SettingsSource.SECURE, ON /* onValue */, intent, isAvailable(),
|
/frameworks/base/services/core/java/com/android/server/pm/ |
UserRestrictionsUtils.java | 459 // WARNING: Remember that Settings.Global and Settings.Secure are changeable via adb. 491 android.provider.Settings.Secure.putIntForUser(cr, 492 android.provider.Settings.Secure.LOCATION_MODE, 493 android.provider.Settings.Secure.LOCATION_MODE_OFF, 521 // Since Android O, the secure setting is not available to be changed by the 524 android.provider.Settings.Secure.putIntForUser(cr, 525 android.provider.Settings.Secure.INSTALL_NON_MARKET_APPS, 569 android.provider.Settings.Secure.putIntForUser( 571 Settings.Secure.DOZE_ENABLED, 0, userId); 572 android.provider.Settings.Secure.putIntForUser [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
SensorFeaturesDeactivator.java | 140 return Settings.Secure.getInt( 142 Settings.Secure.DOZE_ENABLED, 184 return Settings.Secure.getInt( 186 Settings.Secure.LOCATION_MODE,
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
AdminActionBookkeepingTest.java | 168 final String setting = Settings.Secure.DEFAULT_INPUT_METHOD; 170 final String ime = Settings.Secure.getString(resolver, setting); 172 Settings.Secure.putString(resolver, setting, "com.test.1"); 180 Settings.Secure.putString(resolver, setting, ime);
|
/cts/tests/vr/src/android/vr/cts/ |
VrSetFIFOThreadTest.java | 51 mOldVrListener = Settings.Secure.getString(mContext.getContentResolver(), ENABLED_VR_LISTENERS); 56 Settings.Secure.putString(mContext.getContentResolver(), 74 Settings.Secure.putString(mContext.getContentResolver(), 97 Settings.Secure.putString(mContext.getContentResolver(),
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
SettingsTest.java | 60 assertThat(Settings.Secure.getInt(contentResolver, "property", 0), equalTo(0)); 61 assertThat(Settings.Secure.getInt(contentResolver, "property", 2), equalTo(2)); 63 Settings.Secure.putInt(contentResolver, "property", 1); 64 assertThat(Settings.Secure.getInt(contentResolver, "property", 0), equalTo(1));
|
/frameworks/base/core/java/android/security/ |
ConfirmationPrompt.java | 217 int inversionEnabled = Settings.Secure.getInt(contentResolver, 218 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED); 237 int a11yEnabled = Settings.Secure.getInt(contentResolver, 238 Settings.Secure.ACCESSIBILITY_ENABLED);
|
/frameworks/base/core/java/com/android/internal/app/ |
AssistUtils.java | 149 final String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(), 150 Settings.Secure.ASSISTANT, userId); 190 return Settings.Secure.getInt(context.getContentResolver(), 191 Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 0) != 0;
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
EnableAdbPreferenceControllerTest.java | 101 Settings.Secure.putInt(mContext.getContentResolver(), 108 assertThat(Settings.Secure.getInt(mContext.getContentResolver(), 127 Settings.Secure.putInt(mContext.getContentResolver(), 140 Settings.Secure.putInt(mContext.getContentResolver(),
|
/frameworks/base/services/core/java/com/android/server/am/ |
CoreSettingsObserver.java | 34 * in {@link Settings.Secure}. 50 sSecureSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 51 sSecureSettingToTypeMap.put(Settings.Secure.MULTI_PRESS_TIMEOUT, int.class); 52 // add other secure settings here... 92 Uri uri = Settings.Secure.getUriFor(setting); 117 value = Settings.Secure.getString(context.getContentResolver(), setting);
|
/frameworks/base/services/core/java/com/android/server/lights/ |
LightsService.java | 106 (getVrDisplayMode() == Settings.Secure.VR_DISPLAY_MODE_LOW_PERSISTENCE); 190 return Settings.Secure.getIntForUser(getContext().getContentResolver(), 191 Settings.Secure.VR_DISPLAY_MODE, 192 /*default*/Settings.Secure.VR_DISPLAY_MODE_LOW_PERSISTENCE,
|
/frameworks/opt/car/setupwizard/library/tests/robotests/src/com/android/car/setupwizardlib/util/ |
CarWizardManagerHelperTest.java | 144 Settings.Secure.putInt(context.getContentResolver(), 145 Settings.Secure.USER_SETUP_COMPLETE, 1); 155 Settings.Secure.putInt(context.getContentResolver(), 156 Settings.Secure.USER_SETUP_COMPLETE, 0);
|
/packages/apps/Settings/src/com/android/settings/deletionhelper/ |
AutomaticStorageManagerSettings.java | 72 Settings.Secure.getInt( 74 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN, 128 Settings.Secure.putInt( 130 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN,
|
/packages/apps/Settings/src/com/android/settings/search/ |
DeviceIndexFeatureProvider.java | 122 Settings.Secure.getString(context.getContentResolver(), INDEX_VERSION), VERSION); 124 Settings.Secure.getString(context.getContentResolver(), INDEX_LANGUAGE), 130 Settings.Secure.putString(context.getContentResolver(), INDEX_VERSION, VERSION); 131 Settings.Secure.putString(context.getContentResolver(), INDEX_LANGUAGE,
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
AccessibilitySlicePreferenceControllerTest.java | 65 Settings.Secure.putInt(contentResolver, Settings.Secure.ACCESSIBILITY_ENABLED, 1 /* on */); 66 Settings.Secure.putString(contentResolver, Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deletionhelper/ |
AutomaticStorageManagerSwitchBarControllerTest.java | 121 Settings.Secure.putInt( 123 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 139 Settings.Secure.putInt( 141 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED,
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/autofill/ |
AutofillHelper.java | 73 return Settings.Secure.getString(context.getContentResolver(), 74 Settings.Secure.AUTOFILL_SERVICE); 149 Settings.Secure.putString(context.getContentResolver(), Settings.Secure.AUTOFILL_SERVICE,
|