OSDN Git Service

android-x86/packages-apps-Camera2.git
9 years agoMerge "Read tiny thumbnail resolution from resources." into ub-camera-haleakala
Paul Rohde [Thu, 5 Mar 2015 22:28:42 +0000 (22:28 +0000)]
Merge "Read tiny thumbnail resolution from resources." into ub-camera-haleakala

9 years agoRead tiny thumbnail resolution from resources.
Paul Rohde [Thu, 5 Mar 2015 21:05:55 +0000 (13:05 -0800)]
Read tiny thumbnail resolution from resources.

Previous implemenation used a hardcoded pixel value. This makes the
tiny thumbnail generation work better across all devices and
ensures the resolution matches the displayed circle size.

Bug: 19621182

Change-Id: Ibfcf76bdddd476a1ad107a6541278ffedf0104d8

9 years agoFix the Camera2 build
Puneet Lall [Thu, 5 Mar 2015 22:05:49 +0000 (14:05 -0800)]
Fix the Camera2 build

Change-Id: I8747231424708aa21df1367f912cfe3ed622c04c

9 years agoMerge "Fix rotation problem with the capture indicator." into ub-camera-haleakala
Paul Rohde [Thu, 5 Mar 2015 21:54:02 +0000 (21:54 +0000)]
Merge "Fix rotation problem with the capture indicator." into ub-camera-haleakala

9 years agoMerge "Add error handling for repeating preview workaround" into ub-camera-haleakala
Puneet Lall [Thu, 5 Mar 2015 21:44:32 +0000 (21:44 +0000)]
Merge "Add error handling for repeating preview workaround" into ub-camera-haleakala

9 years agoMerge "Fixing comment syntax for RoundedThumbnailView." into ub-camera-haleakala
Sascha Haeberling [Thu, 5 Mar 2015 21:14:28 +0000 (21:14 +0000)]
Merge "Fixing comment syntax for RoundedThumbnailView." into ub-camera-haleakala

9 years agoMerge "[CaptureIntent] remove log spam." into ub-camera-haleakala
Senpo Hu [Thu, 5 Mar 2015 21:03:51 +0000 (21:03 +0000)]
Merge "[CaptureIntent] remove log spam." into ub-camera-haleakala

9 years agoMerge "Add on-the-fly cropping and rotation to jpegutil" into ub-camera-haleakala
Puneet Lall [Thu, 5 Mar 2015 21:01:03 +0000 (21:01 +0000)]
Merge "Add on-the-fly cropping and rotation to jpegutil" into ub-camera-haleakala

9 years ago[CaptureIntent] remove log spam.
Senpo Hu [Thu, 5 Mar 2015 20:55:10 +0000 (12:55 -0800)]
[CaptureIntent] remove log spam.

Bug: 19535852
Change-Id: I79d11e0de40b8952983e8af71481358bc2cf8643

9 years agoFix rotation problem with the capture indicator.
Paul Rohde [Thu, 5 Mar 2015 19:27:35 +0000 (11:27 -0800)]
Fix rotation problem with the capture indicator.

This addresses a tiny problem where taking a new picture after
rotating the device causes the indicator to temporarily rotate.

Bug: 19479623
Change-Id: I567edba32ff7e776ef7605e993db09007b956acd

9 years agoFixing comment syntax for RoundedThumbnailView.
Sascha Haeberling [Thu, 5 Mar 2015 20:23:36 +0000 (12:23 -0800)]
Fixing comment syntax for RoundedThumbnailView.

Change-Id: I167489672f0df4d9bd0f7ccc194a8c50608d5c5f

9 years agoAdd on-the-fly cropping and rotation to jpegutil
Puneet Lall [Tue, 10 Feb 2015 01:45:44 +0000 (17:45 -0800)]
Add on-the-fly cropping and rotation to jpegutil

Bug: 19323062

 * Adds another JpegUtilNative method for compression with a crop
   rectangle.
 * Improves speed of Jpeg compression with a non-zero rotation.
 * Fixes small native memory leak caused by not calling
   jpeg_destroy_compress() to free the libjpeg context.
 * Adds gunit tests for native code.

Change-Id: Id0aa5fd525fb232c4241a6b24970923f4f2c20df

9 years agoAdd error handling for repeating preview workaround
Puneet Lall [Tue, 3 Mar 2015 21:39:03 +0000 (13:39 -0800)]
Add error handling for repeating preview workaround

