/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
LocationModeDeviceOnlyTestActivity.java | 20 import android.provider.Settings.Secure; 48 testIsExpectedMode(1, Secure.LOCATION_MODE_SENSORS_ONLY);
|
LocationModeHighAccuracyTestActivity.java | 20 import android.provider.Settings.Secure; 48 testIsExpectedMode(1, Secure.LOCATION_MODE_HIGH_ACCURACY);
|
LocationModeOffTestActivity.java | 20 import android.provider.Settings.Secure; 44 testIsExpectedMode(0, Secure.LOCATION_MODE_OFF);
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
ToggleAutoclickPreferenceFragment.java | 98 Settings.Secure.putInt(getContentResolver(), preferenceKey, enabled ? 1 : 0); 113 int delay = Settings.Secure.getInt( 114 getContentResolver(), Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY, 129 int value = Settings.Secure.getInt(getContentResolver(), 130 Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED, 0); 144 onPreferenceToggled(Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED, isChecked); 157 Settings.Secure.putInt(getContentResolver(), 158 Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY,
|
AccessibilitySettings.java | 258 Settings.Secure.putInt(getContentResolver(), 259 Settings.Secure.LONG_PRESS_TIMEOUT, Integer.parseInt(stringValue)); 265 Settings.Secure.putInt(getContentResolver(), 266 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, (checked ? 1 : 0)); 300 Settings.Secure.putInt(getContentResolver(), 301 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 306 Settings.Secure.putInt(getContentResolver(), 307 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, 309 ? Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP 310 : Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF)) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
ManageAssist.java | 58 mContextPref.setChecked(Settings.Secure.getInt(getContentResolver(), 59 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1) != 0); 77 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ASSIST_STRUCTURE_ENABLED, 83 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 135 mScreenshotPref.setChecked(mContextPref.isChecked() && Settings.Secure.getInt( 136 getContentResolver(), Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 1) != 0);
|
DefaultEmergencyPreference.java | 61 String previousValue = Settings.Secure.getString(mContentResolver, 62 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION); 65 Settings.Secure.putString(mContentResolver, 66 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION, 82 String currentPkg = Settings.Secure.getString(mContentResolver, 83 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION); 122 String defaultPackage = Settings.Secure.getString(mContentResolver, 123 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION); 127 Settings.Secure.putString(mContentResolver, 128 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
UncachedInputMethodManagerUtils.java | 61 final String currentImeId = Settings.Secure.getString( 62 context.getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
|
/frameworks/base/core/java/android/service/dreams/ |
Sandman.java | 112 return Settings.Secure.getIntForUser(context.getContentResolver(), 113 Settings.Secure.SCREENSAVER_ENABLED, def, 120 return Settings.Secure.getIntForUser(context.getContentResolver(), 121 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, def,
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/ |
LocationUtils.java | 55 return Settings.Secure.getInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE, 56 Settings.Secure.LOCATION_MODE_OFF) != Settings.Secure.LOCATION_MODE_OFF;
|
/platform_testing/tests/functional/settingstests/src/com/android/settings/functional/ |
DisplaySettingsTest.java | 75 assertTrue(mHelper.verifyToggleSetting(SettingsType.SECURE, PAGE, 77 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED)); 78 assertTrue(mHelper.verifyToggleSetting(SettingsType.SECURE, PAGE, 80 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED)); 87 String initialSetting = Settings.Secure.getString(mResolver, Settings.Secure.DOZE_ENABLED); 89 Settings.Secure.putString(mResolver, Settings.Secure.DOZE_ENABLED, "1"); 91 assertTrue(mHelper.verifyToggleSetting(SettingsType.SECURE, PAGE, "Ambient display", 92 Settings.Secure.DOZE_ENABLED)) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
Utils.java | 83 String alreadyEnabledServices = Settings.Secure.getString( 84 cr, Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES); 92 "settings --user cur put secure " 93 + Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES + " " 100 "settings --user cur put secure " 101 + Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES + " " 105 fd = uiAutomation.executeShellCommand("settings --user cur put secure " 106 + Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES + " null");
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
DatabaseHelper.java | 42 import android.provider.Settings.Secure; 67 * secure, and system settings are no longer stored in a database 94 private static final String TABLE_SECURE = "secure"; 179 db.execSQL("CREATE TABLE secure (" + 184 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); 334 // This introduces the new secure settings table. 347 Settings.Secure.ADB_ENABLED, 348 Settings.Secure.ANDROID_ID, 349 Settings.Secure.BLUETOOTH_ON, 350 Settings.Secure.DATA_ROAMING [all...] |
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
InputMethodAndSubtypeUtil.java | 93 return Settings.Secure.getInt(resolver, 94 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE); 105 Settings.Secure.putInt(resolver, Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, hashCode); 111 final String enabledInputMethodsStr = Settings.Secure.getString( 112 resolver, Settings.Secure.ENABLED_INPUT_METHODS); 149 Settings.Secure.putString(resolver, 150 Settings.Secure.ENABLED_INPUT_METHODS, enabledImesAndSubtypesString); 155 String disabledIMEsStr = Settings.Secure.getString( 156 resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS) [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
CoreSettingsObserver.java | 31 * in {@link Settings.Secure}. 44 sSecureSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 45 // add other secure settings here... 85 Uri uri = Settings.Secure.getUriFor(setting); 111 value = Settings.Secure.getString(context.getContentResolver(), setting); 121 value = Settings.Secure.getInt(context.getContentResolver(), setting, 0); 131 value = Settings.Secure.getFloat(context.getContentResolver(), setting, 0); 141 value = Settings.Secure.getLong(context.getContentResolver(), setting, 0);
|
/frameworks/base/telecomm/java/android/telecom/ |
DefaultDialerManager.java | 42 * The caller of this method needs to have permission to write to secure settings and 56 * The caller of this method needs to have permission to write to secure settings and 67 String oldPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), 68 Settings.Secure.DIALER_DEFAULT_APPLICATION, user); 79 // Update the secure setting. 80 Settings.Secure.putStringForUser(context.getContentResolver(), 81 Settings.Secure.DIALER_DEFAULT_APPLICATION, packageName, user); 118 String defaultPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), 119 Settings.Secure.DIALER_DEFAULT_APPLICATION, user);
|
/frameworks/base/cmds/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/notification/ |
ConfigureNotificationSettings.java | 195 Settings.Secure.putInt(getContentResolver(), 196 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, show ? 1 : 0); 197 Settings.Secure.putInt(getContentResolver(), 198 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0); 263 Settings.Secure.putIntForUser(getContentResolver(), 264 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 266 Settings.Secure.putIntForUser(getContentResolver(), 267 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 331 return Settings.Secure.getIntForUser(getContentResolver(), 332 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0, userId) != 0 [all...] |
RedactionInterstitial.java | 142 final boolean enabled = Settings.Secure.getIntForUser(getContentResolver(), 143 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 0, mUserId) != 0; 144 final boolean show = Settings.Secure.getIntForUser(getContentResolver(), 145 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1, mUserId) != 0; 164 Settings.Secure.putIntForUser(getContentResolver(), 165 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, show ? 1 : 0, mUserId); 166 Settings.Secure.putIntForUser(getContentResolver(), 167 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0, mUserId);
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
TwilightService.java | 41 import android.provider.Settings.Secure; 124 Secure.getUriFor(Secure.TWILIGHT_MODE), false, mContentObserver, mCurrentUser); 134 contentResolver.registerContentObserver(Secure.getUriFor(Secure.TWILIGHT_MODE), false, 153 // State has been locked by secure setting, shouldn't be changed. 558 int value = Secure.getIntForUser(getContext().getContentResolver(), 559 Secure.TWILIGHT_MODE, Secure.TWILIGHT_MODE_LOCKED_OFF, mCurrentUser); 560 if (value == Secure.TWILIGHT_MODE_LOCKED_OFF) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
TunerService.java | 105 Settings.Secure.putStringForUser(mContentResolver, 114 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser); 118 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser); 122 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser); 126 Settings.Secure.putIntForUser(mContentResolver, setting, value, mCurrentUser); 140 Uri uri = Settings.Secure.getUriFor(key); 146 String value = Settings.Secure.getStringForUser(mContentResolver, key, mCurrentUser); 172 String value = Settings.Secure.getStringForUser(mContentResolver, key, mCurrentUser); 180 String value = Settings.Secure.getStringForUser(mContentResolver, key, 197 Settings.Secure.putString(mContentResolver, key, null) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
DisplaySettings.java | 60 import static android.provider.Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED; 61 import static android.provider.Settings.Secure.CAMERA_GESTURE_DISABLED; 62 import static android.provider.Settings.Secure.DOUBLE_TAP_TO_WAKE; 63 import static android.provider.Settings.Secure.DOZE_ENABLED; 64 import static android.provider.Settings.Secure.WAKE_GESTURE_ENABLED; 224 int current = Settings.Secure.getIntForUser(c.getContentResolver(), 225 Settings.Secure.VR_DISPLAY_MODE, 226 /*default*/Settings.Secure.VR_DISPLAY_MODE_LOW_PERSISTENCE, 234 if (!Settings.Secure.putIntForUser(c.getContentResolver(), 235 Settings.Secure.VR_DISPLAY_MODE [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
LocationControllerImpl.java | 114 ? Settings.Secure.LOCATION_MODE_PREVIOUS : Settings.Secure.LOCATION_MODE_OFF; 117 return Settings.Secure 118 .putIntForUser(cr, Settings.Secure.LOCATION_MODE, mode, currentUserId); 128 int mode = Settings.Secure.getIntForUser(resolver, Settings.Secure.LOCATION_MODE, 129 Settings.Secure.LOCATION_MODE_OFF, ActivityManager.getCurrentUser()); 130 return mode != Settings.Secure.LOCATION_MODE_OFF;
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
PreferredServices.java | 57 static final Uri paymentDefaultUri = Settings.Secure.getUriFor( 58 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT); 59 static final Uri paymentForegroundUri = Settings.Secure.getUriFor( 60 Settings.Secure.NFC_PAYMENT_FOREGROUND); 132 String name = Settings.Secure.getStringForUser( 133 mContext.getContentResolver(), Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT, 138 preferForeground = Settings.Secure.getInt(mContext.getContentResolver(), 139 Settings.Secure.NFC_PAYMENT_FOREGROUND) != 0;
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
PaymentBackend.java | 155 return Settings.Secure.getInt(mContext.getContentResolver(), 156 Settings.Secure.NFC_PAYMENT_FOREGROUND) != 0; 163 Settings.Secure.putInt(mContext.getContentResolver(), 164 Settings.Secure.NFC_PAYMENT_FOREGROUND, foreground ? 1 : 0) ; 168 String componentString = Settings.Secure.getString(mContext.getContentResolver(), 169 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT); 178 Settings.Secure.putString(mContext.getContentResolver(), 179 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT,
|