OSDN Git Service

android-x86/packages-apps-Camera2.git
9 years agoMerge "Make sure picture sizes are cached on start-up, if they are not already."...
Sascha Haeberling [Wed, 1 Apr 2015 21:06:42 +0000 (21:06 +0000)]
Merge "Make sure picture sizes are cached on start-up, if they are not already." into ub-camera-haleakala

9 years agoMake sure picture sizes are cached on start-up, if they are not already.
Sascha Haeberling [Wed, 1 Apr 2015 19:27:54 +0000 (12:27 -0700)]
Make sure picture sizes are cached on start-up, if they are not already.

  Bug: 20015834

We cache picture sizes on disk, keyed by OS build version number. This makes sure
we update this cache if we start the app on an updated OS. Refocus requires these
sizes and loads them from cache.

Change-Id: Ib8aa9a37481b9a6be441122be41ab81917a5bd37

9 years agoAdd support for dynamic ring-buffer max size
Puneet Lall [Tue, 31 Mar 2015 01:29:20 +0000 (18:29 -0700)]
Add support for dynamic ring-buffer max size

Enables specifying a maximum ring-buffer size.
Setting the ring-buffer size to a value smaller than
ImageReader#getMaxImages reduces the number of android.media.Images held
open at a steady-state at application startup.

Because ImageReader images are allocated on-demand, this mitigates
stuttering in the preview-stream caused by massive allocations that
would otherwise occur as the ring buffer expands.

Bug: 19989536
Change-Id: I5623d0cd0da6542599f430f0dcbf97d581ec8df1

9 years agoMerge "Report jank for simple capture module cameras." into ub-camera-haleakala
Paul Rohde [Tue, 31 Mar 2015 16:39:57 +0000 (16:39 +0000)]
Merge "Report jank for simple capture module cameras." into ub-camera-haleakala

9 years agoReport jank for simple capture module cameras.
Paul Rohde [Tue, 31 Mar 2015 16:01:44 +0000 (09:01 -0700)]
Report jank for simple capture module cameras.

This clarifies the jank statistics by explicitly including a
report if the jank detector is installed.

Bug: 19987252

Change-Id: Ie8e4b9826eb0e3152d7f8358728019d1a81e787b

9 years agoFix build by adding missing imports.
Sascha Haeberling [Mon, 30 Mar 2015 23:49:09 +0000 (16:49 -0700)]
Fix build by adding missing imports.

Change-Id: Ic98b815cd9aa956d1d36db70f85d8bc29d5b8cf6

9 years agoMerge "Add support for new independent Lens Blur quality setting." into ub-camera...
Sascha Haeberling [Mon, 30 Mar 2015 23:30:43 +0000 (23:30 +0000)]
Merge "Add support for new independent Lens Blur quality setting." into ub-camera-haleakala

9 years agoMerge "Collect and log jank statistics in the Camera." into ub-camera-haleakala
Paul Rohde [Mon, 30 Mar 2015 22:08:00 +0000 (22:08 +0000)]
Merge "Collect and log jank statistics in the Camera." into ub-camera-haleakala

9 years agoMerge "Reduce startup preview jank by preventing Glide pre-allocation." into ub-camer...
Paul Rohde [Mon, 30 Mar 2015 21:51:23 +0000 (21:51 +0000)]
Merge "Reduce startup preview jank by preventing Glide pre-allocation." into ub-camera-haleakala

9 years agoAdd support for new independent Lens Blur quality setting.
Sascha Haeberling [Thu, 26 Mar 2015 01:49:40 +0000 (18:49 -0700)]
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

9 years agoCollect and log jank statistics in the Camera.
Paul Rohde [Mon, 30 Mar 2015 18:35:47 +0000 (11:35 -0700)]
Collect and log jank statistics in the Camera.

This detects and logs sequences of camera timestamps where the
delta between the the current and last frame exceeds the
previous delta by a percentage threshold. This should only occur
when there are visible janks in the camera preview.

Bug: 19987252

Change-Id: Icced48be8232bba625aa501b2b1f5c111dbb5573

9 years agoMerge "Detect jank in the preview by measuring sensor timestamps." into ub-camera...
Paul Rohde [Mon, 30 Mar 2015 17:37:21 +0000 (17:37 +0000)]
Merge "Detect jank in the preview by measuring sensor timestamps." into ub-camera-haleakala