Adds error handling to show a dialog if the workaround for the repeating
preview (bug: 19061883) fails.

Bug: 19565931
Change-Id: Iabc3b4fdbc6977b0e1828243e80138385a3ef522

9 years agoMerge "Cache Paint objects for capture animation rendering." into ub-camera-haleakala
Paul Rohde [Thu, 5 Mar 2015 18:34:27 +0000 (18:34 +0000)]
Merge "Cache Paint objects for capture animation rendering." into ub-camera-haleakala

9 years agoCache Paint objects for capture animation rendering.
Paul Rohde [Wed, 4 Mar 2015 20:44:48 +0000 (12:44 -0800)]
Cache Paint objects for capture animation rendering.

This should help reduce the draw times for the thumbnail view by
reducing object allocation and reusing the same paint objects.

Bug: 19424945

Change-Id: Ia38a65dec4477f100a27543312b736c10ec07e40

9 years agoMerge "Add support for non-native picture sizes" into ub-camera-haleakala
Puneet Lall [Thu, 5 Mar 2015 00:52:51 +0000 (00:52 +0000)]
Merge "Add support for non-native picture sizes" into ub-camera-haleakala

9 years agoMerge "N4 16:9 Preview Workaround" into ub-camera-haleakala
I-Jong Lin [Thu, 5 Mar 2015 00:43:02 +0000 (00:43 +0000)]
Merge "N4 16:9 Preview Workaround" into ub-camera-haleakala

9 years agoN4 16:9 Preview Workaround
I-Jong Lin [Wed, 4 Mar 2015 19:39:43 +0000 (11:39 -0800)]
N4 16:9 Preview Workaround

The N4-specific fix is to trick the layout UI logic to accept a
16:9 preview coming from a 4:3 surface.  When we render the 4:3
surface, we fill in the size of the preview area.  So, if
the surface dimensions are 4:3 AND the surface actually
contains 16:9 content AND the preview view is also 16:9, then
preview will actually look correct.  To maintain this inconsistency
between the surface and the content aspect ratio, we use the
legacy layout path, and trick the UI layout into laying out
a 16:9 preview, but using a matrix transform that converts 4:3
surface into a 16:9 view.  In new and improved matrix transformation
codepath, we correctly assume that the matrix and the preview
size should be consistent.

Currently, the 0.9MP camera setting on the N4 on the front and back
camera produces a squeezed preview, but also produces a squeezed
JPEG artifact and is probably another independent N4 HAL related issue.
But it's WYSIWYG, so I guess it's correct.

Bug: 19271661
Change-Id: I213a423f891a7c216568970c7f520a6134f9ad13

9 years agoMerge "Make sure we don't start sessions on long-press if no burst is taken." into...
Sascha Haeberling [Thu, 5 Mar 2015 00:11:19 +0000 (00:11 +0000)]
Merge "Make sure we don't start sessions on long-press if no burst is taken." into ub-camera-haleakala

9 years agoAdd support for non-native picture sizes
Puneet Lall [Tue, 24 Feb 2015 01:40:14 +0000 (17:40 -0800)]
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

9 years agoMerge "Change the capture flash to use paint opacity." into ub-camera-haleakala
Paul Rohde [Wed, 4 Mar 2015 23:03:12 +0000 (23:03 +0000)]
Merge "Change the capture flash to use paint opacity." into ub-camera-haleakala

9 years agoMerge "[CaptureIntent] refactor state machine." into ub-camera-haleakala
Senpo Hu [Wed, 4 Mar 2015 22:37:26 +0000 (22:37 +0000)]
Merge "[CaptureIntent] refactor state machine." into ub-camera-haleakala

9 years ago[CaptureIntent] refactor state machine.
Senpo Hu [Sat, 28 Feb 2015 01:39:19 +0000 (17:39 -0800)]
[CaptureIntent] refactor state machine.

1. Change the event handling mechanism by introducing EventHandler and
   get rid of all processXXX() methods in State class.
2. Remove State.ID enum.
3. Move core classes to "stateful" package.

Refactor for unit test.
1. Extract interface for ResourceXXX class.
2. Extract interface for StateMachine.

Change-Id: I5b988959c44cf995f5a52b638bcda86d625e6795

9 years agoMerge "Enable ripple for filmstrip buttons" into ub-camera-haleakala
Alan Newberger [Wed, 4 Mar 2015 21:07:39 +0000 (21:07 +0000)]
Merge "Enable ripple for filmstrip buttons" into ub-camera-haleakala

