Lines Matching refs:pref

253             ListPreference pref, List<String> supported) {  in filterUnsupportedOptions()  argument
258 removePreference(group, pref.getKey()); in filterUnsupportedOptions()
262 pref.filterUnsupported(supported); in filterUnsupportedOptions()
263 if (pref.getEntries().length <= 1) { in filterUnsupportedOptions()
264 removePreference(group, pref.getKey()); in filterUnsupportedOptions()
268 resetIfInvalid(pref); in filterUnsupportedOptions()
271 private void resetIfInvalid(ListPreference pref) { in resetIfInvalid() argument
273 String value = pref.getValue(); in resetIfInvalid()
274 if (pref.findIndexOfValue(value) == NOT_FOUND) { in resetIfInvalid()
275 pref.setValueIndex(0); in resetIfInvalid()
287 public static void upgradeLocalPreferences(SharedPreferences pref) { in upgradeLocalPreferences() argument
290 version = pref.getInt(KEY_LOCAL_VERSION, 0); in upgradeLocalPreferences()
296 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
306 public static void upgradeGlobalPreferences(SharedPreferences pref) { in upgradeGlobalPreferences() argument
309 version = pref.getInt(KEY_VERSION, 0); in upgradeGlobalPreferences()
315 SharedPreferences.Editor editor = pref.edit(); in upgradeGlobalPreferences()
323 String quality = pref.getString(KEY_JPEG_QUALITY, "85"); in upgradeGlobalPreferences()
336 pref.getBoolean(KEY_RECORD_LOCATION, false) in upgradeGlobalPreferences()
352 public static int readPreferredCameraId(SharedPreferences pref) { in readPreferredCameraId() argument
353 return Integer.parseInt(pref.getString(KEY_CAMERA_ID, "0")); in readPreferredCameraId()
356 public static void writePreferredCameraId(SharedPreferences pref, in writePreferredCameraId() argument
358 Editor editor = pref.edit(); in writePreferredCameraId()
375 public static int readEffectType(SharedPreferences pref) { in readEffectType() argument
376 String effectSelection = pref.getString(KEY_VIDEO_EFFECT, "none"); in readEffectType()
388 public static Object readEffectParameter(SharedPreferences pref) { in readEffectParameter() argument
389 String effectSelection = pref.getString(KEY_VIDEO_EFFECT, "none"); in readEffectParameter()