OSDN Git Service

android-x86/packages-apps-Camera2.git
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 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

9 years agoReset existing AF scan upon tap-to-focus
Puneet Lall [Tue, 10 Mar 2015 21:11:12 +0000 (14:11 -0700)]
Reset existing AF scan upon tap-to-focus

 * Interrupts existing, in-progress AF scans upon tap-to-focus
   (triggerFocusAndMeterAtPoint).
 * Removes pending delayed-af-resets upon subsequent tap-to-focus
   to fix the case in which a user triggers AF twice within <3 seconds
   which previously resulted in the AF mode returning to
   continuous_picture shortly after the second AF scan.
 * Removes dependencies on CameraUtil and static Settings3A
   methods, and refactors FrameServerImpl to enable unit-testing.

Bug: 18935538
Change-Id: I0c2d5d92d2b07efdc11de8388e42b931d3ea89d0

9 years agoFix ready-state issue when commands are queued
Puneet Lall [Fri, 6 Mar 2015 20:36:55 +0000 (12:36 -0800)]
Fix ready-state issue when commands are queued

Ensure that the FrameServer is marked as unavailable if a command is
queued, waiting to acquire access.

Bug: 19367334
Change-Id: Id7b1639c6c3a7e65c75002b9f6f8f24c7515e932

9 years agoMerge "Fix 16:9 start-up dialog selection." into ub-camera-haleakala
Sascha Haeberling [Wed, 11 Mar 2015 21:26:37 +0000 (21:26 +0000)]
Merge "Fix 16:9 start-up dialog selection." into ub-camera-haleakala

9 years agoFix 16:9 start-up dialog selection.
Sascha Haeberling [Wed, 11 Mar 2015 21:18:03 +0000 (14:18 -0700)]
Fix 16:9 start-up dialog selection.

  Bug: 19696056

We need to make sure the list from which we choose the highest
resolution size of a given aspect ratio based on a list that is filtered
to be chosen by the user. In case of the N5 the native camera list will
be augmented with a new high resolution 16:9 size which needs to be
selected if the user chooses 16:9 on start-up on the N5.

Change-Id: I03a86aa0a148b6cbabbd51a577202b79b4941d7d

9 years agoSwap dimensions of artificial 16:9 resolution on N5 on upgrade.
Sascha Haeberling [Wed, 11 Mar 2015 20:59:40 +0000 (13:59 -0700)]
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

9 years agoEnable shutter button as soon as burst finishes.
Shashi Shekhar [Fri, 6 Mar 2015 19:53:30 +0000 (11:53 -0800)]
Enable shutter button as soon as burst finishes.

Instead of keeping the Capture button disabled, do not wait for burst
results to enable the capture button. Instead enable it as soon as burst
is done.

Change-Id: I19f873d8e461b0c5385bdd2f9fb93f0a9fb7a05b

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

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

9 years agoAdd Location to EXIF
Sascha Haeberling [Tue, 10 Mar 2015 23:28:45 +0000 (16:28 -0700)]
Add Location to EXIF

  Bug: 16961102

Change-Id: I9f2335c0f02bea1286698330483cd30fdb875f45

9 years agoAdd EXIF data to images processed via software JPEG encoder.
Spike Sprague [Thu, 19 Feb 2015 22:19:10 +0000 (14:19 -0800)]
Add EXIF data to images processed via software JPEG encoder.
bug: 16961102

Change-Id: I3df48a74fedbba6ca5540bf095f5e5eaf93db3ab

9 years agoMerge "Workaround for future GPS timestamps" into ub-camera-haleakala
Alan Newberger [Tue, 10 Mar 2015 21:07:00 +0000 (21:07 +0000)]
Merge "Workaround for future GPS timestamps" into ub-camera-haleakala

9 years agoWorkaround for future GPS timestamps
Alan Newberger [Tue, 10 Mar 2015 17:29:11 +0000 (10:29 -0700)]
Workaround for future GPS timestamps

Some images are known to have incorrect GPS timestamps, which are used
by MediaStore as creation date. If future creation dates are encountered,
fall back to modification date which is not known to have bugs.

Bug: 19565464
Change-Id: I35b5e43c9a3de1f05d9a2f405502a2bb2bf9adde

9 years agoAdd error handling for CameraDevice.StateCallBack when the camera is already opened.
zafir [Tue, 10 Mar 2015 19:47:56 +0000 (12:47 -0700)]
Add error handling for CameraDevice.StateCallBack when the camera is already opened.

Bug: 19569722
Change-Id: I510931e595d491c2d42710151b05edea89c81094

