History log of /packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f361659dd9ab34087276b2514a766eadafe344ae 13-May-2015 Gabriel Nava <gnava@google.com> Fix for crash when switching cameras on KitKat (camera-haleakala)

- Adding null check for hardwareSpec in CameraAppUI.onChangeCamera()
- Hardware spec may not be available if call to get camera parameters hasn't finished yet

Bug: 21118170
Change-Id: I5bf1b0328f2cae7211464ff136a31ace2577630f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
49f0d8846a84e23207dd547ab320c5fa0ee4078a 13-May-2015 Pengchong Jin <pengchong@google.com> Merge "WAR of the face detection failure" into ub-camera-haleakala
4368ec0368f69e7604403b4a6db6f1e3123a1814 12-May-2015 Gabriel Nava <gnava@google.com> Ensuring the right HDR icon is shown on camera switch (camera-haleakala)

- When switching cameras HDR+ icon was always shown in disabled state regardless of the actual support mode
- Existing boolean setting to track device's HDR support is not enough
- Changing global device's HDR support setting to string that can hold no-hdr, hdr or hdr-plus values

Bug: 21037428
Change-Id: Ia9cf0484879a22a27e4deb0e4aa066ec806a43e6
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
7e39f8b015985fc0e539e14c193286065b5e51d4 09-May-2015 Pengchong Jin <pengchong@google.com> WAR of the face detection failure

This patch gives a work-around of the face detection failure that
occurs when the ZSL camera is used. It forces to request a preview
frame followed by a 5-frame ZSL burst before requesting the repeated
preview and ZSL streams. It also hides the first preview frame in order
to avoid potential janks. We do this only for L, Nexus 6 and Haleakala.

Bug: 20724126

Change-Id: I40b7861e07570ed53135b2d8d182b65c5799adac
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
14de25b5c502ffb2ac6396014624206562affef2 07-May-2015 Gabriel Nava <gnava@google.com> Opening the right camera on app restart when using PhotoModule (camera-haleakala)

- In existing logic PhotoModule reverts to back camera if no aspect ratio has been selected
- Reverting to Back camera only if device allows showing the aspect ratio dialog (N4,N5,N6)
- Updating the Camera ID persistent setting if reverting, not only the runtime value

Bug: 20889927
Change-Id: Ie59b878fd03da751c552fbf92ec5c96889144016
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
9a57f184a6f5be46e93dd2f6c66f4b9ba07bdd75 02-May-2015 Gabriel Nava <gnava@google.com> Avoid camera switch while HDR activation is in progress (camera-haleakala)

- Adding pre-change listener to MultiToggleImageButton to be executed before running state change animations
- Allowing button initialization with pre-change callback in ButtonManager
- Adding pre-change callback for conflicting options in CameraAppUI:
HDR/HDR+ button disables camera button to avoid camera facing switch
Camera facing disables HDR/HDR+
- Conflicting button is shown in disabled state for a while until re-enabled if applicable when the module switch is completed

Bug: 20696068
Change-Id: I11a0a0567363f656be52a9ece0707ccf326f2d67
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
6e2dc1ef0c021ca6bd86f4878a159b38778cf942 02-May-2015 Gabriel Nava <gnava@google.com> Merge "Disabling non available options instead of hiding when hw support is present (camera-haleakala)" into ub-camera-haleakala
ce9ef4e3528e5599773809f74657b798c370aad2 01-May-2015 Gabriel Nava <gnava@google.com> Disabling non available options instead of hiding when hw support is present (camera-haleakala)

- Global scope property persists the support of flash and hdr for the main camera (back)
- If option is not supported at all, option is hidden
- If option is supported in at least one camera but not supported in current module, option is disabled
- If option is supported in current module, option is enabled
- Avoiding race condition where CameraAppUI.applyModuleSpecs was bein called multiple times simultaneously for the same change
- Adding a check so BottomBar UI is updated only when there's a scope (module/camera) change, unless...
- Scope check can be requested within same scope for settings change

Bug: 20630060
Change-Id: Iac5fa2658f04fe8329a2232fb0d5b11d20e566a2
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.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/app/CameraAppUI.java
f018bce18af5626bf67e6dcb37ea60b0cc6a53cd 30-Apr-2015 I-Jong Lin <ijonglin@google.com> Fix for N4 Video Rotation Bug

Previous fix for N4 preview (b/19271661) needed to only be applied
when PhotoModule is active. Grossly plumbed the correct object
references into TextureViewHelper so that it could know which
module was active.

Bug: 20694189
Change-Id: I0f639ae6ee0832f453213699723dc8aa25e5d9e7
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
6ffdeac1670c8938d0331c89d9269b68f361d6fa 27-Mar-2015 zafir <zafir@google.com> Hiding manual exposure button in video module.

Manual exposure button should never appear in non-camera modes.
This fix explicitly ensures that it will never appear in either
disabled or greyed out states in video module.

Bug: 19954837
Change-Id: Ia6730da9e3acaa62e2a30f594f344d86e2b25c69
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
28a98f5cbadee3589e3698f3653301351e46d200 24-Mar-2015 zafir <zafir@google.com> Merge "Hiding manual exposure button in N6. The button was previously disabled." into ub-camera-haleakala
57c889d4b88517dd0996547dbae4f314c2a3fcdf 24-Mar-2015 zafir <zafir@google.com> Hiding manual exposure button in N6. The button was previously disabled.

Bug: 18523154
Change-Id: Id08cef46fc4a67e50ce4b1acd185c5ae6efa94ad
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
46aac2cd824dceb30afebf1c8da955e4fa55ac5c 20-Mar-2015 Senpo Hu <senpo@google.com> 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
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
826267d28d6a03cd925a5aa1d800de486fdadcd9 19-Mar-2015 Spike Sprague <spikuru@google.com> Merge "Hide flash icon if not supported by camera hardware." into ub-camera-haleakala
34cf891d6962f03b38f6e0048c91cbfe7dc504df 19-Mar-2015 Spike Sprague <spikuru@google.com> Hide flash icon if not supported by camera hardware.

bug: 19199856
Change-Id: I5e4f7842c61e6c260b7a35c455f2caaa4d8e5e53
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
9ef3768c26c67ba4c1b97b2151d9456b19b53ddb 18-Mar-2015 Spike Sprague <spikuru@google.com> don't mess with the options buttons in transistionToCapture and transitionToCancel

bug: 19366720
Change-Id: I0620d1ceb80c2c45de95336be18ccf212ace6f69
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0409c8594fd1629ee07df827cf0d7a0f336b9326 11-Mar-2015 zafir <zafir@google.com> Disable manual exposure button in HDR+ mode.

Bug: 19641530
Change-Id: I70d47a678eb0c5b77040ff071af14dd35c1e73a8
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
acb342b9b5b21824d5992d59544c7a8a24c4b3a4 10-Mar-2015 Senpo Hu <senpo@google.com> Merge "[CaptureIntent] Detect if flash is supported from camera characteristics." into ub-camera-haleakala
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/app/CameraAppUI.java
86f1d1f3664c909d1d949951056c7bb1e9627324 09-Mar-2015 Alan Newberger <alann@google.com> 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
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
04aab100674dfdd11bffabc46e6a199f5e9a5267 05-Mar-2015 Paul Rohde <codelogic@google.com> 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
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
e61fbc4cba45ec740703d9a9e2a651e2d3e3a3c2 03-Mar-2015 zafir <zafir@google.com> Merge "Adding ability to zoom in accessibility mode using TalkBack" into ub-camera-haleakala
971ad50c0f220a396ffce50245617ff59ed0a09e 21-Feb-2015 zafir <zafir@google.com> Adding ability to zoom in accessibility mode using TalkBack

Bug: 18986078
Bug: 19546523
Change-Id: Ie68234a9a3a0b8b9be870cc674658194c72c84ef
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
7543914f2de33b1be25626afb31fa979b06dd582 03-Mar-2015 Paul Rohde <codelogic@google.com> 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
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
1908beee07fe9792338dbf8e0c36a5f1e3e9401f 02-Mar-2015 Paul Rohde <codelogic@google.com> 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
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.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/app/CameraAppUI.java
b6c4a314d0a0a185e6d987298ef9b7f4db8a6a2f 11-Feb-2015 Senpo Hu <senpo@google.com> Enable exposure compensation in CaptureModule.

* Expose camera exposure compensation capabilities in OneCameraCharacteristics.
* Turn off exposure compensation on Nexus 6 (API level 21).

Bug: 18523154
Change-Id: I551f19945f5a64a09a76b3a0777664d16a9b2ba2
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
469dafb8cf229524e85b3bcb8093297c9fecc07d 11-Feb-2015 Alan Newberger <alann@google.com> Remove overlays from Capture UI, partial revert of overdraw improvements

This partially reverts ag/631666, keeping overdraw improvements for
filmstrip but adding overdraw back in for capture to remove overlays
which have landscape issues in video/photosphere. Keeping
MarginDrawable in codebase for now in hopes of re-adding the overlay
soon.

Bug: 19352143
Change-Id: I7c75a7dcfa1643c7e4783742bfe5da49443a1848
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
d7064a6c6f1eb0748de8f56b8a1e006d60ab0f7e 10-Feb-2015 Alan Newberger <alann@google.com> Remove app background and reduce 1 layer of overdraw

Set the app background to null. This saves one full layer of
overdraw in the filmstrip. The capture UI is more dependent
on the window background, both for gaps in the preview and
screen edges, and behind the shutter button when it is
made transparent when the mode list is open. The preview
is a large portion of screen and to remove one overdraw,
we instead fill gaps around the preview with a
MarginDrawable overlay. This CL leaves a background behind
the shutter button when opaque, to allow for it becoming
transparent during mode list view.

Bug: 18596159
Change-Id: I2a9083a2413944c6244e2f0528164e8852ae3d8e
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8992a26dd589310b2f45cbb01c158f324fd10289 07-Feb-2015 Alan Newberger <alann@google.com> gray cleanup to 1b1b1b

During Material update, filmstrip background was intentionally made
1b1b1b. Capture button and mode covers were slightly off from a previous
gray design. Unifying all to one color constant. There are other, unused
background specified from older times, removing them as part of cleanup.
Confirmed with UX that all these colors should be 1b1b1b.