9 years agoMake sure we don't start sessions on long-press if no burst is taken.
Sascha Haeberling [Wed, 4 Mar 2015 20:51:09 +0000 (12:51 -0800)]
Make sure we don't start sessions on long-press if no burst is taken.

  Bug: 19602850

Change-Id: Ia49e508811ca145e93d1f7e2df83100ba3fa1816

9 years agoEnable ripple for filmstrip buttons
Alan Newberger [Tue, 3 Mar 2015 19:54:49 +0000 (11:54 -0800)]
Enable ripple for filmstrip buttons

Style already specified selectableItemBackgroundBorderless, but no
ripple was visible. Swapped in an explicit ripple drawable, works
fine.

Bug: 19586511
Change-Id: I154e5b30705cb2f07b4c6824869abc05a745335e

9 years agoMerge "Decouple OneCameraManager and CameraActivity." into ub-camera-haleakala
Senpo Hu [Wed, 4 Mar 2015 20:32:52 +0000 (20:32 +0000)]
Merge "Decouple OneCameraManager and CameraActivity." into ub-camera-haleakala

9 years agoDecouple OneCameraManager and CameraActivity.
Senpo Hu [Wed, 4 Mar 2015 01:45:35 +0000 (17:45 -0800)]
Decouple OneCameraManager and CameraActivity.

1. To allow other activity (such as SettingsActivity) to
create OneCameraManager.

2. Also simplify OneCameraManager.open() and OneCameraCreator.create()
interface by introducing OneCameraCaptureSetting. From time to time,
we always need to change these interfaces if we want to pass in more
things to OneCamera. This solves the headache and also removes the
dependency between OneCameraCreator and SettingsManager.

Bug: 18523154
Change-Id: Ifb9077bb046740c600dab3b3b369a0f422dbbbeb

9 years agoMerge "[FirstRunDialog] finish when users hit back button." into ub-camera-haleakala
Senpo Hu [Wed, 4 Mar 2015 20:26:24 +0000 (20:26 +0000)]
Merge "[FirstRunDialog] finish when users hit back button." into ub-camera-haleakala

9 years ago[FirstRunDialog] finish when users hit back button.
Senpo Hu [Wed, 4 Mar 2015 20:17:12 +0000 (12:17 -0800)]
[FirstRunDialog] finish when users hit back button.

Bug: 19593942
Change-Id: I5c3d811759f4943e8fca4fc4634bc8ee3df04f58

9 years agoMerge "PhotoModule Timing Regression Fix onResume" into ub-camera-haleakala
I-Jong Lin [Wed, 4 Mar 2015 19:45:14 +0000 (19:45 +0000)]
Merge "PhotoModule Timing Regression Fix onResume" into ub-camera-haleakala

9 years agoPhotoModule Timing Regression Fix onResume
I-Jong Lin [Tue, 3 Mar 2015 23:58:28 +0000 (15:58 -0800)]
PhotoModule Timing Regression Fix onResume

Fix for an timing issue on initializing the Accessibility UI
without having a valid CameraCapabilities.   The initialization
of the Accessibility UI is moved to onCameraAvailable.

Bug: 19605317
Change-Id: Ifbbaca71141a187750890ffe66a1a62558f80f64

9 years agoChange the capture flash to use paint opacity.
Paul Rohde [Wed, 4 Mar 2015 19:01:20 +0000 (11:01 -0800)]
Change the capture flash to use paint opacity.

Performance optimization to prevent GPU thrashing that was occuring
because of custom draw in addition to layer alpha animation. This
makes this animation more performant by altering the alpha property
of the paint instead of the entire layer.

Bug: 19424945

Change-Id: Idb14b49148ce0caf9d5c19380f364e7f20339aca

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 4 Mar 2015 14:54:30 +0000 (06:54 -0800)]
Import translations. DO NOT MERGE

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

9 years agoMerge "Switch Burst to use 24 fps for N5." into ub-camera-haleakala
Shashi Shekhar [Wed, 4 Mar 2015 01:31:21 +0000 (01:31 +0000)]
Merge "Switch Burst to use 24 fps for N5." into ub-camera-haleakala

9 years agoSwitch Burst to use 24 fps for N5.
Shashi Shekhar [Tue, 3 Mar 2015 21:51:06 +0000 (13:51 -0800)]
Switch Burst to use 24 fps for N5.

