Home
last modified time | relevance | path

Searched refs:Settings (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/frameworks/base/core/tests/coretests/src/android/provider/
DSettingsProviderTest.java31 import android.provider.Settings;
43 Settings.Secure.putString(r, "test_service", "Value"); in testNameValueCache()
44 assertEquals("Value", Settings.Secure.getString(r, "test_service")); in testNameValueCache()
47 Settings.Secure.putString(r, "test_service", "New"); in testNameValueCache()
48 assertEquals("New", Settings.Secure.getString(r, "test_service")); in testNameValueCache()
51 assertEquals(1, r.delete(Settings.Secure.getUriFor("test_service"), null, null)); in testNameValueCache()
52 assertEquals(null, Settings.Secure.getString(r, "test_service")); in testNameValueCache()
55 Settings.System.putString(r, "test_setting", "Value"); in testNameValueCache()
56 assertEquals("Value", Settings.System.getString(r, "test_setting")); in testNameValueCache()
58 Settings.System.putString(r, "test_setting", "New"); in testNameValueCache()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java39 import android.provider.Settings;
40 import android.provider.Settings.Global;
41 import android.provider.Settings.Secure;
291 Settings.Secure.ADB_ENABLED, in onUpgrade()
292 Settings.Secure.ANDROID_ID, in onUpgrade()
293 Settings.Secure.BLUETOOTH_ON, in onUpgrade()
294 Settings.Secure.DATA_ROAMING, in onUpgrade()
295 Settings.Secure.DEVICE_PROVISIONED, in onUpgrade()
296 Settings.Secure.HTTP_PROXY, in onUpgrade()
297 Settings.Secure.INSTALL_NON_MARKET_APPS, in onUpgrade()
[all …]
DSettingsHelper.java32 import android.provider.Settings;
58 if (Settings.System.SCREEN_BRIGHTNESS.equals(name)) { in restoreValue()
60 } else if (Settings.System.SOUND_EFFECTS_ENABLED.equals(name)) { in restoreValue()
62 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) { in restoreValue()
65 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) { in restoreValue()
69 } else if (Settings.System.RINGTONE.equals(name) in restoreValue()
70 || Settings.System.NOTIFICATION_SOUND.equals(name)) { in restoreValue()
79 if (Settings.System.RINGTONE.equals(name) in onBackupValue()
80 || Settings.System.NOTIFICATION_SOUND.equals(name)) { in onBackupValue()
112 final int ringtoneType = Settings.System.RINGTONE.equals(name) in setRingtone()
[all …]
DSettingsBackupAgent.java33 import android.provider.Settings;
108 Settings.NameValueTable._ID,
109 Settings.NameValueTable.NAME,
110 Settings.NameValueTable.VALUE
349 final int scanAlways = Settings.Global.getInt(cr, in run()
350 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); in run()
353 Settings.Global.putInt(cr, in run()
354 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0); in run()
372 Settings.Global.putInt(cr, in run()
373 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, scanAlways); in run()
[all …]
DSettingsProvider.java55 import android.provider.Settings;
122 Settings.Secure.getMovedKeys(sSecureGlobalKeys);
127 Settings.System.getNonLegacyMovedKeys(sSystemGlobalKeys);
165 this.where = Settings.NameValueTable.NAME + "=?"; in SqlArguments()
212 String name = values.getAsString(Settings.NameValueTable.NAME); in getUriFor()
235 property = Settings.System.SYS_PROP_SETTING_VERSION; in sendNotify()
238 property = Settings.Secure.SYS_PROP_SETTING_VERSION; in sendNotify()
241 property = Settings.Global.SYS_PROP_SETTING_VERSION; // this one is global in sendNotify()
447 new String[] { Settings.NameValueTable.NAME, Settings.NameValueTable.VALUE }, in fullyPopulateCache()
476 final Cursor c = queryForUser(Settings.Secure.CONTENT_URI, in ensureAndroidIdIsSet()
[all …]
/frameworks/base/services/java/com/android/server/wifi/
DWifiSettingsStore.java21 import android.provider.Settings;
138 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state); in persistWifiState()
143 String airplaneModeRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneSensitive()
144 Settings.Global.AIRPLANE_MODE_RADIOS); in isAirplaneSensitive()
146 || airplaneModeRadios.contains(Settings.Global.RADIO_WIFI); in isAirplaneSensitive()
151 String toggleableRadios = Settings.Global.getString(mContext.getContentResolver(), in isAirplaneToggleable()
152 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS); in isAirplaneToggleable()
154 && toggleableRadios.contains(Settings.Global.RADIO_WIFI); in isAirplaneToggleable()
168 wifiSavedState = Settings.Global.getInt(cr, Settings.Global.WIFI_SAVED_STATE); in testAndClearWifiSavedState()
170 Settings.Global.putInt(cr, Settings.Global.WIFI_SAVED_STATE, 0); in testAndClearWifiSavedState()
[all …]
DWifiController.java39 import android.provider.Settings;
206 mStayAwakeConditions = Settings.Global.getInt(mContext.getContentResolver(), in readStayAwakeConditions()
207 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0); in readStayAwakeConditions()
211 mIdleMillis = Settings.Global.getLong(mContext.getContentResolver(), in readWifiIdleTime()
212 Settings.Global.WIFI_IDLE_MS, DEFAULT_IDLE_MS); in readWifiIdleTime()
216 mSleepPolicy = Settings.Global.getInt(mContext.getContentResolver(), in readWifiSleepPolicy()
217 Settings.Global.WIFI_SLEEP_POLICY, in readWifiSleepPolicy()
218 Settings.Global.WIFI_SLEEP_POLICY_NEVER); in readWifiSleepPolicy()
222 mReEnableDelayMillis = Settings.Global.getLong(mContext.getContentResolver(), in readWifiReEnableDelay()
223 Settings.Global.WIFI_REENABLE_DELAY_MS, DEFAULT_REENABLE_DELAY_MS); in readWifiReEnableDelay()
[all …]
/frameworks/base/core/java/android/provider/
DSettings.java65 public final class Settings { class
860 new String[] { Settings.NameValueTable.VALUE };
898 arg.putString(Settings.NameValueTable.VALUE, value); in putStringForUser()
1068 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_ON);
1069 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_RADIOS);
1070 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
1071 MOVED_TO_GLOBAL.add(Settings.Global.AUTO_TIME);
1072 MOVED_TO_GLOBAL.add(Settings.Global.AUTO_TIME_ZONE);
1073 MOVED_TO_GLOBAL.add(Settings.Global.CAR_DOCK_SOUND);
1074 MOVED_TO_GLOBAL.add(Settings.Global.CAR_UNDOCK_SOUND);
[all …]
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java28 import android.provider.Settings;
76 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible()
77 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0, in isRotationLockToggleVisible()
85 return Settings.System.getIntForUser(context.getContentResolver(), in isRotationLocked()
86 Settings.System.ACCELEROMETER_ROTATION, 0, UserHandle.USER_CURRENT) == 0; in isRotationLocked()
95 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLock()
96 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0, in setRotationLock()
123 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLockForAccessibility()
124 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, enabled ? 1 : 0, in setRotationLockForAccessibility()
158 context.getContentResolver().registerContentObserver(Settings.System.getUriFor( in registerRotationPolicyListener()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
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 in onChanged()
162 : Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL); in onChanged()
170 Settings.System.putIntForUser(mContext.getContentResolver(), in onChanged()
171 Settings.System.SCREEN_BRIGHTNESS, val, in onChanged()
184 Settings.System.putIntForUser(mContext.getContentResolver(), in setMode()
185 Settings.System.SCREEN_BRIGHTNESS_MODE, mode, in setMode()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContentQueryMapTest.java25 import android.provider.Settings;
57 Settings.System.putString(r, "test", "Value"); in testContentQueryMap()
59 Settings.System.CONTENT_URI, in testContentQueryMap()
61 Settings.System.NAME, in testContentQueryMap()
62 Settings.System.VALUE, in testContentQueryMap()
66 cursor, Settings.System.NAME, true, null); in testContentQueryMap()
72 Settings.System.putString(r, "test", "New Value"); in testContentQueryMap()
74 String value = v.getAsString(Settings.System.VALUE); in testContentQueryMap()
82 String value = v.getAsString(Settings.System.VALUE); in testContentQueryMap()
/frameworks/base/services/java/com/android/server/am/
DCoreSettingsObserver.java23 import android.provider.Settings;
24 import android.provider.Settings.SettingNotFoundException;
43 sCoreSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); in sCoreSettingToTypeMap.put()
76 Uri uri = Settings.Secure.getUriFor(setting); in beginObserveCoreSettings()
89 String value = Settings.Secure.getString(context.getContentResolver(), in populateCoreSettings()
93 int value = Settings.Secure.getInt(context.getContentResolver(), in populateCoreSettings()
97 float value = Settings.Secure.getFloat(context.getContentResolver(), in populateCoreSettings()
101 long value = Settings.Secure.getLong(context.getContentResolver(), in populateCoreSettings()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DEnableAccessibilityController.java33 import android.provider.Settings;
111 mTone = RingtoneManager.getRingtone(context, Settings.System.DEFAULT_NOTIFICATION_URI); in EnableAccessibilityController()
128 return Settings.Global.getInt(context.getContentResolver(), in canEnableAccessibilityViaGesture()
129 Settings.Global.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED, 0) == 1 in canEnableAccessibilityViaGesture()
252 Settings.Secure.putStringForUser(resolver, in enableAccessibility()
253 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in enableAccessibility()
256 Settings.Secure.putStringForUser(resolver, in enableAccessibility()
257 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES, in enableAccessibility()
261 Settings.Secure.putIntForUser(resolver, Settings.Secure.TOUCH_EXPLORATION_ENABLED, in enableAccessibility()
265 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION, in enableAccessibility()
[all …]
/frameworks/base/services/java/com/android/server/
DDockObserver.java32 import android.provider.Settings;
137 if (Settings.Global.getInt(cr, in handleDockStateChange()
138 Settings.Global.DEVICE_PROVISIONED, 0) == 0) { in handleDockStateChange()
150 if (Settings.Global.getInt(cr, in handleDockStateChange()
151 Settings.Global.DOCK_SOUNDS_ENABLED, 1) == 1) { in handleDockStateChange()
157 whichSound = Settings.Global.DESK_UNDOCK_SOUND; in handleDockStateChange()
159 whichSound = Settings.Global.CAR_UNDOCK_SOUND; in handleDockStateChange()
165 whichSound = Settings.Global.DESK_DOCK_SOUND; in handleDockStateChange()
167 whichSound = Settings.Global.CAR_DOCK_SOUND; in handleDockStateChange()
172 final String soundPath = Settings.Global.getString(cr, whichSound); in handleDockStateChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationController.java32 import android.provider.Settings;
131 ? Settings.Secure.LOCATION_MODE_HIGH_ACCURACY : Settings.Secure.LOCATION_MODE_OFF; in setLocationEnabled()
134 return Settings.Secure in setLocationEnabled()
135 .putIntForUser(cr, Settings.Secure.LOCATION_MODE, mode, currentUserId); in setLocationEnabled()
145 int mode = Settings.Secure.getIntForUser(resolver, Settings.Secure.LOCATION_MODE, in isLocationEnabled()
146 Settings.Secure.LOCATION_MODE_OFF, ActivityManager.getCurrentUser()); in isLocationEnabled()
147 return mode != Settings.Secure.LOCATION_MODE_OFF; in isLocationEnabled()
/frameworks/base/cmds/settings/src/com/android/commands/settings/
DSettingsCmd.java28 import android.provider.Settings;
171 if ("system".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_SYSTEM; in getForUser()
172 else if ("secure".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_SECURE; in getForUser()
173 else if ("global".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_GLOBAL; in getForUser()
182 arg.putInt(Settings.CALL_METHOD_USER_KEY, userHandle); in getForUser()
196 if ("system".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_SYSTEM; in putForUser()
197 else if ("secure".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_SECURE; in putForUser()
198 else if ("global".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_GLOBAL; in putForUser()
206 arg.putString(Settings.NameValueTable.VALUE, value); in putForUser()
207 arg.putInt(Settings.CALL_METHOD_USER_KEY, userHandle); in putForUser()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/
DHapticFeedbackController.java9 import android.provider.Settings;
19 return Settings.System.getInt(context.getContentResolver(), in checkGlobalSetting()
20 Settings.System.HAPTIC_FEEDBACK_ENABLED, 0) == 1; in checkGlobalSetting()
48 Uri uri = Settings.System.getUriFor(Settings.System.HAPTIC_FEEDBACK_ENABLED); in start()
/frameworks/base/media/java/android/media/audiofx/
DLoudnessEnhancer.java215 public static class Settings { class in LoudnessEnhancer
218 public Settings() { in Settings() method in LoudnessEnhancer.Settings
226 public Settings(String settings) { in Settings() method in LoudnessEnhancer.Settings
268 public LoudnessEnhancer.Settings getProperties() in getProperties()
270 Settings settings = new Settings(); in getProperties()
286 public void setProperties(LoudnessEnhancer.Settings settings) in setProperties()
DPresetReverb.java238 public static class Settings { class in PresetReverb
241 public Settings() { in Settings() method in PresetReverb.Settings
249 public Settings(String settings) { in Settings() method in PresetReverb.Settings
290 public PresetReverb.Settings getProperties() in getProperties()
292 Settings settings = new Settings(); in getProperties()
307 public void setProperties(PresetReverb.Settings settings) in setProperties()
DVirtualizer.java223 public static class Settings { class in Virtualizer
226 public Settings() { in Settings() method in Virtualizer.Settings
234 public Settings(String settings) { in Settings() method in Virtualizer.Settings
275 public Virtualizer.Settings getProperties() in getProperties()
277 Settings settings = new Settings(); in getProperties()
292 public void setProperties(Virtualizer.Settings settings) in setProperties()
DBassBoost.java221 public static class Settings { class in BassBoost
224 public Settings() { in Settings() method in BassBoost.Settings
232 public Settings(String settings) { in Settings() method in BassBoost.Settings
273 public BassBoost.Settings getProperties() in getProperties()
275 Settings settings = new Settings(); in getProperties()
290 public void setProperties(BassBoost.Settings settings) in setProperties()
/frameworks/base/media/java/android/media/
DRingtoneManager.java31 import android.provider.Settings;
32 import android.provider.Settings.System;
617 final String uriString = Settings.System.getString(context.getContentResolver(), setting); in getActualDefaultRingtoneUri()
634 Settings.System.putString(context.getContentResolver(), setting, in setActualDefaultRingtoneUri()
640 return Settings.System.RINGTONE; in getSettingForType()
642 return Settings.System.NOTIFICATION_SOUND; in getSettingForType()
644 return Settings.System.ALARM_ALERT; in getSettingForType()
672 } else if (defaultRingtoneUri.equals(Settings.System.DEFAULT_RINGTONE_URI)) { in getDefaultType()
674 } else if (defaultRingtoneUri.equals(Settings.System.DEFAULT_NOTIFICATION_URI)) { in getDefaultType()
676 } else if (defaultRingtoneUri.equals(Settings.System.DEFAULT_ALARM_ALERT_URI)) { in getDefaultType()
[all …]
/frameworks/base/core/java/android/service/dreams/
DSandman.java27 import android.provider.Settings;
111 return Settings.Secure.getIntForUser(context.getContentResolver(), in isScreenSaverEnabled()
112 Settings.Secure.SCREENSAVER_ENABLED, def, in isScreenSaverEnabled()
119 return Settings.Secure.getIntForUser(context.getContentResolver(), in isScreenSaverActivatedOnDock()
120 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, def, in isScreenSaverActivatedOnDock()
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java31 import static android.provider.Settings.Secure.getString;
33 import android.provider.Settings;
77 Settings.Secure.TTS_DEFAULT_SYNTH); in getDefaultEngine()
296 getString(mContext.getContentResolver(), Settings.Secure.TTS_DEFAULT_LOCALE), in getLocalePrefForEngine()
337 final String lang = Settings.Secure.getString(cr, Settings.Secure.TTS_DEFAULT_LANG); in getV1Locale()
338 final String country = Settings.Secure.getString(cr, Settings.Secure.TTS_DEFAULT_COUNTRY); in getV1Locale()
339 final String variant = Settings.Secure.getString(cr, Settings.Secure.TTS_DEFAULT_VARIANT); in getV1Locale()
429 final String prefList = Settings.Secure.getString(mContext.getContentResolver(), in updateLocalePrefForEngine()
430 Settings.Secure.TTS_DEFAULT_LOCALE); in updateLocalePrefForEngine()
441 Settings.Secure.putString(mContext.getContentResolver(), in updateLocalePrefForEngine()
[all …]
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java24 import android.provider.Settings;
62 final String secureServer = Settings.Global.getString( in getInstance()
63 resolver, Settings.Global.NTP_SERVER); in getInstance()
64 final long timeout = Settings.Global.getLong( in getInstance()
65 resolver, Settings.Global.NTP_TIMEOUT, defaultTimeout); in getInstance()

12345678910>>...13