History log of /packages/apps/Camera2/src/com/android/camera/captureintent/state/StateStartingPreview.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3ad9c9035f8be50f6b2ef8cac9943045f7cf8a74 24-Mar-2015 Sascha Haeberling <haeberling@google.com> Catch HAL error that prevents retrieval of resolutions.

Bug: 19899007

Change-Id: I822510c03ecc1d48f607bf8f765831f1a39e3074
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.java
8b4309b20d64b15bc49d5cdc891d09208f009f06 26-Feb-2015 Senpo Hu <senpo@google.com> [CaptureIntentModule] Dont' dispatch startPreview call

it will result in race condition.

Bug: 19522251
Bug: 19522250
Change-Id: I078ed51a92ae54dd064a00e376e3e151523eb361
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.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/StateStartingPreview.java