Change-Id: I3da07e9828546d2c9d30a8ac756a0bbb89d6376c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
ecb546aca4093beb60a3d40171b5038693dc7d05 30-Jan-2015 Senpo Hu <senpo@google.com> Suppress capture indicator while recording video.

Bug: 18908730
Change-Id: I2acd06f792c630b5ddac769c07edbefa94d9e110
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
cb8f66b4953e4fed4a0cd5133c2914b26097c133 28-Jan-2015 Senpo Hu <senpo@google.com> Trigger hit state animation when clicking on capture indicator.

Bug: 18905659
Change-Id: I78131ded35e7663e159ec378a50603fa4cc23434
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
d674f58cae699f644333ec4a15a391d8bf59c9fd 28-Jan-2015 Spike Sprague <spikuru@google.com> Merge "Hide accessibility buttons in Intent Capture Hide options button during Intent Review" into ub-camera-haleakala
c989d417a53341b144e9f78304270ac66f8f5813 28-Jan-2015 Spike Sprague <spikuru@google.com> Fix content description for video intent review playback button.

bug: 18760510
Change-Id: I59773006d8075e957451082ca0fcc11c3c417f30
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b45f618d4a3aa068766be8741213080532feaaff 13-Jan-2015 Spike Sprague <spikuru@google.com> Hide accessibility buttons in Intent Capture
Hide options button during Intent Review

bug: 18739652
Change-Id: I6ea912f811e3363c5e1454ad62c6645d7669003f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
88559ffac9fe0d3b00614475b45417e74c7d0678 23-Jan-2015 Spike Sprague <spikuru@google.com> add isFlashSUpported() to OneCameraCharacteristics,
make it work with API 1 and API 2

bug: 19018131

Change-Id: I0d4157688e6219f9d6f5827c19938e90d3831bdf
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8be316c7a8caf962cf3fcf5e49d332fb2718319f 20-Jan-2015 Paul Rohde <codelogic@google.com> Make it possible for singletons that rely on application context to be
initalized lazily.

* Add AndroidContext
* Add AndroidServices
* Make LogHelper ues thread safe lazy initialization
* Convert several unused fields into local variables in CameraApp.

Change-Id: I9c73e9b91efb49a01d848a8cca1e8e65f059b5d0
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
2356bd78cfeb51977845155b580104ce959083f2 10-Jan-2015 Alan Newberger <alann@google.com> Ensure button callbacks check lifecycle

The button callbacks are asynchronous behind animators. Most in the codebase
(i.e., all in CaptureModule) do paused checks, but the one in CameraAppUI
for grid lines did not and is causing lots of feedback reports with null
SettingsManagers (done in the activity onDestroy). Audited codebase, these
two instances were the only ones not checking.

Bug: 17905718
Change-Id: I31c26088ef1e7d600b4e3be42950b0ca70613e20
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
3830d419691ef865f01b362fee9618bac2aa8888 20-Dec-2014 Sascha Haeberling <haeberling@google.com> Store ZSL images in correct orientation and show progress in filmstrip.

Added an ImageRotationCalculator which calcuates the image rotation
based on camera characteristics and the device orientation at the time
of the shot.

Also moves the image backend code into its own sub-package.

Change-Id: I4b6b83e3e3cebece83215c19d0aff826ff853352
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0d32f29b2a82c2afa87b46e309c38f67f8b5e54c 20-Dec-2014 Puneet Lall <puneetl@google.com> Do not disableModeOptions() on shutter click

Change-Id: Ib4b226417ab992358231cbe96cf7d46c27926c7e
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
987ee64612e2510004fdf08536746c87234d01c1 05-Dec-2014 Paul Rohde <codelogic@google.com> Drop new focus indicator into Camera2.

* Create a new custom focus view that interacts with physical lens diopter changes.
* Replace all occurances of the old focus indicator with the new one.

Change-Id: Ia02646ce4d1eb059ecb8a1dfccc15dfc9c167e1b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
427a915be4bcc84fa1c32d9e9e1b7473c522f732 20-Nov-2014 Senpo Hu <senpo@google.com> New capture indicator design for Haleakala.

* Introduce RoundedThumbnailView and retire PeekView.
* Rename BottomBarModeOptionsWrapper to StickyBottomCaptureLayout.
* Verified on K and L devices.

Thumbnail cropping:
* 100% width and vertically centered for portrait.
* 100% height and horizontally centered for landscape.

General behavior spec:
* Hide the capture indicatorby fading out using fast_out_linear_in (150ms):
1) User open filmstrip.
2) User switch module.
3) User switch front/back camera.
4) User close app.

Behavior spec for non-photo modules:
* Photosphere is stripped of UI so there is no need to show capture
indicator. When a photo sphere is taken (and user is in another mode),
the preview frame used in filmstrip is used in the capture indicator.
* Video: show in viewfinder prior or after capture. Hide during capture.
When a video is taken, the preview frame used in filmstrip is used in
the capture indicator.
* Panorama: Show in viewfinder prior or after capture. Hide during
capture. When a panorama is taken, the preview frame used in filmstrip
is used in the capture indicator.
* Lens blue: Show in viewfinder prior or after capture. Hide during
capture. When a lens blur is taken, the preview frame used in filmstrip
is used in the capture indicator.

Visual spec:
A 12dp spacing between mode option overlay and thumbnail.
1. A circular mask that excludes the corners of the preview image.
2. A solid white layer that sits on top of the preview and is also masked
by (1).
3. The preview image.
4. A 'ripple' which is just a white circular stroke.

Animation spec:
(1) only the scale animates, from 50%(24dp) to 114%(54dp) in 200ms then
falls back to 100%(48dp) in 200ms. Both steps use the same easing:
fast_out_slow_in.
(2) opacity, from 50% to 0% over 150ms, easing is exponential.
(3) doesn't animate.
(4) starts animating after 100ms, when (1) is at its peak radius and all
animations take 200ms, using linear_out_slow in. Opacity goes from 40%
to 0%, radius goes from 40dp to 70dp, stroke width goes from 5dp to 1dp.

Bug: 18317565
Change-Id: Ib8d4f065b98fc3b9b0b627633232ce8cee96eb61
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
82d592f64966766ac4e4181e08b0d2989d4ed9c3 12-Nov-2014 Shashi Shekhar <shashishekhar@google.com> Hook burst controller to the shutter button long press.

Hooks up the shutter button long press to start the burst.
Introduces a BurstManager to interact with burst.
Provides an implementation of BurstManager that listens to burst and
saves results when burst is complete.

The burst eviction handler is now installed on the ring buffer
on shutter button press and uninstalled on shutter button release.
The ring buffer is cleared before starting and after completion of the
burst.

Also provides a stub implementation of the BurstController that has a
static method which controls if burst is enabled or not.

Bug: 18332704

Change-Id: I1098937bf348af7acbf55da1a5eeb423c30fb901
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0784a835e917e1dab7bb963cb9a9b92b506fba94 17-Oct-2014 I-Jong Lin <ijonglin@google.com> Button fix for torch when no flash available in hw

Bug: 17952997

The logic to show and disable the flash button was NOT paired
with the torch button and sometimes allowed the enabled
torch button to be shown, even the flash button was disabled.
A bit confusing, since the torch and flash button look exactly
the same.

Torch button logic to show/hide and enable/disable now follows the flash
logic.

Change-Id: Ie14b07815b6d5e1f8d7ce792ef9ee36dfdf8e3ad
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
4c96d840aeff669011a9e8697cbac77fe8f4eda2 16-Oct-2014 Spike Sprague <spikuru@google.com> disable startup shimmy on sd card error

bug: 15841887

Change-Id: If1cbb463a9de916b9fdd2926d8b47db04934535c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
d25eac4c69ccda0a9e91f6af8032b0624554e7ac 09-Oct-2014 Spike Sprague <spikuru@google.com> Native 16x9 viewfinder stream for Gcam to reduce switching jank and eliminate black bar overlay hack.

companion CL: ag/562183

bug: 17669070
Change-Id: I4d5402df3848423c236108716f7065a87ce95f6d
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
d2d8b711c14ee47f6f4ea16cb9fe27128462ad5b 02-Oct-2014 Spike Sprague <spikuru@google.com> disable all user interactions (including mode switching) on SD Card errors

bug: 15841887

Change-Id: I8e7e92a884dda54d9b8385b29d9ef4b7bb7fbd14
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
c19d97b385261312399b67b538f8faa074314beb 22-Sep-2014 Spike Sprague <spikuru@google.com> Let VideoModule override default mode options enable/disable

bug: 17553759
Change-Id: Iadb2690d81e3efce4e84c8c49f6e684a700c247b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
347dccbe1ed10ceec190af4d3797a197426f1caf 25-Sep-2014 Alan Newberger <alann@google.com> Ensure Camera doesn't attempt access of back camera on Nakasi

Bug: 17647004
Change-Id: I823f98cfdfcc7429b6acf98215e4a08787bc1bb9
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
3c3b31dfd5ec7a43e89cd4695cc8c498afc3a91d 08-Sep-2014 Spike Sprague <spikuru@google.com> mode switch jank fixes

puts many ValueAnimators news into initialize methods
changes startPreview() calls to startPreviewWithCallback()
puts MultToggleImageButton's bitmap combine into an AsyncTask

bug: 17070332
Change-Id: Idea6396264588b345ed27b9f96f9434ff3e7e77c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a16219d51937bda5f3e69c0e77171ae0fb893823 13-Sep-2014 Spike Sprague <spikuru@google.com> set proper alpha on shutter button on mode switch,
eliminates a janky alpha flash

bug: 17487040

Change-Id: I08e66b5be53e58e9e16d32c09ef50081e90e9284
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
c91c8d273b8884468dfd66a5b82526dc8245934e 10-Sep-2014 Alan Newberger <alann@google.com> Remove jank on camera options switching

There are two main causes of jank on encountered on options switching:

1. When requesting camera in requestCamera, a portability refactor
introduced a regression where we blocked in the main thread to close
the camera. This main thread blockage is unacceptable as it caused a
preview freeze in addition to the freeze we were trying to create during
the switch, leading to a two-frame preview freeze.

