/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | DisplayAdjustmentUtils.java | 21 import android.provider.Settings.Secure; 63 if (Secure.getIntForUser(cr, 64 Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) { 65 daltonizerMode = Secure.getIntForUser(cr, 66 Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, DEFAULT_DISPLAY_DALTONIZER, userId); 86 final boolean invertColors = Secure.getIntForUser(cr, 87 Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0;
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | CaptioningManager.java | 28 import android.provider.Settings.Secure; 75 return Secure.getInt( 76 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_ENABLED, DEFAULT_ENABLED) == 1; 86 return Secure.getString(mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_LOCALE); 116 return Secure.getFloat( 117 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, DEFAULT_FONT_SCALE); 125 return Secure.getInt( 126 mContentResolver, Secure.ACCESSIBILITY_CAPTIONING_PRESET, DEFAULT_PRESET); 152 registerObserver(Secure [all...] |
/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | 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 [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | NightDisplayController.java | 28 import android.provider.Settings.Secure; 108 return Secure.getIntForUser(mContext.getContentResolver(), 109 Secure.NIGHT_DISPLAY_ACTIVATED, 0, mUserId) == 1; 119 return Secure.putIntForUser(mContext.getContentResolver(), 120 Secure.NIGHT_DISPLAY_ACTIVATED, activated ? 1 : 0, mUserId); 129 int autoMode = Secure.getIntForUser(mContext.getContentResolver(), 130 Secure.NIGHT_DISPLAY_AUTO_MODE, -1, mUserId); 133 Slog.d(TAG, "Using default value for setting: " + Secure.NIGHT_DISPLAY_AUTO_MODE); 164 return Secure.putIntForUser(mContext.getContentResolver(), 165 Secure [all...] |
H A D | AssistUtils.java | 149 final String setting = Settings.Secure.getStringForUser(mContext.getContentResolver(), 150 Settings.Secure.ASSISTANT, userId); 187 return Settings.Secure.getInt(context.getContentResolver(), 188 Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 0) != 0;
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 58 * @see Secure#SETTINGS_TO_BACKUP 66 sBroadcastOnRestore.add(Settings.Secure.ENABLED_NOTIFICATION_LISTENERS); 67 sBroadcastOnRestore.add(Settings.Secure.ENABLED_VR_LISTENERS); 68 sBroadcastOnRestore.add(Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES); 69 sBroadcastOnRestore.add(Settings.Secure.ENABLED_INPUT_METHODS); 84 return Settings.Secure.getStringForUser(resolver, name, userHandle); 118 if (destination.equals(Settings.Secure.CONTENT_URI)) { 139 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) { 142 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) { 240 case Settings.Secure [all...] |
H A D | DatabaseHelper.java | 42 import android.provider.Settings.Secure; 347 Settings.Secure.ADB_ENABLED, 348 Settings.Secure.ANDROID_ID, 349 Settings.Secure.BLUETOOTH_ON, 350 Settings.Secure.DATA_ROAMING, 351 Settings.Secure.DEVICE_PROVISIONED, 352 Settings.Secure.HTTP_PROXY, 353 Settings.Secure.INSTALL_NON_MARKET_APPS, 354 Settings.Secure.LOCATION_PROVIDERS_ALLOWED, 355 Settings.Secure [all...] |
/frameworks/base/core/java/com/android/internal/hardware/ |
H A D | AmbientDisplayConfiguration.java | 45 return boolSetting(Settings.Secure.DOZE_ENABLED, user) && pulseOnNotificationAvailable(); 53 return boolSetting(Settings.Secure.DOZE_PULSE_ON_PICK_UP, user) 63 return boolSetting(Settings.Secure.DOZE_PULSE_ON_DOUBLE_TAP, user) 84 return Settings.Secure.getIntForUser(mContext.getContentResolver(), name, 1, user) != 0;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | SecureSetting.java | 23 import android.provider.Settings.Secure; 48 return Secure.getIntForUser(mContext.getContentResolver(), mSettingName, DEFAULT, mUserId); 52 Secure.putIntForUser(mContext.getContentResolver(), mSettingName, value, mUserId); 62 Secure.getUriFor(mSettingName), false, this, mUserId);
|
/frameworks/base/core/java/android/service/dreams/ |
H A D | 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,
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | CoreSettingsObserver.java | 31 * in {@link Settings.Secure}. 44 sSecureSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 45 sSecureSettingToTypeMap.put(Settings.Secure.MULTI_PRESS_TIMEOUT, int.class); 86 Uri uri = Settings.Secure.getUriFor(setting); 112 value = Settings.Secure.getString(context.getContentResolver(), setting); 122 value = Settings.Secure.getInt(context.getContentResolver(), setting, 0); 132 value = Settings.Secure.getFloat(context.getContentResolver(), setting, 0); 142 value = Settings.Secure.getLong(context.getContentResolver(), setting, 0);
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | DefaultDialerManager.java | 67 String oldPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), 68 Settings.Secure.DIALER_DEFAULT_APPLICATION, user); 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/ |
H A D | 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
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | 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 [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | 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;
|
H A D | ZenModeControllerImpl.java | 34 import android.provider.Settings.Secure; 264 return Secure.getIntForUser(mResolver, Secure.USER_SETUP_COMPLETE, 0, mUserId) != 0; 278 Secure.getUriFor(Secure.USER_SETUP_COMPLETE), false, this, mUserId); 285 || Secure.getUriFor(Secure.USER_SETUP_COMPLETE).equals(uri)) {
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | GestureLauncherService.java | 142 Settings.Secure.getUriFor(Settings.Secure.CAMERA_GESTURE_DISABLED), 145 Settings.Secure.getUriFor(Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED), 223 && (Settings.Secure.getIntForUser(context.getContentResolver(), 224 Settings.Secure.CAMERA_GESTURE_DISABLED, 0, userId) == 0); 229 && (Settings.Secure.getIntForUser(context.getContentResolver(), 230 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 0, userId) == 0); 288 boolean userSetupComplete = Settings.Secure.getIntForUser(mContext.getContentResolver(), 289 Settings.Secure [all...] |
H A D | CertBlacklister.java | 73 return Settings.Secure.getString(mContentResolver, mKey); 130 Settings.Secure.getUriFor(PUBKEY_BLACKLIST_KEY), 137 Settings.Secure.getUriFor(SERIAL_BLACKLIST_KEY),
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | WizardManagerHelper.java | 154 return Settings.Secure.getInt(context.getContentResolver(), 159 return Settings.Secure.getInt(context.getContentResolver(), 178 return Settings.Secure.getInt(context.getContentResolver(),
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
H A D | AccessibilityUtils.java | 56 final String enabledServicesSetting = Settings.Secure.getStringForUser( 57 context.getContentResolver(), Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, 145 Settings.Secure.putStringForUser(context.getContentResolver(), 146 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
|
/frameworks/base/services/core/java/com/android/server/lights/ |
H A D | 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/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | ObscureSpeechDelegate.java | 89 if (Settings.Secure.getIntForUser(mContentResolver, 90 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD, 0, UserHandle.USER_CURRENT) != 0) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/ |
H A D | DreamBackend.java | 142 return getBoolean(Settings.Secure.SCREENSAVER_ENABLED, mDreamsEnabledByDefault); 147 setBoolean(Settings.Secure.SCREENSAVER_ENABLED, value); 151 return getBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, 157 setBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, value); 161 return getBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP, 167 setBoolean(Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP, value); 171 return Settings.Secure.getInt(mContext.getContentResolver(), key, def ? 1 : 0) == 1; 175 Settings.Secure.putInt(mContext.getContentResolver(), key, value ? 1 : 0);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | RecentsTaskLoadPlan.java | 30 import android.provider.Settings.Secure; 143 long lastStackActiveTime = Settings.Secure.getLongForUser(mContext.getContentResolver(), 144 Secure.OVERVIEW_LAST_STACK_ACTIVE_TIME, legacyLastStackActiveTime, currentUserId); 206 Settings.Secure.putLongForUser(mContext.getContentResolver(), 207 Secure.OVERVIEW_LAST_STACK_ACTIVE_TIME, newLastStackActiveTime, currentUserId); 308 Settings.Secure.putLongForUser(mContext.getContentResolver(), 309 Secure.OVERVIEW_LAST_STACK_ACTIVE_TIME, legacyLastStackActiveTime,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/ |
H A D | DataCollector.java | 86 Settings.Secure.getUriFor(COLLECTOR_ENABLE), false, 91 Settings.Secure.getUriFor(COLLECT_BAD_TOUCHES), false, 96 Settings.Secure.getUriFor(ALLOW_REJECTED_TOUCH_REPORTS), false, 111 mEnableCollector = Build.IS_DEBUGGABLE && 0 != Settings.Secure.getInt( 114 mCollectBadTouches = mEnableCollector && 0 != Settings.Secure.getInt( 117 mAllowReportRejectedTouch = Build.IS_DEBUGGABLE && 0 != Settings.Secure.getInt(
|