Home
last modified time | relevance | path

Searched refs:settingsManager (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/settings/
DKeys.java89 public static void setDefaults(SettingsManager settingsManager, Context context) { in setDefaults() argument
90 settingsManager.setDefaults(KEY_COUNTDOWN_DURATION, 0, in setDefaults()
93 settingsManager.setDefaults(KEY_CAMERA_ID, in setDefaults()
97 settingsManager.setDefaults(KEY_SCENE_MODE, in setDefaults()
101 settingsManager.setDefaults(KEY_FLASH_MODE, in setDefaults()
105 settingsManager.setDefaults(KEY_HDR_SUPPORT_MODE_BACK_CAMERA, in setDefaults()
109 settingsManager.setDefaults(KEY_CAMERA_HDR, false); in setDefaults()
110 settingsManager.setDefaults(KEY_CAMERA_HDR_PLUS, false); in setDefaults()
112 settingsManager.setDefaults(KEY_CAMERA_FIRST_USE_HINT_SHOWN, true); in setDefaults()
114 settingsManager.setDefaults(KEY_FOCUS_MODE, in setDefaults()
[all …]
DAppUpgrader.java101 protected int getLastVersion(SettingsManager settingsManager) { in getLastVersion() argument
107 SharedPreferences defaultPreferences = settingsManager.getDefaultPreferences(); in getLastVersion()
118 return super.getLastVersion(settingsManager); in getLastVersion()
122 public void upgrade(SettingsManager settingsManager, int lastVersion, int currentVersion) { in upgrade() argument
128 upgradeTypesToStrings(settingsManager); in upgrade()
132 forceLocationChoice(settingsManager); in upgrade()
139 upgradeCameraSizeSetting(settingsManager, context, infos, in upgrade()
141 upgradeCameraSizeSetting(settingsManager, context, infos, in upgrade()
146 settingsManager.remove(SettingsManager.SCOPE_GLOBAL, in upgrade()
152 upgradeCameraSettingsFiles(settingsManager, context); in upgrade()
[all …]
DSettingsUpgrader.java51 public void upgrade(SettingsManager settingsManager) { in upgrade() argument
52 int lastVersion = getLastVersion(settingsManager); in upgrade()
54 upgrade(settingsManager, lastVersion, mTargetVersion); in upgrade()
56 settingsManager.set(SettingsManager.SCOPE_GLOBAL, mVersionKey, mTargetVersion); in upgrade()
66 protected abstract void upgrade(SettingsManager settingsManager, int lastVersion, in upgrade() argument
78 protected int getLastVersion(SettingsManager settingsManager) { in getLastVersion() argument
79 return settingsManager.getInteger(SettingsManager.SCOPE_GLOBAL, mVersionKey); in getLastVersion()
DManagedSwitchPreference.java56 SettingsManager settingsManager = CameraServicesImpl.instance().getSettingsManager(); in getPersistedBoolean() local
57 if (settingsManager != null) { in getPersistedBoolean()
58 return settingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, getKey()); in getPersistedBoolean()
75 SettingsManager settingsManager = CameraServicesImpl.instance().getSettingsManager(); in persistBoolean() local
76 if (settingsManager != null) { in persistBoolean()
77 settingsManager.set(SettingsManager.SCOPE_GLOBAL, getKey(), value); in persistBoolean()
DCameraFacingSetting.java43 SettingsManager settingsManager, in CameraFacingSetting() argument
46 mSettingsManager = settingsManager; in CameraFacingSetting()
DResolutionSetting.java49 public ResolutionSetting(SettingsManager settingsManager, in ResolutionSetting() argument
52 mSettingsManager = settingsManager; in ResolutionSetting()
DSettingObserver.java44 public void onSettingChanged(SettingsManager settingsManager, String key) { in onSettingChanged() argument
DSettingsManager.java177 public void onSettingChanged(SettingsManager settingsManager, String key); in onSettingChanged() argument
/packages/apps/Camera2/src/com/android/camera/
DPhotoModule.java342 SettingsManager settingsManager = mActivity.getSettingsManager(); in switchToGcamCapture() local
343 settingsManager.set(SettingsManager.SCOPE_GLOBAL, in switchToGcamCapture()
389 SettingsManager settingsManager = mActivity.getSettingsManager(); in init() local
394 settingsManager.setToDefault(mAppController.getModuleScope(), Keys.KEY_CAMERA_ID); in init()
396 mCameraId = settingsManager.getInteger(mAppController.getModuleScope(), in init()
487 SettingsManager settingsManager = mActivity.getSettingsManager(); in switchCamera() local
493 settingsManager.set(mAppController.getModuleScope(), Keys.KEY_CAMERA_ID, mCameraId); in switchCamera()
529 SettingsManager settingsManager = mActivity.getSettingsManager();
530 if (Keys.isCameraBackFacing(settingsManager,
532 if (Keys.requestsReturnToHdrPlus(settingsManager,
[all …]
DCaptureModule.java761 public void hardResetSettings(SettingsManager settingsManager) { in hardResetSettings() argument
765 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS, true); in hardResetSettings()
766 settingsManager.set(mAppController.getModuleScope(), Keys.KEY_CAMERA_ID, in hardResetSettings()
1081 SettingsManager settingsManager = mAppController.getSettingsManager();
1082 settingsManager.set(mAppController.getModuleScope(),
1123 SettingsManager settingsManager = mAppController.getSettingsManager();
1124 if (Keys.isCameraBackFacing(settingsManager,
1132 settingsManager.set(mAppController.getModuleScope(),
1169 SettingsManager settingsManager = mAppController.getSettingsManager();
1170 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS, false);
DVideoModule.java339 SettingsManager settingsManager = mActivity.getSettingsManager(); in init() local
340 mCameraId = settingsManager.getInteger(mAppController.getModuleScope(), in init()
540 public void hardResetSettings(SettingsManager settingsManager) { in hardResetSettings() argument
730 SettingsManager settingsManager = mActivity.getSettingsManager(); in readVideoPreferences() local
733 String videoQuality = settingsManager in readVideoPreferences()
1633 SettingsManager settingsManager = mActivity.getSettingsManager(); in setCameraParameters() local
1653 enableTorchMode(Keys.isCameraBackFacing(settingsManager, mAppController.getModuleScope())); in setCameraParameters()
1821 SettingsManager settingsManager = mActivity.getSettingsManager(); in switchCamera() local
1826 settingsManager.set(mAppController.getModuleScope(), in switchCamera()
1883 SettingsManager settingsManager = mActivity.getSettingsManager(); in enableTorchMode() local
[all …]
DButtonManager.java183 public void onSettingChanged(SettingsManager settingsManager, String key) { in onSettingChanged() argument
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceConstructedImpl.java74 SettingsManager settingsManager, in create() argument
79 context.getResources(), settingsManager, settingScopeNamespace, appController); in create()
81 settingsManager, oneCameraManager, context.getContentResolver()); in create()
84 oneCameraManager, locationManager, orientationManager, settingsManager, burstFacade, in create()
98 SettingsManager settingsManager, in ResourceConstructedImpl() argument
113 mSettingsManager = settingsManager; in ResourceConstructedImpl()
DResourceCaptureToolsImpl.java177 final SettingsManager settingsManager = resource.getSettingsManager(); in takePictureNow() local
178 boolean isGridLinesOn = Keys.areGridLinesOn(settingsManager); in takePictureNow()
/packages/apps/Camera2/src/com/android/camera/one/
DOneCameraCaptureSetting.java44 SettingsManager settingsManager, in create() argument
51 settingsManager, cameraSettingScope, Keys.KEY_FLASH_MODE)); in create()
56 settingsManager, cameraSettingScope, Keys.KEY_EXPOSURE); in create()
59 hdrSceneSetting = SettingObserver.ofBoolean(settingsManager, in create()
/packages/apps/Camera2/src/com/android/camera/widget/
DIndicatorIconController.java300 SettingsManager settingsManager = mController.getSettingsManager(); in setIndicatorState() local
302 int valueIndex = settingsManager.getIndexOfCurrentValue(scope, key); in setIndicatorState()
319 if (!showDefault && settingsManager.isDefault(scope, key)) { in setIndicatorState()
327 public void onSettingChanged(SettingsManager settingsManager, String key) { in onSettingChanged() argument
/packages/apps/Camera2/src/com/android/camera/app/
DModuleManagerImpl.java113 public int getQuickSwitchToModuleId(int moduleId, SettingsManager settingsManager, in getQuickSwitchToModuleId() argument
125 quickSwitchTo = settingsManager.getInteger( in getQuickSwitchToModuleId()
DModuleManager.java134 int getQuickSwitchToModuleId(int moduleId, SettingsManager settingsManager, Context context); in getQuickSwitchToModuleId() argument
DCameraAppUI.java2001 public void onSettingChanged(SettingsManager settingsManager, String key) {
2034 SettingsManager settingsManager = mController.getSettingsManager();
2047 mHdrSupportMode = settingsManager.getString(SettingsManager.SCOPE_GLOBAL,
2070 boolean flashBackCamera = settingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL,
/packages/services/Car/service/src/com/android/car/audio/
DCarVolumeGroup.java76 private CarVolumeGroup(int zoneId, int id, CarAudioSettings settingsManager, int stepSize, in CarVolumeGroup() argument
81 mSettingsManager = settingsManager; in CarVolumeGroup()
/packages/apps/Camera2/src_pd/com/android/camera/util/
DReleaseHelper.java26 SettingsManager settingsManager) { in showReleaseInfoDialogOnStart() argument
DCameraSettingsActivityHelper.java35 public static void verifyDefaults(SettingsManager settingsManager, Context context) { in verifyDefaults() argument
/packages/apps/Camera2/src/com/android/camera/module/
DModuleController.java105 public void hardResetSettings(SettingsManager settingsManager); in hardResetSettings() argument
/packages/apps/Camera2/src/com/android/camera/captureintent/
DCaptureIntentModule.java178 public void hardResetSettings(SettingsManager settingsManager) { in hardResetSettings() argument