Home
last modified time | relevance | path

Searched refs:restoreValue (Results 1 – 7 of 7) 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.java230 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument
231 setValue(restoreValue ? getPersistedInt(mValue) : (Integer) defaultValue); in onSetInitialValue()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DListDialogPreference.java230 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument
231 setValue(restoreValue ? getPersistedInt(mValue) : (Integer) defaultValue); in onSetInitialValue()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DSeekBarPreference.java185 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument
186 setValue(restoreValue ? getPersistedInt(mSeekBarValue) in onSetInitialValue()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSeekBarPreference.java153 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument
154 setProgress(restoreValue ? getPersistedInt(mProgress) in onSetInitialValue()
/packages/services/Telephony/src/com/android/phone/
DEditPhoneNumberPreference.java392 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument
393 setValueFromString(restoreValue ? getPersistedString(getStringValue()) in onSetInitialValue()
/packages/apps/Settings/src/com/android/settings/widget/
DSeekBarPreference.java164 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument
165 setProgress(restoreValue ? getPersistedInt(mProgress) in onSetInitialValue()