/packages/apps/Camera2/src/com/android/camera/settings/ |
D | AppUpgrader.java | 101 protected int getLastVersion(SettingsManager settingsManager) { in getLastVersion() 115 return SettingsManager.convertToInt((String) oldVersion); in getLastVersion() 122 public void upgrade(SettingsManager settingsManager, int lastVersion, int currentVersion) { in upgrade() 146 settingsManager.remove(SettingsManager.SCOPE_GLOBAL, in upgrade() 174 private void upgradeTypesToStrings(SettingsManager settingsManager) { in upgradeTypesToStrings() 182 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_RECORD_LOCATION, location); in upgradeTypesToStrings() 189 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_USER_SELECTED_ASPECT_RATIO, in upgradeTypesToStrings() 197 settingsManager.set(SettingsManager.SCOPE_GLOBAL, in upgradeTypesToStrings() 204 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_FIRST_USE_HINT_SHOWN, in upgradeTypesToStrings() 212 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_STARTUP_MODULE_INDEX, in upgradeTypesToStrings() [all …]
|
D | Keys.java | 89 public static void setDefaults(SettingsManager settingsManager, Context context) { in setDefaults() 131 if (!settingsManager.isSet(SettingsManager.SCOPE_GLOBAL, Keys.KEY_VIDEO_QUALITY_BACK)) { in setDefaults() 132 settingsManager.setToDefault(SettingsManager.SCOPE_GLOBAL, in setDefaults() 139 if (!settingsManager.isSet(SettingsManager.SCOPE_GLOBAL, Keys.KEY_VIDEO_QUALITY_FRONT)) { in setDefaults() 140 settingsManager.setToDefault(SettingsManager.SCOPE_GLOBAL, in setDefaults() 190 public static boolean isCameraBackFacing(SettingsManager settingsManager, in isCameraBackFacing() 198 public static boolean isHdrPlusOn(SettingsManager settingsManager) { in isHdrPlusOn() 199 return settingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, in isHdrPlusOn() 206 public static boolean isHdrOn(SettingsManager settingsManager) { in isHdrOn() 207 return settingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, in isHdrOn() [all …]
|
D | SettingObserver.java | 34 private class Listener implements SettingsManager.OnSettingChangedListener, SafeCloseable { 44 public void onSettingChanged(SettingsManager settingsManager, String key) { in onSettingChanged() 54 private final SettingsManager mSettingsManager; 59 private SettingObserver(SettingsManager manager, String scope, String key, Class<T> tClass) { in SettingObserver() 66 public static SettingObserver<Integer> ofInteger(SettingsManager manager, in ofInteger() 72 public static SettingObserver<String> ofString(SettingsManager manager, in ofString() 78 public static SettingObserver<Boolean> ofBoolean(SettingsManager manager, in ofBoolean()
|
D | ResolutionSetting.java | 44 private final SettingsManager mSettingsManager; 49 public ResolutionSetting(SettingsManager settingsManager, in ResolutionSetting() 99 SettingsManager.SCOPE_GLOBAL, in setPictureAspectRatio() 126 mSettingsManager.isSet(SettingsManager.SCOPE_GLOBAL, pictureSizeSettingKey); in getPictureSize() 132 mSettingsManager.getString(SettingsManager.SCOPE_GLOBAL, in getPictureSize() 161 SettingsManager.SCOPE_GLOBAL, in getPictureSize()
|
D | SettingsUpgrader.java | 51 public void upgrade(SettingsManager settingsManager) { in upgrade() 56 settingsManager.set(SettingsManager.SCOPE_GLOBAL, mVersionKey, mTargetVersion); in upgrade() 66 protected abstract void upgrade(SettingsManager settingsManager, int lastVersion, in upgrade() 78 protected int getLastVersion(SettingsManager settingsManager) { in getLastVersion() 79 return settingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, mVersionKey); in getLastVersion()
|
D | ManagedSwitchPreference.java | 56 SettingsManager settingsManager = CameraServicesImpl.instance().getSettingsManager(); in getPersistedBoolean() 58 return settingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, getKey()); in getPersistedBoolean() 75 SettingsManager settingsManager = CameraServicesImpl.instance().getSettingsManager(); in persistBoolean() 77 settingsManager.set(SettingsManager.SCOPE_GLOBAL, getKey(), value); in persistBoolean()
|
D | CameraFacingSetting.java | 31 private final SettingsManager mSettingsManager; 43 SettingsManager settingsManager, in CameraFacingSetting() 48 mSettingScope = SettingsManager.getModuleSettingScope(moduleSettingScope); in CameraFacingSetting()
|
D | SettingsManager.java | 76 public class SettingsManager { class 103 public SettingsManager(Context context) { in SettingsManager() method in SettingsManager 177 public void onSettingChanged(SettingsManager settingsManager, String key); in onSettingChanged() 186 listener.onSettingChanged(SettingsManager.this, key); in getSharedPreferenceListener()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | ButtonManager.java | 29 import com.android.camera.settings.SettingsManager; 39 public class ButtonManager implements SettingsManager.OnSettingChangedListener { 62 private final SettingsManager mSettingsManager; 183 public void onSettingChanged(SettingsManager settingsManager, String key) { in onSettingChanged() 204 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged() 208 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged() 212 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged() 220 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged() 792 int index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in initializeHdrPlusButton() 801 mSettingsManager.setValueByIndex(SettingsManager.SCOPE_GLOBAL, in initializeHdrPlusButton() [all …]
|
D | PhotoModule.java | 66 import com.android.camera.settings.SettingsManager; 107 SettingsManager.OnSettingChangedListener, 342 SettingsManager settingsManager = mActivity.getSettingsManager(); in switchToGcamCapture() 343 settingsManager.set(SettingsManager.SCOPE_GLOBAL, in switchToGcamCapture() 389 SettingsManager settingsManager = mActivity.getSettingsManager(); in init() 487 SettingsManager settingsManager = mActivity.getSettingsManager(); in switchCamera() 529 SettingsManager settingsManager = mActivity.getSettingsManager(); 557 SettingsManager settingsManager = mActivity.getSettingsManager(); 606 public void hardResetSettings(SettingsManager settingsManager) { in hardResetSettings() 609 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS, false); in hardResetSettings() [all …]
|
D | CaptureModule.java | 74 import com.android.camera.settings.SettingsManager; 139 private final SettingsManager mSettingsManager; 493 .getInteger(SettingsManager.SCOPE_GLOBAL, Keys.KEY_COUNTDOWN_DURATION); in onShutterButtonClick() 513 .getInteger(SettingsManager.SCOPE_GLOBAL, Keys.KEY_COUNTDOWN_DURATION); in decorateSessionAtCaptureTime() 700 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS) == 1; in resume() 703 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR); in resume() 761 public void hardResetSettings(SettingsManager settingsManager) { in hardResetSettings() 765 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS, true); in hardResetSettings() 823 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS)) || 826 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR))) { [all …]
|
D | PermissionsActivity.java | 21 import com.android.camera.settings.SettingsManager; 49 private SettingsManager mSettingsManager; 118 if (mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, in checkPermissions() 127 if (!isKeyguardLocked() && !mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, in checkPermissions() 168 SettingsManager.SCOPE_GLOBAL, in onRequestPermissionsResult()
|
D | CameraActivity.java | 129 import com.android.camera.settings.SettingsManager; 224 private SettingsManager mSettingsManager; 349 if (mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, 351 mSettingsManager.set(SettingsManager.SCOPE_GLOBAL, 1052 return SettingsManager.getModuleSettingScope(agent.getScopeNamespace()); in getModuleScope() 1066 return SettingsManager.getCameraSettingScope("-1"); in getCameraScope() 1069 return SettingsManager.getCameraSettingScope(cameraId.getValue()); in getCameraScope() 1620 if (mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, in onCreateTasks() 1711 modeIndex = mSettingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, in getModeIndex() 1718 if (!mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, in getModeIndex() [all …]
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | FirstRunDialog.java | 35 import com.android.camera.settings.SettingsManager; 76 private final SettingsManager mSettingsManager; 92 SettingsManager settingManager, in FirstRunDialog() 146 return !mSettingsManager.isSet(SettingsManager.SCOPE_GLOBAL, Keys.KEY_RECORD_LOCATION); in shouldShowLocationDialog() 182 SettingsManager.SCOPE_GLOBAL, in promptAspectRatioPreferenceDialog() 219 mSettingsManager.set(SettingsManager.SCOPE_GLOBAL, in checkLocationPermission() 238 SettingsManager.SCOPE_GLOBAL, in promptLocationPreferenceDialog()
|
D | CameraServicesImpl.java | 33 import com.android.camera.settings.SettingsManager; 61 private final SettingsManager mSettingsManager; 76 mSettingsManager = new SettingsManager(context); in CameraServicesImpl() 108 public SettingsManager getSettingsManager() { in getSettingsManager()
|
D | CameraAppUI.java | 48 import com.android.camera.settings.SettingsManager; 88 SettingsManager.OnSettingChangedListener, 805 SettingsManager.SCOPE_GLOBAL, in CameraAppUI() 1251 if (!mController.getSettingsManager().isSet(SettingsManager.SCOPE_GLOBAL, in onChangeCamera() 1253 mController.getSettingsManager().set(SettingsManager.SCOPE_GLOBAL, in onChangeCamera() 1258 if (!mController.getSettingsManager().isSet(SettingsManager.SCOPE_GLOBAL, in onChangeCamera() 1269 mController.getSettingsManager().set(SettingsManager.SCOPE_GLOBAL, in onChangeCamera() 1576 mController.getSettingsManager().set(SettingsManager.SCOPE_GLOBAL, in onSettingsSelected() 2000 public void onSettingChanged(SettingsManager settingsManager, String key) { 2033 SettingsManager settingsManager = mController.getSettingsManager(); [all …]
|
D | ModuleManagerImpl.java | 24 import com.android.camera.settings.SettingsManager; 113 public int getQuickSwitchToModuleId(int moduleId, SettingsManager settingsManager, in getQuickSwitchToModuleId() 126 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_MODULE_LAST_USED); in getQuickSwitchToModuleId()
|
D | CameraServices.java | 21 import com.android.camera.settings.SettingsManager; 64 public SettingsManager getSettingsManager(); in getSettingsManager()
|
D | ModuleManager.java | 23 import com.android.camera.settings.SettingsManager; 134 int getQuickSwitchToModuleId(int moduleId, SettingsManager settingsManager, Context context); in getQuickSwitchToModuleId()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | IndicatorIconController.java | 29 import com.android.camera.settings.SettingsManager; 41 implements SettingsManager.OnSettingChangedListener, 205 setIndicatorState(SettingsManager.SCOPE_GLOBAL, in syncHdrIndicator() 210 setIndicatorState(SettingsManager.SCOPE_GLOBAL, in syncHdrIndicator() 229 setIndicatorState(SettingsManager.SCOPE_GLOBAL, in syncPanoIndicator() 286 setIndicatorState(SettingsManager.SCOPE_GLOBAL, in syncCountdownTimerIndicator() 300 SettingsManager settingsManager = mController.getSettingsManager(); in setIndicatorState() 327 public void onSettingChanged(SettingsManager settingsManager, String key) { in onSettingChanged()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
D | ResourceConstructedImpl.java | 37 import com.android.camera.settings.SettingsManager; 49 private final SettingsManager mSettingsManager; 74 SettingsManager settingsManager, in create() 98 SettingsManager settingsManager, in ResourceConstructedImpl() 177 public SettingsManager getSettingsManager() { in getSettingsManager()
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | OneCameraCaptureSetting.java | 27 import com.android.camera.settings.SettingsManager; 44 SettingsManager settingsManager, in create() 60 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR); in create()
|
/packages/apps/Camera2/src_pd/com/android/camera/util/ |
D | ReleaseHelper.java | 22 import com.android.camera.settings.SettingsManager; 26 SettingsManager settingsManager) { in showReleaseInfoDialogOnStart()
|
D | CameraSettingsActivityHelper.java | 23 import com.android.camera.settings.SettingsManager; 35 public static void verifyDefaults(SettingsManager settingsManager, Context context) { in verifyDefaults()
|
/packages/apps/Camera2/src/com/android/camera/module/ |
D | ModuleController.java | 23 import com.android.camera.settings.SettingsManager; 105 public void hardResetSettings(SettingsManager settingsManager); in hardResetSettings()
|