Home
last modified time | relevance | path

Searched refs:restoreValue (Results 1 – 3 of 3) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DVersionedPrefs.java227 final Object restoreValue = getRestoreValue(key, value); in restorePreferences() local
229 if (restoreValue instanceof Boolean) { in restorePreferences()
230 getEditor().putBoolean(key, (Boolean) restoreValue); in restorePreferences()
232 } else if (restoreValue instanceof Float) { in restorePreferences()
233 getEditor().putFloat(key, (Float) restoreValue); in restorePreferences()
235 } else if (restoreValue instanceof Integer) { in restorePreferences()
236 getEditor().putInt(key, (Integer) restoreValue); in restorePreferences()
238 } else if (restoreValue instanceof Long) { in restorePreferences()
239 getEditor().putLong(key, (Long) restoreValue); in restorePreferences()
241 } else if (restoreValue instanceof String) { in restorePreferences()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DListDialogPreference.java227 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument
228 setValue(restoreValue ? getPersistedInt(mValue) : (Integer) defaultValue); in onSetInitialValue()
/packages/services/Telephony/src/com/android/phone/
DEditPhoneNumberPreference.java389 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument
390 setValueFromString(restoreValue ? getPersistedString(getStringValue()) in onSetInitialValue()