2. The mode options animations which delay the button state transition,
also resulted in preview stutters. Unsure of cause but reverting first
and will assess fixes and reintroduce.

Bug: 17414652
Change-Id: Ib72e331f1bbb5d3b608d8bdc5656c2ff2836ed42
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
17d9084e38e64f06a9d411d64fe3c2739d299cda 29-Aug-2014 Andy Huibers <andyhuibers@google.com> Add short flash animation and shutter sound to ZSL camera.

Bug: 17217567
Change-Id: I9a75fdd15e03f47029ef4a631287899718794c5c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
7bae31a17a7913b58b96787185cd965baef97f76 26-Aug-2014 Ruben Brunk <rubenbrunk@google.com> photosphere: Fix TextureView transforms.

Bug: 17098224

- WAR to set the SurfaceTexture default buffer dimensions to
the TextureView's layout dimensions to avoid bad
scaling/translation in TextureView's HardwareLayer transform.

Change-Id: I9e7d6e6cb33d806470cb11f00d45b97218ee7c11
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
ba97d192b63ea81edf2dd6ca5cfbf6646a1f25a2 20-Aug-2014 Spike Sprague <spikuru@google.com> animate filmstrip bottom button bar in and out
from the bottom of the screen

bug: 17114515
Change-Id: If3024f149fc0be0e48a430468c53774893946938
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8563d90f706ac7505014d59fda2bcef92c221c6e 16-Aug-2014 Sol Boucher <solb@google.com> Merge "Move preview transform matrix code into portability library" into ub-camera-glacier
8c8fb114ad4e121c4c1f3d726632dffbb32bda13 12-Aug-2014 Sol Boucher <solb@google.com> Move preview transform matrix code into portability library

This allows it to be calculated differently depending on the backing camera API,
which means that camera2 preview streams can be (and are!) displayed upright.

Bug: 16875535
Change-Id: I58fa86098a8b8eddc8f864b93d1e92672c40a1de
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0496fcaa51f88f6c753975473b971941e4090cfa 25-Jul-2014 Spike Sprague <spikuru@google.com> update mode switch transition anims

bug: 16129873

Change-Id: Ibcb2e31162dc353de250db2a7d24726b05768ab1
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0cf4a02c13a7710dc9b26ac39bea15a95ac48baf 31-Jul-2014 Sascha Haeberling <haeberling@google.com> [OC] Enable flash support.

Bug: 16654225

Also show an error and exit the app if camera could not be opened.

Change-Id: Iddccaff35b081ba98efe2aaae51d9ee10bb7726f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
08b3c94a7d7aff30b5da8e99649346e37b67a5c5 31-Jul-2014 Sascha Haeberling <haeberling@google.com> [OC] Adds the new CaptureModule and UI.

Bug: 16654225

This is essentially a version of the GCamModule without GCam, plus a few
things we need from PhotoModule.

Some code is commented out to be added back in later as a reminder.

CLs to hook the module up will be following up.

Change-Id: I70108529f81a8b0b744dc846287ea2ac121c85da
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
d9516f276cd45f87edc7eafe6aa476eeab7c29e7 19-Jul-2014 Spike Sprague <spikuru@google.com> ripple drawable on shutter button

bug: 16123188
Change-Id: I390279acb7a4599f1aeba71b415f1261b9a9b97b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
10a16544048c3e5e1b380219144d501351163dc1 08-Jul-2014 Spike Sprague <spikuru@google.com> am 1d1af906: Merge "previous CL ag/496035 disabled shutter button clicks during shimmy, scaling back a11y disabling on shutter button" into ub-camera-fishlake

* commit '1d1af90609b7a896f74dda83b7f22f91b50e70cf':
previous CL ag/496035 disabled shutter button clicks during shimmy, scaling back a11y disabling on shutter button
b7e41a734a9cf9b5789fd3221ba10833f669b7c5 08-Jul-2014 Spike Sprague <spikuru@google.com> previous CL ag/496035 disabled shutter button clicks during shimmy,
scaling back a11y disabling on shutter button

Change-Id: I1c788ccbd946b43774f9f4a7bf629c4e019f20f9
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8d92caac9849e962de3c22b5e327ab4f8fb9b0bc 01-Jul-2014 Spike Sprague <spikuru@google.com> am 9f3d01d9: volume button cancels ongoing countdown prevent volume button from doing anything during intent capture review

* commit '9f3d01d9c5d2200882de76e309db55d74d950110':
volume button cancels ongoing countdown prevent volume button from doing anything during intent capture review
9f3d01d9c5d2200882de76e309db55d74d950110 30-Jun-2014 Spike Sprague <spikuru@google.com> volume button cancels ongoing countdown
prevent volume button from doing anything during intent capture review

bug: 15141921
Change-Id: Icf974de09eb59e92bcce4a14aaa4775e21043c13
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b7c7d9a067cd52a27cfbaf0714a2074f972d836d 19-Jun-2014 Andy Huibers <andyhuibers@google.com> Add metadata to capture and tap to focus events.

Bug: 15646701
Change-Id: Id290935839a81cfe86e9a503849207d828f33225
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
4a0042759b9521bf36dc0d8576a628f4a29b2bb5 24-Jun-2014 Andy Huibers <andyhuibers@google.com> am b7c7d9a0: Add metadata to capture and tap to focus events.

* commit 'b7c7d9a067cd52a27cfbaf0714a2074f972d836d':
Add metadata to capture and tap to focus events.
6190c36db653e848f29d1caefc4fa1bb61e8a662 13-Jun-2014 Erin Dahlgren <edahlgren@google.com> New Settings API

Based on discussions from last week and comments on the design doc,
this api begins to implement the following:

1. Adds a "Scope" variable to api, which tells the SettingsManager
whether the setting can be stored globally (so that it is visible
to all parts of the app), or per-camera, or per-module, or per-
custom scope that the api user provides.
2. Separates keys and default values from SettingsManager,
to make it easy to add new settings/defaults from third party
modules.
3. Stores all settings as strings, to avoid upgrade errors, and
handles casting to type requested. Only String, Integer, and
boolean are supported.
4. Opens SharedPreferences files on demand, depending on scope
argument.
5. Creates a "DefaultsStore" to hold the defaults and possible
values of a setting. Then a user can request the default or
possible values of a setting at any time.

Change-Id: I03e0e1dd0955c519f54112e89716014aa963a425
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
159e6e9ca0d0ecb53d49765c75fd7a0b2afef965 28-May-2014 Spike Sprague <spikuru@google.com> disambiguate media types in capture/filmstrip a11y descriptions

capture uses current mode for better description string.
filmstrip uses metadata util functions for better description.

bug: 14473074
Change-Id: Id7c87a2cbd3ce5f072f433e74ca6139bf47f2fc7
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
35a25188cbed3d0bebdb9294cc700ac2427c3511 23-May-2014 Doris Liu <tianliu@google.com> resolved conflicts for merge of 26aa92bf to ub-camera-fishlake

Change-Id: Ifa2422c520a78357b6e920b88ec5a744bb694a95
26aa92bf5942bfde16621c6833c14ba0e1ea8b5e 23-May-2014 Doris Liu <tianliu@google.com> Add cling for settings button

Bug: 14683799
Change-Id: Id3785036f2b1642963dfa43f3272da314d952f2d
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
164916d6c6caac9e87bf4422ad128f87af02c1b7 22-May-2014 Seth Raphael <magicseth@google.com> am 73b109e7: Merge "Fix jank when switching in and out of hdr+ Also, fix alignment of grid and progress indicator" into ub-camera-everglades

* commit '73b109e793fb8ca3c894eb3df5ee42e1f2a7e27f':
Fix jank when switching in and out of hdr+ Also, fix alignment of grid and progress indicator
274f6e962e9e7f94cfc4ceb9cad3fa8dc0a80abb 22-May-2014 Seth Raphael <magicseth@google.com> Fix jank when switching in and out of hdr+
Also, fix alignment of grid and progress indicator

Bug: 15140487
Bug: 14470553
Change-Id: I09303f16b01a380e617343fa0f3cbe2c12fda147
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
53b6bde32a3d77fcd583f398aacc42cbec3fc8c5 21-May-2014 Doris Liu <tianliu@google.com> am 6809eb84: Freeze the screen during camera switch to hide visual distraction

* commit '6809eb840f358430d3032c0532fb42d6dcfd06ef':
Freeze the screen during camera switch to hide visual distraction
dc5243e6e9689c7ac4386862bb354e614d58f44f 21-May-2014 Seth Raphael <magicseth@google.com> Merge commit '3cfd962f' into manualmerge

Conflicts:
src/com/android/camera/app/CameraAppUI.java

Change-Id: I662798190c39dc889291a6eb3add77244875467f
c0a85390c2045ae1a8a7c9686c24c5136509a620 21-May-2014 Sascha Haeberling <haeberling@google.com> am b514cdea: Merge "Show timer option in HDR+ mode and as disabled." into ub-camera-everglades

* commit 'b514cdeaffca52da323481293e3b9117de04d375':
Show timer option in HDR+ mode and as disabled.
6809eb840f358430d3032c0532fb42d6dcfd06ef 21-May-2014 Doris Liu <tianliu@google.com> Freeze the screen during camera switch to hide visual distraction

Bug: 14818897
Change-Id: If6df2a6d0783e27807f01f8518244df33c24647f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b4dd5659a53c625a611080db0d41f52f2b421354 21-May-2014 Sam Hasinoff <hasinoff@google.com> Rename HDR+ torch to flash

For consistency, and to better reflect the meaning of the
flash button in HDR+ mode, change the naming from 'torch'
to 'flash'.

Even though flash in HDR+ mode is implemented by turning
the flash on in torch mode for a burst of frames, HDR+ flash
is closer in meaning to a regular photographic flash than
a flashlight/torch.

Bug: 15133661

Change-Id: I3ac4bb3dac455be1341575966910c2a86e29644b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
3cfd962fc550918a4003daabc90678a00766957d 21-May-2014 Seth Raphael <magicseth@google.com> Merge "Add Letterboxing for HDR+" into ub-camera-everglades
6382c70a769b9ec94a3b0372ee27c0cd075e8be8 20-May-2014 Seth Raphael <magicseth@google.com> Add Letterboxing for HDR+

