Searched refs:Settings (Results 1 - 25 of 206) sorted by relevance

123456789

/frameworks/base/core/tests/coretests/src/android/provider/
H A DSettingsProviderTest.java31 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/services/java/com/android/server/wifi/
H A DWifiSettingsStore.java21 import android.provider.Settings;
28 /* Values tracked in Settings.Global.WIFI_ON */
138 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state);
143 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(),
144 Settings.Global.AIRPLANE_MODE_RADIOS);
146 || airplaneModeRadios.contains(Settings.Global.RADIO_WIFI);
151 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(),
152 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
154 && toggleableRadios.contains(Settings
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DContentQueryMapTest.java25 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 DDatabaseHelper.java39 import android.provider.Settings;
40 import android.provider.Settings.Global;
41 import android.provider.Settings.Secure;
291 Settings.Secure.ADB_ENABLED,
292 Settings.Secure.ANDROID_ID,
293 Settings.Secure.BLUETOOTH_ON,
294 Settings.Secure.DATA_ROAMING,
295 Settings.Secure.DEVICE_PROVISIONED,
296 Settings.Secure.HTTP_PROXY,
297 Settings
[all...]
H A DSettingsHelper.java32 import android.provider.Settings;
58 if (Settings.System.SCREEN_BRIGHTNESS.equals(name)) {
60 } else if (Settings.System.SOUND_EFFECTS_ENABLED.equals(name)) {
62 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) {
65 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) {
69 } else if (Settings.System.RINGTONE.equals(name)
70 || Settings.System.NOTIFICATION_SOUND.equals(name)) {
79 if (Settings.System.RINGTONE.equals(name)
80 || Settings.System.NOTIFICATION_SOUND.equals(name)) {
95 * @param name should be Settings
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DRotationPolicy.java28 import android.provider.Settings;
76 Settings.System.getIntForUser(context.getContentResolver(),
77 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0,
85 return Settings.System.getIntForUser(context.getContentResolver(),
86 Settings.System.ACCELEROMETER_ROTATION, 0, UserHandle.USER_CURRENT) == 0;
95 Settings.System.putIntForUser(context.getContentResolver(),
96 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0,
123 Settings.System.putIntForUser(context.getContentResolver(),
124 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, enabled ? 1 : 0,
158 context.getContentResolver().registerContentObserver(Settings
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
H A DHapticFeedbackController.java9 import android.provider.Settings;
19 return Settings.System.getInt(context.getContentResolver(),
20 Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 1;
48 Uri uri = Settings.System.getUriFor(Settings.System.HAPTIC_FEEDBACK_ENABLED);
/frameworks/base/core/tests/coretests/src/android/os/
H A DBrightnessLimit.java25 import android.provider.Settings;
57 Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, 0);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBootReceiver.java23 import android.provider.Settings;
38 if (Settings.Global.getInt(res, Settings.Global.SHOW_PROCESSES, 0) != 0) {
/frameworks/base/services/java/com/android/server/am/
H A DCoreSettingsObserver.java23 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/packages/SystemUI/src/com/android/systemui/settings/
H A DBrightnessController.java30 import android.provider.Settings;
31 import android.provider.Settings.SettingNotFoundException;
62 Settings.System.getUriFor(Settings.System.SCREEN_BRIGHTNESS_MODE);
64 Settings.System.getUriFor(Settings.System.SCREEN_BRIGHTNESS);
161 setMode(automatic ? Settings.System.SCREEN_BRIGHTNESS_MODE_AUTOMATIC
162 : Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL);
170 Settings.System.putIntForUser(mContext.getContentResolver(),
171 Settings
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DLoudnessEnhancer.java211 * The Settings class regroups the LoudnessEnhancer parameters. It is used in
215 public static class Settings { class in class:LoudnessEnhancer
218 public Settings() { method in class:LoudnessEnhancer.Settings
222 * Settings class constructor from a key=value; pairs formatted string. The string is
223 * typically returned by Settings.toString() method.
226 public Settings(String settings) { method in class:LoudnessEnhancer.Settings
263 * @return a LoudnessEnhancer.Settings object containing all current parameters values
268 public LoudnessEnhancer.Settings getProperties()
270 Settings settings = new Settings();
[all...]
H A DPresetReverb.java234 * 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 DBassBoost.java217 * 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 DVirtualizer.java219 * 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 DDockObserver.java32 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 DSamplingProfilerService.java28 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);
/frameworks/base/core/java/android/provider/
H A DSettings.java63 * The Settings provider contains global system-level device preferences.
65 public final class Settings { class
67 // Intent actions for Settings
752 // End of Intent actions for Settings
814 private static final String TAG = "Settings";
860 new String[] { Settings.NameValueTable.VALUE };
898 arg.putString(Settings.NameValueTable.VALUE, value);
938 // fails (alternate Settings provider that doesn't support
1068 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_ON);
1069 MOVED_TO_GLOBAL.add(Settings
[all...]
/frameworks/base/core/java/android/service/dreams/
H A DSandman.java27 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DLocationController.java32 import android.provider.Settings;
131 ? Settings.Secure.LOCATION_MODE_HIGH_ACCURACY : Settings.Secure.LOCATION_MODE_OFF;
134 return Settings.Secure
135 .putIntForUser(cr, Settings.Secure.LOCATION_MODE, mode, currentUserId);
145 int mode = Settings.Secure.getIntForUser(resolver, Settings.Secure.LOCATION_MODE,
146 Settings.Secure.LOCATION_MODE_OFF, ActivityManager.getCurrentUser());
147 return mode != Settings.Secure.LOCATION_MODE_OFF;
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DEnableAccessibilityController.java33 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 DShortcutManager.java24 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 DNtpTrustedTime.java24 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/testing/uiautomator/library/testrunner-src/com/android/uiautomator/core/
H A DShellUiAutomatorBridge.java33 import android.provider.Settings;
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/services/tests/servicestests/src/com/android/server/pm/
H A DPackageManagerSettingsTests.java141 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());

Completed in 1835 milliseconds

123456789