46f8751da2fef488f6612b6f2f96e749595d3a2e |
|
26-Mar-2015 |
Sascha Haeberling <haeberling@google.com> |
Add support for new independent Lens Blur quality setting. Bug: 19424875 This CL and its sibling do two things: - Bring back the Lens Blur setting - Populate the setting with up to three native picture resolutions. - If needed, choose the default as being the second highest resolution. (The list is not a full list, but filterd by what we show to the user). - Make sure that after a new install a the default is set. - Extra check in RefocusModule to make sure the default is set if old setting is not valid. This is important for upgrades. - To make the size logic re-usable, I wrapped it into a PictureSizeLoader which also makes the CameraSettingsActivity a bit easier to read. Change-Id: I53fcac8304f19be4f2c5ac053363f6805b933d89
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
90db65676b53f591ca4333c35768cd7e2c8d49ed |
|
24-Mar-2015 |
Senpo Hu <senpo@google.com> |
Merge "OneCameraOpener should inform ActiveCameraDeviceTracker about camera open." into ub-camera-haleakala
|
00562dd0a8451eda80815b3d8fdcb8075e4b9db6 |
|
23-Mar-2015 |
Senpo Hu <senpo@google.com> |
OneCameraOpener should inform ActiveCameraDeviceTracker about camera open. Therefore, people use OneCameraOpener to open a camera don't need to worry about ActiveCameraDeviceTracker. To make people don't need to depend on CameraActivity/AppController, move setting scope generation into two utility methods: * SettingsManager.getCameraSettingScope() * SettingsManager.getModuleSettingScope() Bug: 19892712 Change-Id: I04caae24ea72a41d7d8e0786a99912098c2cf1ef
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
5aaf7c89b7debfd38e5f27f721176a7cda47f8eb |
|
23-Mar-2015 |
Alan Newberger <alann@google.com> |
Check for null on N5 resolution upgrade In case of first run with no existing resolution setting, ignore the upgrade step. Bug: 19889422 Change-Id: I518eaf089468c8255dedfea371f68763d62d777a
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
24aceb0bee1f1fa99ea8d7c4e22457f08ca4e2fa |
|
11-Mar-2015 |
Sascha Haeberling <haeberling@google.com> |
Swap dimensions of artificial 16:9 resolution on N5 on upgrade. Bug: 19693226 Since the N5 doesn't natively support a high resolution 16:9 size we need to artificially add it and then crop the result from the high-resolution 4:3 size. In version 2.4 we unfortunately swapped the dimensions of ResolutionUtil#NEXUS_5_LARGE_16_BY_9_SIZE, which now causes a few issues in 2.5. If we detect this case, we will swap the dimensions here to make sure they are the right way around going forward. Change-Id: I579e464d177ac86d6cc88e9142c26fd9d6b67a76
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
f2399a5148ec6f101e9e0b3f137d33b443b79b8c |
|
24-Feb-2015 |
Alan Newberger <alann@google.com> |
Make module scope prefix a static agent value This removes the multiple "PhotoModule" strings across the codebase and allows for retrieval of a module's string scope prefix as part of its static ModuleAgent properties rather than as a property of the module itself. Bug: 19482146 Change-Id: I2c36878dd070106149909f19f98bcae221b94012
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
8d0178ea8ea318e52dd8bd3ed5f3c8e697383304 |
|
23-Feb-2015 |
Alan Newberger <alann@google.com> |
Only copy preferences files on upgrade if they previously exist If no data exists in an old module format, there's no need to upgrade it. This is only a partial fix to the below bug, but will allow for fresh installs to work. Full fix requires all modules (or rather, their scope) to be created programmatically. Bug: 19482146 Change-Id: I50918eefc4ae9dcb472d2fc79cb1c5de710c5806
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
01e482a30cca945821e9a0c9ab927d66d34b2ac5 |
|
21-Feb-2015 |
Senpo Hu <senpo@google.com> |
Instantiate CaptureIntentModule in ModulesInfo. Bug: 18726217 Change-Id: I93397322843a7b1258b881e19ae90a7f6fb55e3b
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
2272f8a6bfc8adca8ada7a215bef038d45256085 |
|
16-Dec-2014 |
Senpo Hu <senpo@google.com> |
CaptureModule first run dialog. * Introduce FirstRunDialog. * Add OneCameraCharacteristics so we can query camera properties without opening the camera. * Refactor AspectRatioDialogLayout and LocationDialogLayout to clean up. * Refactor to move away from portability/Size class in Camera2. Bug: 18623223 Change-Id: I05f4eefe3ee2feeaa47b6296f8926f6be8e83051
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
6293c579bce8356f10cda31637917537a4501437 |
|
13-Oct-2014 |
Alan Newberger <alann@google.com> |
Refine in-place conversion semantics for Settings Since settings are now stored as strings, avoid app crashes for settings which are still around as other types, and just treat it as if those settings are absent (return default). This requires re-working the version number tracker itself, which is done by making it a new key and migrating just the old key in the getLastVersion override. This is somewhat cleaner and overall the change should increase stability given the change to use in place values of different types. Bug: 17949433 Change-Id: Icaf0d9653eabb9e144f3946a51b4038d3ed48ea9
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
5381549fe58cd3c5a28dc18e2416c37d3c2d300b |
|
06-Oct-2014 |
Alan Newberger <alann@google.com> |
Re-run settings files migrations Increment version number for upgrade and re-run copying. This will be a no-op for a first time glacier upgrader, copying runs in the same sequence for this case. For alpha users who hit crashes, this will re-run the copy, potentially overwriting some values but ensuring all values are valid. Tested both N4 and N5 upgrade scenarios that had previously seen issues, this addresses issues without the need to clear data. Bug: 17875895 Change-Id: I37c469c1b03151d03ee0d32ce0ba62983af32a36
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
90672aa08379e598426c12b529a86afd4b61011e |
|
06-Oct-2014 |
Alan Newberger <alann@google.com> |
Fix preference copy migration and incorrect HDR+ sticky bit A sticky bit upgrader particularly for HDR+ was looking in globals but was actually a module setting. The copy migrator was not properly handling booleans! Modified the copy migrator to properly handle supported types and removed the custom incorrect upgrader. Bug: 17875895 Change-Id: Id36abc429d12a77c5462e5c49ef7786e3d092f2c
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
d560aabf7baef81a14e78341af81994efc1d4f17 |
|
04-Oct-2014 |
Alan Newberger <alann@google.com> |
Avoid porting null keys when copying preferences into new system Testing on Fishlake shows certain preferences are of 'null' type in shared preferences. Avoid an NPE on porting a null. From testing, this can happen with focus mode, best to just skip porting the key and let the app use a default. Bug: 17829562 Change-Id: I483cb5beb160d3fb7fc8a42aa5085531e3fccb63
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
a830b1aefc9d5f29b512817ac96c68e38a38a13b |
|
03-Sep-2014 |
Alan Newberger <alann@google.com> |
Fixing settings upgrades Did a full audit of upgrade scenarios and performed the following fixes. * restored pre-existing location upgrade code that handled old upgrades. preserves location choice from C straight to G. * added string type format conversion for "old global" values that were not implemented in the refactor : hdr, hdr+, grid buttons * moved a "reset" that existed in upgraders that put the user in Camera mode on upgrade. it should run for everglades upgraders along with size changes. Bug: 17317510 Change-Id: I87db511bfa89676525ee727620cb546c180a8ef6
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
251402b0765e6ca2093ed674fa15ca295896273f |
|
18-Aug-2014 |
Alan Newberger <alann@google.com> |
Merge "Protect Camera2 functions from null CameraDeviceInfo" into ub-camera-glacier
|
2040b56b1e0a93b38a558fa56e4b49970bd4b248 |
|
16-Aug-2014 |
Alan Newberger <alann@google.com> |
Protect Camera2 functions from null CameraDeviceInfo When the underlying camera fails, the camera1 agent returns null for CameraDeviceInfo. Guard against this case where it is used in app upgrading and settings. Bug: 16982203 Change-Id: I7e4686e508993f0d0fc03eaa9e0b5dc312016eae
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
44ce4b26614f85518d548a6750c7a08908ae3596 |
|
05-Aug-2014 |
Sol Boucher <solb@google.com> |
Enable seamless switching to/from camera2-backed Photo module This supports running individual modules against the camera2 API framework while the rest of the modules use the legacy Camera class. Bug: 16875535 Change-Id: Ic0ae313a3dd96ba22bacc36c7b1712b183b713ff
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|
2307b60abdf0af8639d71ba53cf10fdaf8dfe7e7 |
|
05-Aug-2014 |
Alan Newberger <alann@google.com> |
Refactor Upgrade/UpgradeAosp into SettingsUpgrader This CL does three things: - removes the Upgrade/UpgradeAosp classes which were bunches of statics, in favor of a SettingsUpgrader abstract class that can be overridden - moves 'upgrade to strings' hack logic into AppUpgrader so it only is checked and run once, not for any of the former UpgradeSteps. logic used to be in Upgrade and run regardless of key, when it was using detection only meant for KEY.KEY_UPGRADE_VERSION - adds existence checks for all hack in-place key string upgrades so they are no-ops if the key was not persisted in the first place. Bug: 16573087 Change-Id: Ife42f7aa4a7611ba2d143410a3450057b7464901
/packages/apps/Camera2/src/com/android/camera/settings/AppUpgrader.java
|