Make burst use 24 fps for N5.

Change-Id: Ifeec74c3a854d6173557ee5a31626b61289a23c0

9 years agoMerge "Filter out duplicate calls to ready state listener" into ub-camera-haleakala
Puneet Lall [Tue, 3 Mar 2015 23:14:18 +0000 (23:14 +0000)]
Merge "Filter out duplicate calls to ready state listener" into ub-camera-haleakala

9 years agoFilter out duplicate calls to ready state listener
Puneet Lall [Tue, 3 Mar 2015 19:10:41 +0000 (11:10 -0800)]
Filter out duplicate calls to ready state listener

 * Adds a FilteredCallback to filter out callback invocations with
   duplicate values.
 * Simplifies ready-state calculations.

Bug: 19535852
Change-Id: I8376c13f24ff7a4f6f2d347f363746c2a6466601

9 years agoMerge "Legacy Autotransform Support to CaptureModule" into ub-camera-haleakala
I-Jong Lin [Tue, 3 Mar 2015 21:30:20 +0000 (21:30 +0000)]
Merge "Legacy Autotransform Support to CaptureModule" into ub-camera-haleakala

9 years agoMerge "Adding ability to zoom in accessibility mode using TalkBack" into ub-camera...
zafir [Tue, 3 Mar 2015 19:05:11 +0000 (19:05 +0000)]
Merge "Adding ability to zoom in accessibility mode using TalkBack" into ub-camera-haleakala

9 years agoAdding ability to zoom in accessibility mode using TalkBack
zafir [Sat, 21 Feb 2015 09:29:22 +0000 (02:29 -0700)]
Adding ability to zoom in accessibility mode using TalkBack

Bug: 18986078
Bug: 19546523
Change-Id: Ie68234a9a3a0b8b9be870cc674658194c72c84ef

9 years agoLegacy Autotransform Support to CaptureModule
I-Jong Lin [Tue, 3 Mar 2015 00:09:01 +0000 (16:09 -0800)]
Legacy Autotransform Support to CaptureModule

Added the legacy support for Capture Module to use
the combination of transformations, dynamic layout, and
transform helpers that PhotoModule uses.  It seems
to replicate that same functionality as the CaptureModuleUI,
but it's good to have that option for comparison, and to be
able to turn it on and off with one line configuration.

Bug: 19271661
Change-Id: I4ad4fa6fe3547373d6fbf77a53a1a18cd26df8ec

9 years agoMerge "Use getLayerType() instead of boolean for hardware layers." into ub-camera...
Paul Rohde [Tue, 3 Mar 2015 01:51:54 +0000 (01:51 +0000)]
Merge "Use getLayerType() instead of boolean for hardware layers." into ub-camera-haleakala

9 years agoUse getLayerType() instead of boolean for hardware layers.
Paul Rohde [Tue, 3 Mar 2015 01:31:54 +0000 (17:31 -0800)]
Use getLayerType() instead of boolean for hardware layers.

Prevent hardware layers from existing during steady states by
using getLayerType() and checking progress during each update.

Bug: 19514276
Change-Id: Ia5d9434cddd78e28aa5575bcba1cec5a91c46b2f

9 years ago[OneCamera v1] wrap RuntimeException properly.
Senpo Hu [Tue, 3 Mar 2015 00:35:22 +0000 (16:35 -0800)]
[OneCamera v1] wrap RuntimeException properly.

Bug: 19280025
Change-Id: Id23fedb018cbe188917bca76abc9a0130dd52b9e

9 years agoMerge "[CaptureIntent] trigger active focus." into ub-camera-haleakala
Senpo Hu [Tue, 3 Mar 2015 00:24:00 +0000 (00:24 +0000)]
Merge "[CaptureIntent] trigger active focus." into ub-camera-haleakala

9 years agoMerge "Turn on hardware layers for semi-transparent layers." into ub-camera-haleakala
Paul Rohde [Mon, 2 Mar 2015 23:48:14 +0000 (23:48 +0000)]
Merge "Turn on hardware layers for semi-transparent layers." into ub-camera-haleakala

9 years agoMerge "Add a shutdown mechanism to the camera lifecycle." into ub-camera-haleakala
Paul Rohde [Mon, 2 Mar 2015 23:36:42 +0000 (23:36 +0000)]
Merge "Add a shutdown mechanism to the camera lifecycle." into ub-camera-haleakala

