Home
last modified time | relevance | path

Searched refs:settingName (Results 1 – 16 of 16) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGlobalSettingsHelper.java34 public static int getInt(Context context, String settingName, int subId, in getInt() argument
36 settingName = getSettingName(context, settingName, subId); in getInt()
37 return Settings.Global.getInt(context.getContentResolver(), settingName, defaultValue); in getInt()
43 public static boolean getBoolean(Context context, String settingName, int subId, in getBoolean() argument
45 settingName = getSettingName(context, settingName, subId); in getBoolean()
46 return Settings.Global.getInt(context.getContentResolver(), settingName, in getBoolean()
53 public static boolean getBoolean(Context context, String settingName, int subId) in getBoolean() argument
55 settingName = getSettingName(context, settingName, subId); in getBoolean()
56 return Settings.Global.getInt(context.getContentResolver(), settingName) == 1; in getBoolean()
63 public static boolean setInt(Context context, String settingName, int subId, int value) { in setInt() argument
[all …]
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsHelperRestoreTest.java62 String settingName = Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE; in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue() local
67 Settings.Secure.putFloat(mContentResolver, settingName, configuredSettingValue); in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
73 Settings.Secure.getUriFor(settingName), in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
74 settingName, in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
80 Settings.Secure.getFloat(mContentResolver, settingName), in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
89 String settingName = Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE; in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue() local
96 Settings.Secure.getUriFor(settingName), in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
97 settingName, in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue() local
103 Settings.Secure.getFloat(mContentResolver, settingName), in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
130 String settingName = Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED; in testRestoreAccessibilityDisplayMagnificationNavbarEnabled_alreadyConfigured_doesNotRestoreValue() local
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/test/
DFakeSettingsProviderTest.java48 String settingName = Settings.System.SCREEN_BRIGHTNESS; in testBasicOperation() local
51 Settings.System.getInt(mCr, settingName); in testBasicOperation()
56 Settings.System.putInt(mCr, settingName, 123); in testBasicOperation()
57 assertEquals(123, Settings.System.getInt(mCr, settingName)); in testBasicOperation()
/frameworks/base/services/core/java/com/android/server/vr/
DEnabledComponentsObserver.java79 private EnabledComponentsObserver(@NonNull Context context, @NonNull String settingName, in EnabledComponentsObserver() argument
84 mSettingName = settingName; in EnabledComponentsObserver()
103 @NonNull Handler handler, @NonNull String settingName, @NonNull Looper looper, in build() argument
108 SettingsObserver s = SettingsObserver.build(context, handler, settingName); in build()
110 final EnabledComponentsObserver o = new EnabledComponentsObserver(context, settingName, in build()
285 private ArraySet<ComponentName> loadComponentNamesFromSetting(String settingName, in loadComponentNamesFromSetting() argument
290 settingName, in loadComponentNamesFromSetting()
DSettingsObserver.java107 @NonNull String settingName) { in build() argument
108 Uri settingUri = Settings.Secure.getUriFor(settingName); in build()
110 return new SettingsObserver(context, handler, settingUri, settingName); in build()
/frameworks/base/services/core/java/com/android/server/location/
DSettingsHelper.java428 private IntegerSecureSetting(Context context, String settingName, Handler handler) { in IntegerSecureSetting() argument
431 mSettingName = settingName; in IntegerSecureSetting()
459 private StringListCachedSecureSetting(Context context, String settingName, in StringListCachedSecureSetting() argument
463 mSettingName = settingName; in StringListCachedSecureSetting()
518 private LongGlobalSetting(Context context, String settingName, Handler handler) { in LongGlobalSetting() argument
521 mSettingName = settingName; in LongGlobalSetting()
550 private StringSetCachedGlobalSetting(Context context, String settingName, in StringSetCachedGlobalSetting() argument
554 mSettingName = settingName; in StringSetCachedGlobalSetting()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DGlobalSetting.java33 public GlobalSetting(Context context, Handler handler, String settingName) { in GlobalSetting() argument
36 mSettingName = settingName; in GlobalSetting()
/frameworks/base/services/core/java/com/android/server/am/
DSettingsToPropertiesMapper.java278 void updatePropertyFromSetting(String settingName, String propName) { in updatePropertyFromSetting() argument
279 String settingValue = Settings.Global.getString(mContentResolver, settingName); in updatePropertyFromSetting()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java1520 private void readComponentNamesFromSettingLocked(String settingName, int userId, in readComponentNamesFromSettingLocked() argument
1522 readColonDelimitedSettingToSet(settingName, userId, outComponentNames, in readComponentNamesFromSettingLocked()
1543 public void persistComponentNamesToSettingLocked(String settingName, in persistComponentNamesToSettingLocked() argument
1545 persistColonDelimitedSetToSettingLocked(settingName, userId, componentNames, in persistComponentNamesToSettingLocked()
1549 private <T> void readColonDelimitedSettingToSet(String settingName, int userId, Set<T> outSet, in readColonDelimitedSettingToSet() argument
1552 settingName, userId); in readColonDelimitedSettingToSet()
1577 private <T> void persistColonDelimitedSetToSettingLocked(String settingName, int userId, in persistColonDelimitedSetToSettingLocked() argument
1594 settingName, TextUtils.isEmpty(settingValue) ? null : settingValue, userId); in persistColonDelimitedSetToSettingLocked() local
DAbstractAccessibilityServiceConnection.java229 void persistComponentNamesToSettingLocked(String settingName, in persistComponentNamesToSettingLocked() argument
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java875 static String getQualifiedKeyForSetting(String settingName, Uri settingUri) { in getQualifiedKeyForSetting() argument
876 return Uri.withAppendedPath(settingUri, settingName).toString(); in getQualifiedKeyForSetting()
DSettingsProtoDumpUtil.java1696 @NonNull ProtoOutputStream proto, String settingName, long fieldId) { in dumpSetting() argument
1697 SettingsState.Setting setting = settings.getSettingLocked(settingName); in dumpSetting()
1700 proto.write(SettingProto.NAME, settingName); in dumpSetting()
DSettingsProvider.java1996 private void enforceSettingReadable(String settingName, int settingsType, int userId) {
2004 if (!getInstantAppAccessibleSettings(settingsType).contains(settingName)
2005 && !getOverlayInstantAppAccessibleSettings(settingsType).contains(settingName)) {
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java3523 final String settingName = Settings.Global.NETWORK_AVOID_BAD_WIFI; in testAvoidBadWifiSetting() local
3528 Settings.Global.putInt(cr, settingName, 1); in testAvoidBadWifiSetting()
3538 Settings.Global.putInt(cr, settingName, 0); in testAvoidBadWifiSetting()
3544 Settings.Global.putInt(cr, settingName, 1); in testAvoidBadWifiSetting()
3550 Settings.Global.putString(cr, settingName, null); in testAvoidBadWifiSetting()
3684 final String settingName = Settings.Global.NETWORK_METERED_MULTIPATH_PREFERENCE; in testMeteredMultipathPreferenceSetting() local
3689 Settings.Global.putString(cr, settingName, setting); in testMeteredMultipathPreferenceSetting()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1208 NetworkRequest networkRequest, String settingName, boolean defaultValue) { in handleAlwaysOnNetworkRequest() argument
1210 mContext.getContentResolver(), settingName, encodeBool(defaultValue))); in handleAlwaysOnNetworkRequest()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java5565 private VolumeStreamState(String settingName, int streamType) { in VolumeStreamState() argument
5567 mVolumeIndexSettingName = settingName; in VolumeStreamState()