Bug: 14470553

Change-Id: I37d9270b5ad2917c8c19a8aa4abc04967f03621c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b514cdeaffca52da323481293e3b9117de04d375 21-May-2014 Sascha Haeberling <haeberling@google.com> Merge "Show timer option in HDR+ mode and as disabled." into ub-camera-everglades
4333fac867f6f6a11235b16d305dd197093b44d5 21-May-2014 Sascha Haeberling <haeberling@google.com> Show timer option in HDR+ mode and as disabled.

Bug: 15089347

Change-Id: I366cd0b553808d55136c141bc1efec6ada9ee9b0
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
5c3ef9c902ca797ab5d5688f7e712d0ec7f7b2fc 21-May-2014 Seth Raphael <magicseth@google.com> am ffc06a4e: Merge "Preparatory commit for 16:9 hdr+" into ub-camera-everglades

* commit 'ffc06a4e9d20712c216b93878e16feaaa291bbf5':
Preparatory commit for 16:9 hdr+
ffc06a4e9d20712c216b93878e16feaaa291bbf5 21-May-2014 Seth Raphael <magicseth@google.com> Merge "Preparatory commit for 16:9 hdr+" into ub-camera-everglades
556a174d0f7cbd49cd8aaec6a5359440b42352c6 21-May-2014 Doris Liu <tianliu@google.com> am cf404d02: Merge "Fix mode list layout issue after initial aspect ratio selection" into ub-camera-everglades

* commit 'cf404d02a998629bda92a05dfb2bcb9c800e693a':
Fix mode list layout issue after initial aspect ratio selection
b908d933736a4ec042aad065b7ebf2059bbcac97 21-May-2014 Doris Liu <tianliu@google.com> Fix mode list layout issue after initial aspect ratio selection

Bug: 15088302
Change-Id: I10e6dcc7ce026c3ebb3fa676ebf0b7d7e0eda732
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
02c129a598b6a165885fe950275675d62993d2ee 20-May-2014 Seth Raphael <magicseth@google.com> Preparatory commit for 16:9 hdr+

This exposes some necessary functions for hdr+
to go 16:9. It allows you to pass a preview matrix
that is pre scaled, so that hdr+ can calculate its
own matrix

Bug: 14470553
Change-Id: I56f2c033ff58a9ff6793c6ee4d2317cb9ce5065a
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
15473d4b69f4ad619aa10430e4bc86ab4fa815d0 14-May-2014 Erin Dahlgren <edahlgren@google.com> Add new hdr plus flash setting.

This setting will be used by GcamModule to manage their
torch mode. It should be different from the Camera 1 api
flash mode setting, because they are semantically different.

GcamModule needs to set enableHdrPlusFlash in the BottomBarSpec
to enable this feature.

Also normalize names, HDRPLUS/hdrplus -> HDR_PLUS/hdr_plus,
for consistency, to reflect the clear majority usage.

Depends on:
* GcamModule ag/465936

Bug: 13076855
Change-Id: I6fe5ab8b1c7b9fa1acd1181445748c0257d21ea4
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
29a2914d2e943e1ccc5bd3d3721a100c98617267 20-May-2014 Sascha Haeberling <haeberling@google.com> Merge "Only show accessibility buttons when spoken feedback is enabled." into ub-camera-everglades
d4c3333c99ece20b3125e86e1e3f6105b2bc9bdd 20-May-2014 Sascha Haeberling <haeberling@google.com> Only show accessibility buttons when spoken feedback is enabled.

Bug: 15082416

Change-Id: I9d953781fd9107dd81058afab183e044a784fba9
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
6c75164c89f3bbd4f894b9c49a7914a24268a999 06-May-2014 Doris Liu <tianliu@google.com> Add back countdown timer

Bug: 14222651
Change-Id: I482ec942dd9d79c4ea0432140a96ba2fc5b29c57
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a7919c720c49d7aa9a033366a92f8b1828619a0f 16-May-2014 Erin Dahlgren <edahlgren@google.com> Add hooks for disabling/enable the mode options toggle between captures.

Bug: 13982230
Change-Id: Ib2582420c2f7fd0038555aed0b23bfa8f151721b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0d4f2b8fe779e66d1b8f0201fd0b92e5ea8e900b 16-May-2014 Sascha Haeberling <haeberling@google.com> Merge "Close mode options and mode list when needed." into ub-camera-everglades
256427babcb93dd3cdb11b6e23c47ecf82e5af19 15-May-2014 Sascha Haeberling <haeberling@google.com> Close mode options and mode list when needed.

Bug: 14834384
Bug: 14834783

Change-Id: Id96859d57a84c66489a0e764ba2950cc47f7c886
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
156f3e5b41cd2049230b1423c455763d31738693 16-May-2014 Spike Sprague <spikuru@google.com> fix some lingering exposure comp value calculation errors
hide exposure comp button if not supported in hardware

bug: 13967706
Change-Id: I6aa6963929c00ed06122fa2e2dfd778844bcc280
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
46acdc5401956ee4951d25d047ae892b78c13d86 06-May-2014 Spike Sprague <spikuru@google.com> moved set exposure limits code into an enabled check

bug: 14462164

Change-Id: Ia75449e92ffb46c8f19326828c81c40c053e7ad0
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
59345144c4bde59b81bb19c95cdd977c1d1a9cd4 23-Apr-2014 Spike Sprague <spikuru@google.com> change exposure comp and pano orientation to
use the new RadioOptions

bug: 13780101

Change-Id: Ie7b12199a96272827cc381560a5b801f87a5b81a
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
dfb5a6f356f3287c5cc9cac20948ec14c1f68a35 29-Apr-2014 Doris Liu <tianliu@google.com> Add affordance to toggle mode switcher and filmstrip for accessiblity

Bug: 14109115
Bug: 14106588
Change-Id: Ie5eea0f942739f2f0a1088ba7d568189bfe02b6b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
344320c90639f823451ddac42e8f39b74727787c 22-Apr-2014 Doris Liu <tianliu@google.com> Shutter button left handed support

Bug: 12823819
Change-Id: I77bdbf17557bdd9f545b98bab58acce68d01b51d
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
28a2950939614a0c1c83787960ce1a218fb69a5e 11-Apr-2014 Doris Liu <tianliu@google.com> Refactor preview position logic

Centralize the logic of laying out bottom bar and transforming
preview TextureView based on the total space to lay them out
and preview aspect ratio. The layout is updated when either condition
above has changed. Then the rect of the bottom bar and preview
rect can be queried anywhere. This way, bottom bar, mode options
layout, and any view that relies on the preview rect and bottom bar
rect can be laid out without extra layout passes.

Bug: 13795952
Change-Id: I13c38b566b5b5d8f37ec94f325554c089a86ca8e
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a479fcaad5b83c8fbb881f491d93145531b25cba 12-Apr-2014 Spike Sprague <spikuru@google.com> make manual exposure compensation settings work acrss different devices
bug: 13967706

Change-Id: I2ebe579c8b7df1218546dd888b5bbfb5486e9e55
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
3c62221afd869828ba867fce15755a582f2c2334 11-Apr-2014 Erin Dahlgren <edahlgren@google.com> Update mode options with hardware spec whenever hdr setting changes.

Bug: 13965048
Change-Id: I7e718bb56cb5dc92c7583bef780d442c04644a56
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
de7633bbcfb08865175126713d97132086bff340 08-Apr-2014 Sascha Haeberling <haeberling@google.com> Don't show the tutorial wrapper all the time.

Bug: 13337436
Bug: 12440059

Change-Id: I10a969a4c550b6ebbc101f7cdce8ef12c3029137
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
1e0810c88e791d0f658eb5a6f95d771ee03a7631 08-Apr-2014 Sascha Haeberling <haeberling@google.com> Make tutorials render in smaller layout on tablets.

Bug: 13337436
Bug: 12440059

Change-Id: I7886a86189a94483775a5535c69e22090cec1530
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
abf54e2994961395a0feb0b08353e62718443f23 27-Mar-2014 Spike Sprague <spikuru@google.com> exposure compensation control is back

bug: 13607051
Change-Id: Ib4920ba3f8f3a548651a2d07613ccfdc28ca1d6e
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
10c5816e1ff3d30e4c4996643ba05d63d522b81a 29-Mar-2014 Andy Huibers <andyhuibers@google.com> Logging revisions.

Bug: 13747555

Change-Id: Ic5f735de89f9a69d981cdeab209b3966532697c7
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
59efb9af8340a5e3500037b23fb3ac16011a1c7e 02-Apr-2014 Seth Raphael <magicseth@google.com> When we reset app ui, re-enable shutter button.

This allows all modules to have a known state on
resume.

Change-Id: I8efab600b7c6df611e522bb20c8a164006a27a9d
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
458103727c23134f3c9fb678dd757f31779f6db8 02-Apr-2014 Erin Dahlgren <edahlgren@google.com> Merge "Fix broken shutter button enabling in Photo and Video." into gb-ub-photos-denali
667630d16a2b0cf3acecb817b3aa398abdd33623 01-Apr-2014 Erin Dahlgren <edahlgren@google.com> Fix broken shutter button enabling in Photo and Video.

When I went in to implement globally disabling the shutter button during
a certain state transition of the app, I realized that

1. enabling the shutter button in Photo and Video was totally broken: the
methods being used for enabling the shutter button were totally empty!
2. setShutterEnabled in the AppController was totally empty.
3. we've done a horrible job with keeping names consistent: capture button
!= shutter button.

So I've fixed all of these things, which should solve existing bugs and make
my original task easier.

Change-Id: If1ae3b8c740ef678fbd20c2ffbb93576f48c8c19
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a83ec8a3acb174e2688f0d31f2094e1aa72a06ee 31-Mar-2014 Sascha Haeberling <haeberling@google.com> Refactor UsageStatistic so it can be disabled more easily.

Change-Id: I2ca6e7d5642b1400d4b13f2c45cb48793b2fc178
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
9eb517f4c4bcf00fbe435a56f89d3abcaaa4d881 02-Apr-2014 Doris Liu <tianliu@google.com> Temp swipe interception to support swipe from capture button

