History log of /packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a6572422e8940e176e3630c23a331927b5b08853 13-Jun-2015 Senpo Hu <senpo@google.com> Fix transform issue in CaptureIntent.

On M, EventOnTextureViewLayoutChanged comes earlier during app
initialization in StateForeground which doesn't handle it. So
here in StateReadyForCapture, we pull the current preview layout
size and inform ResourceSurfaceTexture to allow it to calculate
transform.

Noted that we also need to bring this fix to Ivvavik.

Bug: 21786937
Bug: 20173626
Change-Id: I417aef2f09247e77059fc5b066cbf10602ce5cf1
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
ea48e2e02549198b7c3fca075328ee35845d693e 11-May-2015 Gabriel Nava <gnava@google.com> Freezing preview in capture intent when image is exposed instead of shutter click (camera-haleakala)

- Removing preview freeze call from shutter button callback
- Relocating preview freeze call to quick expose handler

Bug: 20957671
Change-Id: Ie1c68ed52e04cdafd6f5894d001990a030d15761
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
edd5f8086326786390a7c74dda3f0a6c9ba933b5 08-May-2015 Senpo Hu <senpo@google.com> [ImageIntent] Support volume / camera key to take photo.

Bug: 20947910
Change-Id: I01e49840b69926b1489d6564a8b183d653b71ac1
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
e5c19b4acc3be9b70e665627f76d082c6fc3289d 01-May-2015 Senpo Hu <senpo@google.com> Freeze preview after taking shot in capture intent.

Bug: 20690039
Change-Id: I3402b7d7acb956a886596267ca37bd129ba74e3c
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
bb7cd0a2b1b499784af5764dc2280bd5cab317c2 30-Apr-2015 Paul Rohde <codelogic@google.com> Merge "Correctly read AF and AE capabilities for front-camera." into ub-camera-haleakala
bc75813126be7e9518e821fae31471db5ec3fe1a 29-Apr-2015 Senpo Hu <senpo@google.com> Fix a race condition while tapping retake button.

Bug: 19988384
Change-Id: I2dd6c31bdaaf24475b1cb1239a06592b3bd2ec56
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
b55bc734e5d9284cd739bc384a190dbe155d540d 29-Apr-2015 Paul Rohde <codelogic@google.com> Correctly read AF and AE capabilities for front-camera.

Bug: 20088402
Change-Id: I034bc7db3a52a9ab950da0f41515ceec8f170d03
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
9c6f9b8085c2752758e0f5633958fd17cfc9307e 13-Apr-2015 Sascha Haeberling <haeberling@google.com> Add proper support for canceling sessions.

Bug: 19384186

Change-Id: I45b0262947dcd4257d54e706f3cffc69b6bd4bc9
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
8aefbc59ce6176f27efd47f4a568117bd4d9ea77 25-Mar-2015 Senpo Hu <senpo@google.com> [CaptureIntent] Log CaptureDone event to Clearcut.

Bug: 19035503
Change-Id: I786f834beb45d519047aaa06a7838720c0188459
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
1d84d7107686aa428ee2eeb1a8caf0ea3e43b1df 12-Mar-2015 Paul Rohde <codelogic@google.com> Re-arrange camera initialization.

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

Bug: 19679820

Change-Id: I4c09b9a12a1ea5badcac3a6a073a56764f9a7eba
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
0460ef28c6970d646260584b7df0b2b3157a67ee 07-Mar-2015 Sascha Haeberling <haeberling@google.com> CaptureSession passes on message IDs instead of strings.

Bug: 18867164