9 years agoMerge "Futures2 async join functions." into ub-camera-haleakala
Paul Rohde [Mon, 2 Mar 2015 23:36:20 +0000 (23:36 +0000)]
Merge "Futures2 async join functions." into ub-camera-haleakala

9 years ago[CaptureIntent] trigger active focus.
Senpo Hu [Mon, 2 Mar 2015 23:14:38 +0000 (15:14 -0800)]
[CaptureIntent] trigger active focus.

Bug: 19559091
Change-Id: I8060465237c8bf14b36bece9255b1175644be04c

9 years agoTurn on hardware layers for semi-transparent layers.
Paul Rohde [Mon, 2 Mar 2015 21:47:38 +0000 (13:47 -0800)]
Turn on hardware layers for semi-transparent layers.

This tracks and enables hardware layers for the mode switcher
when the alpha values are being animated. This helps prevent large
extra draws that are causing jank when opening or closing the mode
switcher.

Bug: 19514276

Change-Id: I902be1d4470bc5ae9c82ff7329d9b9167dee5eb9

9 years agoMerge "[CaptureIntent] suppress capture indicator." into ub-camera-haleakala
Senpo Hu [Mon, 2 Mar 2015 19:42:19 +0000 (19:42 +0000)]
Merge "[CaptureIntent] suppress capture indicator." into ub-camera-haleakala

9 years agoMerge "Fix focus ring radius responses." into ub-camera-haleakala
Paul Rohde [Mon, 2 Mar 2015 19:34:14 +0000 (19:34 +0000)]
Merge "Fix focus ring radius responses." into ub-camera-haleakala

9 years ago[CaptureIntent] suppress capture indicator.
Senpo Hu [Mon, 2 Mar 2015 19:30:02 +0000 (11:30 -0800)]
[CaptureIntent] suppress capture indicator.

Bug: 19559037
Change-Id: Ie62cc6e7a5a984633c27624fc06e26a4be76d8b7

9 years agoMove JPEG quality to separate stub-able method.
Andy Huibers [Mon, 2 Mar 2015 18:32:55 +0000 (10:32 -0800)]
Move JPEG quality to separate stub-able method.

Bug: 19548882
Change-Id: I43e1fe93de63eacdc8c8a16b4f3b528e3a65728b

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 2 Mar 2015 14:55:15 +0000 (06:55 -0800)]
Import translations. DO NOT MERGE

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

9 years agoChange software jpeg encoder quality to CameraProfile.QUALITY_HIGH
Pengchong Jin [Sat, 28 Feb 2015 01:18:23 +0000 (17:18 -0800)]
Change software jpeg encoder quality to CameraProfile.QUALITY_HIGH

Bug: 19548882
Change-Id: I9bdbeb11c2614f3d3d3f60d2a940d2c368617072

9 years agoFix focus ring radius responses.
Paul Rohde [Fri, 27 Feb 2015 21:06:16 +0000 (13:06 -0800)]
Fix focus ring radius responses.

This fixes a scaling problem that was causing the focus controller
to ignore the radius changes on devices that supported providing
lens position. It also removes redundant focus indicator clearing
that was causing intermitent and jumpy animations.

Bug: 19527399

Change-Id: I0b2a734aa9dc4030430f1420cc26d75784dcbdf6

9 years agoMerge "Require USE_SCENE_MODE when HDR is turned on." into ub-camera-haleakala
Paul Rohde [Fri, 27 Feb 2015 20:34:03 +0000 (20:34 +0000)]
Merge "Require USE_SCENE_MODE when HDR is turned on." into ub-camera-haleakala

9 years agoRequire USE_SCENE_MODE when HDR is turned on.
Paul Rohde [Fri, 27 Feb 2015 19:05:57 +0000 (11:05 -0800)]
Require USE_SCENE_MODE when HDR is turned on.

Setting the scene mode to the HDR value is not enough for legacy
devices to pick up the scene mode change. USE_SCENE_MODE must
also be set at the same time for the HDR scene mode to capture
images correctly.

Bug: 18622877

Change-Id: I84c5d483ac7e50860eff28c874ac046220f35a8d

9 years ago[CaptureIntentModule] Fix preview layout race condition.
Senpo Hu [Fri, 27 Feb 2015 10:03:57 +0000 (02:03 -0800)]
[CaptureIntentModule] Fix preview layout race condition.