9 years agoMerge "Grant read URI permission for playback of video capture" into ub-camera-haleakala
Alan Newberger [Tue, 10 Mar 2015 19:17:16 +0000 (19:17 +0000)]
Merge "Grant read URI permission for playback of video capture" into ub-camera-haleakala

9 years agoMerge "[CaptureIntent] Detect if flash is supported from camera characteristics....
Senpo Hu [Tue, 10 Mar 2015 18:59:32 +0000 (18:59 +0000)]
Merge "[CaptureIntent] Detect if flash is supported from camera characteristics." into ub-camera-haleakala

9 years agoGrant read URI permission for playback of video capture
Alan Newberger [Tue, 10 Mar 2015 18:14:32 +0000 (11:14 -0700)]
Grant read URI permission for playback of video capture

Current implementation of video capture UI configured MediaRecorder to
output directly into supplied URI, which per recommendation should be
a content: URI. We pass this URI to another app to play back the video,
and should pass along the read permission.

Bug: 19675889
Change-Id: I37f8ae3702a9f1ed9dbaac9416104c0c0bfb6dd0

9 years ago[CaptureIntent] Detect if flash is supported from camera characteristics.
Senpo Hu [Tue, 10 Mar 2015 05:13:43 +0000 (22:13 -0700)]
[CaptureIntent] Detect if flash is supported from camera characteristics.

Bug: 19669175
Change-Id: I04c5ab27d9ee0c8723d9bffab55b89def7311acf

9 years agoMerge "Limit setting photo item placeholders when session is done." into ub-camera...
Alan Newberger [Tue, 10 Mar 2015 15:56:36 +0000 (15:56 +0000)]
Merge "Limit setting photo item placeholders when session is done." into ub-camera-haleakala

9 years agoLimit setting photo item placeholders when session is done.
Alan Newberger [Mon, 9 Mar 2015 21:42:19 +0000 (14:42 -0700)]
Limit setting photo item placeholders when session is done.

Only add placeholders for an item visible in the filmstrip. If a session
is done for an item not visible, it is less janky for the user to see the
standard gray placeholder while loading the image from disk.

Pruned older methods of determining filmstrip visibility, none of which
worked and relied on older code assuming the camera preview was an item
in the filmstrip, including 'sticky' filmstrip item bits. Added a method
to CameraAppUI that proxies the FilmstripLayout visibility, which is
actually what app uses to show/hide the filmstrip.

Bug: 19517380
Change-Id: I5e2a61b55aa2045bfd09f495dd02cdcb9c65dc68

9 years agoMerge "Fix zoom for burst." into ub-camera-haleakala
Shashi Shekhar [Mon, 9 Mar 2015 20:55:40 +0000 (20:55 +0000)]
Merge "Fix zoom for burst." into ub-camera-haleakala

9 years agoMerge "Remove video portrait orientation prompt" into ub-camera-haleakala
Alan Newberger [Mon, 9 Mar 2015 20:13:49 +0000 (20:13 +0000)]
Merge "Remove video portrait orientation prompt" into ub-camera-haleakala

9 years agoRemove video portrait orientation prompt
Alan Newberger [Mon, 9 Mar 2015 19:57:14 +0000 (12:57 -0700)]
Remove video portrait orientation prompt

No longer display visual reminder for users to rotate device to landscape.

Bug: 19416311
Change-Id: Ia03f54809f64e6034479a9021c87b50f186bab99

9 years agoFix zoom for burst.
Shashi Shekhar [Mon, 9 Mar 2015 18:52:55 +0000 (11:52 -0700)]
Fix zoom for burst.

Instead of passing the root request builder, use the request builder
configured by the Camera factory.

BUG: 19637871

Change-Id: Ibae1a85c47b0b31e07c91c4a15ec138ad021449e

9 years agoMerge "Fix a typo in Camera capture session." into ub-camera-haleakala
Shashi Shekhar [Mon, 9 Mar 2015 18:46:13 +0000 (18:46 +0000)]
Merge "Fix a typo in Camera capture session." into ub-camera-haleakala

9 years agoFix a typo in Camera capture session.
Shashi Shekhar [Mon, 9 Mar 2015 18:14:53 +0000 (11:14 -0700)]
Fix a typo in Camera capture session.

Fix a typo that leads to recursive call.

Change-Id: Iad9fe9335169f1d7b211d6d6f5355229a08f797b

9 years agoMerge "Hide "Advanced" settings screen on N6." into ub-camera-haleakala
zafir [Mon, 9 Mar 2015 18:13:43 +0000 (18:13 +0000)]
Merge "Hide "Advanced" settings screen on N6." into ub-camera-haleakala

9 years agoHide "Advanced" settings screen on N6.
zafir [Sat, 7 Mar 2015 02:15:50 +0000 (18:15 -0800)]
Hide "Advanced" settings screen on N6.

