History log of /packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ef0b96ce4571805066c1e0865d41272b066e22e6 30-Jul-2015 Dianne Hackborn <hackbod@google.com> Change MNC codename to just M.

Change-Id: I1a6d7b269e5b7a1630d29e9f406684175d5bdf7d
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
c2d5d078821ca5e8de0c0d03b6603bf7c505c53f 08-Jul-2015 Alan Newberger <alann@google.com> Restrict permission checks to M devices

Add an ApiHelper check and only call checkSelfPermission if we
are on M and the methods exist.

BUG=22345681

Change-Id: Icda8d40057b5492502858ced731a749a2f66abf8
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
7e39f8b015985fc0e539e14c193286065b5e51d4 09-May-2015 Pengchong Jin <pengchong@google.com> WAR of the face detection failure

This patch gives a work-around of the face detection failure that
occurs when the ZSL camera is used. It forces to request a preview
frame followed by a 5-frame ZSL burst before requesting the repeated
preview and ZSL streams. It also hides the first preview frame in order
to avoid potential janks. We do this only for L, Nexus 6 and Haleakala.

Bug: 20724126

Change-Id: I40b7861e07570ed53135b2d8d182b65c5799adac
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
8f51086c8177056345de996963515c4bd3415254 19-Feb-2015 Sascha Haeberling <haeberling@google.com> Centralize logic for Camera API feature determination.

Bug: 19179276

This captures camera capabilities in a centralized class and allows
them to be overridden by GServices in the field or using adb.

Since this is not it's own class it would be trivial to create another
instance for testing and pass that into CameraActivity or even to change
these values using a UI before the actual Activity is started.

Change-Id: I74262c8467f631c7b5e42b02d269d5f401d4e9e7
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
01369b2e64f347f4425286ac5f4762db97b490cb 17-Feb-2015 Sascha Haeberling <haeberling@google.com> Merge "Add method to detect L MR1 or higher for NPF compatability." into ub-camera-haleakala
a8c7362bad737952f671cc6b26f12209c8a514a5 17-Feb-2015 Sascha Haeberling <haeberling@google.com> Add method to detect L MR1 or higher for NPF compatability.

Bug: 1939424:

Change-Id: I60470e4ddfa81004db6f3efe4ea470f89579baa5
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
b6c4a314d0a0a185e6d987298ef9b7f4db8a6a2f 11-Feb-2015 Senpo Hu <senpo@google.com> Enable exposure compensation in CaptureModule.

* Expose camera exposure compensation capabilities in OneCameraCharacteristics.
* Turn off exposure compensation on Nexus 6 (API level 21).

Bug: 18523154
Change-Id: I551f19945f5a64a09a76b3a0777664d16a9b2ba2
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
4dc301a073dab22b9bc12e0b846530d3a80bf8f7 15-Jan-2015 I-Jong Lin <ijonglin@google.com> Image Backend Integration w/ Simple Camera

Wiring for cameras that only deliver compressed JPEG artifacts.
This CL was tested by enabling it on the Nexus 5.
Currently, the code in this CL is NOT exposed in any known
Nexus Camera model. The two unexposed bugs are as follows: an camera
initialization bug on Nexus 4, and a cross-device functional issue
with the SimpleCameraOneFactory object in that it doesn't request
a JPEG compression artifact from the HAL with zero orientation.

Bug: 18908116
Change-Id: If7080c4e8e52a329fb9a6fed52f7c31541758afb
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.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/util/ApiHelper.java
522d87380bdc8f4b8cdfe4b6f8337911d2cbc07f 06-Jan-2015 Alan Newberger <alann@google.com> Adjust aspect ratio matching threshold for all devices

Broadening a fix from Glacier now that we have time to test across
devices.

Bug: 18241645
Change-Id: Ic3a65a659009d0301255b608d4540bd15e9bd0fb
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.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/util/ApiHelper.java
fdefc72616d55de5f4e13a3e60fb9561cc8488cb 20-Nov-2014 Alan Newberger <alann@google.com> Add renderscript helper value

Capture new architecture/API-level constraints on renderscript in
the ApiHelper.

Bug: 18435492
Change-Id: I4d06a0c8448cde587f8a9cb3a042768a4a61872a
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
2ebdbd55522df5ceb93c2a0c423e3515c030bd05 04-Nov-2014 Alan Newberger <alann@google.com> Relax aspect ratio matching tolerance for devices with 1.347 ratios

Our .01 tolerance omits valid 4:3 previews when the image capture is
more than 0.01 over true 4:3. Relax matching in Glacier just for
affected builds.

Bug: 18241645
Change-Id: I5868bc9535e4c9bb886f0de0daf0e83cd2f4dc78
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
838095ae165f8a16bde986a9853c1d835358aea9 27-Oct-2014 I-Jong Lin <ijonglin@google.com> Volantis Device Identifier Helper

Bug: 17868158

Part of a multi-project commit, along with ag/575889
Adds a helper function to identify when the Android device
is a Nexus 9.

Change-Id: I36c3b6e4472d08d1be7b1197fd62f4766fcc81ed
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
7839867c4c6eb837d5e7c1c5851741d4933f5fb1 13-Oct-2014 Alan Newberger <alann@google.com> Merge "Update to use real L codename." into ub-camera-glacier
d25eac4c69ccda0a9e91f6af8032b0624554e7ac 09-Oct-2014 Spike Sprague <spikuru@google.com> Native 16x9 viewfinder stream for Gcam to reduce switching jank and eliminate black bar overlay hack.