Bug: 19510313
Change-Id: I5bcf89eeedcf3850a632683b695ebde0bf86d643

9 years agoMerge "[CaptureIntentModule] Transition StateBackgroundWithSurfaceTexture when module...
Senpo Hu [Fri, 27 Feb 2015 01:07:02 +0000 (01:07 +0000)]
Merge "[CaptureIntentModule] Transition StateBackgroundWithSurfaceTexture when module got paused." into ub-camera-haleakala

9 years ago[CaptureIntentModule] Transition StateBackgroundWithSurfaceTexture when
Senpo Hu [Fri, 27 Feb 2015 00:54:14 +0000 (16:54 -0800)]
[CaptureIntentModule] Transition StateBackgroundWithSurfaceTexture when
module got paused.

Bug: 19522250
Change-Id: Iaea6229cb4b7329f401842565d322f041fbc6b3f

9 years agoMerge "Remove accordion" into ub-camera-haleakala
Alan Newberger [Fri, 27 Feb 2015 01:05:35 +0000 (01:05 +0000)]
Merge "Remove accordion" into ub-camera-haleakala

9 years agoMerge "Capture Intent: Initialize options status." into ub-camera-haleakala
Sascha Haeberling [Fri, 27 Feb 2015 01:02:16 +0000 (01:02 +0000)]
Merge "Capture Intent: Initialize options status." into ub-camera-haleakala

9 years agoFix build.
Andy Huibers [Fri, 27 Feb 2015 00:51:06 +0000 (16:51 -0800)]
Fix build.

Bug: 19534046
Change-Id: I95443c855527c45224a8343621a66c852873e8a2

9 years agoAllow number of Images in ImageReader to be variable.
Andy Huibers [Fri, 27 Feb 2015 00:39:20 +0000 (16:39 -0800)]
Allow number of Images in ImageReader to be variable.
Goes with ag/644111.

Bug: 19534046
Change-Id: I7c54de56cd97798f0c325260d6215e1ad8834348

9 years agoMerge "Disable ZSL for pre-MR1 L only for Nexus 5 and 6." into ub-camera-haleakala
Andy Huibers [Fri, 27 Feb 2015 00:36:04 +0000 (00:36 +0000)]
Merge "Disable ZSL for pre-MR1 L only for Nexus 5 and 6." into ub-camera-haleakala

9 years agoCapture Intent: Initialize options status.
Sascha Haeberling [Fri, 27 Feb 2015 00:24:53 +0000 (16:24 -0800)]
Capture Intent: Initialize options status.

  Bug: 19535308

Change-Id: I7880d02514a85a6871cc5a000efd127729260733

9 years ago[CaptureIntentModule] Remove event for focus state update.
Senpo Hu [Fri, 27 Feb 2015 00:13:40 +0000 (16:13 -0800)]
[CaptureIntentModule] Remove event for focus state update.

Because now FocusStateListener is registered inside StateReadyForCapture.

Change-Id: I179232077fd37b4206cc13083c167ddccd1824ec

9 years agoRemove accordion
Alan Newberger [Thu, 26 Feb 2015 23:24:30 +0000 (15:24 -0800)]
Remove accordion

No more accordion animation.

Bug: 19535309
Change-Id: I001315e03b63de1ed228d371c849f30f5af2f17d

9 years agoCapture intent: Cancel countdown on resume.
Sascha Haeberling [Thu, 26 Feb 2015 23:53:19 +0000 (15:53 -0800)]
Capture intent: Cancel countdown on resume.

  Bug: 19521959

Change-Id: I06c9462a34718adf3b6669bbecc45a4ee82fb124

9 years agoCapture Intent: Add capture-cancel (cancel countdown) support.
Sascha Haeberling [Thu, 26 Feb 2015 23:00:26 +0000 (15:00 -0800)]
Capture Intent: Add capture-cancel (cancel countdown) support.

  Bug: 19521614

Change-Id: I624601268947d9540d379b74753b7c92898c7553

9 years ago[CaptureIntentModule] Add StateBackgroundWithSurfaceTexture.
Senpo Hu [Thu, 26 Feb 2015 22:38:04 +0000 (14:38 -0800)]
[CaptureIntentModule] Add StateBackgroundWithSurfaceTexture.

Module is in this state when first run dialog is still presented. The
module will be resumed after people finish first run dialog.

Bug: 19531554
Change-Id: Ibe878eba66ab4f235a39a6d5ba0abfdad30f5cab

