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.java61 String settingName = Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE; in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue() local
66 Settings.Secure.putFloat(mContentResolver, settingName, configuredSettingValue); in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
72 Settings.Secure.getUriFor(settingName), in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
73 settingName, in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
79 Settings.Secure.getFloat(mContentResolver, settingName), in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
88 String settingName = Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE; in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue() local
95 Settings.Secure.getUriFor(settingName), in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
96 settingName, in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
102 Settings.Secure.getFloat(mContentResolver, settingName), in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
129 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/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()
DSecureSetting.java40 public SecureSetting(Context context, Handler handler, String settingName) { in SecureSetting() argument
43 mSettingName = settingName; in SecureSetting()
/frameworks/base/services/core/java/com/android/server/am/
DSettingsToPropertiesMapper.java275 void updatePropertyFromSetting(String settingName, String propName) { in updatePropertyFromSetting() argument
276 String settingValue = Settings.Global.getString(mContentResolver, settingName); in updatePropertyFromSetting()
/frameworks/base/media/java/android/media/
DMediaScanner.java1178 private void setRingtoneIfNotSet(String settingName, Uri uri, long rowId) {
1179 if (wasRingtoneAlreadySet(settingName)) {
1184 String existingSettingValue = Settings.System.getString(cr, settingName);
1186 final Uri settingUri = Settings.System.getUriFor(settingName);
1191 Settings.System.putInt(cr, settingSetIndicatorName(settingName), 1);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java1553 private void readComponentNamesFromSettingLocked(String settingName, int userId, in readComponentNamesFromSettingLocked() argument
1556 settingName, userId); in readComponentNamesFromSettingLocked()
1592 public void persistComponentNamesToSettingLocked(String settingName, in persistComponentNamesToSettingLocked() argument
1605 settingName, TextUtils.isEmpty(settingValue) ? null : settingValue, userId); in persistComponentNamesToSettingLocked() local
DAbstractAccessibilityServiceConnection.java234 void persistComponentNamesToSettingLocked(String settingName, in persistComponentNamesToSettingLocked() argument
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java3531 final String settingName = Settings.Global.NETWORK_AVOID_BAD_WIFI; in testAvoidBadWifiSetting() local
3536 Settings.Global.putInt(cr, settingName, 1); in testAvoidBadWifiSetting()
3546 Settings.Global.putInt(cr, settingName, 0); in testAvoidBadWifiSetting()
3552 Settings.Global.putInt(cr, settingName, 1); in testAvoidBadWifiSetting()
3558 Settings.Global.putString(cr, settingName, null); in testAvoidBadWifiSetting()
3692 final String settingName = Settings.Global.NETWORK_METERED_MULTIPATH_PREFERENCE; in testMeteredMultipathPreferenceSetting() local
3697 Settings.Global.putString(cr, settingName, setting); in testMeteredMultipathPreferenceSetting()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProtoDumpUtil.java1621 @NonNull ProtoOutputStream proto, String settingName, long fieldId) { in dumpSetting() argument
1622 SettingsState.Setting setting = settings.getSettingLocked(settingName); in dumpSetting()
1625 proto.write(SettingProto.NAME, settingName); in dumpSetting()
DSettingsProvider.java1953 private void enforceSettingReadable(String settingName, int settingsType, int userId) {
1961 if (!getInstantAppAccessibleSettings(settingsType).contains(settingName)
1962 && !getOverlayInstantAppAccessibleSettings(settingsType).contains(settingName)) {
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java4849 private VolumeStreamState(String settingName, int streamType) { in VolumeStreamState() argument
4851 mVolumeIndexSettingName = settingName; in VolumeStreamState()
/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()