9 years agoDetect jank in the preview by measuring sensor timestamps.
Paul Rohde [Fri, 27 Mar 2015 23:34:09 +0000 (16:34 -0700)]
Detect jank in the preview by measuring sensor timestamps.

This detects frames dropped by the camera (Which results in a
preview that skips and jitters) by tracking the delta between
frames and logging when that delta increases by more than 120%.

Bug: 19076469
Change-Id: Icc9f08174097587c850c06ae88007ce784775851

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 30 Mar 2015 12:39:46 +0000 (05:39 -0700)]
Import translations. DO NOT MERGE

Change-Id: I3163846ab4a148369e7ce40e2397e2c470313799
Auto-generated-cl: translation import

9 years agoMerge "Enable exposure compensation in capture intent." into ub-camera-haleakala
zafir [Sat, 28 Mar 2015 06:35:18 +0000 (06:35 +0000)]
Merge "Enable exposure compensation in capture intent." into ub-camera-haleakala

9 years agoEnable exposure compensation in capture intent.
zafir [Sat, 28 Mar 2015 02:07:35 +0000 (19:07 -0700)]
Enable exposure compensation in capture intent.

Bug: 19964499
Change-Id: I2f7d43aa421dba0fa873eaf47c46d955136662e5

9 years agoMerge "Don't use undersore for variable names." into ub-camera-haleakala
Sascha Haeberling [Fri, 27 Mar 2015 23:09:22 +0000 (23:09 +0000)]
Merge "Don't use undersore for variable names." into ub-camera-haleakala

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 27 Mar 2015 22:29:02 +0000 (15:29 -0700)]
Import translations. DO NOT MERGE

Change-Id: I50e93f74c8b4e26a2431e01133eff7e5c63b67d3
Auto-generated-cl: translation import

9 years agoDon't use undersore for variable names.
Sascha Haeberling [Fri, 27 Mar 2015 19:51:16 +0000 (12:51 -0700)]
Don't use undersore for variable names.

Gets rid of the following compiler warning:
"use of '_' as an identifier might not be supported in releases after Java SE 8)"

Change-Id: Icb7eec3093acdd629f1e5b9994bd157a01fd8781

9 years agoMerge "Sync Video torch setting with on-screen indicator" into ub-camera-haleakala
Spike Sprague [Fri, 27 Mar 2015 17:53:44 +0000 (17:53 +0000)]
Merge "Sync Video torch setting with on-screen indicator" into ub-camera-haleakala

9 years agoHiding manual exposure button in video module.
zafir [Fri, 27 Mar 2015 02:08:17 +0000 (19:08 -0700)]
Hiding manual exposure button in video module.

Manual exposure button should never appear in non-camera modes.
This fix explicitly ensures that it will never appear in either
disabled or greyed out states in video module.

Bug: 19954837
Change-Id: Ia6730da9e3acaa62e2a30f594f344d86e2b25c69

9 years agoSync Video torch setting with on-screen indicator
Spike Sprague [Fri, 27 Mar 2015 01:42:30 +0000 (18:42 -0700)]
Sync Video torch setting with on-screen indicator

bug: 19954583
Change-Id: Ia491b63f31d81038ca8d8841b1f72f5ee76bb64f

9 years agoMerge "Include HDR on/off correctly in event." into ub-camera-haleakala
Andy Huibers [Fri, 27 Mar 2015 00:26:34 +0000 (00:26 +0000)]
Merge "Include HDR on/off correctly in event." into ub-camera-haleakala

9 years agoInclude HDR on/off correctly in event.
Andy Huibers [Fri, 27 Mar 2015 00:15:29 +0000 (17:15 -0700)]
Include HDR on/off correctly in event.

Bug: 19900458
Change-Id: Ifd9a585a61801cd1abe16bdbe47a56d96399b84e

9 years agoMake sure N4 uses the correct texture view transform.
Sascha Haeberling [Fri, 27 Mar 2015 00:06:38 +0000 (17:06 -0700)]
Make sure N4 uses the correct texture view transform.

  Bug: 19948775

Change-Id: Ib489a5a66cf4a667914c8516f71f54219660fc09

9 years agoPrevent countdown cancelation from starting the camera on pause.
Paul Rohde [Thu, 26 Mar 2015 17:29:44 +0000 (10:29 -0700)]
Prevent countdown cancelation from starting the camera on pause.