Change-Id: Ie601a0fbaf64873c56c6a9b2767a2fa6a04a11d9
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
698e271d2b263778bfa73d1e67d6e2cd2783c89e 04-Mar-2015 zafir <zafir@google.com> 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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
cc6139467c1c9545de1f098d938409e182c9b7ad 05-Mar-2015 Senpo Hu <senpo@google.com> [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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
8950eeb4deed45538d5e5143cd6d0282ed325746 05-Mar-2015 Senpo Hu <senpo@google.com> [CaptureIntent] remove log spam.

Bug: 19535852
Change-Id: I79d11e0de40b8952983e8af71481358bc2cf8643
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
d2d86155337a7dd9fd285a25c93e27dc05200ed1 28-Feb-2015 Senpo Hu <senpo@google.com> [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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
c7ef4da1e06ad9a4b88daed9ffc49bdb415fd011 03-Mar-2015 Senpo Hu <senpo@google.com> [CaptureIntent] trigger active focus.

Bug: 19559091
Change-Id: I8060465237c8bf14b36bece9255b1175644be04c
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
d1f25e8507bc27a85853bb718c365d79a838dc33 27-Feb-2015 Paul Rohde <codelogic@google.com> 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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
de4e5225ea92d681f9f4c005e6285f739635d271 27-Feb-2015 Senpo Hu <senpo@google.com> [CaptureIntentModule] Fix preview layout race condition.

Bug: 19510313
Change-Id: I5bcf89eeedcf3850a632683b695ebde0bf86d643
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
8185c13b1562def4774cabd710c23402b27d0a0a 27-Feb-2015 Senpo Hu <senpo@google.com> [CaptureIntentModule] Transition StateBackgroundWithSurfaceTexture when
module got paused.

Bug: 19522250
Change-Id: Iaea6229cb4b7329f401842565d322f041fbc6b3f
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
a27011ccd08c97465a1329b30e6b856f9c2d258f 27-Feb-2015 Senpo Hu <senpo@google.com> [CaptureIntentModule] Remove event for focus state update.

Because now FocusStateListener is registered inside StateReadyForCapture.

Change-Id: I179232077fd37b4206cc13083c167ddccd1824ec
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
924c693b2c70d5332ad86d39550c99cb8ff696ed 27-Feb-2015 Sascha Haeberling <haeberling@google.com> Capture intent: Cancel countdown on resume.

Bug: 19521959

Change-Id: I06c9462a34718adf3b6669bbecc45a4ee82fb124
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
64d22d9caf0824739cb250575d69a56fe7f3fa3c 27-Feb-2015 Sascha Haeberling <haeberling@google.com> Capture Intent: Add capture-cancel (cancel countdown) support.

Bug: 19521614

Change-Id: I624601268947d9540d379b74753b7c92898c7553
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
fe458825264fc909c503564903a37b6c58c2c8c3 26-Feb-2015 Sascha Haeberling <haeberling@google.com> CaptureIntent: Disable button before taking a picture.

Bug: 19521616

Change-Id: I1c071ab1eddabb759c651bec261363227629ed0e
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
1b98e83085e2b0a3066a4bf3cbde2d664b8422ee 26-Feb-2015 Senpo Hu <senpo@google.com> [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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
83d86d3aad276b0c15bfc2767d27c9f0354a104d 25-Feb-2015 Senpo Hu <senpo@google.com> [CaptureIntent] fix review image shift issue.

Bug: 19510803
Change-Id: I817a00f6ed56311dbbf3e257ec23da6dc139ff14
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
1d518e63212290741d66aaf34356bd3897bb609e 24-Feb-2015 Senpo Hu <senpo@google.com> Fix preview transform issue when switching between back/front camera.

Move preview related logic to StateStartingPreview.
Add more documentation.

Bug: 18726217
Change-Id: I839c243656daa40773da6631359b91808c2d98f8
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
80aed3c513dc6a6670e25ef6e11bc71ab6a2d9fd 23-Feb-2015 Senpo Hu <senpo@google.com> Fix resource leak when CaptureIntentModule goes to StateBackground.

Make RefCountBase more solid.

Bug: 18726217
Change-Id: Ibb5d731f8891627e832d5961f0e736aaaaff7078
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java
24be7cc6d138129b4087ef28f114701de54aba3c 19-Feb-2015 Senpo Hu <senpo@google.com> Introduce CaptureIntentModule

Continue with ag/618042.
===================
Improve the UX by adopting ZSL and showing fast intermediate thumbnail.

Try to implement this from scratch, this module has an
event driven and state machine design.
* the state machine is thread safe.
* Event is implemented with guava's Function.
* The event processing uses Strategy pattern.

State Machine Chart:
https://docs.google.com/presentation/d/1LA30__ZNnzO6HWju1kA0geJ5LBsMs3hvdTf6_IPn9Y0/edit#slide=id.p

Bug: 18726217
Change-Id: Ie869c84bfe2f02145e5cb5c9e9af270fd82048d6
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateReadyForCapture.java