/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/ |
D | SettingsManagerTest.java | 27 import com.android.remoteprovisioner.SettingsManager; 49 SettingsManager.clearPreferences(sContext); in setUp() 54 SettingsManager.clearPreferences(sContext); in tearDown() 59 assertEquals(SettingsManager.EXTRA_SIGNED_KEYS_AVAILABLE_DEFAULT, in testCheckDefaults() 60 SettingsManager.getExtraSignedKeysAvailable(sContext)); in testCheckDefaults() 61 assertEquals(SettingsManager.EXPIRING_BY_MS_DEFAULT, in testCheckDefaults() 62 SettingsManager.getExpiringBy(sContext).toMillis()); in testCheckDefaults() 63 assertEquals(SettingsManager.URL_DEFAULT, in testCheckDefaults() 64 SettingsManager.getUrl(sContext)); in testCheckDefaults() 65 assertEquals(0, SettingsManager.getFailureCounter(sContext)); in testCheckDefaults() [all …]
|
D | ServerToSystemTest.java | 42 import com.android.remoteprovisioner.SettingsManager; 109 SettingsManager.clearPreferences(sContext); in setUp() 116 SettingsManager.clearPreferences(sContext); in tearDown() 143 SettingsManager.setDeviceConfig(sContext, 2 /* extraKeys */, mDuration /* expiringBy */, in testFallback() 149 SettingsManager.clearPreferences(sContext); in testFallback() 162 SettingsManager.setDeviceConfig(sContext, 2 /* extraKeys */, mDuration /* expiringBy */, in testFallback() 168 assertEquals(0, SettingsManager.getFailureCounter(sContext)); in testFallback()
|
/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/RemoteProvisioner/src/com/android/remoteprovisioner/ |
D | ServerInterface.java | 60 URL url = new URL(SettingsManager.getUrl(context) + CERTIFICATE_SIGNING_URL in requestSignedCertificates() 74 int failures = SettingsManager.incrementFailureCounter(context); in requestSignedCertificates() 79 SettingsManager.clearFailureCounter(context); in requestSignedCertificates() 89 SettingsManager.incrementFailureCounter(context); in requestSignedCertificates() 93 SettingsManager.incrementFailureCounter(context); in requestSignedCertificates() 113 URL url = new URL(SettingsManager.getUrl(context) + GEEK_URL); in fetchGeek() 125 int failures = SettingsManager.incrementFailureCounter(context); in fetchGeek() 130 SettingsManager.clearFailureCounter(context); in fetchGeek() 142 SettingsManager.incrementFailureCounter(context); in fetchGeek() 146 SettingsManager.incrementFailureCounter(context); in fetchGeek()
|
D | PeriodicProvisioner.java | 100 expiringBy = SettingsManager.getExpiringBy(mContext) in run() 124 SettingsManager.setDeviceConfig(mContext, in run() 140 SettingsManager.setDeviceConfig(mContext, in run() 181 if (SettingsManager.getFailureCounter(mContext) > FAILURE_MAXIMUM) { in checkGeekResp() 183 SettingsManager.clearPreferences(mContext); in checkGeekResp() 229 int totalSignedKeys = keysInUse + SettingsManager.getExtraSignedKeysAvailable(mContext); in generateNumKeysNeeded()
|
/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 | 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 …]
|
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()
|
/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()
|