/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
LocationFragment.java | 174 int mode = Settings.Secure.LOCATION_MODE_OFF; 179 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; 181 mode = Settings.Secure.LOCATION_MODE_OFF; 186 int currentMode = Settings.Secure.getInt(getActivity().getContentResolver(), 187 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); 192 Settings.Secure.putInt(getActivity().getContentResolver(), 193 Settings.Secure.LOCATION_MODE, mode); 204 final int mode = Settings.Secure.getInt(getActivity().getContentResolver(), 205 Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/ |
LocationModeBatterySavingTestActivity.java | 20 import android.provider.Settings.Secure; 48 testIsExpectedMode(1, Secure.LOCATION_MODE_BATTERY_SAVING);
|
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/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;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
DefaultEmergencyPreference.java | 68 String previousValue = Settings.Secure.getString(mContentResolver, 69 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION); 72 Settings.Secure.putString(mContentResolver, 73 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION, 89 String currentPkg = Settings.Secure.getString(mContentResolver, 90 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION); 129 String defaultPackage = Settings.Secure.getString(mContentResolver, 130 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION); 134 Settings.Secure.putString(mContentResolver, 135 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION [all...] |
ManageAssist.java | 62 mContextPref.setChecked(Settings.Secure.getInt(getContentResolver(), 63 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1) != 0); 84 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ASSIST_STRUCTURE_ENABLED, 93 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 98 Settings.Secure.putInt(getContentResolver(), Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 121 boolean screenshotPrefWasSet = Settings.Secure.getInt( 122 getContentResolver(), Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 1) != 0 [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...] |
/cts/tests/vr/src/android/vr/cts/ |
VrSetFIFOThreadTest.java | 60 String old_vr_listener = Settings.Secure.getString(mContext.getContentResolver(), ENABLED_VR_LISTENERS); 61 Settings.Secure.putString(mContext.getContentResolver(), 79 Settings.Secure.putString(mContext.getContentResolver(), 87 String old_vr_listener = Settings.Secure.getString(mContext.getContentResolver(), ENABLED_VR_LISTENERS); 88 Settings.Secure.putString(mContext.getContentResolver(), 105 Settings.Secure.putString(mContext.getContentResolver(),
|
/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...] |
/packages/apps/Settings/tests/app/src/com/android/settings/gesture/ |
GestureSettingsTest.java | 20 import android.provider.Settings.Secure; 64 assertToggleStateMatchesSettingValue(dozeSwitch, Secure.DOZE_ENABLED, 1, 1); 80 Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 0, 0); 87 Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED, 1, 1); 94 Secure.SYSTEM_NAVIGATION_KEYS_ENABLED, 0, 1); 101 Secure.DOZE_PULSE_ON_DOUBLE_TAP, 1, 1); 108 Secure.DOZE_PULSE_ON_PICK_UP, 1, 1); 185 int currentValue = Secure.getInt(mTargetContext.getContentResolver(), key, defaultVal); 192 assertEquals(newValue, Secure.getInt(mTargetContext.getContentResolver(), key, defaultVal));
|
/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...] |
/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,
|