Lines Matching refs:name
47 * @param name the name of the setting
53 public boolean restoreValue(String name, String value) {
54 if (Settings.System.SCREEN_BRIGHTNESS.equals(name)) {
56 } else if (Settings.System.SOUND_EFFECTS_ENABLED.equals(name)) {
58 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) {
61 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) {
63 } else if (isAlreadyConfiguredCriticalAccessibilitySetting(name)) {
69 private boolean isAlreadyConfiguredCriticalAccessibilitySetting(String name) {
75 if (Settings.Secure.ACCESSIBILITY_ENABLED.equals(name)
76 || Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION.equals(name)
77 || Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD.equals(name)
78 || Settings.Secure.TOUCH_EXPLORATION_ENABLED.equals(name)) {
79 return Settings.Secure.getInt(mContext.getContentResolver(), name, 0) != 0;
80 } else if (Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES.equals(name)
81 || Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES.equals(name)) {
83 mContext.getContentResolver(), name));