/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | SettingsProviderTest.java | 31 import android.provider.Settings; 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")); 55 Settings.System.putString(r, "test_setting", "Value"); 56 assertEquals("Value", Settings.System.getString(r, "test_setting")); 58 Settings [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | RotationPolicy.java | 27 import android.provider.Settings; 59 Settings.System.getIntForUser(context.getContentResolver(), 60 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0, 68 return Settings.System.getIntForUser(context.getContentResolver(), 69 Settings.System.ACCELEROMETER_ROTATION, 0, UserHandle.USER_CURRENT) == 0; 78 Settings.System.putIntForUser(context.getContentResolver(), 79 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0, 106 Settings.System.putIntForUser(context.getContentResolver(), 107 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, enabled ? 1 : 0, 141 context.getContentResolver().registerContentObserver(Settings [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | ContentQueryMapTest.java | 25 import android.provider.Settings; 57 Settings.System.putString(r, "test", "Value"); 59 Settings.System.CONTENT_URI, 61 Settings.System.NAME, 62 Settings.System.VALUE, 66 cursor, Settings.System.NAME, true, null); 72 Settings.System.putString(r, "test", "New Value"); 74 String value = v.getAsString(Settings.System.VALUE); 82 String value = v.getAsString(Settings.System.VALUE);
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | DatabaseHelper.java | 36 import android.provider.Settings; 37 import android.provider.Settings.Global; 38 import android.provider.Settings.Secure; 280 Settings.Secure.ADB_ENABLED, 281 Settings.Secure.ANDROID_ID, 282 Settings.Secure.BLUETOOTH_ON, 283 Settings.Secure.DATA_ROAMING, 284 Settings.Secure.DEVICE_PROVISIONED, 285 Settings.Secure.HTTP_PROXY, 286 Settings [all...] |
H A D | SettingsHelper.java | 31 import android.provider.Settings; 54 if (Settings.System.SCREEN_BRIGHTNESS.equals(name)) { 56 } else if (Settings.System.SOUND_EFFECTS_ENABLED.equals(name)) { 58 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) { 61 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) { 75 if (Settings.Secure.ACCESSIBILITY_ENABLED.equals(name) 76 || Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION.equals(name) 77 || Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD.equals(name) 78 || Settings.Secure.TOUCH_EXPLORATION_ENABLED.equals(name)) { 79 return Settings [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | BrightnessLimit.java | 25 import android.provider.Settings; 57 Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, 0);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BootReceiver.java | 23 import android.provider.Settings; 38 if (Settings.Global.getInt(res, Settings.Global.SHOW_PROCESSES, 0) != 0) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BrightnessController.java | 26 import android.provider.Settings; 27 import android.provider.Settings.SettingNotFoundException; 83 automatic = Settings.System.getIntForUser(mContext.getContentResolver(), 84 Settings.System.SCREEN_BRIGHTNESS_MODE, 99 value = Settings.System.getIntForUser(mContext.getContentResolver(), 100 Settings.System.SCREEN_BRIGHTNESS, 111 setMode(automatic ? Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC 112 : Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL); 120 Settings.System.putIntForUser(mContext.getContentResolver(), 121 Settings [all...] |
H A D | AirplaneModeController.java | 28 import android.provider.Settings; 77 return 0 != Settings.Global.getInt(cr, Settings.Global.AIRPLANE_MODE_ON, 0); 85 Settings.Global.putInt( 87 Settings.Global.AIRPLANE_MODE_ON,
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | CoreSettingsObserver.java | 23 import android.provider.Settings; 24 import android.provider.Settings.SettingNotFoundException; 34 * in {@link Settings.Secure}. 43 sCoreSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); 76 Uri uri = Settings.Secure.getUriFor(setting); 89 String value = Settings.Secure.getString(context.getContentResolver(), 93 int value = Settings.Secure.getInt(context.getContentResolver(), 97 float value = Settings.Secure.getFloat(context.getContentResolver(), 101 long value = Settings.Secure.getLong(context.getContentResolver(),
|
/frameworks/base/media/java/android/media/audiofx/ |
H A D | PresetReverb.java | 234 * The Settings class regroups all preset reverb parameters. It is used in 238 public static class Settings { class in class:PresetReverb 241 public Settings() { method in class:PresetReverb.Settings 245 * Settings class constructor from a key=value; pairs formatted string. The string is 246 * typically returned by Settings.toString() method. 249 public Settings(String settings) { method in class:PresetReverb.Settings 285 * @return a PresetReverb.Settings object containing all current parameters values 290 public PresetReverb.Settings getProperties() 292 Settings settings = new Settings(); [all...] |
H A D | BassBoost.java | 217 * The Settings class regroups all bass boost parameters. It is used in 221 public static class Settings { class in class:BassBoost 224 public Settings() { method in class:BassBoost.Settings 228 * Settings class constructor from a key=value; pairs formatted string. The string is 229 * typically returned by Settings.toString() method. 232 public Settings(String settings) { method in class:BassBoost.Settings 268 * @return a BassBoost.Settings object containing all current parameters values 273 public BassBoost.Settings getProperties() 275 Settings settings = new Settings(); [all...] |
H A D | Virtualizer.java | 219 * The Settings class regroups all virtualizer parameters. It is used in 223 public static class Settings { class in class:Virtualizer 226 public Settings() { method in class:Virtualizer.Settings 230 * Settings class constructor from a key=value; pairs formatted string. The string is 231 * typically returned by Settings.toString() method. 234 public Settings(String settings) { method in class:Virtualizer.Settings 270 * @return a Virtualizer.Settings object containing all current parameters values 275 public Virtualizer.Settings getProperties() 277 Settings settings = new Settings(); [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | DockObserver.java | 32 import android.provider.Settings; 137 if (Settings.Global.getInt(cr, 138 Settings.Global.DEVICE_PROVISIONED, 0) == 0) { 150 if (Settings.Global.getInt(cr, 151 Settings.Global.DOCK_SOUNDS_ENABLED, 1) == 1) { 157 whichSound = Settings.Global.DESK_UNDOCK_SOUND; 159 whichSound = Settings.Global.CAR_UNDOCK_SOUND; 165 whichSound = Settings.Global.DESK_DOCK_SOUND; 167 whichSound = Settings.Global.CAR_DOCK_SOUND; 172 final String soundPath = Settings [all...] |
H A D | SamplingProfilerService.java | 28 import android.provider.Settings; 93 Settings.Global.getUriFor(Settings.Global.SAMPLING_PROFILER_MS), 114 Integer samplingProfilerMs = Settings.Global.getInt( 115 mContentResolver, Settings.Global.SAMPLING_PROFILER_MS, 0);
|
H A D | CertBlacklister.java | 24 import android.provider.Settings; 73 return Settings.Secure.getString(mContentResolver, mKey); 130 Settings.Secure.getUriFor(PUBKEY_BLACKLIST_KEY), 137 Settings.Secure.getUriFor(SERIAL_BLACKLIST_KEY),
|
/frameworks/base/core/java/android/service/dreams/ |
H A D | Sandman.java | 27 import android.provider.Settings; 111 return Settings.Secure.getIntForUser(context.getContentResolver(), 112 Settings.Secure.SCREENSAVER_ENABLED, def, 119 return Settings.Secure.getIntForUser(context.getContentResolver(), 120 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, def,
|
/frameworks/base/core/java/android/provider/ |
H A D | Settings.java | 62 * The Settings provider contains global system-level device preferences. 64 public final class Settings { class 66 // Intent actions for Settings 629 // End of Intent actions for Settings 679 private static final String TAG = "Settings"; 721 new String[] { Settings.NameValueTable.VALUE }; 759 arg.putString(Settings.NameValueTable.VALUE, value); 799 // fails (alternate Settings provider that doesn't support 929 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_ON); 930 MOVED_TO_GLOBAL.add(Settings [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | EnableAccessibilityController.java | 33 import android.provider.Settings; 111 mTone = RingtoneManager.getRingtone(context, Settings.System.DEFAULT_NOTIFICATION_URI); 128 return Settings.Global.getInt(context.getContentResolver(), 129 Settings.Global.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED, 0) == 1 252 Settings.Secure.putStringForUser(resolver, 253 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, 256 Settings.Secure.putStringForUser(resolver, 257 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES, 261 Settings.Secure.putIntForUser(resolver, Settings [all...] |
H A D | ShortcutManager.java | 24 import android.provider.Settings; 44 Settings.Bookmarks.SHORTCUT, Settings.Bookmarks.INTENT 62 Settings.Bookmarks.CONTENT_URI, sProjection, null, null, null);
|
/frameworks/base/core/java/android/util/ |
H A D | NtpTrustedTime.java | 24 import android.provider.Settings; 62 final String secureServer = Settings.Global.getString( 63 resolver, Settings.Global.NTP_SERVER); 64 final long timeout = Settings.Global.getLong( 65 resolver, Settings.Global.NTP_TIMEOUT, defaultTimeout);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | PackageManagerSettingsTests.java | 141 Settings settings = new Settings(getContext(), getContext().getFilesDir()); 159 Settings settings = new Settings(getContext(), getContext().getFilesDir()); 162 // Create Settings again to make it read from the new files 163 settings = new Settings(getContext(), getContext().getFilesDir()); 174 Settings settings = new Settings(getContext(), getContext().getFilesDir());
|
/frameworks/base/cmds/settings/src/com/android/commands/settings/ |
H A D | SettingsCmd.java | 28 import android.provider.Settings; 171 if ("system".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_SYSTEM; 172 else if ("secure".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_SECURE; 173 else if ("global".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_GLOBAL; 182 arg.putInt(Settings.CALL_METHOD_USER_KEY, userHandle); 196 if ("system".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_SYSTEM; 197 else if ("secure".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_SECURE; 198 else if ("global".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_GLOBAL; 206 arg.putString(Settings.NameValueTable.VALUE, value); 207 arg.putInt(Settings [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | ThrottleServiceTest.java | 41 import android.provider.Settings; 241 * Persist the given {@link ThrottleService} policy into {@link Settings}. 245 Settings.Global.putLong(resolver, Settings.Global.THROTTLE_THRESHOLD_BYTES, thresholdBytes); 246 Settings.Global.putInt(resolver, Settings.Global.THROTTLE_VALUE_KBITSPS, valueKbitps); 247 Settings.Global.putInt(resolver, Settings.Global.THROTTLE_RESET_DAY, resetDay); 251 * Clear any {@link ThrottleService} policy from {@link Settings}. 255 Settings [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | ObscureSpeechDelegate.java | 22 import android.provider.Settings; 88 if (Settings.Secure.getInt(mContentResolver, 89 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD, 0) != 0) {
|