Bug: 13535296
Change-Id: I911336ce407abbfe51759bb38ffff9a534a49de6
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
84312832d7dbae89df75046ce91bf3d675b4b928 01-Apr-2014 Doris Liu <tianliu@google.com> Merge "New generic cling widget, add cling for refocus editor button" into gb-ub-photos-denali
b36c6b7a5262e2d80b4c6e3e17cc3cb79b6a522a 31-Mar-2014 Spike Sprague <spikuru@google.com> keep three dots option toggle on the screen

bug: 13716654
Change-Id: I142d2ce8c026ad4f4fded15475e4d2a42e10f859
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
e7d7b9ef5e09ba464306565c6c62302a4d9bbe5e 01-Apr-2014 Doris Liu <tianliu@google.com> New generic cling widget, add cling for refocus editor button

Bug: 13307036
Change-Id: If3a1759cbc0cbc66de1d3d15a3ae18999bf0bd1f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8ad8ad4841f65ee89e3c5e79f57d95cf8e4438b4 27-Mar-2014 Doris Liu <tianliu@google.com> Remove white balance and non-HDR scene mode settings

Also hook up HDR setting with scene mode to ensure it functions correctly

Bug: 13546569
Bug: 13546102
Change-Id: I71ef1841fc2bcb22f6ca0e286c31806ea049c79e
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b6db6917db367e4ca0992ca8614a4cfc59d68d92 26-Mar-2014 Alan Newberger <alann@google.com> Hide bottom bar of Camera when filmstrip is visible

This CL hides the bottom bar, i.e. capture button and onscreen indicators,
when the filmstrip is visible. We hide a wrapper; modules may independently
control the visibility of the items in the wrapper e.g. Photo Sphere turns
the actual buttons invisible even if the wrapper becomes visible.

This change takes care of the most egregious issues with widgets visible to
TalkBack under the filmstrip, but there are still others e.g. 'align to start'
for Photo Sphere, can be navigated to. I'll file a separate bug to pursue
a more aggressive wrapper visibility toggle which turns off the whole camera
preview, mode switcher, etc.

Bug: 13644558
Bug: 13589550
Change-Id: I1cf7e9079210c85f29b3e35e0f7dbf176b86976e
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
5596b4c902dcb685928b43678f428746ca5ffd08 12-Mar-2014 Angus Kong <shkong@google.com> Use debug.Log instead of android.util.Log.

1. Change to use com.android.camera.debug.Log instead of android.util.Log.
2. Add DebugCameraProxy to support more detailed debug info.
3. Add CameraErrorCallback in CameraManager.
4. Support posting to a specific handler for CameraErrorCallback.
5. Trim down some TAGs to match the framework tag length limit.
6. Remove some unused codes in CameraSettings.

bug:13324870

Change-Id: I8c20a8a0d11cfd50b6e199b03cbc88d3c4ad2ceb
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
f495ea8ca078fc752b1ed1045ba22817d75e968e 25-Mar-2014 Alan Newberger <alann@google.com> Set capture controls invisible when in filmstrip

Though covered by the filmstrip, by being visible in filmstrip these
controls are reachable in TalkBack when in filmstrip which is confusing.
This CL makes them invisible in filmstrip and filmstrip Talkback is now
clean

Bug: 13589550
Change-Id: Ib92823a6efb07a4f56a83516e7decf08397c6edf
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
dd9739a98402b8d325ec34a1a2ce743b871aa325 25-Mar-2014 Alan Newberger <alann@google.com> Merge "add filmstrip DPAD capabilities" into gb-ub-photos-denali
8099a371048e45b9161ac63e4d6bd9644fcad5b5 25-Mar-2014 Alan Newberger <alann@google.com> add filmstrip DPAD capabilities

this CL adds left/right DPAD handling to filmstrip. If you reach the
first item, the filmstrip is hidden and user is back in capture.

Bug: 13589550
Change-Id: Id2b2d52da31ef65cb568ce4ef3f5cdc9384caf1f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
2ed67843b7eb5cb67eaec51561770262f5fd36c7 25-Mar-2014 Angus Kong <shkong@google.com> Show hint animations forever.

bug:13544174
Change-Id: I7d679c8e13b41a5d8266c2c2768e914ef3d5ea1b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
623dd0c68d64038ed2bcfd264348d9b6f1a13c8a 24-Mar-2014 Alan Newberger <alann@google.com> Add DPAD support to capture window

This CL adds DPAD support for capture screen gestures, in particular
to mode switcher and to filmstrip. Left goes to mode switcher and again
toggles it off; right goes to filmstrip.

A followon CL will add additional filmstrip calls that control gestures
within the filmstrip itself, namely navigation between items and hiding.

Bug: 13589550
Change-Id: I7b6a7a37c5be8137c2503244dc178284139594dd
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
1b1253241a5a9b3a59037ba7a626bca68a9b06d8 22-Mar-2014 Sam Judd <judds@google.com> Don't render the preview while it's not visible to the user.

Bug: 13586944
Change-Id: Ide777da080ce150cec601b4e6e88cd6c4ea19cda
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
5cc5f61e96ebc6bd0af2613b14d68c2cafd7ab78 20-Mar-2014 Spike Sprague <spikuru@google.com> Merge "video bottom bar stop button tweaking" into gb-ub-photos-denali
45a821d43ae8d7287b649f670a66ab3d99eeccaf 14-Mar-2014 Spike Sprague <spikuru@google.com> video bottom bar stop button tweaking

bug: 13367909
Change-Id: I670350f77a1e86500a0d66f3a3fc5d7e772d0c93
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
2db51d761f8fb070f660b90913e131ab361cbbad 11-Mar-2014 Seth Raphael <magicseth@google.com> Support cancel layout for long captures

Bug: 12468010

Change-Id: I97c1f8254287b8a3648d21a9dbc54b5b5bc2424a
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a93909ffe93c9f5e27e493f32a78aab6fbf3e06e 08-Mar-2014 Spike Sprague <spikuru@google.com> capture button disabled states support

bug: 13244592

Change-Id: I58b1b3dada9be60ec28be0e0bab81c9dc000511b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
c813ce181810a444b6fea4a399e6685aef4103e2 10-Mar-2014 Sascha Haeberling <haeberling@google.com> Support an abstract API for tutorials.

Bug: 12440059

Change-Id: I5597c3c2dc28714405bd2e148093831039af1dd2
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b259701e4f421b10404425d2a827cbe9d2571585 10-Mar-2014 Angus Kong <shkong@google.com> Respect the module configuration of preview.

bug:13393521
Change-Id: I46e3df4948980eceb66f4109b52a59f93296cfc6
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
597c1a093f840af3c42e00af05da01ef124dc846 06-Mar-2014 Sascha Haeberling <haeberling@google.com> Support for capture session errors.

Bug: 13026663

Change-Id: I3713440483aa4732f94aff9eaff2fc34a04c0427
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
69cb84076c2f290ee2cd782ab668a661c9d5386e 02-Mar-2014 Doris Liu <tianliu@google.com> New shimmy

Add soft landing for quick swipe-to-open.

Bug: 13183433

Change-Id: Ib51b3e401108c292f27ddb963d34cdbafa37f9ae
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
90599aa03447f9a836157d429c7a14e74d5b14aa 07-Mar-2014 Spike Sprague <spikuru@google.com> proper preview letterboxing for not-so-tall apsect ratios

bug: 13085409

Change-Id: If574ff5fe290f4b5eb5e2fdb75e9592e5018dce4
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
26d32221d8f2f70b0532a7bc459b24c61d490d6b 07-Mar-2014 Angus Kong <shkong@google.com> Merge "Align the peek to capture button in landscape" into gb-ub-photos-denali
e43ca3a01337b062801f99993339d238c195435f 07-Mar-2014 Angus Kong <shkong@google.com> Align the peek to capture button in landscape

bug:13165526
Change-Id: Ib8bb3a1bfc6edd209061cff71567b66f0fe6525c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b88ed2c7bb4c6ad28b163645b1d7f70b02423395 07-Mar-2014 Spike Sprague <spikuru@google.com> Merge "video intent ui" into gb-ub-photos-denali
2bacca795a1b0adb0daf515c43c48234b44bbba5 06-Mar-2014 Angus Kong <shkong@google.com> Align the gridlines with the preview area.

1. Rename onPreviewAreaSizeChanged() to onPreviewAreaChanged() since it's
passing in the real preview area and is called when the area is changed
regardless of size changes.
2. GridLines.java now draws the lines based on the preview area.

bug:13098715
Change-Id: Idbd2ba03cad4698689cee46d2aa04588a415fa3d
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
51c877c56e204ac29a4db72d46168afac3feb239 18-Feb-2014 Spike Sprague <spikuru@google.com> video intent ui

bug: 13194672
Change-Id: I55ca912a4de78e75f4f6e23cf448beab4430a606
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
58b9b03f2bedc522bde5b4199121ea2e559c79a9 06-Mar-2014 Angus Kong <shkong@google.com> Align preview to bottom bar.

bug:13210080
Change-Id: I6ec4071e2f21ef351b2b16a53662c2a3c1b29721
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b4a579aa0772a3e6140868a7e4ba03e0040f8353 05-Mar-2014 Sascha Haeberling <haeberling@google.com> Merge "Add placeholder to use for tutorial screens across modules." into gb-ub-photos-denali
a9a9d1558b87507905559918df5a144688269f5b 05-Mar-2014 Sascha Haeberling <haeberling@google.com> Add placeholder to use for tutorial screens across modules.

Bug: 13076376

Change-Id: Ia157040b460a296a61ce1c84e637c36f24072a15
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8c1f97010898020ef7776a91aa1e437ce621fedb 05-Mar-2014 Erin Dahlgren <edahlgren@google.com> Only allow simple capture for image intents.

Bug: 13289606
Change-Id: Id753def11f6499940a284b6bc3d33f5e45363183
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b00d64307ae77541f8576593a29214d649fb94e9 26-Feb-2014 Doris Liu <tianliu@google.com> New Shimmy

- Two step shimmy: first show the mode switcher, then hide it
with a shimmy animation.
- Hiding will not start until after all the popups are dismissed

TODO:
- When mode switcher is shown for shimmy, text should be hidden (
this involves cooridnating the timing to show text with user
interaction)
- Need to have a graceful transition if user grabs the list on its
way out

