Home
last modified time | relevance | path

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

12345678910>>...15

/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.java40 import android.provider.Settings;
41 import android.provider.Settings.Global;
42 import android.provider.Settings.Secure;
289 Settings.Secure.ADB_ENABLED, in onUpgrade()
290 Settings.Secure.ANDROID_ID, in onUpgrade()
291 Settings.Secure.BLUETOOTH_ON, in onUpgrade()
292 Settings.Secure.DATA_ROAMING, in onUpgrade()
293 Settings.Secure.DEVICE_PROVISIONED, in onUpgrade()
294 Settings.Secure.HTTP_PROXY, in onUpgrade()
295 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 …]
DSettingsProvider.java58 import android.provider.Settings;
59 import android.provider.Settings.Secure;
135 Settings.Secure.getMovedKeys(sSecureGlobalKeys);
140 Settings.System.getNonLegacyMovedKeys(sSystemGlobalKeys);
143 sRestrictedKeys.put(Settings.Secure.LOCATION_MODE, UserManager.DISALLOW_SHARE_LOCATION); in sRestrictedKeys.put()
144 sRestrictedKeys.put(Settings.Secure.LOCATION_PROVIDERS_ALLOWED, in sRestrictedKeys.put()
146 sRestrictedKeys.put(Settings.Secure.INSTALL_NON_MARKET_APPS, in sRestrictedKeys.put()
148 sRestrictedKeys.put(Settings.Global.ADB_ENABLED, UserManager.DISALLOW_DEBUGGING_FEATURES); in sRestrictedKeys.put()
149 sRestrictedKeys.put(Settings.Global.PACKAGE_VERIFIER_ENABLE, in sRestrictedKeys.put()
151 sRestrictedKeys.put(Settings.Global.PREFERRED_NETWORK_MODE, in sRestrictedKeys.put()
[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 …]
/frameworks/opt/net/wifi/service/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 …]
/frameworks/base/services/core/java/com/android/server/am/
DCoreSettingsObserver.java23 import android.provider.Settings;
24 import android.provider.Settings.SettingNotFoundException;
47 sSecureSettingToTypeMap.put(Settings.Secure.LONG_PRESS_TIMEOUT, int.class); in sSecureSettingToTypeMap.put()
50 sSystemSettingToTypeMap.put(Settings.System.TIME_12_24, String.class); in sSystemSettingToTypeMap.put()
53 sGlobalSettingToTypeMap.put(Settings.Global.DEBUG_VIEW_ATTRIBUTES, int.class); in sGlobalSettingToTypeMap.put()
88 Uri uri = Settings.Secure.getUriFor(setting); in beginObserveCoreSettings()
94 Uri uri = Settings.System.getUriFor(setting); in beginObserveCoreSettings()
100 Uri uri = Settings.Global.getUriFor(setting); in beginObserveCoreSettings()
115 value = Settings.Secure.getString(context.getContentResolver(), setting); in populateSettings()
117 value = Settings.System.getString(context.getContentResolver(), setting); in populateSettings()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DBrightnessController.java30 import android.provider.Settings;
72 Settings.System.getUriFor(Settings.System.SCREEN_BRIGHTNESS_MODE);
74 Settings.System.getUriFor(Settings.System.SCREEN_BRIGHTNESS);
76 Settings.System.getUriFor(Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ);
208 Settings.System.putIntForUser(mContext.getContentResolver(), in onChanged()
209 Settings.System.SCREEN_BRIGHTNESS, val, in onChanged()
220 Settings.System.putFloatForUser(mContext.getContentResolver(), in onChanged()
221 Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ, adj, in onChanged()
234 Settings.System.putIntForUser(mContext.getContentResolver(), in setMode()
235 Settings.System.SCREEN_BRIGHTNESS_MODE, mode, in setMode()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneFactory.java27 import android.provider.Settings;
28 import android.provider.Settings.SettingNotFoundException;
142 Settings.Global.PREFERRED_NETWORK_MODE, i); in makeDefaultPhone()
343 int networkType = Settings.Global.getInt(context.getContentResolver(), in calculatePreferredNetworkType()
344 Settings.Global.PREFERRED_NETWORK_MODE, preferredNetworkType); in calculatePreferredNetworkType()
358 subId = Settings.Global.getInt(sContext.getContentResolver(), in getVoiceSubscription()
359 Settings.Global.MULTI_SIM_VOICE_CALL_SUBSCRIPTION); in getVoiceSubscription()
383 value = Settings.Global.getInt(sContext.getContentResolver(), in isPromptEnabled()
384 Settings.Global.MULTI_SIM_VOICE_PROMPT); in isPromptEnabled()
397 Settings.Global.putInt(sContext.getContentResolver(), in setPromptEnabled()
[all …]
/frameworks/base/core/java/android/provider/
DSettings.java66 public final class Settings { class
1053 new String[] { Settings.NameValueTable.VALUE };
1091 arg.putString(Settings.NameValueTable.VALUE, value); in putStringForUser()
1263 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_ON);
1264 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_RADIOS);
1265 MOVED_TO_GLOBAL.add(Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
1266 MOVED_TO_GLOBAL.add(Settings.Global.AUTO_TIME);
1267 MOVED_TO_GLOBAL.add(Settings.Global.AUTO_TIME_ZONE);
1268 MOVED_TO_GLOBAL.add(Settings.Global.CAR_DOCK_SOUND);
1269 MOVED_TO_GLOBAL.add(Settings.Global.CAR_UNDOCK_SOUND);
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DDisplayAdjustmentUtils.java26 import android.provider.Settings;
63 if (Settings.Secure.getIntForUser(cr, in hasAdjustments()
64 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0) { in hasAdjustments()
68 if (Settings.Secure.getIntForUser(cr, in hasAdjustments()
69 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) { in hasAdjustments()
83 if (Settings.Secure.getIntForUser(cr, in applyAdjustments()
84 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 0, userId) != 0) { in applyAdjustments()
88 if (Settings.Secure.getIntForUser(cr, in applyAdjustments()
89 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 0, userId) != 0) { in applyAdjustments()
90 final int daltonizerMode = Settings.Secure.getIntForUser(cr, in applyAdjustments()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java29 import android.provider.Settings;
94 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible()
95 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0, in isRotationLockToggleVisible()
103 return Settings.System.getIntForUser(context.getContentResolver(), in isRotationLocked()
104 Settings.System.ACCELEROMETER_ROTATION, 0, UserHandle.USER_CURRENT) == 0; in isRotationLocked()
111 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLock()
112 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 0, in setRotationLock()
125 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLockForAccessibility()
126 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, enabled ? 1 : 0, in setRotationLockForAccessibility()
168 context.getContentResolver().registerContentObserver(Settings.System.getUriFor( in registerRotationPolicyListener()
[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/cmds/settings/src/com/android/commands/settings/
DSettingsCmd.java29 import android.provider.Settings;
179 if ("system".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_SYSTEM; in getForUser()
180 else if ("secure".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_SECURE; in getForUser()
181 else if ("global".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_GLOBAL; in getForUser()
190 arg.putInt(Settings.CALL_METHOD_USER_KEY, userHandle); in getForUser()
204 if ("system".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_SYSTEM; in putForUser()
205 else if ("secure".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_SECURE; in putForUser()
206 else if ("global".equals(table)) callPutCommand = Settings.CALL_METHOD_PUT_GLOBAL; in putForUser()
214 arg.putString(Settings.NameValueTable.VALUE, value); in putForUser()
215 arg.putInt(Settings.CALL_METHOD_USER_KEY, userHandle); in putForUser()
[all …]
/frameworks/base/core/java/android/service/fingerprint/
DFingerprintUtils.java20 import android.provider.Settings;
36 String fingerIdsRaw = Settings.Secure.getStringForUser(res, in getFingerprintIdsForUser()
37 Settings.Secure.USER_FINGERPRINT_IDS, userId); in getFingerprintIdsForUser()
66 Settings.Secure.putStringForUser(res, Settings.Secure.USER_FINGERPRINT_IDS, in addFingerprintIdForUser()
86 Settings.Secure.putStringForUser(res, Settings.Secure.USER_FINGERPRINT_IDS, in removeFingerprintIdForUser()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DEnableAccessibilityController.java33 import android.provider.Settings;
113 mTone = RingtoneManager.getRingtone(context, Settings.System.DEFAULT_NOTIFICATION_URI); in EnableAccessibilityController()
130 return Settings.Global.getInt(context.getContentResolver(), in canEnableAccessibilityViaGesture()
131 Settings.Global.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED, 0) == 1 in canEnableAccessibilityViaGesture()
254 Settings.Secure.putStringForUser(resolver, in enableAccessibility()
255 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, in enableAccessibility()
258 Settings.Secure.putStringForUser(resolver, in enableAccessibility()
259 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES, in enableAccessibility()
263 Settings.Secure.putIntForUser(resolver, Settings.Secure.TOUCH_EXPLORATION_ENABLED, in enableAccessibility()
267 Settings.Secure.putIntForUser(resolver, Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION, in enableAccessibility()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DApplicationRestrictionsTest.java27 import android.provider.Settings;
66 Settings.Secure.putInt(context.getContentResolver(), in setUp()
67 Settings.Secure.USER_SETUP_COMPLETE, 0); in setUp()
69 Settings.Secure.putInt(context.getContentResolver(), in setUp()
70 Settings.Secure.USER_SETUP_COMPLETE, 1); in setUp()
83 Settings.Secure.putInt(getContext().getContentResolver(), in tearDown()
84 Settings.Secure.USER_SETUP_COMPLETE, 0); in tearDown()
86 Settings.Secure.putInt(getContext().getContentResolver(), in tearDown()
87 Settings.Secure.USER_SETUP_COMPLETE, 1); in tearDown()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java29 import android.provider.Settings;
142 String scorerPackage = Settings.Global.getString(context.getContentResolver(), in getActiveScorer()
143 Settings.Global.NETWORK_SCORER_APP); in getActiveScorer()
158 String oldPackageName = Settings.Global.getString(context.getContentResolver(), in setActiveScorer()
159 Settings.Global.NETWORK_SCORER_APP); in setActiveScorer()
168 Settings.Global.putString(context.getContentResolver(), in setActiveScorer()
169 Settings.Global.NETWORK_SCORER_APP, null); in setActiveScorer()
174 Settings.Global.putString(context.getContentResolver(), in setActiveScorer()
175 Settings.Global.NETWORK_SCORER_APP, packageName); in setActiveScorer()
/frameworks/base/media/java/android/media/audiofx/
DBassBoost.java214 public static class Settings { class in BassBoost
217 public Settings() { in Settings() method in BassBoost.Settings
225 public Settings(String settings) { in Settings() method in BassBoost.Settings
266 public BassBoost.Settings getProperties() in getProperties()
268 Settings settings = new Settings(); in getProperties()
283 public void setProperties(BassBoost.Settings settings) in setProperties()
DPresetReverb.java230 public static class Settings { class in PresetReverb
233 public Settings() { in Settings() method in PresetReverb.Settings
241 public Settings(String settings) { in Settings() method in PresetReverb.Settings
282 public PresetReverb.Settings getProperties() in getProperties()
284 Settings settings = new Settings(); in getProperties()
299 public void setProperties(PresetReverb.Settings settings) in setProperties()
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java31 import android.provider.Settings;
121 ? Settings.Secure.LOCATION_MODE_HIGH_ACCURACY : Settings.Secure.LOCATION_MODE_OFF; in setLocationEnabled()
124 return Settings.Secure in setLocationEnabled()
125 .putIntForUser(cr, Settings.Secure.LOCATION_MODE, mode, currentUserId); in setLocationEnabled()
135 int mode = Settings.Secure.getIntForUser(resolver, Settings.Secure.LOCATION_MODE, in isLocationEnabled()
136 Settings.Secure.LOCATION_MODE_OFF, ActivityManager.getCurrentUser()); in isLocationEnabled()
137 return mode != Settings.Secure.LOCATION_MODE_OFF; in isLocationEnabled()
DHotspotControllerImpl.java29 import android.provider.Settings;
101 Settings.Global.putInt(cr, Settings.Global.WIFI_SAVED_STATE, 1); in setHotspotEnabled()
108 if (Settings.Global.getInt(cr, Settings.Global.WIFI_SAVED_STATE, 0) == 1) { in setHotspotEnabled()
110 Settings.Global.putInt(cr, Settings.Global.WIFI_SAVED_STATE, 0); in setHotspotEnabled()
/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/
DRingtoneManager.java30 import android.provider.Settings;
31 import android.provider.Settings.System;
616 final String uriString = Settings.System.getString(context.getContentResolver(), setting); in getActualDefaultRingtoneUri()
633 Settings.System.putString(context.getContentResolver(), setting, in setActualDefaultRingtoneUri()
639 return Settings.System.RINGTONE; in getSettingForType()
641 return Settings.System.NOTIFICATION_SOUND; in getSettingForType()
643 return Settings.System.ALARM_ALERT; in getSettingForType()
671 } else if (defaultRingtoneUri.equals(Settings.System.DEFAULT_RINGTONE_URI)) { in getDefaultType()
673 } else if (defaultRingtoneUri.equals(Settings.System.DEFAULT_NOTIFICATION_URI)) { in getDefaultType()
675 } else if (defaultRingtoneUri.equals(Settings.System.DEFAULT_ALARM_ALERT_URI)) { in getDefaultType()
[all …]

12345678910>>...15