Lines Matching defs:preferences
370 public static int readExposure(ComboPreferences preferences) {
371 String exposure = preferences.getString(
429 ComboPreferences preferences, Parameters parameters) {
430 int currentCameraId = readPreferredCameraId(preferences);
432 // Clear the preferences of both cameras.
435 preferences.setLocalId(context, backCameraId);
436 Editor editor = preferences.edit();
442 preferences.setLocalId(context, frontCameraId);
443 Editor editor = preferences.edit();
448 // Switch back to the preferences of the current camera. Otherwise,
450 preferences.setLocalId(context, currentCameraId);
452 upgradeGlobalPreferences(preferences.getGlobal());
453 upgradeLocalPreferences(preferences.getLocal());
459 writePreferredCameraId(preferences, currentCameraId);