9 years agoDisable ZSL for pre-MR1 L only for Nexus 5 and 6.
Andy Huibers [Thu, 26 Feb 2015 22:43:09 +0000 (14:43 -0800)]
Disable ZSL for pre-MR1 L only for Nexus 5 and 6.

Bug: 19534046
Change-Id: I6c46c5027658cc6afc6e486114149b46a2f8f4c1

9 years agoMerge "[CaptureIntentModule] Dont' dispatch startPreview call" into ub-camera-haleakala
Senpo Hu [Thu, 26 Feb 2015 22:06:59 +0000 (22:06 +0000)]
Merge "[CaptureIntentModule] Dont' dispatch startPreview call" into ub-camera-haleakala

9 years ago[CaptureIntentModule] Dont' dispatch startPreview call
Senpo Hu [Thu, 26 Feb 2015 21:57:13 +0000 (13:57 -0800)]
[CaptureIntentModule] Dont' dispatch startPreview call

it will result in race condition.

Bug: 19522251
Bug: 19522250
Change-Id: I078ed51a92ae54dd064a00e376e3e151523eb361

9 years agoCaptureIntent: Disable button before taking a picture.
Sascha Haeberling [Thu, 26 Feb 2015 21:18:42 +0000 (13:18 -0800)]
CaptureIntent: Disable button before taking a picture.

  Bug: 19521616

Change-Id: I1c071ab1eddabb759c651bec261363227629ed0e

9 years ago[CaptureIntentModule] enable flash photo.
Senpo Hu [Thu, 26 Feb 2015 20:55:46 +0000 (12:55 -0800)]
[CaptureIntentModule] enable flash photo.

Bug: 19520829
Change-Id: Id56c621f92feb4124d745716f9b101c200b20d3b

9 years agoFix build break by ag/643763
Senpo Hu [Thu, 26 Feb 2015 20:37:42 +0000 (12:37 -0800)]
Fix build break by ag/643763

Change-Id: I4e274526667ec40daa8cd3d2b6d3e8ac5a03ddea

9 years agoMerge "[CaptureIntentModule] Refactoring to help writing unit tests." into ub-camera...
Senpo Hu [Thu, 26 Feb 2015 20:26:36 +0000 (20:26 +0000)]
Merge "[CaptureIntentModule] Refactoring to help writing unit tests." into ub-camera-haleakala

9 years ago[CaptureIntentModule] Refactoring to help writing unit tests.
Senpo Hu [Thu, 26 Feb 2015 02:18:11 +0000 (18:18 -0800)]
[CaptureIntentModule] Refactoring to help writing unit tests.

Eventually I want to get rid of those processXXX methods in State class.

1. Move various callback into state class instead of having them all in
the module class.

2. Create various event class instead of using anonymous class.

Change-Id: I065ca199052be36b5b29cc0d6743bb174b128d75

9 years agoMerge "Adding reporting functionality using Feedback API for PhotoModule and CaptureM...
zafir [Wed, 25 Feb 2015 21:56:45 +0000 (21:56 +0000)]
Merge "Adding reporting functionality using Feedback API for PhotoModule and CaptureModule when captured pictures don't save to the device." into ub-camera-haleakala

9 years agoMerge "[CaptureIntent] fix review image shift issue." into ub-camera-haleakala
Senpo Hu [Wed, 25 Feb 2015 21:35:17 +0000 (21:35 +0000)]
Merge "[CaptureIntent] fix review image shift issue." into ub-camera-haleakala

9 years ago[CaptureIntent] fix review image shift issue.
Senpo Hu [Wed, 25 Feb 2015 19:28:44 +0000 (11:28 -0800)]
[CaptureIntent] fix review image shift issue.

Bug: 19510803
Change-Id: I817a00f6ed56311dbbf3e257ec23da6dc139ff14

9 years agoAdding reporting functionality using Feedback API for PhotoModule and CaptureModule...
zafir [Fri, 6 Feb 2015 03:04:38 +0000 (19:04 -0800)]
Adding reporting functionality using Feedback API for PhotoModule and CaptureModule when captured pictures don't save to the device.

Bug: 19231841
Change-Id: I7d66db1e4c273dc7ec082f40a80b349bd91a7e8b

9 years agoMerge "Log API2 preview repeat failures." into ub-camera-haleakala
Andy Huibers [Wed, 25 Feb 2015 01:22:19 +0000 (01:22 +0000)]
Merge "Log API2 preview repeat failures." into ub-camera-haleakala

