2914f845c1d53f4a3b9aac68998b521290a7192c |
|
30-Apr-2015 |
Paul Rohde <codelogic@google.com> |
Check for a potentially destroyed activity before startPreview. There is a small chance that the activity can be destroyed between the time the camera is created and the preview is started. This can lead to unchecked NPE's across the app because most code assumes that there will never be a case where activity objects are accessed after onDestroy. Bug: 20097425 Change-Id: I2904ffba451ded2417a806c83fd12e4f62611150
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.java
|
cdc63303895d39e6f8b8dc60ba72e73d101ab401 |
|
28-Mar-2015 |
zafir <zafir@google.com> |
Enable exposure compensation in capture intent. Bug: 19964499 Change-Id: I2f7d43aa421dba0fa873eaf47c46d955136662e5
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.java
|
70dbb60a3c7100e3fe412e0834e6a32c6ad884de |
|
26-Mar-2015 |
Senpo Hu <senpo@google.com> |
[CaptureIntent] Fix NPE crash when open camera. Change-Id: I09cddae3ce935c92d6829924372a4082bb69f48a
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.java
|
d6780314422f6cfa6e905f52e2744d7e45bd3b66 |
|
25-Mar-2015 |
Alan Newberger <alann@google.com> |
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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.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/StateOpeningCamera.java
|
00562dd0a8451eda80815b3d8fdcb8075e4b9db6 |
|
23-Mar-2015 |
Senpo Hu <senpo@google.com> |
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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.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/StateOpeningCamera.java
|
8c50948fce260d0614daed71fc53ca5bf0e98060 |
|
10-Mar-2015 |
Senpo Hu <senpo@google.com> |
[CaptureIntent] Detect if flash is supported from camera characteristics. Bug: 19669175 Change-Id: I04c5ab27d9ee0c8723d9bffab55b89def7311acf
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.java
|
12fe621b859fe5c270cdae0088dd9fb104d5aa0a |
|
06-Mar-2015 |
Paul Rohde <codelogic@google.com> |
Fix flash mode by changing the setting scope to be correct. Bug: 19630464 Change-Id: I27abc70041002ff8f9134f249b70d318e05620b9
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.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/StateOpeningCamera.java
|
66b942a3d20aac65454961ef2bc219ca560b9fba |
|
03-Mar-2015 |
Puneet Lall <puneetl@google.com> |
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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.java
|
dd565aafbdfba7310289ff2a371d46ef157c1b4d |
|
04-Mar-2015 |
Senpo Hu <senpo@google.com> |
Merge "[CaptureIntent] refactor state machine." into ub-camera-haleakala
|
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/StateOpeningCamera.java
|
a166b882d74c9c8d638479b79517c99448865e99 |
|
04-Mar-2015 |
Senpo Hu <senpo@google.com> |
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
/packages/apps/Camera2/src/com/android/camera/captureintent/state/StateOpeningCamera.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/StateOpeningCamera.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/StateOpeningCamera.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/StateOpeningCamera.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/StateOpeningCamera.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/StateOpeningCamera.java
|