History log of /packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8d8b329da25456adb5ee45e0450680654114e125 11-Jun-2015 I-Jong Lin <ijonglin@google.com> Fix for invalidated resolutions via upgrade

Bug: 21758681

There was a upgrade bug where an valid resolution of the
previous version of the Camera App could then be invalidated
the subsequent version of the Camera App. If there were no
other valid resolutions of the same aspect ratio available
to the app, the current Camera App would choose (0,0) as its
default size and then write this value into the saved settings.

This fix allows the current Camera App to consider other resolutions
not of aspect ratio as a fallback resolution setting. Also, if
an invalid resolution valid has been saved to the settings, it
also ignores it and then resaves a valid resolution value to the
settings.

Change-Id: I08f19d1ee6491619e92697897b73e4fd33a19a00
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
1d84d7107686aa428ee2eeb1a8caf0ea3e43b1df 12-Mar-2015 Paul Rohde <codelogic@google.com> Re-arrange camera initialization.

This change re-arranges several things to make it possible to know
the CameraId you are about to open before you actually open the
camera device. It also adds an explicit CameraId class for handling
both legacy and camera2 id comparisons, an active camera tracker,
and moves the camera id query mechanism into a hardware manager
class in prep for the subsequent camera release.

Bug: 19679820

Change-Id: I4c09b9a12a1ea5badcac3a6a073a56764f9a7eba
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
86d753fcbb0c7474fa9b2797e76e31ef575e76cd 06-Mar-2015 Sascha Haeberling <haeberling@google.com> Add black-list for resolutions.

Bug: 19611738

Change-Id: I5147bcd925c28e3db0e1e50c8a013cc6750fb47e
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
2f6fe6f07a6d43d8bb49156a7a73e86896ab7d1e 24-Feb-2015 Puneet Lall <puneetl@google.com> Add support for non-native picture sizes

Add a new PictureSizeCalculator which selects the most-appropriate
natively-supported picture size for any target, user-selected, picture
size. The appropriate, centered, crop-region is passed to the
ImageBackend, but is currently ignored. Future work is required
to crop the resulting images using these values.

Bug: 19323062
Change-Id: I65cdc97950840dde0a94c96179ade3aae17acc30
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
8be316c7a8caf962cf3fcf5e49d332fb2718319f 20-Jan-2015 Paul Rohde <codelogic@google.com> Make it possible for singletons that rely on application context to be
initalized lazily.

* Add AndroidContext
* Add AndroidServices
* Make LogHelper ues thread safe lazy initialization
* Convert several unused fields into local variables in CameraApp.

Change-Id: I9c73e9b91efb49a01d848a8cca1e8e65f059b5d0
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
fb0496133a0b4b526dc70f6447bd4b97d95de95f 12-Jan-2015 Senpo Hu <senpo@google.com> Move FirstRunDialog to app layer.

The first run logic should live in CameraActivity. This refactoring
could clean up CaptureModule and PhotoModule.

* Introduce ResolutionSetting class.
* Introduce OneCameraManagerImpl for camera API 1.

Tested and verified this works on K / L devices.

Change-Id: I11a968a9346b520dee23fc4591a73bb483c43246
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.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/ResolutionUtil.java
e3dfd5a433e39d76578b379fe1539864cf924cee 06-Aug-2014 Sascha Haeberling <haeberling@google.com> [OC] Migrate away from android.util.Size sinc we cannot use it in K.

Bug: 16654225

Change-Id: I2c0ea6b387b8ad38d6e49c84dca8bf2bde34e249
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
08b3c94a7d7aff30b5da8e99649346e37b67a5c5 31-Jul-2014 Sascha Haeberling <haeberling@google.com> [OC] Adds the new CaptureModule and UI.

Bug: 16654225

This is essentially a version of the GCamModule without GCam, plus a few
things we need from PhotoModule.

Some code is commented out to be added back in later as a reminder.

CLs to hook the module up will be following up.

Change-Id: I70108529f81a8b0b744dc846287ea2ac121c85da
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
5a344964cb003525727c31d295ca3a592c245606 17-Jun-2014 Sol Boucher <solb@google.com> Remove cameradevice subpackage and point references at ex library

This code is being relocated into frameworks/ex for availability to other apps.

Change-Id: Icada261ac7a795b08dd8b187dfd17077077b37c3
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
6607dae6c4d1ee5bbf572695c2042d4d9129a730 11-Jun-2014 Angus Kong <shkong@google.com> Refactor out Camera.Parameters.

Change-Id: Ibc1ddac509381530e887b7491069e6367e9a6088
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
1cced0e893b6a2f37d447a049c1c3c08affd2d41 15-May-2014 Seth Raphael <magicseth@google.com> Use approximate descriptions of aspect ratios.

165:98 should be considered close enough and
described as 16:9

Bug: 14970245
Change-Id: I75ca9507e453d057c6db3e4fd99cebb0ee01d4f7
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
d074fffd7c85df39893125f29fb3d487864feaf1 12-May-2014 Seth Raphael <magicseth@google.com> Localize aspect ratios in settings summaries

Bug: 14496248
Change-Id: I392dc627d09a09980d450ad1dfc93d0e4e5a237c
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
a4b0118d15d4a3c6b77827feb63c3809c61c0fcf 12-May-2014 Seth Raphael <magicseth@google.com> Do not display large 16x9 option on N5 front cam

It was erroneously added to the list of supported
resolutions for the Nexus 5 front facing camera

Bug: 14819623

Change-Id: I4481c68a473cb790fa67a9648e80302f19bf3065
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
454d63f617489281971fb151abfe14730209c047 06-May-2014 Angus Kong <shkong@google.com> Add cropping for nexus 5 to support 16:9 sizes.

Based on Seth's proposal of faking a new resolution setting.

Improvements made:
1. Move the cropping to a background thread.
2. Refactored to start the preview early to avoid jankness from waiting for the
cropping.
3. Fix the wrong width and hight in EXIF. The original logic is to use width and
height from the camera parameters. Now this is not true anymore.
4. Add check for Nexus 5 for the support to take effect.

Change-Id: I37515fc394b31539644a33b6d32840baf205e15c
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java
b19eaa0bb37a1252015eafd3e965a011e6e98727 02-May-2014 Seth Raphael <magicseth@google.com> Allow multiple aspect ratios to be set for the
resolution setting.

Bug: 13328191
Change-Id: Ie067d18b70bc1ae84dc284f881b7f6030f6a6622
/packages/apps/Camera2/src/com/android/camera/settings/ResolutionUtil.java