9 years agoLog API2 preview repeat failures.
Andy Huibers [Tue, 24 Feb 2015 21:07:49 +0000 (13:07 -0800)]
Log API2 preview repeat failures.

Bug: 19061883
Change-Id: I45a361169e27bc22b5fe36f5d54810fe2abcf6e5

9 years agoFix preview transform issue when switching between back/front camera.
Senpo Hu [Tue, 24 Feb 2015 21:47:35 +0000 (13:47 -0800)]
Fix preview transform issue when switching between back/front camera.

Move preview related logic to StateStartingPreview.
Add more documentation.

Bug: 18726217
Change-Id: I839c243656daa40773da6631359b91808c2d98f8

9 years agoMerge "Fix resource leak when CaptureIntentModule goes to StateBackground." into...
Senpo Hu [Tue, 24 Feb 2015 20:10:37 +0000 (20:10 +0000)]
Merge "Fix resource leak when CaptureIntentModule goes to StateBackground." into ub-camera-haleakala

9 years agoFix resource leak when CaptureIntentModule goes to StateBackground.
Senpo Hu [Mon, 23 Feb 2015 20:48:05 +0000 (12:48 -0800)]
Fix resource leak when CaptureIntentModule goes to StateBackground.

Make RefCountBase more solid.

Bug: 18726217
Change-Id: Ibb5d731f8891627e832d5961f0e736aaaaff7078

9 years agoMerge "Make module scope prefix a static agent value" into ub-camera-haleakala
Alan Newberger [Tue, 24 Feb 2015 18:04:47 +0000 (18:04 +0000)]
Merge "Make module scope prefix a static agent value" into ub-camera-haleakala

9 years agoMake module scope prefix a static agent value
Alan Newberger [Tue, 24 Feb 2015 00:41:31 +0000 (16:41 -0800)]
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

9 years agoMerge "Limit ZSL images to 100ms look-back" into ub-camera-haleakala
Puneet Lall [Tue, 24 Feb 2015 17:23:11 +0000 (17:23 +0000)]
Merge "Limit ZSL images to 100ms look-back" into ub-camera-haleakala

9 years agoMerge "Refactor PreviewTransform into CaptureModule" into ub-camera-haleakala
I-Jong Lin [Tue, 24 Feb 2015 00:55:32 +0000 (00:55 +0000)]
Merge "Refactor PreviewTransform into CaptureModule" into ub-camera-haleakala

9 years agoRefactor PreviewTransform into CaptureModule
I-Jong Lin [Mon, 23 Feb 2015 20:43:53 +0000 (12:43 -0800)]
Refactor PreviewTransform into CaptureModule

Propogate the refactoring of the Preview Transformation into
CaptureModule so that we can have consistent cross-module
implementation.  Stepping stone CL on the way to fix the aspect
ratio.

Bug: 19271661

Change-Id: Ib3e09ed0c4c5cef9e94bcd0f89228c1b2990f489

9 years agoMerge "Only copy preferences files on upgrade if they previously exist" into ub-camer...
Alan Newberger [Mon, 23 Feb 2015 23:16:01 +0000 (23:16 +0000)]
Merge "Only copy preferences files on upgrade if they previously exist" into ub-camera-haleakala

9 years agoOnly copy preferences files on upgrade if they previously exist
Alan Newberger [Mon, 23 Feb 2015 22:57:36 +0000 (14:57 -0800)]
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

9 years agoIntroduce CaptureIntentSession and CaptureIntentSessionFactory.
Senpo Hu [Sat, 21 Feb 2015 02:10:21 +0000 (18:10 -0800)]
Introduce CaptureIntentSession and CaptureIntentSessionFactory.

The capture intent module needs its own custom CaptureSession
implementation.

This also adds two new methods in CaptureSessionManager.SessionListener
in order to allow CaptureIntentModule receive the thumbnail image
and compressed picture data byte array.

Bug: 18726217
Change-Id: If823846fa4f37d9fc7ee8becde7c95ed559b4200

9 years agoLimit ZSL images to 100ms look-back
Puneet Lall [Mon, 23 Feb 2015 19:21:11 +0000 (11:21 -0800)]
Limit ZSL images to 100ms look-back

Bug: 19244733
Change-Id: Ic537a627aeda3c32112c41d9de9026c93e277d85