/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | GlobalSettingsHelper.java | 34 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/ |
D | SettingsHelperRestoreTest.java | 61 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/ |
D | FakeSettingsProviderTest.java | 48 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/ |
D | EnabledComponentsObserver.java | 79 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()
|
D | SettingsObserver.java | 107 @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/ |
D | GlobalSetting.java | 33 public GlobalSetting(Context context, Handler handler, String settingName) { in GlobalSetting() argument 36 mSettingName = settingName; in GlobalSetting()
|
D | SecureSetting.java | 40 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/ |
D | SettingsToPropertiesMapper.java | 275 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/ |
D | MediaScanner.java | 1178 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/ |
D | AccessibilityManagerService.java | 1553 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
|
D | AbstractAccessibilityServiceConnection.java | 234 void persistComponentNamesToSettingLocked(String settingName, in persistComponentNamesToSettingLocked() argument
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 3531 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/ |
D | SettingsProtoDumpUtil.java | 1621 @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()
|
D | SettingsProvider.java | 1953 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/ |
D | AudioService.java | 4849 private VolumeStreamState(String settingName, int streamType) { in VolumeStreamState() argument 4851 mVolumeIndexSettingName = settingName; in VolumeStreamState()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 1208 NetworkRequest networkRequest, String settingName, boolean defaultValue) { in handleAlwaysOnNetworkRequest() argument 1210 mContext.getContentResolver(), settingName, encodeBool(defaultValue))); in handleAlwaysOnNetworkRequest()
|