Bug: 13183433
Change-Id: Idda5520c3c3663864be0f478787ef603fdb0f6da
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
001dc31f0b6e78b70db83c6d9b8cc7872e540965 28-Feb-2014 Angus Kong <shkong@google.com> Show progress UI in secure camera.

bug:13226795
Change-Id: I9de44b1c802094b88797ab90ceb022a42b3589f9
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
5d18769f53db81d401488811250570290a73626b 26-Feb-2014 Erin Dahlgren <edahlgren@google.com> Generalize shutter button listeners and add one for mode options.

Bug: 13099000
Change-Id: Ib0726c70a9e4aa06197550f29360bacb2dda4783
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
7ae25c21fefd8b7fd4c4e1c207631f751167cb0a 25-Feb-2014 Angus Kong <shkong@google.com> Align progress bar with filmstrip bottom controls.

bug:13026663
Change-Id: Ic751bf26475fd27237690678715e399f0d987e82
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
9d52fc9e1a529012de83d1fea415c2fb4cba836c 25-Feb-2014 Doris Liu <tianliu@google.com> Disable quick switch

Bug: 13098335
Change-Id: Ic0e019d0b58234975e2bbd0238d0cb7618afb0e5
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
948de99e58b72e815224d4e12761863dfceffae0 20-Feb-2014 Doris Liu <tianliu@google.com> Dismiss mode drawer when tapped outside

Change shutter button alpha to disabled alpha when mode
drawer is open

Bug: 13084332
Bug: 13084982
Change-Id: Ic6f8c0b910e653045b3f8c1c6f22dca3420f6802
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
791f211c87d0e15e3264086a5ea75ff9066aa177 20-Feb-2014 Erin Dahlgren <edahlgren@google.com> Merge "Don't show flash mode option if it's never supported." into gb-ub-photos-denali
0868a09ecd0fb17e63efae3b8b3b694bda32ca20 20-Feb-2014 Doris Liu <tianliu@google.com> Merge "Hide focus overlay when exiting a mode" into gb-ub-photos-denali
e346fb291bd6209b0167d110e15f58576568f99c 20-Feb-2014 Erin Dahlgren <edahlgren@google.com> Don't show flash mode option if it's never supported.

The motivation behind this design is that if the camera id
preference is cleared on every upgrade, we should be able to
obtain the flash support setting before ever switching to front
camera.

Bug: 12192238
Change-Id: I01dbcf2f614e7359fd456665e58c922b347a46da
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b86a02cddc807ac2f7524b786ff3c589cc340353 20-Feb-2014 Angus Kong <shkong@google.com> Merge "Filmstrip peek animation." into gb-ub-photos-denali
af65683681dbbb98063363ee776f5d357a7b5de5 19-Feb-2014 Doris Liu <tianliu@google.com> Hide focus overlay when exiting a mode

Bug: 13005220
Change-Id: I48bc32b9137a850aefef43af44537b2c892a74a2
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
6514fd911e70b6ee679563ce25300876a719c67a 19-Feb-2014 Doris Liu <tianliu@google.com> Merge "Update mode cover icon assets and size" into gb-ub-photos-denali
b520b97b89b0cf0389ea00d7e080971628cf6290 14-Feb-2014 Doris Liu <tianliu@google.com> Update mode cover icon assets and size

Also increase the fade out duration.
Bug: 12967901
Change-Id: I9573b234ad0c9123f5edc6cd40c115897ba14177
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
f80ac9ee5c66671c3a77ac6628fefc86cd39d57e 18-Feb-2014 Erin Dahlgren <edahlgren@google.com> Support panorama orientation toggle in mode options.

Bug: 12977732
Change-Id: I945d53e1f0a6e3ff4e831c9907936f4d4456def6
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
5052117cc429d85cf446421ca74859f4365747d3 18-Jan-2014 Angus Kong <shkong@google.com> Filmstrip peek animation.

First version.

bug:12451161
Change-Id: Ie49314569bf607efd9220977ad5ffb1ca26d161c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8b6c3e04857a209e5a2e55ef837f34d9e8abc111 13-Feb-2014 Doris Liu <tianliu@google.com> Merge "Center mode drawer in uncovered preview" into gb-ub-photos-denali
e7e0c028d568c1a4c3e88ed75411b8b41c5aec69 12-Feb-2014 Doris Liu <tianliu@google.com> Center mode drawer in uncovered preview

Also align the mode drawer to the left edge of the preview

Bug: 12974095
Bug: 12971043

Change-Id: Ic7b9cb95352cba52d3ccf6c09667476f2ea04d69
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a9ceaf76b72cb4b499d3d9d90f979bae93bd593d 12-Feb-2014 Erin Dahlgren <edahlgren@google.com> Separate button references now that options are centered.

Bug: 12976464
Change-Id: I8f492f4a6f243cb986cd1fee7b0f284c3020e8d4
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
9d264309a341c52601bdccdeff6647e0ce58c31f 11-Feb-2014 Doris Liu <tianliu@google.com> Add settings entry point into mode switcher

Bug: 12963148
Bug: 12964884
Change-Id: I11b45037abe1716d89fe723170284c61fbb33a87
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
372c609a2cd0c5aa2e42bcc68df3440d70daa114 11-Feb-2014 Spike Sprague <spikuru@google.com> Merge "min / max bottom bar height logic" into gb-ub-photos-denali
94c9b43061bee072a2322a2001d27e51dae023db 06-Jan-2014 Spike Sprague <spikuru@google.com> min / max bottom bar height logic

bug: 12668831

Change-Id: Iadccd4c150a37955b0c612539edb6b747f87acbb
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
040e3c053cc0d2097332de24cf5328a26a8e7332 10-Feb-2014 Doris Liu <tianliu@google.com> Mode switcher refinements.

- Increase the mode switch icon size.
- Change mode cover color to 0x191919
- Change the font of mode text to roboto medium
- Change the highlight state of mode icon to fill

Bug: 12954273
Bug: 12954790
Bug: 12954370
Bug: 12953261
Change-Id: I23ef62ae4ce5589da20c7ee6bf805e5af70b62f2
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
4108d9ace2a0f40ad28f8d6530a174f1a0cffe95 10-Feb-2014 Spike Sprague <spikuru@google.com> Merge "fixing intent ui controls visibility" into gb-ub-photos-denali
15690d02da08bda74ed63f260b70076801bf91bf 10-Feb-2014 Spike Sprague <spikuru@google.com> fixing intent ui controls visibility

bug: 12668877
Change-Id: Ibffc0682fb37f88998d2afddcf52bcd6ef86192f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
213a4a086b54904cee543adf60b16fc1a61efe38 05-Feb-2014 Doris Liu <tianliu@google.com> New mode drawer.

-Changed the entire look of the mode drawer by using a live preview
as background, and use circle icons rather than block shaped icons
-Fade in the blurred preview frame during mode switch
-Add highlighted and selected states to mode icons
-Center the mode drawer in preview rather than whole screen
-Swapped mode order in the drawer

TODO:
-Add settings access point
-Refine swipe in/out behavior of the drawer

Change-Id: Ibab0fe960bcfbb9635ca7f45d50178cb1ef2941f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
d5e51466a2848f1c937656c8f8185290034c2429 07-Feb-2014 Erin Dahlgren <edahlgren@google.com> Add grid lines option and indicator.

Bug: 12454164
Change-Id: Iae088cee0cc67041bb304f276a5ffe84a813df5e
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
d8de077f72b04cee1bdf26e5ca1678ac5297bd71 03-Feb-2014 Erin Dahlgren <edahlgren@google.com> Shared texture view in photosphere.

Change-Id: I8dd4898e3800b02fa7f0488104dcfa4600b3845f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
66f41b3440ed95fdb079dab7993f839fcbb3641b 05-Feb-2014 Erin Dahlgren <edahlgren@google.com> Fix an IllegalStateException introduced by ag/413832.

Change-Id: Ib160c313af4e60215a9a91b93a2ec2506a06c5d2
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
6e07fe22cf84e9eea02d368bf64ab68d92401f20 04-Feb-2014 Erin Dahlgren <edahlgren@google.com> Treat mode toggle as indicators or default toggle view.

Change-Id: I25a97cea27893ab76a8930c99de8e65eb2904b36
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a6587a1a1e3672013da6a454c0e478846eced15d 03-Feb-2014 Erin Dahlgren <edahlgren@google.com> Elevate refocus to its own mode, merge craft and camera.

Change-Id: I9686db26993319fdaf09f09c0610bb65e00a0e05
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
846d3abfe3da2fa2a5593c7d40a196005408bed1 04-Feb-2014 Sascha Haeberling <haeberling@google.com> Avoid activity leaks.

Bug: 12805279

Change-Id: Ib91ff2d286f6a0e0d67dad673e7af24600e15759
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b3f59a874f675ceb7542298760a3c813c5e0d9ac 05-Feb-2014 Erin Dahlgren <edahlgren@google.com> Add support for grid lines overlay.

Bug: 12454164
Change-Id: Iecf175e6dd41d8c2ce42c177f5bc91ec997c420b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
165bb8d85e6eab4e261c6b21a754ee227f732795 30-Jan-2014 Erin Dahlgren <edahlgren@google.com> Move mode options to transparent overlay.

Change-Id: Iec0423668c58a5b849841afc45def923210df6fd
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
4ba3c72b6cf7b17345a8ffe643a3e21df460893d 31-Jan-2014 Doris Liu <tianliu@google.com> Merge "First pass on tracking camera performance" into gb-ub-photos-denali
7cbeceed6d03d0550797c435f3db6205714cd49f 30-Jan-2014 Doris Liu <tianliu@google.com> First pass on tracking camera performance

Record time spent on cold/warm start, mode switching for later
hooking up with instrument tests.

Bug: 12838163
Change-Id: I1004f2b26d9ff9d59b4729e7323c079a6b561fdc
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
e8959e7a72cd6f057ac4cd8bd47075272700e62e 31-Jan-2014 Sascha Haeberling <haeberling@google.com> Move tiny planet editor into the edit action.

Bug: 12553864