companion CL: ag/562183

bug: 17669070
Change-Id: I4d5402df3848423c236108716f7065a87ce95f6d
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
43d66a0cac75bbb0adb0933124002e1eb1f439b9 08-Oct-2014 Dianne Hackborn <hackbod@google.com> Update to use real L codename.

Change-Id: If6e5f02f693848f6cb0014084dccf910be4c958d
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
7c703ced0248d6a368a216e9d7699ab8e9565415 26-Sep-2014 Puneet Lall <puneetl@google.com> Cleanup: Move api check to ApiHelper

Change-Id: Ifc0b080713329d09cdeaeec5ccdf88d8515e5543
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
2631a15a37b890f4ee720c5a4bbe3e654524deb6 24-Sep-2014 Alan Newberger <alann@google.com> Don't show aspect ratio UI if using API2 portability

Avoid preview size changes due to current state of locking in API2
portability implementation.

Bug: 17462976
Change-Id: I9426380699988d67b21ce86850ef00736e84a5d6
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
fb172acde20561b03b2279673857b8bea71d81e7 21-Aug-2014 Alan Newberger <alann@google.com> Remove one shot callback workaround in VideoModule for L

Since there was a framework fix for the issue, we don't need
to do an extra preview callback when entering video if on L.

Bug: 16649297
Bug: 17241994
Change-Id: I67fc67ef34a661daea6991c3b895b1c1bf6b9b85
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
4c1bffecc94cedf56d188eca40bd65a854746413 21-Aug-2014 Sascha Haeberling <haeberling@google.com> Enable switching within CaptureModule to HDR+ and back.

Bug: 16945820

Change-Id: If92371129c5bf2a78b7623d745a8b86d218d32e1
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
2c8ac0ad7e1951d1c7314f4ac304dc7a920bd20d 13-Jun-2014 Doris Liu <tianliu@google.com> Remove workaround for K-MR1 that registers redundant preview callbacks

as MR2 has already started rollout, and is expected to finish before F release.
Change-Id: Ifa37a91f5270bb820d5bfb8db03bf21a71f225ff
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
cb8215ef6efaf379adf0e0c45c655ac3ec9a5638 19-May-2014 Doris Liu <tianliu@google.com> Set a preview callback with a buffer size to force update preview callback stream

This is the workaround for the same issue that causes b/12210027. It was fixed
in KitKat MR2, so we are applying the workaround on KitKat and MR1.

Bug: 14954941
Change-Id: Ifba3f9d47769884e81a41277f858e5c7aef41803
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.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/util/ApiHelper.java
040e3c053cc0d2097332de24cf5328a26a8e7332 10-Feb-2014 Doris Liu <tianliu@google.com> Mode switcher refinements.

- Increase the mode switch icon size.
- Change mode cover color to 0x191919
- Change the font of mode text to roboto medium
- Change the highlight state of mode icon to fill

Bug: 12954273
Bug: 12954790
Bug: 12954370
Bug: 12953261
Change-Id: I23ef62ae4ce5589da20c7ee6bf805e5af70b62f2
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
53b3ddbae16c5efbac842e158525720d0b9108cb 05-Dec-2013 Doris Liu <tianliu@google.com> Change mode drawer text weight to light, change camera mode color

Bug: 11996762
Bug: 11996767
Change-Id: I51ca31795856b91bc78f6d579dd33ec527c1f57b
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
9bf0fd606a624138b8c1123d168f06a24c4d20a3 03-Oct-2013 Sascha Haeberling <haeberling@google.com> Change icons and code from HQ to HDR+ mode.

Bug: 11047147

Change-Id: Ib0ab1675788f6584d2b06b63a113468d2e775f23
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
98f38bb04daa3db49a072718cd8b5005b8b73af1 25-Sep-2013 Sascha Haeberling <haeberling@google.com> Add HQ option and use it to switch to GCam.

Bug: 10430748
Bug: 10785988

Change-Id: If824d1d1876d8434958b2a5bc97d2852da118a8b
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
a5682ab08e1d42fe272ec877929478b4adb769f5 19-Sep-2013 Mangesh Ghiware <mghiware@google.com> Bring back NFC beam support to filmstrip

Bug: 10805211
Change-Id: I457d47625c69fcdaba663e53f46d461d29c7cb92
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
5df64b0a818d4f85cb14602db725f05b0055c1d9 19-Sep-2013 Mangesh Ghiware <mghiware@google.com> Make Up button in filmstrip go to Gallery.

Bug: 10748904
Change-Id: If80f3354071893dc4f8bd60e4ca605d3626ecdf9
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
638e6f06c877d90b907f66ea9c22b3c6b73c7384 18-Sep-2013 Sascha Haeberling <haeberling@google.com> Clean up ApiHelper and remove unused code paths.

Bug: 10821545

As we're targeting ICS there are a lot of checks and code paths
that are no longer in use. This CL cleans them up.

Change-Id: Ic3dd26628a94e134e25e2c496ccec1f1f957216d
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java
b50b5cbfbc0a67db6fc43373363b10381c9c61a3 09-Aug-2013 Angus Kong <shkong@google.com> Clean up Gallery codes.

bug:10263696

Change-Id: I3a16dba3aabe52b8103a2c591cfa39907265a263
/packages/apps/Camera2/src/com/android/camera/util/ApiHelper.java