Lines Matching refs:pref
259 ListPreference pref, List<String> supported) { in filterUnsupportedOptions() argument
264 removePreference(group, pref.getKey()); in filterUnsupportedOptions()
268 pref.filterUnsupported(supported); in filterUnsupportedOptions()
269 if (pref.getEntries().length <= 1) { in filterUnsupportedOptions()
270 removePreference(group, pref.getKey()); in filterUnsupportedOptions()
274 resetIfInvalid(pref); in filterUnsupportedOptions()
277 private void resetIfInvalid(ListPreference pref) { in resetIfInvalid() argument
279 String value = pref.getValue(); in resetIfInvalid()
280 if (pref.findIndexOfValue(value) == NOT_FOUND) { in resetIfInvalid()
281 pref.setValueIndex(0); in resetIfInvalid()
293 public static void upgradeLocalPreferences(SharedPreferences pref) { in upgradeLocalPreferences() argument
296 version = pref.getInt(KEY_LOCAL_VERSION, 0); in upgradeLocalPreferences()
302 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
312 public static void upgradeGlobalPreferences(SharedPreferences pref) { in upgradeGlobalPreferences() argument
315 version = pref.getInt(KEY_VERSION, 0); in upgradeGlobalPreferences()
321 SharedPreferences.Editor editor = pref.edit(); in upgradeGlobalPreferences()
329 String quality = pref.getString(KEY_JPEG_QUALITY, "85"); in upgradeGlobalPreferences()
342 pref.getBoolean(KEY_RECORD_LOCATION, false) in upgradeGlobalPreferences()
358 public static int readPreferredCameraId(SharedPreferences pref) { in readPreferredCameraId() argument
359 return Integer.parseInt(pref.getString(KEY_CAMERA_ID, "0")); in readPreferredCameraId()
362 public static void writePreferredCameraId(SharedPreferences pref, in writePreferredCameraId() argument
364 Editor editor = pref.edit(); in writePreferredCameraId()
381 public static int readEffectType(SharedPreferences pref) { in readEffectType() argument
382 String effectSelection = pref.getString(KEY_VIDEO_EFFECT, "none"); in readEffectType()
394 public static Object readEffectParameter(SharedPreferences pref) { in readEffectParameter() argument
395 String effectSelection = pref.getString(KEY_VIDEO_EFFECT, "none"); in readEffectParameter()