HomeSort by relevance Sort by last modified time
    Searched full:settingsmanager (Results 1 - 25 of 39) sorted by null

1 2

  /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...]
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,
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...]
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,
CameraFacingSetting.java 31 private final SettingsManager mSettingsManager;
43 SettingsManager settingsManager,
46 mSettingsManager = settingsManager;
48 mSettingScope = SettingsManager.getModuleSettingScope(moduleSettingScope);
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/com/android/camera/one/
OneCameraCaptureSetting.java 27 import com.android.camera.settings.SettingsManager;
44 SettingsManager settingsManager,
51 settingsManager, cameraSettingScope, Keys.KEY_FLASH_MODE));
56 settingsManager, cameraSettingScope, Keys.KEY_EXPOSURE);
59 hdrSceneSetting = SettingObserver.ofBoolean(settingsManager,
60 SettingsManager.SCOPE_GLOBAL, Keys.KEY_CAMERA_HDR);
  /packages/apps/Camera2/src_pd/com/android/camera/util/
CameraSettingsActivityHelper.java 23 import com.android.camera.settings.SettingsManager;
35 public static void verifyDefaults(SettingsManager settingsManager, Context context) {
ReleaseHelper.java 22 import com.android.camera.settings.SettingsManager;
26 SettingsManager settingsManager) {
  /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, appController);
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);
ResourceConstructed.java 36 import com.android.camera.settings.SettingsManager;
61 * {@link com.android.camera.settings.SettingsManager}.
115 * @return A {@link com.android.camera.settings.SettingsManager} object.
117 public SettingsManager getSettingsManager();
  /packages/apps/Camera2/src/com/android/camera/app/
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);
CameraServicesImpl.java 33 import com.android.camera.settings.SettingsManager;
61 private final SettingsManager mSettingsManager;
76 mSettingsManager = new SettingsManager(context);
108 public SettingsManager getSettingsManager() {
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);
CameraServices.java 21 import com.android.camera.settings.SettingsManager;
64 public SettingsManager getSettingsManager();
FirstRunDialog.java 32 import com.android.camera.settings.SettingsManager;
70 private final SettingsManager mSettingsManager;
86 SettingsManager settingManager,
140 return !mSettingsManager.isSet(SettingsManager.SCOPE_GLOBAL, Keys.KEY_RECORD_LOCATION);
176 SettingsManager.SCOPE_GLOBAL,
220 SettingsManager.SCOPE_GLOBAL,
  /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...]
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...]
PermissionsActivity.java 21 import com.android.camera.settings.SettingsManager;
47 private SettingsManager mSettingsManager;
131 if (!isKeyguardLocked() && !mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL,
177 SettingsManager.SCOPE_GLOBAL,
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...]
  /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/module/
ModuleController.java 23 import com.android.camera.settings.SettingsManager;
105 public void hardResetSettings(SettingsManager settingsManager);

Completed in 1663 milliseconds

1 2