The N6 currently doesn't support manual exposure. That's the only item
under Advanced, so hiding that option entirely.

Bug: 18523154
Change-Id: I1b8238a9b9f0e04f8b0d2047a444b81fcecc4767

9 years agoRevert "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 9 Mar 2015 14:20:58 +0000 (14:20 +0000)]
Revert "Import translations. DO NOT MERGE"

This reverts commit be4ba3e3f1285ad76445fa5c56271b9940097f74.

Change-Id: I16cac16e134e88629fdd6916f096d16e65780a34

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

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

9 years agoCaptureSession passes on message IDs instead of strings.
Sascha Haeberling [Sat, 7 Mar 2015 01:53:12 +0000 (17:53 -0800)]
CaptureSession passes on message IDs instead of strings.

  Bug: 18867164

Change-Id: Ie601a0fbaf64873c56c6a9b2767a2fa6a04a11d9

9 years agoAdded more error handling for camera access and picture storage issues.
zafir [Wed, 4 Mar 2015 22:02:47 +0000 (14:02 -0800)]
Added more error handling for camera access and picture storage issues.

Implemented onFailure() method in the OpenCallback interface and
onPictureTakingFailed() in the PictureCallback interface.
OnFailure() routes through showErrorAndFinish() in the AppController.

Bug: 19452391

Change-Id: I3c19a274cc7664f7d1834899a486c57d0585dc9a

9 years agoMerge "Fix units in video duration calculation" into ub-camera-haleakala
Alan Newberger [Fri, 6 Mar 2015 23:59:44 +0000 (23:59 +0000)]
Merge "Fix units in video duration calculation" into ub-camera-haleakala

9 years agoMerge "Fix Version Codes from L to LOLLIPOP" into ub-camera-haleakala
I-Jong Lin [Fri, 6 Mar 2015 23:52:30 +0000 (23:52 +0000)]
Merge "Fix Version Codes from L to LOLLIPOP" into ub-camera-haleakala

9 years agoFix Version Codes from L to LOLLIPOP
I-Jong Lin [Fri, 6 Mar 2015 23:48:40 +0000 (15:48 -0800)]
Fix Version Codes from L to LOLLIPOP

Just so that Intellij IDE don't barf on these files.

Change-Id: I405e41da920d15bd4b0726fb90b859a8741bfef7

9 years agoMerge "Add black-list for resolutions." into ub-camera-haleakala
Sascha Haeberling [Fri, 6 Mar 2015 23:46:27 +0000 (23:46 +0000)]
Merge "Add black-list for resolutions." into ub-camera-haleakala

9 years agoAdd black-list for resolutions.
Sascha Haeberling [Fri, 6 Mar 2015 22:02:50 +0000 (14:02 -0800)]
Add black-list for resolutions.

  Bug: 19611738

Change-Id: I5147bcd925c28e3db0e1e50c8a013cc6750fb47e

9 years agoFix units in video duration calculation
Alan Newberger [Fri, 6 Mar 2015 21:45:41 +0000 (13:45 -0800)]
Fix units in video duration calculation

Convert milliseconds coming out of media table, to seconds
for details formatting.

Bug: 19305203
Change-Id: I4fafae9b3d09d23e60906c2fb3c3f305faee1339

9 years agoMerge "Fix exif dimensions for cropped images" into ub-camera-haleakala
Puneet Lall [Fri, 6 Mar 2015 22:53:17 +0000 (22:53 +0000)]
Merge "Fix exif dimensions for cropped images" into ub-camera-haleakala

9 years agoFix exif dimensions for cropped images
Puneet Lall [Fri, 6 Mar 2015 22:46:23 +0000 (14:46 -0800)]
Fix exif dimensions for cropped images

Bug: 19323062
Change-Id: Ieb2905bc44324f2e9f7f4498fd1e1882924e4e92

9 years agoMerge "Fix flash mode by changing the setting scope to be correct." into ub-camera...
Paul Rohde [Fri, 6 Mar 2015 22:24:37 +0000 (22:24 +0000)]
Merge "Fix flash mode by changing the setting scope to be correct." into ub-camera-haleakala

9 years agoFix flash mode by changing the setting scope to be correct.
Paul Rohde [Fri, 6 Mar 2015 22:20:03 +0000 (14:20 -0800)]
Fix flash mode by changing the setting scope to be correct.

Bug: 19630464
Change-Id: I27abc70041002ff8f9134f249b70d318e05620b9

9 years agoMerge "Add support for negative rotations" into ub-camera-haleakala
Puneet Lall [Fri, 6 Mar 2015 21:46:13 +0000 (21:46 +0000)]
Merge "Add support for negative rotations" into ub-camera-haleakala

