/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 | 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 | 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 | 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/app/ |
D | FirstRunDialog.java | 35 import com.android.camera.settings.SettingsManager; 78 private final SettingsManager mSettingsManager; 93 SettingsManager settingManager, in FirstRunDialog() 147 return !mSettingsManager.isSet(SettingsManager.SCOPE_GLOBAL, Keys.KEY_RECORD_LOCATION); in shouldShowLocationDialog() 183 SettingsManager.SCOPE_GLOBAL, in promptAspectRatioPreferenceDialog() 225 mSettingsManager.set(SettingsManager.SCOPE_GLOBAL, in checkLocationPermission() 244 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 | 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()
|
D | CameraAppUI.java | 49 import com.android.camera.settings.SettingsManager; 89 SettingsManager.OnSettingChangedListener, 806 SettingsManager.SCOPE_GLOBAL, in CameraAppUI() 1252 if (!mController.getSettingsManager().isSet(SettingsManager.SCOPE_GLOBAL, in onChangeCamera() 1254 mController.getSettingsManager().set(SettingsManager.SCOPE_GLOBAL, in onChangeCamera() 1259 if (!mController.getSettingsManager().isSet(SettingsManager.SCOPE_GLOBAL, in onChangeCamera() 1270 mController.getSettingsManager().set(SettingsManager.SCOPE_GLOBAL, in onChangeCamera() 1577 mController.getSettingsManager().set(SettingsManager.SCOPE_GLOBAL, in onSettingsSelected() 2001 public void onSettingChanged(SettingsManager settingsManager, String key) { 2034 SettingsManager settingsManager = mController.getSettingsManager(); [all …]
|
/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 | PermissionsActivity.java | 21 import com.android.camera.settings.SettingsManager; 39 private SettingsManager mSettingsManager; 102 if (mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, Keys.KEY_RECORD_LOCATION) in checkPermissions() 112 if (!isKeyguardLocked() && !mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, in checkPermissions() 131 SettingsManager.SCOPE_GLOBAL, in onRequestPermissionsResult()
|
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; 143 private final SettingsManager mSettingsManager; 502 .getInteger(SettingsManager.SCOPE_GLOBAL, Keys.KEY_COUNTDOWN_DURATION); in onShutterButtonClick() 543 .getInteger(SettingsManager.SCOPE_GLOBAL, Keys.KEY_COUNTDOWN_DURATION); in decorateSessionAtCaptureTime() 730 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS) == 1; in resume() 733 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR); in resume() 791 public void hardResetSettings(SettingsManager settingsManager) { in hardResetSettings() 795 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS, true); in hardResetSettings() 853 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS)) || 856 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR))) { [all …]
|
/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()
|
D | ResourceConstructed.java | 36 import com.android.camera.settings.SettingsManager; 117 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()
|