Home
last modified time | relevance | path

Searched refs:settingName (Results 1 – 25 of 25) 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.java77 String settingName = Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE; in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue() local
82 Settings.Secure.putFloat(mContentResolver, settingName, configuredSettingValue); in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
88 Settings.Secure.getUriFor(settingName), in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
89 settingName, in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
95 Settings.Secure.getFloat(mContentResolver, settingName), in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
104 String settingName = Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE; in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue() local
111 Settings.Secure.getUriFor(settingName), in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
112 settingName, in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue() local
118 Settings.Secure.getFloat(mContentResolver, settingName), in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
145 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.java56 String settingName = Settings.System.SCREEN_BRIGHTNESS; in testBasicOperation() local
59 Settings.System.getInt(mCr, settingName); in testBasicOperation()
64 Settings.System.putInt(mCr, settingName, 123); in testBasicOperation()
65 assertEquals(123, Settings.System.getInt(mCr, settingName)); in testBasicOperation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DSettingObserver.java42 public SettingObserver(SettingsProxy settingsProxy, Handler handler, String settingName) { in SettingObserver() argument
43 this(settingsProxy, handler, settingName, 0); in SettingObserver()
46 public SettingObserver(SettingsProxy settingsProxy, Handler handler, String settingName, in SettingObserver() argument
50 mSettingName = settingName; in SettingObserver()
DUserSettingObserver.java42 public UserSettingObserver(UserSettingsProxy settingsProxy, Handler handler, String settingName, in UserSettingObserver() argument
44 this(settingsProxy, handler, settingName, userId, 0); in UserSettingObserver()
47 public UserSettingObserver(UserSettingsProxy settingsProxy, Handler handler, String settingName, in UserSettingObserver() argument
51 mSettingName = settingName; in UserSettingObserver()
/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/injector/
DSystemSettingsHelper.java448 IntegerSecureSetting(Context context, String settingName, Handler handler) { in IntegerSecureSetting() argument
451 mSettingName = settingName; in IntegerSecureSetting()
479 StringListCachedSecureSetting(Context context, String settingName, in StringListCachedSecureSetting() argument
483 mSettingName = settingName; in StringListCachedSecureSetting()
538 BooleanGlobalSetting(Context context, String settingName, Handler handler) { in BooleanGlobalSetting() argument
541 mSettingName = settingName; in BooleanGlobalSetting()
564 LongGlobalSetting(Context context, String settingName, Handler handler) { in LongGlobalSetting() argument
567 mSettingName = settingName; in LongGlobalSetting()
596 StringSetCachedGlobalSetting(Context context, String settingName, in StringSetCachedGlobalSetting() argument
600 mSettingName = settingName; in StringSetCachedGlobalSetting()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/devicestate/
DFakeSecureSettings.java56 SettingsKey(Integer userHandle, String settingName) { in SettingsKey() argument
57 super(userHandle, settingName); in SettingsKey()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationSettingsTest.java981 private void deleteUserSetting(String settingName) { in deleteUserSetting() argument
983 mContextSpy.getContentResolver(), settingName, null, UserHandle.USER_CURRENT); in deleteUserSetting() local
988 private void setUserSetting(String settingName, int value) { in setUserSetting() argument
989 putUserSetting(settingName, value, UserHandle.USER_CURRENT); in setUserSetting()
994 private void putUserSetting(String settingName, int value, int userHandle) { in putUserSetting() argument
996 mContextSpy.getContentResolver(), settingName, value, userHandle); in putUserSetting() local
DVibrationScalerTest.java378 private void setUserSetting(String settingName, int value) {
380 mContextSpy.getContentResolver(), settingName, value, UserHandle.USER_CURRENT);
DVibratorManagerServiceTest.java2629 private void setUserSetting(String settingName, int value) { in setUserSetting() argument
2631 mContextSpy.getContentResolver(), settingName, value, UserHandle.USER_CURRENT); in setUserSetting() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAutoAddTrackerTest.java291 String settingName, String previousValue, String restoredValue) { in makeRestoreIntent() argument
293 intent.putExtra(Intent.EXTRA_SETTING_NAME, settingName); in makeRestoreIntent()
/frameworks/base/services/core/java/com/android/server/input/
DInputSettingsObserver.java141 private boolean getBoolean(String settingName, boolean defaultValue) { in getBoolean() argument
143 settingName, defaultValue ? 1 : 0, UserHandle.USER_CURRENT); in getBoolean()
/frameworks/base/services/core/java/com/android/server/am/
DSettingsToPropertiesMapper.java731 void updatePropertyFromSetting(String settingName, String propName) { in updatePropertyFromSetting() argument
732 String settingValue = Settings.Global.getString(mContentResolver, settingName); in updatePropertyFromSetting()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java2604 void readComponentNamesFromSettingLocked(String settingName, int userId, in readComponentNamesFromSettingLocked() argument
2606 readColonDelimitedSettingToSet(settingName, userId, in readComponentNamesFromSettingLocked()
2627 public void persistComponentNamesToSettingLocked(String settingName, in persistComponentNamesToSettingLocked() argument
2629 persistColonDelimitedSetToSettingLocked(settingName, userId, componentNames, in persistComponentNamesToSettingLocked()
2645 <T> void readColonDelimitedSettingToSet(String settingName, int userId, in readColonDelimitedSettingToSet() argument
2648 settingName, userId); in readColonDelimitedSettingToSet()
2673 private <T> void persistColonDelimitedSetToSettingLocked(String settingName, int userId, in persistColonDelimitedSetToSettingLocked() argument
2675 persistColonDelimitedSetToSettingLocked(settingName, userId, set, in persistColonDelimitedSetToSettingLocked()
2679 private <T> void persistColonDelimitedSetToSettingLocked(String settingName, int userId, in persistColonDelimitedSetToSettingLocked() argument
2697 mContext.getContentResolver(), settingName, userId); in persistColonDelimitedSetToSettingLocked()
[all …]
DAbstractAccessibilityServiceConnection.java303 void persistComponentNamesToSettingLocked(String settingName, in persistComponentNamesToSettingLocked() argument
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java777 private int loadSystemSetting(String settingName, int defaultValue, int userHandle) {
779 settingName, defaultValue, userHandle);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java2228 private void enforceSettingReadable(String settingName, int settingsType, int userId) {
2238 checkReadableAnnotation(settingsType, settingName, ai.targetSdkVersion);
2246 switch (settingName) {
2262 if (!getInstantAppAccessibleSettings(settingsType).contains(settingName)
2263 && !getOverlayInstantAppAccessibleSettings(settingsType).contains(settingName)) {
2279 private void checkReadableAnnotation(int settingsType, String settingName,
2303 if (allFields.contains(settingName)) {
2304 if (!readableFields.contains(settingName)) {
2306 "Settings key: <" + settingName + "> is not readable. From S+, settings "
2311 if (readableFieldsWithMaxTargetSdk.containsKey(settingName)) {
[all …]
DSettingsBackupAgent.java1030 static String getQualifiedKeyForSetting(String settingName, Uri settingUri) { in getQualifiedKeyForSetting() argument
1031 return Uri.withAppendedPath(settingUri, settingName).toString(); in getQualifiedKeyForSetting()
DSettingsProtoDumpUtil.java1686 @NonNull ProtoOutputStream proto, String settingName, long fieldId) { in dumpSetting() argument
1687 SettingsState.Setting setting = settings.getSettingLocked(settingName); in dumpSetting()
1690 proto.write(SettingProto.NAME, settingName); in dumpSetting()
/frameworks/base/core/java/android/provider/
DSettings.java3945 private static float parseFloatSetting(String settingValue, String settingName) in parseFloatSetting() argument
3948 throw new SettingNotFoundException(settingName); in parseFloatSetting()
3953 throw new SettingNotFoundException(settingName); in parseFloatSetting()
3965 private static int parseIntSetting(String settingValue, String settingName) in parseIntSetting() argument
3968 throw new SettingNotFoundException(settingName); in parseIntSetting()
3973 throw new SettingNotFoundException(settingName); in parseIntSetting()
3985 private static long parseLongSetting(String settingValue, String settingName) in parseLongSetting() argument
3988 throw new SettingNotFoundException(settingName); in parseLongSetting()
3993 throw new SettingNotFoundException(settingName); in parseLongSetting()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermissionService.kt2763 private fun getSecureInt(settingName: String, userId: Int): Int? = in <lambda>()
2765 Settings.Secure.getIntForUser(context.contentResolver, settingName, userId) in <lambda>()
2767 Slog.i(LOG_TAG, "Setting $settingName not found", e) in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceImpl.java390 private Optional<Integer> getSecureInt(String settingName, int userId) {
394 mContext.getContentResolver(), settingName, userId));
396 Slog.i(LOG_TAG, "Setting " + settingName + " not found", e);
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java8548 void setSettingName(String settingName) { in setSettingName() argument
8549 mSettingName = settingName; in setSettingName()
8650 private VolumeStreamState(String settingName, int streamType) { in VolumeStreamState() argument
8651 mVolumeIndexSettingName = settingName; in VolumeStreamState()
8774 void setSettingName(String settingName) { in setSettingName() argument
8775 mVolumeIndexSettingName = settingName; in setSettingName()