Lines Matching refs:editor
115 SharedPreferences.Editor editor = ComboPreferences in initialCameraPictureSize() local
117 editor.putString(KEY_PICTURE_SIZE, candidate); in initialCameraPictureSize()
118 editor.apply(); in initialCameraPictureSize()
351 SharedPreferences.Editor editor = pref.edit(); in upgradeLocalPreferences()
355 editor.remove("pref_video_quality_key"); in upgradeLocalPreferences()
357 editor.putInt(KEY_LOCAL_VERSION, CURRENT_LOCAL_VERSION); in upgradeLocalPreferences()
358 editor.apply(); in upgradeLocalPreferences()
375 SharedPreferences.Editor editor = pref.edit(); in upgradeOldVersion()
391 editor.putString(KEY_JPEG_QUALITY, quality); in upgradeOldVersion()
395 editor.putString(KEY_RECORD_LOCATION, in upgradeOldVersion()
404 editor.remove("pref_camera_videoquality_key"); in upgradeOldVersion()
405 editor.remove("pref_camera_video_duration_key"); in upgradeOldVersion()
408 editor.putInt(KEY_VERSION, CURRENT_VERSION); in upgradeOldVersion()
409 editor.apply(); in upgradeOldVersion()
432 Editor editor = pref.edit(); in writePreferredCameraId() local
433 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId)); in writePreferredCameraId()
434 editor.apply(); in writePreferredCameraId()
502 Editor editor = preferences.edit(); in restorePreferences() local
503 editor.clear(); in restorePreferences()
504 editor.apply(); in restorePreferences()
509 Editor editor = preferences.edit(); in restorePreferences() local
510 editor.clear(); in restorePreferences()
511 editor.apply(); in restorePreferences()