/packages/apps/Camera2/src/com/android/camera/settings/ |
Keys.java | 30 * stores those defaults so they can be used by the SettingsManager 32 * a setting is accessed by the SettingsManager API. 89 public static void setDefaults(SettingsManager settingsManager, Context context) { 90 settingsManager.setDefaults(KEY_COUNTDOWN_DURATION, 0, 93 settingsManager.setDefaults(KEY_CAMERA_ID, 97 settingsManager.setDefaults(KEY_SCENE_MODE, 101 settingsManager.setDefaults(KEY_FLASH_MODE, 105 settingsManager.setDefaults(KEY_HDR_SUPPORT_MODE_BACK_CAMERA, 109 settingsManager.setDefaults(KEY_CAMERA_HDR, false) [all...] |
AppUpgrader.java | 101 protected int getLastVersion(SettingsManager settingsManager) { 107 SharedPreferences defaultPreferences = settingsManager.getDefaultPreferences(); 115 return SettingsManager.convertToInt((String) oldVersion); 118 return super.getLastVersion(settingsManager); 122 public void upgrade(SettingsManager settingsManager, int lastVersion, int currentVersion) { 128 upgradeTypesToStrings(settingsManager); 132 forceLocationChoice(settingsManager); 139 upgradeCameraSizeSetting(settingsManager, context, infos [all...] |
ManagedSwitchPreference.java | 56 SettingsManager settingsManager = CameraServicesImpl.instance().getSettingsManager(); 57 if (settingsManager != null) { 58 return settingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, getKey()); 60 // If the SettingsManager is for some reason not initialized, 75 SettingsManager settingsManager = CameraServicesImpl.instance().getSettingsManager(); 76 if (settingsManager != null) { 77 settingsManager.set(SettingsManager.SCOPE_GLOBAL, getKey(), value) [all...] |
SettingsUpgrader.java | 34 // SettingsManager, to represent string-based booleans via typed string 51 public void upgrade(SettingsManager settingsManager) { 52 int lastVersion = getLastVersion(settingsManager); 54 upgrade(settingsManager, lastVersion, mTargetVersion); 56 settingsManager.set(SettingsManager.SCOPE_GLOBAL, mVersionKey, mTargetVersion); 66 protected abstract void upgrade(SettingsManager settingsManager, int lastVersion, 71 * Typically will be stored in SCOPE_GLOBAL in SettingsManager, but a [all...] |
CameraFacingSetting.java | 30 private final SettingsManager mSettingsManager; 42 SettingsManager settingsManager, 44 mSettingsManager = settingsManager; 46 mSettingScope = SettingsManager.getModuleSettingScope(moduleSettingScope);
|
ResolutionSetting.java | 44 private final SettingsManager mSettingsManager; 49 public ResolutionSetting(SettingsManager settingsManager, 52 mSettingsManager = settingsManager; 97 SettingsManager.SCOPE_GLOBAL, 124 mSettingsManager.isSet(SettingsManager.SCOPE_GLOBAL, pictureSizeSettingKey); 130 mSettingsManager.getString(SettingsManager.SCOPE_GLOBAL, 158 SettingsManager.SCOPE_GLOBAL,
|
SettingObserver.java | 29 * Wraps a {@link SettingsManager} setting with thread-safe interfaces for 34 private class Listener implements SettingsManager.OnSettingChangedListener, SafeCloseable { 44 public void onSettingChanged(SettingsManager settingsManager, String key) { 54 private final SettingsManager mSettingsManager; 59 private SettingObserver(SettingsManager manager, String scope, String key, Class<T> tClass) { 66 public static SettingObserver<Integer> ofInteger(SettingsManager manager, 72 public static SettingObserver<String> ofString(SettingsManager manager, 78 public static SettingObserver<Boolean> ofBoolean(SettingsManager manager,
|
SettingsManager.java | 34 * SettingsManager class provides an api for getting and setting SharedPreferences 67 * outside the SettingsManager, because these values are either passed into 76 public class SettingsManager { 77 private static final Log.Tag TAG = new Log.Tag("SettingsManager"); 103 public SettingsManager(Context context) { 112 * Get the SettingsManager's default preferences. This is useful 174 public void onSettingChanged(SettingsManager settingsManager, String key); 183 listener.onSettingChanged(SettingsManager.this, key); 189 * Add an OnSettingChangedListener to the SettingsManager, which wil [all...] |
/packages/apps/Camera2/src_pd/com/android/camera/util/ |
ReleaseHelper.java | 22 import com.android.camera.settings.SettingsManager; 26 SettingsManager settingsManager) {
|
CameraSettingsActivityHelper.java | 23 import com.android.camera.settings.SettingsManager; 35 public static void verifyDefaults(SettingsManager settingsManager, Context context) {
|
/packages/apps/Camera2/src/com/android/camera/one/ |
OneCameraCaptureSetting.java | 27 import com.android.camera.settings.SettingsManager; 44 SettingsManager settingsManager, 49 SettingObserver.ofString(settingsManager, cameraSettingScope, Keys.KEY_FLASH_MODE)); 51 settingsManager, cameraSettingScope, Keys.KEY_EXPOSURE); 54 hdrSceneSetting = SettingObserver.ofBoolean(settingsManager, 55 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR);
|
/packages/apps/Camera2/src/com/android/camera/app/ |
ModuleManager.java | 23 import com.android.camera.settings.SettingsManager; 129 * @param settingsManager settings manager for querying last used camera module 134 int getQuickSwitchToModuleId(int moduleId, SettingsManager settingsManager, Context context);
|
ModuleManagerImpl.java | 24 import com.android.camera.settings.SettingsManager; 113 public int getQuickSwitchToModuleId(int moduleId, SettingsManager settingsManager, 125 quickSwitchTo = settingsManager.getInteger( 126 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_MODULE_LAST_USED);
|
CameraAppUI.java | 48 import com.android.camera.settings.SettingsManager; 88 SettingsManager.OnSettingChangedListener, 805 SettingsManager.SCOPE_GLOBAL, [all...] |
/packages/apps/Camera2/src/com/android/camera/module/ |
ModuleController.java | 23 import com.android.camera.settings.SettingsManager; 105 public void hardResetSettings(SettingsManager settingsManager);
|
/packages/apps/Camera2/src/com/android/camera/ |
PhotoModule.java | 66 import com.android.camera.settings.SettingsManager; 107 SettingsManager.OnSettingChangedListener, 342 SettingsManager settingsManager = mActivity.getSettingsManager(); 343 settingsManager.set(SettingsManager.SCOPE_GLOBAL, 389 SettingsManager settingsManager = mActivity.getSettingsManager(); 390 // TODO: Move this to SettingsManager as a part of upgrade procedure. 394 settingsManager.setToDefault(mAppController.getModuleScope(), Keys.KEY_CAMERA_ID) [all...] |
CaptureModule.java | 74 import com.android.camera.settings.SettingsManager; 139 private final SettingsManager mSettingsManager; 493 .getInteger(SettingsManager.SCOPE_GLOBAL, Keys.KEY_COUNTDOWN_DURATION); 513 .getInteger(SettingsManager.SCOPE_GLOBAL, Keys.KEY_COUNTDOWN_DURATION); 700 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS) == 1; 703 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR); 761 public void hardResetSettings(SettingsManager settingsManager) { 765 settingsManager.set(SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR_PLUS, true) [all...] |
VideoModule.java | 64 import com.android.camera.settings.SettingsManager; 342 SettingsManager settingsManager = mActivity.getSettingsManager(); 343 mCameraId = settingsManager.getInteger(mAppController.getModuleScope(), 543 public void hardResetSettings(SettingsManager settingsManager) { 733 SettingsManager settingsManager = mActivity.getSettingsManager(); 736 String videoQuality = settingsManager 737 .getString(SettingsManager.SCOPE_GLOBAL, videoQualityKey) [all...] |
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) { 204 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, 208 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, 212 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, 220 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, 792 int index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL [all...] |
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
ResourceConstructedImpl.java | 37 import com.android.camera.settings.SettingsManager; 49 private final SettingsManager mSettingsManager; 74 SettingsManager settingsManager, 79 context.getResources(), settingsManager, settingScopeNamespace); 81 settingsManager, oneCameraManager, context.getContentResolver()); 84 oneCameraManager, locationManager, orientationManager, settingsManager, burstFacade, 98 SettingsManager settingsManager, 113 mSettingsManager = settingsManager; [all...] |
ResourceCaptureToolsImpl.java | 34 import com.android.camera.settings.SettingsManager; 177 final SettingsManager settingsManager = resource.getSettingsManager(); 178 boolean isGridLinesOn = Keys.areGridLinesOn(settingsManager);
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
IndicatorIconController.java | 29 import com.android.camera.settings.SettingsManager; 41 implements SettingsManager.OnSettingChangedListener, 205 setIndicatorState(SettingsManager.SCOPE_GLOBAL, 210 setIndicatorState(SettingsManager.SCOPE_GLOBAL, 229 setIndicatorState(SettingsManager.SCOPE_GLOBAL, 286 setIndicatorState(SettingsManager.SCOPE_GLOBAL, 300 SettingsManager settingsManager = mController.getSettingsManager(); 302 int valueIndex = settingsManager.getIndexOfCurrentValue(scope, key); 319 if (!showDefault && settingsManager.isDefault(scope, key)) [all...] |
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
CaptureIntentModule.java | 55 import com.android.camera.settings.SettingsManager; 178 public void hardResetSettings(SettingsManager settingsManager) {
|