Bug: 19937825
Change-Id: I13e774afe2da9342b9defcc0f1d304032d931b12

9 years ago[CaptureIntent] Fix NPE crash when open camera.
Senpo Hu [Thu, 26 Mar 2015 01:22:39 +0000 (18:22 -0700)]
[CaptureIntent] Fix NPE crash when open camera.

Change-Id: I09cddae3ce935c92d6829924372a4082bb69f48a

9 years agoMerge "Remove the setFocusRatio verbose logspam." into ub-camera-haleakala
Paul Rohde [Thu, 26 Mar 2015 00:19:20 +0000 (00:19 +0000)]
Merge "Remove the setFocusRatio verbose logspam." into ub-camera-haleakala

9 years agoMerge "Change CaptureSession.saveAndFinish to return a future for the URI." into...
Sascha Haeberling [Wed, 25 Mar 2015 23:39:44 +0000 (23:39 +0000)]
Merge "Change CaptureSession.saveAndFinish to return a future for the URI." into ub-camera-haleakala

9 years agoChange CaptureSession.saveAndFinish to return a future for the URI.
Sascha Haeberling [Wed, 25 Mar 2015 22:08:34 +0000 (15:08 -0700)]
Change CaptureSession.saveAndFinish to return a future for the URI.

  Bug: 19665531

Most callers of saveAndFinish never provided the callback. In addition
it's unclear on what thread the callback is called. This cleans this up
a bit and moves the responsibility to the caller to decide on which
thread the URI should be received. Callers that don't care don't have to
do anything.

Also fixes a bug where we wouldn't even supply a URI for when there was
no placeholder.

Change-Id: I1a186b470d2cca8f34a674e9eb5c533fc01a4409

9 years agoRemove the setFocusRatio verbose logspam.
Paul Rohde [Wed, 25 Mar 2015 23:29:26 +0000 (16:29 -0700)]
Remove the setFocusRatio verbose logspam.

Bug: 19931564
Change-Id: Ib4d9768a95e47879f945f9a869ce1631d43cbbc8

9 years agoFix build error. Mirror API change to Camera2.
Sascha Haeberling [Wed, 25 Mar 2015 22:21:26 +0000 (15:21 -0700)]
Fix build error. Mirror API change to Camera2.

  Bug: 19899007

Change-Id: I51d3e02b42a0bff1bea85c6cd910192e6c239293

9 years agoMerge "Catch HAL error that prevents retrieval of resolutions." into ub-camera-haleakala
Sascha Haeberling [Wed, 25 Mar 2015 20:50:52 +0000 (20:50 +0000)]
Merge "Catch HAL error that prevents retrieval of resolutions." into ub-camera-haleakala

9 years agoMerge "Cancel in-progress capture when paused" into ub-camera-haleakala
Sascha Häberling [Wed, 25 Mar 2015 20:50:20 +0000 (20:50 +0000)]
Merge "Cancel in-progress capture when paused" into ub-camera-haleakala

9 years agoCatch HAL error that prevents retrieval of resolutions.
Sascha Haeberling [Tue, 24 Mar 2015 22:59:39 +0000 (15:59 -0700)]
Catch HAL error that prevents retrieval of resolutions.

  Bug: 19899007

Change-Id: I822510c03ecc1d48f607bf8f765831f1a39e3074

9 years agoCancel in-progress capture when paused
Puneet Lall [Wed, 25 Mar 2015 20:19:36 +0000 (13:19 -0700)]
Cancel in-progress capture when paused