9 years agoMerge " Change interface of BurstMediaItem to provide filepath." into ub-camera-haleakala
Shashi Shekhar [Fri, 6 Mar 2015 21:40:35 +0000 (21:40 +0000)]
Merge " Change interface of BurstMediaItem to provide filepath." into ub-camera-haleakala

9 years agoFix flash mode by changing the setting scope to be correct.
Paul Rohde [Fri, 6 Mar 2015 20:50:38 +0000 (12:50 -0800)]
Fix flash mode by changing the setting scope to be correct.

Bug: 19630464

Change-Id: Id1257c23fef1152792a9fb81572768a4d91e22e5

9 years agoAdd support for negative rotations
Puneet Lall [Fri, 6 Mar 2015 20:44:48 +0000 (12:44 -0800)]
Add support for negative rotations

Bug: 19636843
Change-Id: I03a30b433942cacd4978c7788e2ae7d0046479a7

9 years ago Change interface of BurstMediaItem to provide filepath.
Shashi Shekhar [Wed, 25 Feb 2015 02:10:07 +0000 (18:10 -0800)]
 Change interface of BurstMediaItem to provide filepath.

- Instead of passing a byte array, use a file path for the burst media
item.
- Change the save operation in Stack saver to simply rename the image.
- The burst controller is now responsible for managing captured images and
implementations should free the captured images as soon as possible.

Change-Id: I6762972c68865d6ab15bd6fa20b60fb275f103f1

9 years agoMerge "Update stats." into ub-camera-haleakala
Andy Huibers [Fri, 6 Mar 2015 19:35:32 +0000 (19:35 +0000)]
Merge "Update stats." into ub-camera-haleakala

9 years agoMerge "[CaptureIntent] Fix 16x9 stretch problem on Nexus 4." into ub-camera-haleakala
Senpo Hu [Fri, 6 Mar 2015 19:24:52 +0000 (19:24 +0000)]
Merge "[CaptureIntent] Fix 16x9 stretch problem on Nexus 4." into ub-camera-haleakala

9 years agoUpdate stats.
Andy Huibers [Thu, 5 Mar 2015 06:20:07 +0000 (22:20 -0800)]
Update stats.

Bug: 18913439
Change-Id: Iadca6b527c76b55504ce21e9f37f7c29dbb71c57

9 years agoMerge "Add partial crop support to ImageBackend" into ub-camera-haleakala
Puneet Lall [Fri, 6 Mar 2015 19:11:50 +0000 (19:11 +0000)]
Merge "Add partial crop support to ImageBackend" into ub-camera-haleakala

9 years ago[CaptureIntent] Fix 16x9 stretch problem on Nexus 4.
Senpo Hu [Thu, 5 Mar 2015 01:10:00 +0000 (17:10 -0800)]
[CaptureIntent] Fix 16x9 stretch problem on Nexus 4.

2. Also, more clean up for unit tests.

Unfortunately I lump two things together is because there are some nice
things about the clean up that helps deliver the fix.

Bug: 19616722
Change-Id: I632e9f679db6e8a68179912ee4e29c1394084324

9 years agoMerge "Fix CameraCaptureSession exception handling" into ub-camera-haleakala
Puneet Lall [Fri, 6 Mar 2015 19:06:20 +0000 (19:06 +0000)]
Merge "Fix CameraCaptureSession exception handling" into ub-camera-haleakala

9 years agoFix CameraCaptureSession exception handling
Puneet Lall [Fri, 6 Mar 2015 18:51:41 +0000 (10:51 -0800)]
Fix CameraCaptureSession exception handling

Bug: 19484657
Change-Id: I475444ad5f52d790460fa3c7232f1571c432d54e

9 years agoMerge "Fix jpeg compression without rotation" into ub-camera-haleakala
Puneet Lall [Fri, 6 Mar 2015 18:03:16 +0000 (18:03 +0000)]
Merge "Fix jpeg compression without rotation" into ub-camera-haleakala

9 years agoMerge "Custom checkbox drawable for K devices" into ub-camera-haleakala
Alan Newberger [Fri, 6 Mar 2015 17:02:21 +0000 (17:02 +0000)]
Merge "Custom checkbox drawable for K devices" into ub-camera-haleakala

9 years agoCustom checkbox drawable for K devices
Alan Newberger [Thu, 5 Mar 2015 18:39:34 +0000 (10:39 -0800)]
Custom checkbox drawable for K devices

L is already taken care of in a v21 style, with the new buttonTint
property. For K, use the given assets, which happen to be in a
Material style as provided by UX.

Bug: 19083903
Change-Id: I9392edf6460a3a9c7c00e1b62cc0f61f9e2b4231