Lines Matching refs:name

55      * @param name the name of the setting
61 public boolean restoreValue(String name, String value) {
62 if (Settings.System.SCREEN_BRIGHTNESS.equals(name)) {
64 } else if (Settings.System.SOUND_EFFECTS_ENABLED.equals(name)) {
66 } else if (Settings.Secure.LOCATION_PROVIDERS_ALLOWED.equals(name)) {
69 } else if (Settings.Secure.BACKUP_AUTO_RESTORE.equals(name)) {
71 } else if (isAlreadyConfiguredCriticalAccessibilitySetting(name)) {
73 } else if (Settings.System.RINGTONE.equals(name)
74 || Settings.System.NOTIFICATION_SOUND.equals(name)) {
75 setRingtone(name, value);
81 public String onBackupValue(String name, String value) {
83 if (Settings.System.RINGTONE.equals(name)
84 || Settings.System.NOTIFICATION_SOUND.equals(name)) {
86 if (Settings.System.RINGTONE.equals(name)) {
108 * Sets the ringtone of type specified by the name.
110 * @param name should be Settings.System.RINGTONE or Settings.System.NOTIFICATION_SOUND.
113 private void setRingtone(String name, String value) {
127 final int ringtoneType = Settings.System.RINGTONE.equals(name)
138 private boolean isAlreadyConfiguredCriticalAccessibilitySetting(String name) {
144 if (Settings.Secure.ACCESSIBILITY_ENABLED.equals(name)
145 || Settings.Secure.ACCESSIBILITY_SCRIPT_INJECTION.equals(name)
146 || Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD.equals(name)
147 || Settings.Secure.TOUCH_EXPLORATION_ENABLED.equals(name)) {
148 return Settings.Secure.getInt(mContext.getContentResolver(), name, 0) != 0;
149 } else if (Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES.equals(name)
150 || Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES.equals(name)) {
152 mContext.getContentResolver(), name));