Change exception-handling behavior to cancel an in-progress capture (via
CaptureSession#cancel()) if the app is paused before any image is
acquired from the device.  Previous behavior launched an error dialog to the
user.

Bug: 19913612
Change-Id: If40dceabc4adbd901fbdac1a0d97f805389c778d

9 years agoSuppress HDR 16:9 on N4
Alan Newberger [Wed, 25 Mar 2015 00:33:18 +0000 (17:33 -0700)]
Suppress HDR 16:9 on N4

Add logic to CaptureModule HardwareSpec to avoid
support for HDR if in 16:9. This takes care of UI,
also wire HardwareSpec into OneCameraCaptureSetting
to ensure we only use the stored setting when HDR
is supported.

Bug: 19697027
Change-Id: Idcd02ea9910974d8afda5f81c45eb928b9df89af

9 years agoMerge "Show error dialog when camera is unavailable." into ub-camera-haleakala
zafir [Wed, 25 Mar 2015 17:57:58 +0000 (17:57 +0000)]
Merge "Show error dialog when camera is unavailable." into ub-camera-haleakala

9 years agoShow error dialog when camera is unavailable.
zafir [Tue, 24 Mar 2015 23:22:06 +0000 (16:22 -0700)]
Show error dialog when camera is unavailable.

Bug: 19888394
Change-Id: I6d52d1be7ecac6ece85845bc3f06b1c7e0963d6f

9 years agoReduce startup preview jank by preventing Glide pre-allocation.
Paul Rohde [Wed, 25 Mar 2015 17:14:21 +0000 (10:14 -0700)]
Reduce startup preview jank by preventing Glide pre-allocation.

Several systraces and app runs seem to show that removing the
Glide bitmap pre-allocation for full size images slightly reduces
the startup preview jank on the N6. There did not appear to be
any significant regressions in the filmstrip jank.

Bug: 19076469

Change-Id: Ia01d7d09eedfc6ac78611c0f433cdcad8c15c559

9 years agoMerge "[CaptureIntent] Log CaptureDone event to Clearcut." into ub-camera-haleakala
Senpo Hu [Wed, 25 Mar 2015 05:28:55 +0000 (05:28 +0000)]
Merge "[CaptureIntent] Log CaptureDone event to Clearcut." into ub-camera-haleakala

9 years ago[CaptureIntent] Log CaptureDone event to Clearcut.
Senpo Hu [Wed, 25 Mar 2015 00:56:15 +0000 (17:56 -0700)]
[CaptureIntent] Log CaptureDone event to Clearcut.

Bug: 19035503
Change-Id: I786f834beb45d519047aaa06a7838720c0188459

9 years agoDO NOT MERGE Disable ZSL for N5.
Sascha Haeberling [Tue, 24 Mar 2015 23:00:01 +0000 (16:00 -0700)]
DO NOT MERGE Disable ZSL for N5.

 Bug: 19565931

Data showed the preview freeze is happening and WAR is not working.

Change-Id: I9e49bfe7cdf447ef5fe57a1a393ba8d96d1b051b

9 years agoSend AF_TRIGGER_CANCEL before every AF_TRIGGER_START
Puneet Lall [Tue, 24 Mar 2015 18:00:24 +0000 (11:00 -0700)]
Send AF_TRIGGER_CANCEL before every AF_TRIGGER_START

Implements a workaround for bug on N6 in which the camera driver may get
stuck if two adjacent AF_TRIGGER_START are sent in a sequence.

Bug: 19892741
Change-Id: I729d7a5ca865cd5b3ba8ddd5862e422470c16671

9 years agoMerge "Fix the camera2 build and import the correct Android metadata." into ub-camera...
Paul Rohde [Tue, 24 Mar 2015 17:24:27 +0000 (17:24 +0000)]
Merge "Fix the camera2 build and import the correct Android metadata." into ub-camera-haleakala

9 years agoFix the camera2 build and import the correct Android metadata.
Paul Rohde [Tue, 24 Mar 2015 17:20:27 +0000 (10:20 -0700)]
Fix the camera2 build and import the correct Android metadata.

Change-Id: Id7f6d630ec7eb8db2e43c97025b5cbb172ed9192

9 years agoMerge "Hiding manual exposure button in N6. The button was previously disabled."...
zafir [Tue, 24 Mar 2015 16:54:12 +0000 (16:54 +0000)]
Merge "Hiding manual exposure button in N6. The button was previously disabled." into ub-camera-haleakala

9 years agoRead and enable face detection when available in capture module.
Paul Rohde [Mon, 23 Mar 2015 23:37:40 +0000 (16:37 -0700)]
Read and enable face detection when available in capture module.

Bug: 19715640

Change-Id: I719cc92800a73ec3eaa27044fda09f64e1b9d946

9 years agoHiding manual exposure button in N6. The button was previously disabled.
zafir [Tue, 24 Mar 2015 01:13:35 +0000 (18:13 -0700)]
Hiding manual exposure button in N6. The button was previously disabled.

Bug: 18523154
Change-Id: Id08cef46fc4a67e50ce4b1acd185c5ae6efa94ad

9 years agoMerge "Limit maximum display size to prevent out of memory problems." into ub-camera...
Andy Huibers [Mon, 23 Mar 2015 23:56:19 +0000 (23:56 +0000)]
Merge "Limit maximum display size to prevent out of memory problems." into ub-camera-haleakala

9 years agoLimit maximum display size to prevent out of memory problems.
Paul Rohde [Mon, 23 Mar 2015 23:47:32 +0000 (16:47 -0700)]
Limit maximum display size to prevent out of memory problems.

Change-Id: Id681ab9f66d6a5f10f9df8fb6ae57ce90f5e25d8

9 years agoMerge "Add Faces and Lens Dist. info to photoCaptureDone" into ub-camera-haleakala
I-Jong Lin [Mon, 23 Mar 2015 23:23:38 +0000 (23:23 +0000)]
Merge "Add Faces and Lens Dist. info to photoCaptureDone" into ub-camera-haleakala

9 years agoMerge "OneCameraOpener should inform ActiveCameraDeviceTracker about camera open...
Senpo Hu [Mon, 23 Mar 2015 23:02:41 +0000 (23:02 +0000)]
Merge "OneCameraOpener should inform ActiveCameraDeviceTracker about camera open." into ub-camera-haleakala

9 years agoMerge "Clean up HDR+ button state logic." into ub-camera-haleakala
Senpo Hu [Mon, 23 Mar 2015 22:15:47 +0000 (22:15 +0000)]
Merge "Clean up HDR+ button state logic." into ub-camera-haleakala

9 years agoOneCameraOpener should inform ActiveCameraDeviceTracker about camera open.
Senpo Hu [Mon, 23 Mar 2015 21:52:42 +0000 (14:52 -0700)]
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

9 years agoAdd Faces and Lens Dist. info to photoCaptureDone
I-Jong Lin [Wed, 18 Mar 2015 19:35:30 +0000 (12:35 -0700)]
Add Faces and Lens Dist. info to photoCaptureDone

Added the plumbing for getting values off of the
TotalCaptureResult and putting them into the
photoCaptureDoneEvent.

Bug: 19805467
Change-Id: Id0d16623ffe7eef78b23fd15a4edfeeca5a66eaa

9 years agoMerge "Compute the max texture size from the EGL context" into ub-camera-haleakala
Paul Rohde [Mon, 23 Mar 2015 20:15:38 +0000 (20:15 +0000)]
Merge "Compute the max texture size from the EGL context" into ub-camera-haleakala

9 years agoMerge "Clamp pixels and bounds for filmstrip images." into ub-camera-haleakala
Paul Rohde [Mon, 23 Mar 2015 20:15:01 +0000 (20:15 +0000)]
Merge "Clamp pixels and bounds for filmstrip images." into ub-camera-haleakala

9 years agoCompute the max texture size from the EGL context
Paul Rohde [Mon, 23 Mar 2015 17:42:44 +0000 (10:42 -0700)]
Compute the max texture size from the EGL context

Initialize and read the GL_MAX_TEXTURE_SIZE property by opening
and initializing an Open GL display, context, and surface and
using the initialized objects to read out the texture size.

Bug: 19871547
Change-Id: If74045e00d99e7268b78dcca0ad0a22f4d581f0e

9 years agoClean up HDR+ button state logic.
Senpo Hu [Fri, 20 Mar 2015 21:28:24 +0000 (14:28 -0700)]
Clean up HDR+ button state logic.

CameraAppUI#applyModuleSpecs should honor whatever HardwareSpec and
BottomBarUISpec provided by modules. UI should not change behavior by
poking setting by itself. This can cause huge pain when debugging.

Bug: 19657871
Change-Id: Ief153f6c92a12ab1a72732a7a0908059fd91167e

9 years agoClamp pixels and bounds for filmstrip images.
Paul Rohde [Mon, 23 Mar 2015 17:18:24 +0000 (10:18 -0700)]
Clamp pixels and bounds for filmstrip images.

This change does a more extensive set of checks and constraints
based on the maximum area (to prevent jank) and adds clamping for
the bounds of the image based on the maximum supported texture
size of the device to prevent blank frames.

Bug: 19871547
Change-Id: Ib33e6e591638fb4dfefb60ddea488818e985495d

9 years agoCheck for null on N5 resolution upgrade
Alan Newberger [Mon, 23 Mar 2015 16:38:20 +0000 (09:38 -0700)]
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

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Sat, 21 Mar 2015 07:25:15 +0000 (00:25 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ie1dc944ecb771d87935cd89b62a679c335f81452
Auto-generated-cl: translation import

9 years agoMerge "Display error dialog and log error when video recording fails to start." into...
zafir [Fri, 20 Mar 2015 21:50:48 +0000 (21:50 +0000)]
Merge "Display error dialog and log error when video recording fails to start." into ub-camera-haleakala

9 years agoMerge "Catch memory allocation errors JPEG ImageTask" into ub-camera-haleakala
I-Jong Lin [Fri, 20 Mar 2015 21:47:50 +0000 (21:47 +0000)]
Merge "Catch memory allocation errors JPEG ImageTask" into ub-camera-haleakala

9 years agoDisplay error dialog and log error when video recording fails to start.
zafir [Fri, 20 Mar 2015 21:43:46 +0000 (16:43 -0500)]
Display error dialog and log error when video recording fails to start.

Bug: 19814676
Change-Id: Iec3fde247720db4471da8f40a5c0f55d706d52cd

9 years agoMerge "Re-arrange camera initialization." into ub-camera-haleakala
Paul Rohde [Fri, 20 Mar 2015 20:08:55 +0000 (20:08 +0000)]
Merge "Re-arrange camera initialization." into ub-camera-haleakala

9 years agoRe-arrange camera initialization.
Paul Rohde [Thu, 12 Mar 2015 16:48:52 +0000 (09:48 -0700)]
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

9 years agoCatch memory allocation errors JPEG ImageTask
I-Jong Lin [Fri, 20 Mar 2015 16:27:34 +0000 (09:27 -0700)]
Catch memory allocation errors JPEG ImageTask

Bug: 19354210

Although rare, we should fail gracefully in the case
where we cannot allocate a large memory buffer in
TaskCompressImageToJpeg.

Change-Id: I1f16ba16a785b32869030a5f8ec2116fbbc900d3

9 years agoRename CaptureSession#finalize to not collide with Object#finalize.
Sascha Haeberling [Fri, 20 Mar 2015 08:11:28 +0000 (01:11 -0700)]
Rename CaptureSession#finalize  to not collide with Object#finalize.

  Bug: 19855781

Change-Id: Ie32024a9d2b7c04a27cc1ff7eee62df0e6857031

9 years agoMerge "Hide flash icon if not supported by camera hardware." into ub-camera-haleakala
Spike Sprague [Thu, 19 Mar 2015 00:43:36 +0000 (00:43 +0000)]
Merge "Hide flash icon if not supported by camera hardware." into ub-camera-haleakala

9 years agoMerge "don't mess with the options buttons in transistionToCapture and transitionToCa...
Spike Sprague [Thu, 19 Mar 2015 00:22:30 +0000 (00:22 +0000)]
Merge "don't mess with the options buttons in transistionToCapture and transitionToCancel" into ub-camera-haleakala

9 years agoHide flash icon if not supported by camera hardware.
Spike Sprague [Wed, 18 Mar 2015 23:07:54 +0000 (16:07 -0700)]
Hide flash icon if not supported by camera hardware.

bug: 19199856
Change-Id: I5e4f7842c61e6c260b7a35c455f2caaa4d8e5e53

9 years agodon't mess with the options buttons in transistionToCapture and transitionToCancel
Spike Sprague [Wed, 18 Mar 2015 22:49:44 +0000 (15:49 -0700)]
don't mess with the options buttons in transistionToCapture and transitionToCancel

bug: 19366720
Change-Id: I0620d1ceb80c2c45de95336be18ccf212ace6f69

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 18 Mar 2015 13:15:14 +0000 (06:15 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iaa30b150c8992357763849265a2b2de4a172f3f7
Auto-generated-cl: translation import

9 years agoPass crop and implement crop in JPEG ImageSaver
I-Jong Lin [Mon, 16 Mar 2015 23:09:16 +0000 (16:09 -0700)]
Pass crop and implement crop in JPEG ImageSaver

Bug: 19660460

Allows for the JpegImageBackendSaver to accept crop
regions and then implements this crop within the
JPEG compression task.

Change-Id: I165b272376c3d5c919c1c41b55bf0b8e551520be

9 years agoMerge "Add processing time to capture done event for CaptureModule captures." into...
Andy Huibers [Tue, 17 Mar 2015 19:32:08 +0000 (19:32 +0000)]
Merge "Add processing time to capture done event for CaptureModule captures." into ub-camera-haleakala

9 years agoMerge "Detect and log missing images" into ub-camera-haleakala
Puneet Lall [Tue, 17 Mar 2015 18:58:42 +0000 (18:58 +0000)]
Merge "Detect and log missing images" into ub-camera-haleakala

9 years agoDetect and log missing images
Puneet Lall [Tue, 17 Mar 2015 18:32:57 +0000 (11:32 -0700)]
Detect and log missing images

Adds logic to detect and log when the camera framework
fails to deliver an image, but successfully delivers
subsequent images.

Bug: 19430369
Change-Id: I404888882879ac021ba84d725732e9c9a9c61f05

9 years agoMerge "Optimize ZSL for auto-flash mode" into ub-camera-haleakala
Puneet Lall [Tue, 17 Mar 2015 18:07:19 +0000 (18:07 +0000)]
Merge "Optimize ZSL for auto-flash mode" into ub-camera-haleakala

9 years agoOptimize ZSL for auto-flash mode
Puneet Lall [Fri, 6 Mar 2015 23:58:16 +0000 (15:58 -0800)]
Optimize ZSL for auto-flash mode

Cache the most recent converged AE state to enable more
auto-flash pictures to be taken with zero shutter lag.

Bug: 19151363
Change-Id: I7d4bd5a67d4cddb7a1f733844e1a080acfacf7f4

9 years agoMerge "Fix bug where return value for thumbnail can be null." into ub-camera-haleakala
Sascha Haeberling [Tue, 17 Mar 2015 17:42:14 +0000 (17:42 +0000)]
Merge "Fix bug where return value for thumbnail can be null." into ub-camera-haleakala

9 years agoOptimize shot-to-shot time for camera2 legacy
Puneet Lall [Mon, 16 Mar 2015 21:32:52 +0000 (14:32 -0700)]
Optimize shot-to-shot time for camera2 legacy

Optimize shot-to-shot time for devices which only support
the camera2 LEGACY api by releasing the exclusive lock on the
FrameServer as soon as each image is exposed, allowing the user
to immediately submit a request for the next shot.

Bug: 19365933
Change-Id: I8935611fae666dde1fb3a1c4aecf95c1cc5a7ef8

9 years agoAdd processing time to capture done event for CaptureModule captures.
Andy Huibers [Tue, 17 Mar 2015 00:23:39 +0000 (17:23 -0700)]
Add processing time to capture done event for CaptureModule captures.

Bug: 18913439
Bug: 19035503
Change-Id: Ib3768d93a2240ccfbf5f5a750b66939c6930ed0e

9 years agoFix bug where return value for thumbnail can be null.
Sascha Haeberling [Tue, 17 Mar 2015 17:22:48 +0000 (10:22 -0700)]
Fix bug where return value for thumbnail can be null.

  Bug: 19779596

Change-Id: I4ccf39b0e19956c6873868bc02be836b547fa1c5

9 years agoMerge "Add PhotoCaptureEvent to Capture Module" into ub-camera-haleakala
I-Jong Lin [Mon, 16 Mar 2015 20:58:18 +0000 (20:58 +0000)]
Merge "Add PhotoCaptureEvent to Capture Module" into ub-camera-haleakala

9 years agoAdd PhotoCaptureEvent to Capture Module
I-Jong Lin [Thu, 12 Mar 2015 21:33:41 +0000 (14:33 -0700)]
Add PhotoCaptureEvent to Capture Module

Adds a CaptureSession collector class so that
we can combine stats information from both the
CaptureModule and ImageBackend to create a
complete PhotoCaptureDone event.

Bug: 19035503
Change-Id: Ide5f708c5f3efb710fa704f3f30c52ac7a8c3fe4

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 16 Mar 2015 14:38:22 +0000 (07:38 -0700)]
Import translations. DO NOT MERGE

Change-Id: I1f460126d1eea77d4106016fea65f03ed550922f
Auto-generated-cl: translation import

9 years ago[CaptureIntent] clean up extra PreviewAreaChangedListener.
Senpo Hu [Sat, 14 Mar 2015 00:57:34 +0000 (17:57 -0700)]
[CaptureIntent] clean up extra PreviewAreaChangedListener.

A simple cleanup that we register two PreviewAreaChangedListener for
CaptureIntentModuleUI which is kind of silly. This CL consolidate it
into one.

Change-Id: I1c5b29a77021a21cd6d8c023b4b98906430c305e

9 years agoMerge "Don't take picture if camera is closed." into ub-camera-haleakala
Sascha Haeberling [Fri, 13 Mar 2015 20:54:07 +0000 (20:54 +0000)]
Merge "Don't take picture if camera is closed." into ub-camera-haleakala

9 years agoAutomated ImageProcessorListener registration
I-Jong Lin [Fri, 6 Mar 2015 18:52:24 +0000 (10:52 -0800)]
Automated ImageProcessorListener registration

I've added the ImageConsumer interface and implementation
in ImageBackend to support the automatic registering and
unregistering of the ImageProcessingListener.  This
new functionality avoids the issues of reference leaking,
so that the transient listener implementations are NOT
held by the image backend.  Also more general purpose
interface has been created such that any passed Runnable
will be executed when the associated set of tasks that have
been enqueued with ImageBackend::ReceiveImage have finished
processing.   This functionality solves the referencing
leaking issue of ImageProcessingListener in the current
implementation.  Also, removed all references to Main
thread executor so that ImageBackend is not a direct
suspect in jank issues.

Bug: 19517380
Change-Id: I806582f13157030ed6bc23ad70a4efd93339d9ff

9 years agoDon't take picture if camera is closed.
Sascha Haeberling [Fri, 13 Mar 2015 17:21:16 +0000 (10:21 -0700)]
Don't take picture if camera is closed.

  Bug: 19712310

Change-Id: Iaaae7a1c784e4149ca837e9bda496f734be56890

9 years agoMerge "Implementation of Crop in Thumbnail Creation" into ub-camera-haleakala
I-Jong Lin [Fri, 13 Mar 2015 16:21:28 +0000 (16:21 +0000)]
Merge "Implementation of Crop in Thumbnail Creation" into ub-camera-haleakala

9 years agoFix build
Puneet Lall [Thu, 12 Mar 2015 23:12:12 +0000 (16:12 -0700)]
Fix build

Change-Id: I36c5f2bf963bfe7d63941777ecedce7354aa0212

9 years agoMerge "Reset existing AF scan upon tap-to-focus" into ub-camera-haleakala
Puneet Lall [Thu, 12 Mar 2015 22:48:07 +0000 (22:48 +0000)]
Merge "Reset existing AF scan upon tap-to-focus" into ub-camera-haleakala

9 years agoMerge "Disable manual exposure button in HDR+ mode." into ub-camera-haleakala
zafir [Thu, 12 Mar 2015 22:34:42 +0000 (22:34 +0000)]
Merge "Disable manual exposure button in HDR+ mode." into ub-camera-haleakala

9 years agoDisable manual exposure button in HDR+ mode.
zafir [Wed, 11 Mar 2015 19:32:19 +0000 (12:32 -0700)]
Disable manual exposure button in HDR+ mode.

Bug: 19641530
Change-Id: I70d47a678eb0c5b77040ff071af14dd35c1e73a8

9 years agoImplementation of Crop in Thumbnail Creation
I-Jong Lin [Tue, 10 Mar 2015 21:28:16 +0000 (14:28 -0700)]
Implementation of Crop in Thumbnail Creation

Propogated the crop information into the thumbnail creation
code.  Required generalization of the thubmnail creator to
accept a crop region, and implementation of consistent
handling of the crop parameter into the TaskInfo.

Tests for this newer functionality are available in ag/653259.

Bug: 19323062
Change-Id: I135ae16459eedf7f2631925526c0e64184f6a859

9 years agoIf JPEG data already has some EXIF data, carry it over during EXIF population
Spike Sprague [Thu, 12 Mar 2015 00:26:03 +0000 (17:26 -0700)]
If JPEG data already has some EXIF data, carry it over during EXIF population
bug: 16961102

Change-Id: I887726dda0af62c7eaecbde4297079fc447c39fa

9 years agoadd null check protections to ExifUtil to prevent Nexus 4 crashes
Spike Sprague [Wed, 11 Mar 2015 23:53:45 +0000 (16:53 -0700)]
add null check protections to ExifUtil to prevent Nexus 4 crashes

bug: 19701200
Change-Id: Icea7d5d57e5c692d214745f83efd4b06f3517740