Change-Id: I3431565928bef637c11246fc6e711ef3d1f925ce
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
426901fb6adf728742ad2841ac595bc1414f3568 31-Jan-2014 Erin Dahlgren <edahlgren@google.com> Merge "Add logging for swipe to filmstrip from camera." into gb-ub-photos-denali
772951602f9cfccd097283e3b78d188838c82138 30-Jan-2014 Erin Dahlgren <edahlgren@google.com> Add logging for swipe to filmstrip from camera.

Bug: 12589465
Change-Id: Ia57c1f341d7c9262b96823121e046fe4c4378b5c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
6365bad43ff3e3e93d4e8c7e6dc22cbc96eb1aaf 30-Jan-2014 Doris Liu <tianliu@google.com> Fix NPE

This NPE is caused by not having a PreviewStatusListener in
photosphere module. Hooking up PreviewStatusListener in
photosphere requires a refactor which is non-trivial amount
of work.

So for now, a null check is added here to prevent NPE
and the logic of detecting and handling device flip will be
added into photosphere to properly handle device flp.

Part II at ag/412607

Bug: 12679997
Change-Id: I5392674e387800e6a2a3114ec3f834b439aed31e
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8389ebe65ca6f3640b90e24f35339b5f233dee83 29-Jan-2014 Erin Dahlgren <edahlgren@google.com> Merge "Fix secure camera launch crash." into gb-ub-photos-denali
49ab922e8e1e7535286392fc667312ec419403fd 29-Jan-2014 Erin Dahlgren <edahlgren@google.com> Fix secure camera launch crash.

Bug: 12783858
Change-Id: Iff5cfecff986966f63b40d2db4bc1d31037f12d4
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
5a367545ab931a308c8d8555ef5a747dc9565caf 18-Jan-2014 Doris Liu <tianliu@google.com> Fix mode transition jank and stretched video preview

Bug: 11963674
Change-Id: I9cb292aa3dea6b0073dfc19af8105dce1f0c9865
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
e2914fddcd6d4f78d812ef818d43364d9aa469d4 18-Jan-2014 Sascha Haeberling <haeberling@google.com> Move focus overlay into generic_module.

Bug: 12563457

Also cleans up the focus overlay API.

Change-Id: I8a63b7abf7cc9390cc709c275807b1d3d2e344a6
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
d706ea69a87229dca5cb8f16125decfbcbc5303d 22-Jan-2014 Erin Dahlgren <edahlgren@google.com> Fix the build: use exported panorama values in helper class.

Change-Id: I5b22fe0504fa113f3867d7e626087c9880bbccdd
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a1fab413bcbe5f62ae1d829bac0539519fef96a6 21-Jan-2014 Erin Dahlgren <edahlgren@google.com> Support for panorama and photosphere bottom bar ui.

Bug: 12438294
Change-Id: If8a6f3b8aafd81980290655fb3ad461928f9c520
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b1641f5df0cf839b54385ea4d2e43521620fc237 15-Jan-2014 Erin Dahlgren <edahlgren@google.com> Remove global UI elements based on supported camera parameters.

Bug: 12192238
Change-Id: I6373adeaa9c95385a2a4ca8d81cf7656550911f2
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a0e8347f9cfb583f90543635c5c86dc9252526e1 16-Jan-2014 Kevin Gabayan <gabayan@google.com> Measure time to first valid preview frame in testImageCapture.
Bug: 11999851

Change-Id: Iec695d7de98454435fc9ae239a500fedb9eee894
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
fecd723c1cfd90332cd2805be79a24f26643ebb9 16-Jan-2014 Erin Dahlgren <edahlgren@google.com> Set the shutter button icon across all modes.

Bug: 12552362
Change-Id: I55d4238b0ddbc4bb3ea206dc577381b6de2f68a7
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
55007febc18832eebf3cedd3d8497f9bcb221b9d 16-Jan-2014 Angus Kong <shkong@google.com> Merge "Change refocus icon asset." into gb-ub-photos-denali
00b3371ca5c3340a81174ea5443443a9176d5130 16-Jan-2014 Angus Kong <shkong@google.com> Change refocus icon asset.

bug:12550183
Change-Id: Iad54468a1f88bcc23e68ebda39931c93c5ee407d
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8793eff1b85bda89047316fed36cdc1161a8b811 16-Jan-2014 Sascha Haeberling <haeberling@google.com> Disables swipe during video recording and during photo sphere sessions.

Bug: 12554964

Change-Id: I2ab1ae34ae6964371680418eac3583b2e766b26c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
f1b2e407b20ff16fe793158c598e59799c1990ef 14-Jan-2014 Erin Dahlgren <edahlgren@google.com> Fix stale button references.

Bug: 12537343
Change-Id: I9c48f9dcfe82afbf89562010daf94b767d53911c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b92910e04c4da91fc4ea5a9484b83f9ecba1c896 14-Jan-2014 Spike Sprague <spikuru@google.com> capture button pressed colors

Change-Id: Ia568be11e6f9b6160f3f8332b504866cbe6ac94f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
39f8a7647aa4051a1c260b9496c2db82f93f8667 13-Jan-2014 Spike Sprague <spikuru@google.com> new video bottom bar ui

crossfade record <-> stop
full bar <-> single button cicle wipe

Change-Id: I58e0ddd94221374809acd52a6f0649e419203f54
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0a6a8d8e4e1c9796aac606379a42970cdffb8911 10-Jan-2014 Erin Dahlgren <edahlgren@google.com> Sync dependencies between bottom bar options.

* Centralizes the bottom bar button customization.
* Makes HDR+ and front camera exclusive.

Bug: 12469207
Change-Id: I65e3d16d314a26889f04e9bcc26fa4bf095150b7

Conflicts:
src/com/android/camera/ButtonManager.java
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
18bc7e0a3102fa67b719a6f8b5b2e9590a6d4a6c 10-Jan-2014 Erin Dahlgren <edahlgren@google.com> Merge "Add a refocus on screen indicator." into gb-ub-photos-denali
56688f7019fbe4dee110b7600349f48da9fff601 09-Jan-2014 Erin Dahlgren <edahlgren@google.com> Close bottom bar options menu on specific triggers.

* on touching anywhere in the preview
* after n milliseconds after touching an option

Bug: 12447283
Change-Id: If44d83a601b4281711f7006b2ab771edfd588117
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
a906809bd3e67f3ceaa070baefbdca8c9cb3d766 10-Jan-2014 Erin Dahlgren <edahlgren@google.com> Add a refocus on screen indicator.

Bug: 12475491
Change-Id: Icf62df3232c2f129cd8c09f4b27464d4e645d762
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
bd1b8f910d6f2c94daac304f4bd1a098939474c3 04-Jan-2014 Doris Liu <tianliu@google.com> Centralize camera mode resources

Moved camera mode related resources such as mode theme color, mode
icon, text, mode id, etc to resources xml. And created utility
functions to query for them.

Part II at ag/404854

Change-Id: I828502c76851cc2ed0b632b1ed4bb7f702fee231
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
e2a1f54fbf6a8a7beff5b7695654ca21e63643af 08-Jan-2014 Erin Dahlgren <edahlgren@google.com> Add dynamically sized transparent background to indicators.

Change-Id: Ie9d8214b665ae134fda66c17707d50040cf3f837
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
fe47650a9cac114ca0a16697e3b13ab70893f352 09-Jan-2014 Doris Liu <tianliu@google.com> Merge "Stops playing shimmy after 10 sessions where mode drawer is swiped open" into gb-ub-photos-denali
2c559c4bd3c65e0cb0bca06f30e3bc979038e6f7 09-Jan-2014 Doris Liu <tianliu@google.com> Stops playing shimmy after 10 sessions where mode drawer is swiped open

Bug: 12412506
Change-Id: Ib2e62fa93c5e1bca5eb547a6a74f688f0b0cb633
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
f05962f4e05a9e29faef001ddf3a206f2b554d42 26-Dec-2013 Emil Arfvidsson <ear@google.com> Move the Gallery shortcut to the action bar.

Change-Id: I0f2c7c72ff9ed3b5a243350b562cd4432bea1911
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
37b9f92c89d6d130bd54892c157bc6b614110daf 08-Jan-2014 Erin Dahlgren <edahlgren@google.com> Merge "Show onscreen indicators for enabled and visible options." into gb-ub-photos-denali
1848494bd09c85002d8c59d4feb8a6e0dc32871f 07-Jan-2014 Erin Dahlgren <edahlgren@google.com> Show onscreen indicators for enabled and visible options.

Bug: 12434780
Change-Id: I85a3efba46303fc47f456d696d89b0ca2997f9f6
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
11ddd7389b89e9a876eba607e246e8b8d0dfecdf 07-Jan-2014 Doris Liu <tianliu@google.com> Handle camera orientation change when device is flipped

Bug: 12414864
Bug: 12179046
Change-Id: I645709bdfe6ae5678b4a59b7c4a4c893c2827b52
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
1648c36927501ff32bf2918e8a445118d5208731 07-Jan-2014 Erin Dahlgren <edahlgren@google.com> Add on screen indicators.

Known caveats:
* Does not respect the first orientation change.
* PhotoModule resets flash to default on a mode switch.
* Hdr plus is not sticky on mode switch.

Bug: 12368905
Change-Id: I377f28c6d0f7115371cc9e9dad9378f049bf7d7c
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
ca4a5668c5bcda027bd896ebf17c8ef374e2ac75 03-Jan-2014 Doris Liu <tianliu@google.com> Center preview UI in the live preview rect

Center flash animation
Center zoom animation
Center focus indicator for auto focus

TODO: Gcam focus indicator is not centered in the live preview

Bug: 12114128

Change-Id: I5e7f79fdf6a705789d995fc3bf3570262bc8bb49
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b000e760360f09c0014272407f50ca24b9e685a7 21-Dec-2013 Sascha Häberling <haeberling@google.com> Merge "Temp fix the crash going out of photosphere" into gb-ub-photos-denali
482de029dc20e0a577388a602985fb31c3200309 19-Dec-2013 Doris Liu <tianliu@google.com> Touch to focus

Change-Id: I69860bd05426e3a04bc5fd7d0dd581b5d6ff768d
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
c42677f21836df8dac60ba73d6a2bd0b4ef33f44 21-Dec-2013 Doris Liu <tianliu@google.com> Temp fix the crash going out of photosphere

Change-Id: I88cc9619a6057e9984d091ea9c92d80209df8cb5
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
5e2ace6c4b421a31e19463ca84b6bc9c3e165d7b 21-Dec-2013 Spike Sprague <spikuru@google.com> Merge "disabling swipe gestures for capture intents" into gb-ub-photos-denali
db290c33bd0250b473c475254cbfbbd19dd72430 21-Dec-2013 Erin Dahlgren <edahlgren@google.com> Merge "New Capture UI." into gb-ub-photos-denali
4efa8b54c1df4e06f2d3caed2568015a737f9dda 18-Dec-2013 Erin Dahlgren <edahlgren@google.com> New Capture UI.

* depends on ag/400799

Change-Id: Ieb0e27447659bcb04dee57348583f68d680408d2
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
c050a9475312db95bcd6d3ec8480065ee8104954 20-Dec-2013 Spike Sprague <spikuru@google.com> disabling swipe gestures for capture intents

Change-Id: I65ac74ac855fe3ee95339a29aecdab1fe74e4659
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
4d4a4bc8891bbfc5a7ca842f2981829ac3a716e8 20-Dec-2013 Doris Liu <tianliu@google.com> Hook up with camera for accurate timing of new frame

TextureView's onSurfaceTextureChanged callback has been proved
inaccurate in terms of timing for new frame, which contradicts
the documentation. Nevertheless, we need accurate timing to
ensure smooth mode change.

Bug: 11963674
Bug: 11767246
Change-Id: I8673174ac5e191c0ab7c4377ff81b3e0889f8831
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b9b7240d62dd2ad245f2c0e09fd1056a28687978 20-Dec-2013 Doris Liu <tianliu@google.com> Hide mode drawer when back is pressed

Bug: 12105158
Change-Id: I0c17fe979e732dad465798ea647d90fb30077c26
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
8a2350a3d557465b53445685db0f9ac838cf90c5 17-Dec-2013 Angus Kong <shkong@google.com> Refactor the photosphere/refocus metadata loading.

1. Metadata added to allow for different attributes to describe LocalData.
2. Move the metadata loading process to image data loading.
3. LocalData.view() removed. The invocation of external viewer is moved back to
the activity.

bug:12197251

Change-Id: I496b018186f7a4b4818b976201703b966103a636
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
70da918464276b110c43868caa272c97baadb89e 18-Dec-2013 Doris Liu <tianliu@google.com> Centralized TextureView transform logic

Automated transform matrix adjustment and bottom bar adjustment for
orientation or preview size change.

Bug: 12177718
Bug: 12179046
Change-Id: I4cd6fc90bb549774cfd83aaf8ac9654711a5c752
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
4a010db8a60008b2bf67b93b64f77f63affc29f3 17-Dec-2013 Doris Liu <tianliu@google.com> Fix hdr+ preview wrong rotation

TextureView has accumulated OnLayoutChangeListener's over time: Modules
add a new listener to it when initialized, but never remove the listeners.
As a result, stale listeners are called when there is a layout change, and
consequently change the transform matrix incorrectly.

Bug: 12168516
Change-Id: I1aa77e682427ed074e8dc2d0574ea013e9e01fc6
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b897a1e924394cb2196929975cf0c5cb542dd85c 17-Dec-2013 Doris Liu <tianliu@google.com> Fix HDR+ 100% view finder

Change-Id: I46fe8821ace8cc58a692bee83c162acd2e027c56
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
ee408db25ab578488b6f761478b743c6c1a6318b 14-Dec-2013 Doris Liu <tianliu@google.com> Merge "Improve mode switch jank by reducing redundant transform matrix change" into gb-ub-photos-denali
10e7ca2f12018703657d8f6136bfaedf5f447eb4 14-Dec-2013 Sascha Haeberling <haeberling@google.com> Merge "Clean up unused camera controls." into gb-ub-photos-denali
ab05a742fb03b2016d2792c7b06f268d3dd82701 14-Dec-2013 Sascha Haeberling <haeberling@google.com> Clean up unused camera controls.

These are only used by LightCycle right now and will eventually
disappear completely when we introduce the new bottom bar.

Change-Id: I2e81db63b8f3602bc0be58edeef7017e91cad04b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
e038c161389b5d1c0476e315736df31562328894 14-Dec-2013 Doris Liu <tianliu@google.com> Improve mode switch jank by reducing redundant transform matrix change

Change-Id: I2ab4167d9645fe9156a0be98d3e93fa179b8936f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
e4002f3a703a1835dce30d74ccfc22e00956e13f 14-Dec-2013 Angus Kong <shkong@google.com> Avoid double tapping the share button.

Might fire the share intent twice.

Change-Id: Ib4efb2302a2bee8fa6b9eaab6896fc75512734f3
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b6eaa8c70da19fb3233c3c4b1a2625ce90fc35af 12-Dec-2013 Doris Liu <tianliu@google.com> Mode selection animation

Change-Id: I3741f71add7e506a974602cefa6edfdbeb442fa0
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
1dfe7828fd60741b9752553af3ee439c04e758a0 12-Dec-2013 Doris Liu <tianliu@google.com> New flash animation

Change-Id: I266b631a5c6feac114467e0a05799ad5e1ffae92
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
e0aff89f3e05eb6008651b290ba79d484de55970 12-Dec-2013 Angus Kong <shkong@google.com> Move buttons from action bar to bottom.

Known issues:
1. Share has no effect.
2. Gallery icon has no effect.

bug:11898278

Change-Id: I545e4dc339b6aa9242f61abb6021de874fcd3090
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0f3c4b4fc9ac87d7d4c3d04c3cb3426c711f57ea 11-Dec-2013 Spike Sprague <spikuru@google.com> unify preview and bottom bar resizing code
move bottom bar button into own layout files

Change-Id: Ib6237fddaa545476563b796cbd752b9562e9d9e4
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b2510252fb020f3ccb88787c870930427377b9df 11-Dec-2013 Angus Kong <shkong@google.com> Refactor filmstrip BottomControls out of filmstrip

1. The control logic should stay in the controller instead of the view.
2. Fix various issues.
3. Remove some unnecessary hacky checks.

bug:12089863
bug:12095905

Change-Id: I6fceb5bf1a3121c45bc509f2fa96d01db2cedb5d
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
2b906b8c9754b564d5113c7a342654c82f97f180 11-Dec-2013 Doris Liu <tianliu@google.com> Show a camera theme cover until preview is ready

Also removed the toast for tap to take video snapshot

Change-Id: I85025a9d09842097403e5ea7ce7391ea0ed9ec98
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
01054e922aa547b937a71131ad04c6bd15356240 10-Dec-2013 Angus Kong <shkong@google.com> Move/refactor filmstrip related files around.

1. Rename filmstrip.FilmstripDataAdapter to filmstrip.DataAdapter.
2. Rename filmstrip.FilmstripImageData to filmstrip.ImageData.
3. Move filmstrip.FilmstripListener to filmstrip.FilmstripController.Listener.
4. Add FilmstripContentPanel interface.
5. Move ui.FilmstripView to widget.FilmstripView
6. Move ui.FilmstrpLayout to widget.Filmstripview
7. Move ui.FilmstripBottomControls to widget.FilmstripBottomLayout
8. Extracted interface from widget.FilmstripBottomLayout as
filmstrip.BottomControls

Change-Id: I83bdd89e2a48a98002a4fed7dab011b28036d1a0
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
06db742814dd635d100639f977fcfdc904deb778 10-Dec-2013 Doris Liu <tianliu@google.com> Setup preview status listener for preview related changes

Change-Id: Ibd8341dfbe5e03ec77c149e671f4dd991833e678
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
faaee012acc80ad369cb03df9c196e48140f1e7b 07-Dec-2013 Angus Kong <shkong@google.com> Re-design callbacks from filmstrip.

Enumerated the possible states of filmstrip and have proper callbacks when
entering/leaving each of the states.

Change-Id: I5a6e931095bb0792e0832fda11d1f1b5ba850263
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
5b6502597edfd4658a937de2b5121dabf3510d52 07-Dec-2013 Angus Kong <shkong@google.com> A quick not-so-good fix for action bar issue.

Will remove this fix after the filmstrip callback is re-designed.

Change-Id: Ie445581ab8c3a1fc3e474bef96366932d52ddcc9
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
b41034b16b0dce997544d2592db5029e7db4e238 07-Dec-2013 Doris Liu <tianliu@google.com> Keep swipe left/right functioning in all modules

Change-Id: I230b93c713a038595a06581cf10f48f49f50196b
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
c6c9740d996bf073a157721aa3eb2a1aa60c477d 07-Dec-2013 Doris Liu <tianliu@google.com> Cleanup after camera root is moved out of filmstrip

Change-Id: I9e6efea3848f2f618aefc888ba7cca364fb64085
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
f9e4f8fbd1f761443d7a1eecbb5aa221ed3a06a8 05-Dec-2013 Doris Liu <tianliu@google.com> Redesign preview Overlay for simplicity

Simplify how preview overlay should be setup from each module
Refactored PhotoUI and VideoUI to use the new Overlay

Change-Id: Ia8c7c71215007c9aaba69e55353b554e8fdf3c90
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
166e36fb6e04d40a1bef0459ee6b96c9c736039b 03-Dec-2013 Angus Kong <shkong@google.com> Implement the new filmstrip UI - first step.

More fancy stuffs will be added in the following CLs.

Change-Id: I065c7baf1ff9695121db4917158ffecd0bfc0d01
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
0744e4ab3ec5f0270bdad33e7c477f52ba680bbd 22-Nov-2013 Marco Nelissen <marcone@google.com> initial simple camera pruning and refactoring

100% preview and new ui bottom bar

bug: 11514604
Change-Id: I010c8aaa41ad6791ce2443ef159ea22cc1e8346f
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java
f55f3c461c5a6ae6b61fa75562ca01683aa93f9a 20-Nov-2013 Doris Liu <tianliu@google.com> Pinhole animation, quick switch between photo and video

Also, first pass of the view hierarchy refactor.

Change-Id: I6c80191f15908bd24c16b76df6ef92df3ef905fc
/packages/apps/Camera2/src/com/android/camera/app/CameraAppUI.java