History log of /packages/apps/LegacyCamera/src/com/android/camera/Camera.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
996546fcf4058d98d9aceecb4086283e17ae6c9d 27-Apr-2016 Lingfeng Yang <lfy@google.com> Prevent camera app crashes on changing hw.camera.* settings

If the AVD's config.ini changes hw.camera.*, this is effectively,
connecting/disconnecting camera hardware, and the current
way in which camera settings are handled assumes
that the set of cameras never changes, which can lead to
the camera app crashing if the camera app was used successfuly
with one configuration of hw.camera.* and then
the AVD was restarted with a different configuration.

In particular, the crash happens if the number of cameras
has been reduced since the last run, and the camera app
is looking up a preferred camera ID that is not supported
by the new number of cameras.

bug: 28417929
BUG: https://code.google.com/p/android/issues/detail?id=206945

Change-Id: Ib0e26ae77d376f31f3cc281e386d3c67291c1edc
(cherry picked from commit 8f339abd9245577c348f5ba22322e8801c21faf8)
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3ae6814e3017ea25a57a0f885579022c4faf4e84 13-Jun-2012 Angus Kong <shkong@google.com> Fix NPE when only front cameras are available.

bug:6643208
Change-Id: Ie4eef4a671091cd9557d1c51ab5c3919b6b30652
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1461b5333aab31faee65272d64c2ac7f9809d4d0 05-Jun-2012 Eino-Ville Talvala <etalvala@google.com> Rename Camera to LegacyCamera for SDK inclusion.

The SDK needs a camera app that does not require GPU acceleration.
The Camera app from 4.0.4 meets these requirements.

Change-Id: Idb42d4b9e47d584ef1da10e3ba672d537c8db94b
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7c881ad57ef6e4e1a2ced01eefedbc6d5ecc4418 28-Nov-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE if the camera cannot be connected.

bug:5673972
Change-Id: I85587bd982e0af5dd7c3630958e105571d8e12d9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
749d056cd82ebfe6e613596d9e22dd355aeeec41 21-Nov-2011 Chung-yih Wang <cywang@google.com> Dismiss open menu if exists.

bug:5648754
Change-Id: I44be2226e65de76e6240adc7b554e0ee7cda2226
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
90089f9eddde732725c43dcad07f4567ed8cb776 18-Nov-2011 Wu-cheng Li <wuchengli@google.com> Update camera sound API.

bug:5640219
Change-Id: Ic3af6527f3025ec04ba4be16b621b462f89953f1
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0ca031ca9fef394f27b7cc9722ffc5a198cb964e 16-Nov-2011 Wu-cheng Li <wuchengli@google.com> Rotate priority indicators according to the device orientation.

+ Do not show flash indicator if it is off.

bug:5039279

Change-Id: I329b63d04f46fbe23f5ade3e4cacf446ce41f98c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f30e0fcdd498713b82f8ad0922baa4a8f030dcd9 15-Nov-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Switch sound playing to use Camera.playSound()" into ics-mr1
34238165cfdf04584587360dfcf21109bf09e144 14-Nov-2011 Wei Huang <weih@google.com> bug #5612744: guard against NPE found by Monkey.

cl https://android-git.corp.google.com/g/#/c/149421/5 removed the null pointer checking. This leads to Monkey crashes. It seems that we either need to call initOnScreenIndicator() in onCreate(), or check for null in the updateXXXIndicator() methods.

I thought about moving initOnScreenIndicator() to onCreate(), but didn't want to introduce any latency for starting up the camera app.

Change-Id: I8b9fecb5eb77dc1afef9725fd3d3d4dbe5048c9d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
419d20ae123f53226ccefb7d28d8a40add8ffd0a 11-Nov-2011 Chung-yih Wang <cywang@google.com> Add a rotatable toast class.

bug:5575970

In order to show the toast in a landscape orientation with portrait
layout. The rotatable toast helper class is implementated and is also
applied for first-hint toast messages.

Change-Id: I942e87df1c1a4509d01cd41e2ecbdc2e2dfec049
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b67c2c4982a01f72763a93c8e366cf713bca0918 11-Nov-2011 Wei Huang <weih@google.com> Merge "Add indicators of settings on the viewfinder." into ics-mr1
204224ce0423e4a6a29fa015128131c71b9bb9d8 11-Nov-2011 Chih-yu Huang <akahuang@google.com> Add indicators of settings on the viewfinder.

Add exposure, flash, scene, white balance, and focus indicators.

bug:5039279
Change-Id: I7ef87ee35855030dbc8fdc2d4c52fa5d8b6549ba
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
72eaced345def3746038f1aba3efe2845b274884 10-Nov-2011 Wu-cheng Li <wuchengli@google.com> Do not reset the focus if next snapshot is pending.

+ Suupose autofocus is focusing and a picture will be taken when
focus callback arrives. Remeber the next snapshot request if
the shutter button is clicked.

bug:5589632

Change-Id: Ice8df7145f68996bd307fa5914e1c672bc624239
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d628e27f561c4bedf0d457f64270fc12740b5280 09-Nov-2011 Eino-Ville Talvala <etalvala@google.com> Switch sound playing to use Camera.playSound()

Instead of using a few private APIs to properly manage audio output
for panorama, effects recording, and focus notification, use the new
Camera API for sound playback.

Bug: 5447107
Change-Id: I7d5a3d9502f36c199ea75a89e2c6b878185f880f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f78664a2246e7eac2b3c948b79b9d51a7de62965 03-Nov-2011 Chih-yu Huang <akahuang@google.com> Prevent starting face detection twice.

bug:5563371
Change-Id: I23231c4c629ab85f203470368d40d67c91e43db2
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
19346d5702f5848167c16d71941e2c48cd17ed05 03-Nov-2011 Wei Huang <weih@google.com> Merge "The dialog for comfirmation is made rotatable." into ics-mr1
ae557ecc220f9d491e8c65b1c895827fbedcdafe 02-Nov-2011 Angus Kong <shkong@google.com> The dialog for comfirmation is made rotatable.

bug:5481928

Change-Id: Ic9a34b0f9e8d920afa5aec36561892045480e18c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b455c45a3fc04623bfd81573c8a88101a2afcceb 02-Nov-2011 Chung-yih Wang <cywang@google.com> Enable camera controls after wakeup.

bug:5516230
Change-Id: Ibf0ab46070af9440f3c7fbef116d65264db0ea7e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d33109730e0ab81230f84e2bd35599e8e24fc4ba 17-Oct-2011 Chung-yih Wang <cywang@google.com> Change the default orientation to portrait.

bug:5446617

Since the orientation is mainly portrait on phones, the default
orientation of an application will decide if the window animation will
be played before it starts. In order to reduce the launch time of Camera
apps, this change is to skip the window animations by changing the default
orientation to portrait.

Change-Id: I6682ab408d7e8d1f0580f3c1600b6c9c3d6a7f6e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
abf79a3e25e6c631275e9f81424c0aa25ec9191b 01-Nov-2011 Chih-Chung Chang <chihchung@google.com> am 4d55f6cb: Merge "Remove long pressing shutter triggers autocous." into ics-mr0

* commit '4d55f6cb82c07a6191d2ab8e78fbab8c31e9db89':
Remove long pressing shutter triggers autocous.
d6e5029b2df45210834334f7c2e99dfc85e962f0 28-Oct-2011 Chih-yu Huang <akahuang@google.com> Show video snapshot toast in first use.

bug:5494290
Change-Id: I7cb498ef50610d300a64d9d053b0a411d86da730
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
60dc073ff3087af41f9cf3b738eaa74bb2212f95 27-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5310099: Accept an array of default values for ListPreference.

The reason we want an array of default values is some of them may
be unsupported on a hardware platform. The first supported value
in the array will be used as the default value.

Change-Id: I9e372304ec0eaea3181cf70c352a50b82d4b8c58
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
30e2c49eedfbce51be7458161829a750f809d56d 27-Oct-2011 Wu-cheng Li <wuchengli@google.com> Remove long pressing shutter triggers autocous.

autoFocus behavior has changed in CAF. The focus callback
will not return immediately if CAF is scanning. There is
no need to have long pressing behavior.

bug:5514415

Change-Id: Iacf14fa3ad48b03c79122296a74e7511c41ea62f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b8bd7ee0f8b0c3e0381ae6364bbeca4f28bdf7a4 25-Oct-2011 Ed Heyl <ed@google.com> Merge remote branch 'goog/ics-mr0' into ics-mr1
3ade8655b875f3fb4b8a4bfd09841f77e4fbe29d 24-Oct-2011 Wu-cheng Li <wuchengli@google.com> Fix startFaceDetection RuntimeException.

Sometimes startFaceDetection is called twice and exception
is thrown.

Reproduction steps:
1. Set screen lock to none.
2. Start camera app and press power key to turn off screen immediately.
3. Start camera app.

bug:5497940
Change-Id: I3337d70e473943f5306cb459ce79c0faa45b77af
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
83abe885d9809c1404a1f7e17537ee9a9c61fb57 21-Oct-2011 Chih-yu Huang <akahuang@google.com> am 048edf2e: Fix focus area in front camera.

* commit '048edf2ef22607b85bc4b062e2af71804f5b3530':
Fix focus area in front camera.
048edf2ef22607b85bc4b062e2af71804f5b3530 21-Oct-2011 Chih-yu Huang <akahuang@google.com> Fix focus area in front camera.

Front camera preview is mirrored. Change to use matrix to
calculate the focus area. So the focus area will be
correct in all orientations in front or back camera.

bug:5446617
bug:5461028
Change-Id: I2d39a22cd9f034c5028843ca3d4abe0f9962f18a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f5ba96adb5d72f9cac77ff21614f54e0d2bbb795 21-Oct-2011 Jim Miller <jaggies@google.com> am 7d9eadd0: Fix 5491362: don\'t open the camera in onResume in lockscreen.

* commit '7d9eadd0c6c38b3761b7e8d3fa3658d194810d60':
Fix 5491362: don't open the camera in onResume in lockscreen.
7d9eadd0c6c38b3761b7e8d3fa3658d194810d60 21-Oct-2011 Jim Miller <jaggies@google.com> Fix 5491362: don't open the camera in onResume in lockscreen.

Change-Id: I678dd23f1603647e801c339a557fc08b53dbfa38
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
30dae69d0ec4daae57177bc8fd352c3c810b3171 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> am 71d40934: Merge "Fix camera app crash when failed open the camera." into ics-mr0

* commit '71d40934176ee23be9a91ca0aa33656e1cce8ce6':
Fix camera app crash when failed open the camera.
62546767541adbce7672f678bdaa26bbf22d9b64 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> am cf2f19fb: Merge "Fix AE and AWB lock were incorrectly unlocked during autofocus." into ics-mr0

* commit 'cf2f19fb053bfe7f39c552b67ffdfc72119ab2d1':
Fix AE and AWB lock were incorrectly unlocked during autofocus.
3607e8834aa3ae20a78c55f3d59686617df0efdf 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> am 27c97af5: Reduct latency by starting face detection after preview is displayed.

* commit '27c97af52157672f6201215d2e07497ff6361a8e':
Reduct latency by starting face detection after preview is displayed.
71d40934176ee23be9a91ca0aa33656e1cce8ce6 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> Merge "Fix camera app crash when failed open the camera." into ics-mr0
cf2f19fb053bfe7f39c552b67ffdfc72119ab2d1 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> Merge "Fix AE and AWB lock were incorrectly unlocked during autofocus." into ics-mr0
43083162b9ac8faf83a393cccaaf661d45ae2a8e 20-Oct-2011 Angus Kong <shkong@google.com> Fix camera app crash when failed open the camera.

bug:5488657
Change-Id: If22aca555b3f83ea754a67018feea69d6e97031b
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
27c97af52157672f6201215d2e07497ff6361a8e 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> Reduct latency by starting face detection after preview is displayed.

bug:5446617

Change-Id: I3ddbf269ab882360206fecb59f67ff894b950422
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
53be34deae057cfa297c3ee73eee91f880272650 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> Fix AE and AWB lock were incorrectly unlocked during autofocus.

The only actual difference of this patch is not to unlock AE
and AWB when the state is STATE_FOCUSING_SNAP_ON_FINISH.

bug:5483130

Change-Id: If5108ef3c3677ebed96a291a505408ebfdc4668e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0042b3b48b693a46030ec02f31df625b767e4977 19-Oct-2011 Eino-Ville Talvala <etalvala@google.com> am 7b52266b: Merge "Add hysteresis to orientation rounding." into ics-mr0

* commit '7b52266b6f9af570f1fdb200a1d0fa7947344e1a':
Add hysteresis to orientation rounding.
131cf9886c4f34431598be0b1f5b7aaa915277cc 18-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Add hysteresis to orientation rounding.

This prevents fast flickering between two orientation states, which
can result in ugly UI issues, especially with the preview thumbnail.

Bug: 5477483
Change-Id: I9513547207ae1918066c1a19947c974eaad72e24
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1508ab60efb9264484ab8811dee256944e4885d7 18-Oct-2011 Wei Huang <weih@google.com> am d7a60abb: Merge "Disable Thumbnailview when Panorama capture is inProgress." into ics-mr0

* commit 'd7a60abbee203872df4b5ab9a873e7efad80e239':
Disable Thumbnailview when Panorama capture is inProgress.
d7a60abbee203872df4b5ab9a873e7efad80e239 18-Oct-2011 Wei Huang <weih@google.com> Merge "Disable Thumbnailview when Panorama capture is inProgress." into ics-mr0
af327d0b5571a9bcddd3f8d69ec25dd4fc59e5b7 18-Oct-2011 Wei Huang <weih@google.com> am ff55f519: Merge "Lock AE and AWB before autofocus starts." into ics-mr0

* commit 'ff55f519629fbe839fe051108b396565403d696e':
Lock AE and AWB before autofocus starts.
ff55f519629fbe839fe051108b396565403d696e 18-Oct-2011 Wei Huang <weih@google.com> Merge "Lock AE and AWB before autofocus starts." into ics-mr0
ad805f2cad2d846790252eed337c638bf4a8c0d8 18-Oct-2011 Wei Huang <weih@google.com> am e4a29ba9: Merge "Fix the NPE in onPause()." into ics-mr0

* commit 'e4a29ba9b6e04a0e708d3653ecba927968d8da59':
Fix the NPE in onPause().
e4a29ba9b6e04a0e708d3653ecba927968d8da59 18-Oct-2011 Wei Huang <weih@google.com> Merge "Fix the NPE in onPause()." into ics-mr0
fc86176be4d413322e738e0e0b961e2b075dda2b 18-Oct-2011 Wu-cheng Li <wuchengli@google.com> am 136c335a: Fix 5472996: NPE in switchToOtherMode.

* commit '136c335a69069bbb07af1a842acc4629c3131139':
Fix 5472996: NPE in switchToOtherMode.
136c335a69069bbb07af1a842acc4629c3131139 18-Oct-2011 Wu-cheng Li <wuchengli@google.com> Fix 5472996: NPE in switchToOtherMode.

Change-Id: Ied128d3cf5e8ee632c46f371aeaa0a42bb2f1cb5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4a3026b84fa4fd403317b30b6a9db61125fecfa2 15-Oct-2011 heech.park <heech.park@samsung.com> Disable Thumbnailview when Panorama capture is inProgress.

Step 1: Go to Camera
Step 2: Change to Panorama shot
Step 3: Capture
Step 4: During capture tap on the album quick view
Step 5: Observe that we are able to view album from quick view while capturing as panorama shot.

bug:5475248

Change-Id: Ia74906e4a4c6b8b04e96724f76f98a37eaeb3189
Signed-off-by: Braganza Sam Roberts <sam.braganza@samsung.com>
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
bcb097dbf1319edc84ae9bed51fa30b3ae6e3fd1 21-Sep-2011 Wu-cheng Li <wuchengli@google.com> Lock AE and AWB before autofocus starts.

Now camera API specifies autofocus does not lock AE and AWB.
So the application locks AE/AWB when focus starts.
AE/AWB are unlocked when focus finishes or preview starts.

bug:5441274
Change-Id: Iddf21a413234bc3569187f4696d54099c362d008
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
24db47192bfa37ac77b0be474b3ad9d8c0366e78 18-Oct-2011 Chung-yih Wang <cywang@google.com> Fix the NPE in onPause().

bug:5474906

We changed the order of onCreate. mLocationManager can be null if the
app fails to open the camera.

Change-Id: I31d3af5717ee320b6fb108db7f6c129355b366d9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
37cd6529b6a876d01fe2306e375687cd9a0a0c45 14-Oct-2011 Chih-yu Huang <akahuang@google.com> DO NOT MERGE

Change low storage threshold to 50MB.

bug:5334604
Change-Id: I410bcf7322c71d1ca25d3de36d574616411b5533
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7ecbbadc3e459a05519c39cb3d2e8e6907daa4d9 14-Oct-2011 Chung-yih Wang <cywang@google.com> am 6bfe6df5: Improve the launch time.

* commit '6bfe6df5ea40684d56f4736da76b5680515f05ae':
Improve the launch time.
6bfe6df5ea40684d56f4736da76b5680515f05ae 14-Oct-2011 Chung-yih Wang <cywang@google.com> Improve the launch time.

bug:5446617

Since there are two major blocking operations(openCamera and startPreview)
which are dependent and time-consuming, we have to take advantage of
this blocking intervals to do the layout inflation(setContentView) and indicator
initialization concurrently to reduce the launch time.

Change-Id: Ibbc3563ad3e8ccea409f61a5af9a8bdae0352579
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7f7401e54e51feb2e2aabc2535f3c6543d08653a 14-Oct-2011 Chih-yu Huang <akahuang@google.com> Merge "Change low storage threshold to 50MB."
a5edbe951a507a066f7601204e633dbd2dff3224 14-Oct-2011 Chih-yu Huang <akahuang@google.com> Change low storage threshold to 50MB.

bug:5334604
Change-Id: I410bcf7322c71d1ca25d3de36d574616411b5533
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3ebe49d8f1b4defb7cfd4850a14e795aada2ebd1 07-Oct-2011 Chih-yu Huang <akahuang@google.com> Rename function "setDegree" to "setOrientation".

bug:5244256
Change-Id: I6f5c96a5e1fefab5fa09a12fd3a0cf169bcbc6f5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3069cb81151aa984cab6ba8cc2d944b43099efba 13-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add video stabilization management to the application." into ics-mr0
1bca5eaaa3c6d3fd36df572546715e4e515cf9e6 13-Oct-2011 Wu-cheng Li <wuchengli@google.com> Simplify code about ShutterButton.

bug:5447399
Change-Id: I240d7523509f27d333a0ef69e6e0d3228a41e9de
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
73ab0023b4a9d86ac5fa844116a83aa6c52acf0c 13-Oct-2011 heech.park <heech.park@samsung.com> Implemented full scan AF followed by capture on long pressing the shutter button.

1. In CAF, do full scan AF followed by capture on long pressing the
shutter button.
2. Capture is triggered only if long press is released on the button.

bug:5447399

Change-Id: I9c7d75d76074e2e20d1f1926388315cec2c22eed
Signed-off-by: Raji Reddy Kandi <rajireddy.k@samsung.com>
Signed-off-by: Sam Braganza <sam.braganza@samsung.com>
Signed-off-by: heech.park <heech.park@samsung.com>
Signed-off-by: heech.park <heech.park@samsung.com>
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
07d5f8c27d144f7e72820b48fe5cb08f691435ad 12-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Add video stabilization management to the application.

- Still image mode: Disable vstab if it is supported
- Camcorder mode: Enable vstab if it is supported
- Camcorder with effects: Disable vstab when using
background replacement, enable otherwise

Bug: 5440224
Change-Id: Ibb9744b601d9bb122618e5eeaec00f50ee54cbee
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3681d0503694ace9674800395929ac429be9590a 11-Oct-2011 Wu-cheng Li <wuchengli@google.com> Do not call cancelAutoFocus after stopPreview. (do not merge)

API did not define if cancelAutoFocus is allowed after stopPreview.
Work-around this before there is a conclusion.

bug:5397951
Change-Id: I5a23f02ac646b3f2a070d0d06847de3899484a72
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9d80a29af1ed57eded5d20af51ef5e704b32b452 07-Oct-2011 Chih-Chung Chang <chihchung@google.com> Remember the snapshot request when the previous one is still in progress.

Change-Id: I6916f775c1143a87c326e5450dfbdaf3008bc3b7
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d534023dbdb0470163f79aa40beb1f00b28fe378 07-Oct-2011 Chih-yu Huang <akahuang@google.com> Merge "Let review icons rotatable."
c5bc067250fad1a246ea22604260d01aab627ba4 07-Oct-2011 Wu-cheng Li <wuchengli@google.com> Merge "Do not restart preview if only the size of the surface changes."
94ca8baae7e6e3885d895c095890eabf30d922e2 07-Oct-2011 Chih-yu Huang <akahuang@google.com> Let review icons rotatable.

bug:5244256
Change-Id: Ieed6119f22598a34eeb1672d07f55a876dced791
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f41e094f3ddd07db3c011250e635ffc880a099ac 07-Oct-2011 Wu-cheng Li <wuchengli@google.com> Do not restart preview if only the size of the surface changes.

This speeds up the below case:
1. Start camera app.
2. Power off the screen.
3. Power on the screen.
4. Slide the center to the left to start camera.

The camera app is already started behind the lock screen. When the
lock screen closes, the camera app now just call setDisplayOrientation
again. Camcorder app is more complicated because it has effects.

bug:5422679

Change-Id: I26d89c97edefe7f46d0ae51759ff791ea43c7cac
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3e5f954de2bcb7df695b069b18c8b6083accb19d 06-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5371242: Reduce shot-to-shot time by moving image saving to another thread.

This is a follow-up change to add more comments and limit the queue length.

Change-Id: I1aded7a87be2657a6527d924d188fb3f479ca87a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8e74e273f87b6f144fa68fe8d98bc34b5c45af3a 06-Oct-2011 Chih-Chung Chang <chihchung@google.com> WIP: Speed up shot-to-shot time by moving image saving to another thread.

Change-Id: I4e7d1d8921caf28f06696d58737274de26f8adc4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1acf35ce296efc6b3ad823a9500f79f71c545201 06-Oct-2011 Wu-cheng Li <wuchengli@google.com> Change focus sound.

bug:5401870

Change-Id: Ifb5c61ad52489c0b8fb711ba6ada624f20f0e880
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2fc09f97eceef3659572d695cadd791b4dcfd19c 05-Oct-2011 Chung-yih Wang <cywang@google.com> Rearrange the second level indicator set.

bug:5360827

+change the icon spacing to 16dp
+Store the geodata in the video.

Change-Id: I133871066b6b9a8918f861f0510e3996d5b0f839
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
dace9de3dae5f89dd226782f3a16147e6c6a95b7 03-Oct-2011 Wu-cheng Li <wuchengli@google.com> Revert "Lock AE and AWB before autofocus starts."

This reverts commit d5b2118fc4aa377a3c4f5e4052745f14ec78b2c4.
This commit incorrectly calls setParameters during autofocus.

bug:5365121
Change-Id: If039e56390bfb94c518a3381001095bce050de7e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
870d55b7ed96b842f4e0ee5ac2160643adf34794 30-Sep-2011 Chih-yu Huang <akahuang@google.com> am bd29d3c5: Use smaller focus area and larger metering area.

* commit 'bd29d3c5d59b375d77334aaa426545dc781b95fd':
Use smaller focus area and larger metering area.
bd29d3c5d59b375d77334aaa426545dc781b95fd 30-Sep-2011 Chih-yu Huang <akahuang@google.com> Use smaller focus area and larger metering area.

Change the length of focusIndicator to 1/4 of height.

bug:5371513
Change-Id: I1a242b9caec9c59c4d6ce2cd70fcf6d4e55dcfc9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
175d7d64e2990e92eb1609f8f706b6f568b22800 29-Sep-2011 Wu-cheng Li <wuchengli@google.com> Reset zoom UI in onResume.

Zoom value was reset to 0, but the UI was not updated.

bug:5390413

Change-Id: I16ef04012c13f4e9acbbf44a957e01960570f4bc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
10bc9cb3578d877c8e3eb944e0c4282b1ba1b0c6 29-Sep-2011 Chung-yih Wang <cywang@google.com> Merge "Fix ModePicker selection UI."
ea312297ff6132bbafed99b90a72e4858b888fa4 28-Sep-2011 Angus Kong <shkong@google.com> Add dimension attributes to MediaStore.

1. Width/height of still images added.
2. Resolution of videos added.

bug:5376821
Change-Id: I809743ae777e6bbc01e3a86651e7cd6489a81c86
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
46f4430b50ba8ca8b04b698d45d9ca2d4513121d 28-Sep-2011 Chung-yih Wang <cywang@google.com> Fix ModePicker selection UI.

bug:5353407

-The mode icon should be highlighted when tapped, not after the mode
picker has animated closed.

Change-Id: I6ff29acb2952653c2b6ebde447e160e202fd7fc6
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c159dfe54fbc0f055a1d760f1614db4a8bcec94c 28-Sep-2011 Angus Kong <shkong@google.com> Change the option menu items for Crespo.

bug: 5164126
Change-Id: I63014a3ffc24f734b08ff45e485951347c83800f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f1244801b6b24053b8a81f353229d63d6d801763 27-Sep-2011 Wu-cheng Li <wuchengli@google.com> Merge "Clear the share popup when a new thumbnail is generated." into ics-factoryrom
db288b8686e5bcecef620176b934b00eb0742597 27-Sep-2011 Wu-cheng Li <wuchengli@google.com> Clear the share popup when a new thumbnail is generated.

When a new thumbnail is generated, the share popup still keeps a
reference to the old thumbnail. Clear the share popup so the old
thumbnail can be garbage collected.

bug:5336037

Change-Id: I8de6bdb82f6f36cfb8190929f99a7c278eefe7e5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1743de666ba52fd8a32babb36de01c7e3b56c2a7 23-Sep-2011 Gilles-Arnaud Bleu-Laine <gilles@ti.com> Prevent re-compression of thumbnail upon closing camera

Thumbnail is compressed to JPEG at 90% quality every time the application is
closed. This behavior causes the degrading issue that the quality of thumbnail
is getting worse.
Adding a new flag to ensure thumbnail is compressed and
stored only when it is newly generated.

bug:5371985

Change-Id: I90cedeebf2d4c5dfc25e6524529f7f1e5a6f63fc
Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3c454fc97678e8967cbc6c8a4a67097c5bdb2422 26-Sep-2011 Wu-cheng Li <wuchengli@google.com> Call cancelAutoFocus in startPreview and before release.

Now camera API specifies focus it not reset by stopPreview or
takePicture. This is especially important when the mode is
FOCUS_MODE_CONTINUOUS_PICTURE because the focus will be paused
after autoFocus is called.

bug:5356404

Change-Id: I027df2b8b4092183668c21f4d97a84ad73a9d396
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
70c9730d0cbdcd64d29928f8de293c6c753deba7 23-Sep-2011 Wei Huang <weih@google.com> Merge "Clear zoom listener and error callback when leaving." into ics-factoryrom
fe45771b64882d2c025e09cb5937772fa47fb345 23-Sep-2011 Chih-yu Huang <akahuang@google.com> Clear zoom listener and error callback when leaving.

bug:5336037
Change-Id: Ib1ffb7694625d63161e2cc52a7d755614d4b63bb
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b62bb6946185959ad28577fdcb175f2bd92bb014 23-Sep-2011 Wu-cheng Li <wuchengli@google.com> Fix setParameters failure if users keep pressing shutter.

Do not call setParameters, autoFocus, or cancelAutoFocus if the
snapshot is in progress.

bug:5359430

Change-Id: I17a367643c85e0e65b2ba3f9c1ab9ace86c52722
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d5b2118fc4aa377a3c4f5e4052745f14ec78b2c4 21-Sep-2011 Wu-cheng Li <wuchengli@google.com> Lock AE and AWB before autofocus starts.

Now camera API specifies autofocus does not lock AE and AWB.
So the application locks AE/AWB when focus starts.
AE/AWB are unlocked when focus finishes or preview starts.

bug:5356404

Change-Id: I9d735404babd5bc84bef5253768221fd7509afca
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
fd140e054faaf9bf45c4dfe226e7f6ca8154c575 21-Sep-2011 Wu-cheng Li <wuchengli@google.com> Fix overridden settings don't stay disabled when resuming Camera.

bug:5340674
Change-Id: Iedb4bdf22cad562a8406739a1d07a758db5d9fc4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b7d0a0704e437a1892fbf2a6e5138cf36df9fde8 06-Sep-2011 Chung-yih Wang <cywang@google.com> New zoom control for phone.

bug:5318964

+update assets

Change-Id: I39c6575803d22ab5db5c75a2d47257d12a397255
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
91d9529fee2283f491737e6b55c8e5e8f738c9c2 20-Sep-2011 Wu-cheng Li <wuchengli@google.com> Merge "Hide review controls in onResume." into ics-factoryrom
5be37a20b9086be505ebd424a4b92967800038c8 19-Sep-2011 Wei-Ta Chen <weita@google.com> Merge "Adjust the screen brightness in the panorama mode." into ics-factoryrom
6e48f6c9ef082b2beb0145ebc28189c3d1a4f072 19-Sep-2011 Chung-yih Wang <cywang@google.com> Merge "Fix indicator bar height in video mode." into ics-factoryrom
db3556078a75be0bd4a08195d90f060724034e88 19-Sep-2011 Chung-yih Wang <cywang@google.com> Fix indicator bar height in video mode.

bug:5287560
Change-Id: I000d11aa3974e1d48d18f4dcf6ec31166f6ef8ec
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1324c7a05149ffa07a2b1339d1bc9bdff862e77e 19-Sep-2011 Wu-cheng Li <wuchengli@google.com> Hide review controls in onResume.

Steps:
1. Launch message application and compose new message.
2. Tap on attach icon and select capture video.
3. Start recording.
4. Stop recording.
5. Tap on home icon.
6. Relaunch message application.
7. Check that vf screen is displayed in post recorded screen.

Observed: Post recorded screen is overlapped with VF screen

bug:5338199

Change-Id: Ica3fb71a71fc8e3f79e789acc2ca5b8f480a35fc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
93fd3bcfa06ef1f525dced9e125ed6541071a865 19-Sep-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE in onTouch if camera fails to open.

If the camera fails to open in onResume, it is possible
to have a null mCameraDevice in onTouch.

bug:5332896
Change-Id: Ia357d4aa23a99eabcd641ec65811d34372ce973f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a959d05b52ac4b27dcdfe3d3a4e72220cf69d47a 17-Sep-2011 Wei-Ta Chen <weita@google.com> Adjust the screen brightness in the panorama mode.

Adjust the screen brightness in the case of automatic brightness.
Make the screen brightness in the panorama mode consistent with that in
the Camera mode and VideoCamera mode.

Change-Id: I1600bcabcdf0d5f3840a347cce10c329d2db100b
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
30f0481931beed547656f2c7bc6290ecc9b01ac3 08-Sep-2011 Chih-yu Huang <akahuang@google.com> Change image of review control buttons.

bug:5244256
Change-Id: Idf02f40edb7e2e15edb4fc1ac86a4694d9147661
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
55fd2a3b10b55cb107fe6613d1a0beda869b131c 13-Sep-2011 Wu-cheng Li <wuchengli@google.com> Remove the delay to show postview for 0.5 seconds.

This can reduce the shot-to-shot time on some devices.

bug:5219431
Change-Id: I335314f2f67f44aca8b03e17c47fed355e43462d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
595d33f1308089ea4e656e247548a71b218d9fa5 12-Sep-2011 Wu-cheng Li <wuchengli@google.com> Do not take the picture if the storage is not ready.

+Add debug messages because UnsupportedOperationException
still happends when Environment.getExternalStorageState
is Environment.MEDIA_MOUNTED.

bug:5293390
Change-Id: Id00a0887f653fe29e09bbb7511ea3fcc833eee71
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
382b51fa8f512d7f5d5163715eeb85bbfd0a02c7 12-Sep-2011 Wu-cheng Li <wuchengli@google.com> The last thumbnail can be an image or video.

Query the content resolver with the last image and the last
video. Show the thumbnail of the one that has the latest
dateTaken.

bug:5187868

Change-Id: I51ee4ece8f33aaec46913aad9b2427b43c31c1bb
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6a6cad85e4932ca6b3f00acd6617e9ad1701d13d 08-Sep-2011 Wu-cheng Li <wuchengli@google.com> Put a red border around the viewfinder during video snapshot.

Also remove the viewfinder border in all other cases.

bug:5187868

Change-Id: I4164fc9b0b62268b80496c71058466e03cbf0aa3
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e0861e7473d042bdd9c935f3bdf50ae220891b6c 08-Sep-2011 Wu-cheng Li <wuchengli@google.com> Enter lights out mode.

bug:5158325
Change-Id: I7c14397d6b6d9fe72e92bf0ea260322d64c87b98
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
da7b4ed9303499c4449c7069461db42ff37e3e3f 07-Sep-2011 Wu-cheng Li <wuchengli@google.com> Use the same thumbnail in camera and camcorder.

bug:5187868

Change-Id: I47aa460db3005ed494a2b760d31e8c17d896ac85
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a93a4d60eacee4e12471b45f8691c14114e113a4 07-Sep-2011 Wu-cheng Li <wuchengli@google.com> Set rotation and gps in video snapshot.

bug:5187868

Change-Id: I1092e3d37dba78073b42aa9107e7cc326d67decc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c343fa06491ee5677b735920032d92e055c16366 06-Sep-2011 Wu-cheng Li <wuchengli@google.com> Refactor location code to LocationManager.

Video snapshot will need to set location to EXIF.
Refactor location code to LocationManager.

bug:5187868
Change-Id: Ic54814370a13084e2857472ea067c4d6bd31964e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c7e69709baea0cd9e49eed005d85714326b27da1 06-Sep-2011 Wu-cheng Li <wuchengli@google.com> Rotate the face indicator according to device orientation.

bug:5223866
Change-Id: I155a8c3701dbb175e3478268d6aa3eb0fc8f4977
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
fe370991104ad90b0656d5cc897171cb5cb8780b 03-Sep-2011 Chung-yih Wang <cywang@google.com> Fix the draw/layout before initialization.

bug:5246857
Change-Id: I8aa96a744cbff414f38e7c886a613cf2c9c7922e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d97d89558a67673396b083f4a75813ffd0b7c87e 02-Sep-2011 Wu-cheng Li <wuchengli@google.com> Merge "Update focus rectangle assets."
ea136afa2f4d38428ad486df5fb0a24db8314a3d 30-Aug-2011 Chih-yu Huang <akahuang@google.com> Move review control out of preview.

bug:5141555
Change-Id: I04e4ca0d0e1a40ccfe39e5276fda66ffd02ae1b5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
20b3c3526ebb8d8a6873f7a1110f23847a843515 01-Sep-2011 Wu-cheng Li <wuchengli@google.com> Update focus rectangle assets.

bug:5223866
Change-Id: I9e938953dd552da784fdea067a9b2b3859e579dd
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
757b67951f40850b1ac3102dc0b6fe8977615a4a 31-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add video snapshot.

Touch on the viewfinder will take a picture during recording.

Things not implemented:
- Add EXIF GPS.
- The last thumbnail can be a jpeg in camcorder mode.
- Call setRotation.
- Highlight preview border during video snapshot.

bug:5187868

Change-Id: I59a22aa00424355584611f095af752b83c0ee2f0
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
82111c5d1fe1539a5ff70c1a459a09256ae50c1e 30-Aug-2011 Chih-yu Huang <akahuang@google.com> Merge "Remove thumbnail in image and video capture intent."
d4832351874aa6eb2cd5e312c21bd4ec607ff3a4 30-Aug-2011 Wu-cheng Li <wuchengli@google.com> Rotate the focus rectangle in different orientations.

The new focus assets look different in portrait and landscape.
Rotate the drawable so the orientation looks correct.

bug:5223866
Change-Id: I5e5ebbcbaca95b118e051fbf6131c1a12584b2f2
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
51dd927dbe8940e226a2d15f105e53fb2effe7dc 30-Aug-2011 Chih-yu Huang <akahuang@google.com> Remove thumbnail in image and video capture intent.

bug:5141555
Change-Id: I240006b82f6c694a1549208bcb580f393f07f2bf
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7648319f0416b86ae13b97eeba0466581ace1a48 29-Aug-2011 Wu-cheng Li <wuchengli@google.com> Increase the resolution of the thumbnail.

The share popup gets bigger. The resolution of the thumbnail
should be increased.
This also fixes OOM in panorama. It should use the width to
calculate the resolution, not height.

bug:5157438
bug:5220505

Change-Id: Ib7b6600469e94e38bd684c43b07584ce61acfcca
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c2fe2b3f1360e4c6ec3abac15e523f15c29d28bc 29-Aug-2011 Wu-cheng Li <wuchengli@google.com> Decrease the time of showing postview image.

Originally the camera shows postview for 1.2 seconds.
Decrease the time so the camera does not look slow.

bug:5219431

Change-Id: I01b38ee6812aacbab9bc0c9096799933be6a72d9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4bbbfc12a05120a2d06e07ba1252367d42e6bb82 29-Aug-2011 Chung-yih Wang <cywang@google.com> Merge "Add ZoomControlWheel."
ab2ffa88872149978823c3184d0af162d3cdca13 24-Aug-2011 Chung-yih Wang <cywang@google.com> Add ZoomControlWheel.

bug:5083780
Change-Id: I1a18c247d638edd3f8e5e0588170b6820f280f96
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4591c5ecbaade585c3094be353d27b14f0592494 26-Aug-2011 Wu-cheng Li <wuchengli@google.com> Make the size of the share popup the same as preview area.

bug:5157438
Change-Id: Ib199ee62cce314c648c323304289af7e1421c59e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0935e09bb12a1886a801713bbd78bbc20bf4ea4e 23-Aug-2011 Chih-yu Huang <akahuang@google.com> Change front/back switcher icon in camera mode

bug:5198658
Change-Id: I4a0f91f9318313c219904c3417fbf98a256cfac3
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
58dadc3028b3af2e9895089e1b39ad1ab982ece2 25-Aug-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE in FocusManager.

bug:5210804

Change-Id: I39143a3c45d27db6dc2669e3a249945aafddc3c4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3a92e643ed83c0ecce072797259dd4fa11246b2b 25-Aug-2011 Chung-yih Wang <cywang@google.com> Merge "Add second-level indicators in tablet UI."
ed6373cd34393dfdda8d18a03705c83bfff1f535 24-Aug-2011 Chung-yih Wang <cywang@google.com> Add second-level indicators in tablet UI.

bug:5146861
bug:5140745
+Animation for open/close.

Change-Id: I8daeec1d63c23027a212fa4c363bb4beee13ef6f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a907c122ccec649c6cedf3a45b1c426a5fca932e 21-Aug-2011 Angus Kong <shkong@google.com> Add thumbnail and share popup for the last result.

bug:5141665

Change-Id: Idc44d33d09c8d4a30fdcef66de2d6754daf1ea82
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d480002ccad05cf992c628c72884091c36cc654c 22-Aug-2011 Wu-cheng Li <wuchengli@google.com> Refactor all focus code to a separate class.

The code about focus is complicated and scattered around.
Move the code to a new class, so it is easier to maintain.

Change-Id: I0214b405bf1596d967e7d89cdb04328322c6ab95
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e8b7ae993fcd192aa3460540e7f3a66f601a93b1 23-Aug-2011 Wu-cheng Li <wuchengli@google.com> Use public API Parameters.FOCUS_MODE_CONTINUOUS_PICTURE.

bug:5086125
Change-Id: I3e10e9a993804e60d77ba678c0fa664d9c13fa17
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
71d5570605d517a271f40c749cb8123d5f2c3059 22-Aug-2011 Wu-cheng Li <wuchengli@google.com> Start face detection every time after starting preview.

This fix the face detection is not resumed after tap-to-focus
and take a picture. According to javadoc, face detection should be
restarted after starting preview.

bug:4460717

Change-Id: Ic092de72e42c281c78f9e11b67df9d89c0b10388
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cd5f34c389d0d929687b95885e348d574f574d85 22-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add continuous autofocus in still picture mode."
838e6e75fdcb1946deef2fae276c03f2cb00e596 21-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add continuous autofocus in still picture mode.

bug:5086125
Change-Id: I5c235fce5f13115554849623579cc5e659521ed3
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b0c6bcf47a8ca1c096d98ebebd33a821dd483585 18-Aug-2011 Chih-yu Huang <akahuang@google.com> Add exposure indicator on screen.

bug:5141528
Change-Id: Ib63c24b52c4b4bc67e88c1ec6a8ac41b9e4c09e5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0e7b1301af5775c41827b9de0822566a91ea0c4f 18-Aug-2011 Chung-yih Wang <cywang@google.com> Cleanup unused imports.

Change-Id: I72c979a921d4b6a5143bd90a59e9e4d91958033f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c852ce9bee37362da5e9f33548daae9bcee8db70 18-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Clear the face view in onPause and when face detection starts."
cd8d7deb1ca1d8f8cc06100b0760169c7fe488a7 17-Aug-2011 Wu-cheng Li <wuchengli@google.com> Clear the face view in onPause and when face detection starts.

bug:5169594

Change-Id: I822e8860861c6b11ab55bcfd5a9604e4fcee8d6a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
95788ace8ad3630312f2f94544690c448c935f9e 16-Aug-2011 Chung-yih Wang <cywang@google.com> Move CameraPicker into IndicatorControl.

+Move the CameraPicker icon to IndicatorBar for Phone UI.

Change-Id: I2ab75166586adb6a029b4cf1b3f19604526dd818
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
74fe6dc0918c8129210cdcf1816a6a052d737997 17-Aug-2011 Chung-yih Wang <cywang@google.com> Merge "Add Sprung Lever Zoom Control for Phone UI."
adab2bddc93bf4af535cb58e7167bf8690d97d8c 14-Aug-2011 Chung-yih Wang <cywang@google.com> Add Sprung Lever Zoom Control for Phone UI.

bug:5083780
Change-Id: I5b29f6bc509fc93ed74175e2754ce9f3c4afe27f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1254e04152ce9efc0b54d6d97b5873d7a9acdb2f 16-Aug-2011 Wu-cheng Li <wuchengli@google.com> Revert "Clear the face view in onPause and when face detection starts."

This reverts commit 383a2b45820ff710627dbd536f1bd683e393e335.

The changes will have NPE in onPause if the camera cannot
be connected.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
383a2b45820ff710627dbd536f1bd683e393e335 16-Aug-2011 Wu-cheng Li <wuchengli@google.com> Clear the face view in onPause and when face detection starts.

bug:4460717
Change-Id: Ia35f525ef40a03fc5ad4bee715ad107201323f7a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
54fcae5227535ae6960d2cea4fe83b9ee848249e 16-Aug-2011 Wu-cheng Li <wuchengli@google.com> Show tap to focus toast after getting the first orientation.

bug:5039278
Change-Id: I011a8f89deedaa81d9700a01605862bed72cdeac
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
98d615769af2b08bcddf02ee1b11f5288ec5cf92 15-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add tap to focus toast.

bug:5039278
Change-Id: I1c47ffa46df7b6c1fdd447b688e1c7ccb724cb5a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
41ecefdc167ca88d785e6a1d58b706cc7f03c2bd 15-Aug-2011 Wu-cheng Li <wuchengli@google.com> Draw all the faces on one face view.

bug:4460717

Change-Id: I29b676a95d8fc7b22b359508e1886fba513ba493
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
43df069e847abf43eb7afb738154f7a18661a4b2 12-Aug-2011 Wu-cheng Li <wuchengli@google.com> Do not show focus rectangle if there is any face rectangle.

Also clear all face rectangles in stopFaceDetection.

bug:4460717
Change-Id: I282376be94844c5066926c2d0749d334197df292
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7058a9318dd5d6d5a1e79a84080cdc02975f68c1 12-Aug-2011 Wu-cheng Li <wuchengli@google.com> Remove zoom ratio text label.

Change-Id: Ia4d54034b0b2c039e874b1fa580b036962f4cd33
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d2db70880e6159413932f747eb82df3e925852c1 11-Aug-2011 Wu-cheng Li <wuchengli@google.com> Use matrix to transform the location of faces.

bug:5141019

Change-Id: Id4bb82cee5fd788689fb18bb199504d963c5d3a2
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d159d11f5a47928a59c9bf27fbae1a95dd6cbb02 10-Aug-2011 Wu-cheng Li <wuchengli@google.com> Remove color effects to simplify UI.

bug:5141303
Change-Id: Ie6a9d0dde40c1ed1d7ec6f93f8e6e6bbc9393bf7
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5e270b255775e1aae76cb476873001798ad8e88a 10-Aug-2011 Wu-cheng Li <wuchengli@google.com> Remove share icon and close arrow.

Alose increase the speed of icon rotation.

bug:5141343
bug:5141404
bug:5141514

Change-Id: I0db6b6edbc0fc1a0f83b4f29f6828bcff01bf0c4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
89155720bce8b530659bcdd48bcb3802bc80a6ba 10-Aug-2011 Wu-cheng Li <wuchengli@google.com> Update face detection API.

bug:4460717

Change-Id: Ia748a3b9c5664058c63edce2335836f3817c909d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
93ad273a53e7d2975a67d7d1f8a157f845e41cf2 09-Aug-2011 Wu-cheng Li <wuchengli@google.com> Use recording hint API.

bug:4266229
Change-Id: Iafd4b6cb4bf20a1bff3ed639f9e48ca71f026969
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e46d09dc17ac1cad5062fdc4b29916dc63da06c3 05-Aug-2011 Chung-yih Wang <cywang@google.com> Use View.GONE instead of View.INVISIBLE.

Refactor this to improve the performance.

Change-Id: I6a20021bf07546b0cfa6b4c4b5fe0d67556940a5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0980ef20897b2b83ee1ddce300044c121192f599 05-Aug-2011 Chung-yih Wang <cywang@google.com> Merge "Add the CameraPicker for PhoneUI."
b5c569214281e11dc7e8ffc313fbb27e5ff6e5c5 03-Aug-2011 Chung-yih Wang <cywang@google.com> Add the CameraPicker for PhoneUI.

+recover the removed CameraPicker.

Change-Id: I5e45c4f73ce7c082cf420d27a86b922283a83bcc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4b602592e0d189499b22d107d997b83e798b5bd9 03-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add face detection UI.

bug:4460717
Change-Id: Id09cc012efffcee0f5af3a070b5dcb775a7048a0
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
bed7386688cd7810cba23732ab71f370fe3222ff 20-Jul-2011 Chung-yih Wang <cywang@google.com> Merge the indicator bar implementations.

bug:5039235

Originally we have the GLView-implemented indicators for Phone-based UI.
Based on the current UI design, we would like to merge the look on all
devices for the dialog of the camera setting. Therefore, a refactor of
how to handle the popup window is required here and this will simplify our
UI work for handling different layout/resolution.

Change-Id: I6f9e6ebed7600be460ddd906505cdc44f81098ad
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3ab4f0912da83f7f5f8266a57a606d521c1649e3 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Set recording hint to true in camcorder mode.

bug:4266229
Change-Id: Ic8cf3ea9e16adb62dbe30df7baf9528807c9ea56
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a72d73cbac59db43d413291e4db66763be08143a 27-Jul-2011 repo sync <cywang@google.com> Add mode picker for camera/camcorder/panaramo

+remove camera switcher
+add menu item for panorama

bug:5039225
Change-Id: Ib065074026760f7dc1bd1dfe694935f46bb8c407
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a9b3713b0e006d6cdcabd5e1b094f4a1aa3738fa 18-Jul-2011 Wu-cheng Li <wuchengli@google.com> Broadcast new picture and new video intents.

bug:4964321
Change-Id: I94edce33bd18fc67ed8220d54b01c1af63963c5c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b4aa4791c329cadc4df8edf3def5655cf4105f56 18-Jul-2011 repo sync <cywang@google.com> Merge "Make all wheel icons rotatable."
cead50ba3ce2df3bd9fcf06c6f54ea0c6980f0d7 14-Jul-2011 repo sync <cywang@google.com> Make all wheel icons rotatable.

+Make the popup menu rotatable.
bug:5039041
Change-Id: I28394531d5c0894215b8229159cfe9c7bee958b9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
750173a4d20f1e8d6607edb3ada6be5166d0cd82 05-Jul-2011 Wu-cheng Li <wuchengli@google.com> Add a share application list in share popup.

bug:4725978

Change-Id: Id7a8b24fd7785f2d7dd316b5000f8ae3f3e8c567
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
039f1dc1fd89b5baeed8be05f3f21770cf75d4b3 06-Jul-2011 Wu-cheng Li <wuchengli@google.com> Move zoom buttons and front/back camera switch to indicator wheel.

bug:5001059

Change-Id: I5ed60169b6f73dc41d84ba7bd299ed8bf394a284
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cd4aacd29f860ba6c1769372c698ab1a4517179c 06-Jul-2011 Wu-cheng Li <wuchengli@google.com> Refactor ZoomPicker.

Zoom buttons will not be in a LinearLayout. Refactor ZoomPicker
so it can accept two zoom buttons as input. It does not matter
where the zoom buttons are.

Change-Id: I445228b03adc96a1e7b4ba90025680c8ef0388a2
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
02af7e82f97ade581703c7f4a32666e4f578173b 20-Jun-2011 Wu-cheng Li <wuchengli@google.com> Remove jpeg quality.

Jpeg quality (super fine, fine, normal) is confusing for some users.
Just always use super fine. This also simplifies the UI.

bug:4993146
Change-Id: I55c2bf7d5aa8391f1656e3d5fdd0e7b2732459ed
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c5e37cbb96b8284203560c51dd5f41c705a21f58 30-Jun-2011 Wu-cheng Li <wuchengli@google.com> Add expanded thumbnail in phone UI.

bug:4725968

Change-Id: I2a59a3714b93bc96f2a1689d948c9e4e0edd14cb
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3f63a2d895c50ae1c3a7a47ee6ead070b5bbd7fc 28-Jun-2011 Wu-cheng Li <wuchengli@google.com> Move share button beside thumbnail in phone UI.

bug:4725968

Change-Id: Iedd0b631b48bb30c27975ddc44923886e4b0d862
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4a045a8e858706f56a6ffb5187960768f861f007 31-May-2011 Wu-cheng Li <wuchengli@google.com> Add camcorder zoom.

bug:2644213

Change-Id: I669966e4fd54c76d19660efa6f1700a86b4d6c07
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
551ce8ef001669d5e04359ab57c365082f75a905 19-Jun-2011 Wu-cheng Li <wuchengli@google.com> Reset metering area in 3 seconds.

After metering area is changed, reset it in 3 seconds
if users do not take a picture.

bug:3475893

Change-Id: I531189284053f1ede74dfe7dfafea6b682052596
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
dfb6f208e3f5dd7d68bcaade644aa1d1f1f0a98f 30-May-2011 Wu-cheng Li <wuchengli@google.com> Check if device policay manager has disabled camera.

Show the corresponding message if that is the case.

bug:4185309

Change-Id: I0f4a5ac577f13331685f8e7343bab6317f96c3d8
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
84a4d3eb7c9a3e33e1898729a66671332fe81577 16-Jun-2011 Wu-cheng Li <wuchengli@google.com> Code refactor.

1. Make Camera and VideoCamera more consistent.
2. Fix error dialog is not displayed if VideoCamera fails to connect
to camrea.
3. Move the code from onStart to onResume.

Change-Id: I7dd310718e0986c17a762ca3107924cc412f72cc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
631191d322e0ae0fb3d5369e581cd8fd787c3b04 15-Jun-2011 Wu-cheng Li <wuchengli@google.com> Change the thumbnail folder to internal storage.

The app did not check if .thumbnail folder is created because
it used to be created by gallery a long time ago. Thumbnails
would fail to be saved if .thumbnail did not exist.

bug:4483083
Change-Id: I03c345f35ab1880878457d2537bbff18c175899c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
03eeea3750b6b540b735e0f4d5d6d76c128cbacb 07-Jun-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE on launch if camera cannot be opened.

If camera cannot be opened, the app will show a dialog
and finish the acitivty. But if the screen is turned off
and on when the dialog is still there, the app will enter
onResume again.

bug:4556340

Change-Id: Icc331baa14f5e17b178e2022d61e5da55398df40
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
82b1903e5b7f1be665b645835c1eef1d1660fe8e 01-Jun-2011 Wu-cheng Li <wuchengli@google.com> am dd56e778: am a5c1d8bf: Fix some comments.

* commit 'dd56e778e4f16a615b62961bbb9588feeac9200f':
Fix some comments.
b9286870d56f085e74b0142eaa138bb83b5e0eb3 27-May-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add share button for phone UI."
6374ed8614a151c27d6277272e3e72769e768766 15-May-2011 Wu-cheng Li <wuchengli@google.com> Add share button for phone UI.

bug:4391419

Change-Id: I80c19f65d6f17733a9ccee6782bc035add12efc3
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
af40ad5126da5b116440e015fbc3cfb55ff437d4 15-May-2011 Wu-cheng Li <wuchengli@google.com> Increase the actual focus and metering area.

If users touch on a dark area, preview will be easily over-exposed.
So increase the metering area to reduce the odds. However, keep the
rectangle the same size because a huge rectangle looks strange on UI.
Now the actual focus/metering area is two times bigger than the UI.

bug:3475893
Change-Id: I1c3623b253f8c72c6180671d49f205ccb28af29a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f63363f2885f4c16546358a612aa4cc2b98430a4 14-May-2011 Wu-cheng Li <wuchengli@google.com> Move gps indicator from the indicator bar to the corner.

bug:4391419

Change-Id: I5d4385edd51d3df21d4bcdd17a80dc778a832b94
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a5c1d8bf69892292d7efee102503b9d851fbf834 25-May-2011 Wu-cheng Li <wuchengli@google.com> Fix some comments.

bug:4473360
Change-Id: If87b14a1613b1c8d4095961665944ee0db70c7ca
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
63475660b8b67c503972419f35a2c7611c2a1a92 25-May-2011 Wu-cheng Li <wuchengli@google.com> Merge "Improve touch focus UI."
6fb969e2edd99340b3b77eae4e7b313a82937930 23-May-2011 Andy Stadler <stadler@google.com> Clean up package declarations & imports

No functional change. Just makes eclipse happier.

The specific fix is that RotateImageView had the wrong package declaration,
everything else is just cleanup after fixing that.

Change-Id: If862539e33af12a4cb0b24c9b7591f548340cab5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
04dfecf4f289e7ab888d3ff7f66588783bce2d6b 13-May-2011 Wu-cheng Li <wuchengli@google.com> Improve touch focus UI.

1. Now users can trigger touch focus if autofocus is already
in progress.
2. Autofocus is triggered in ACTION_UP. So users can drag
the focus rectangle and see exposure change.

bug:3475893

Change-Id: Ifbf586ae5ec2a11c64155e16bd25ae753220f4ce
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9a663f7de4fa42ebbdf1ddaa5ee73ee9a7347f55 20-May-2011 Wu-cheng Li <wuchengli@google.com> am 41fff6e7: am e2eebff5: Fix NPE in capture intent of phone UI.

* commit '41fff6e73898387612b17737085ad2321a2727c4':
Fix NPE in capture intent of phone UI.
e2eebff5a84e6981d81d0a9ac28322867099b295 19-May-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE in capture intent of phone UI.

bug:4454373
Change-Id: Icaeba621e619d826f91b6bf73a0f57e4fc520fa5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1c24f5161cfc6a78e45da5f564626d06f6278f7c 17-May-2011 Wu-cheng Li <wuchengli@google.com> Show review image before share.

bug:4391419

Change-Id: Id357539bfe36eb3a30742dc4f8ca267ff53ff8b7
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8ab2b624d51b3b8254ece98c46a7e22a6fb5d4aa 13-May-2011 Wu-cheng Li <wuchengli@google.com> Refactor RotateImageView and thumbnail.

Change-Id: Ic435b7cd97ba775ec8f4b8342a1d4d25e2a5120c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f5e80a8a5670798d52afe08e0c15aa4448d33316 10-May-2011 Wu-cheng Li <wuchengli@google.com> Add share button in IndicatorWheel.

Also fix a bug that warning toast is not shown when
white-balance or flash icon is pressed in scene mode.

bug:4391419
Change-Id: I724870347616a5a9a7d9007696eb08b923d18d54
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
43af5df853bdfa17715eb9abe61a7d3485aa05d7 10-May-2011 Wu-cheng Li <wuchengli@google.com> Merge "Refactor IndicatorWheel."
d50b09687918ae1c89e9c19175e217910b330c60 09-May-2011 Wu-cheng Li <wuchengli@google.com> Refactor IndicatorWheel.

Combine BasicSettingPopup and OtherSettingsPopup in
indicatorWheel for the preparation of adding share
button.

bug:4391419

Change-Id: I684890a9bf47611f25fe0f70faa0f08e6485d620
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0d604e2af9eeed22685fd62e2281c2cd9728d58b 09-May-2011 Wu-cheng Li <wuchengli@google.com> Add test for converting touch point to focus area.

Also add license for some files.

Change-Id: I492799aefad5afe771a082b90bf44f4301480be0
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f5becea4a2b2444408c022476db6556af0c0b95c 05-May-2011 Wu-cheng Li <wuchengli@google.com> Fix the bug that touch focus is cancelled unexpectedly.

Change-Id: I94d8277d07e37b41b149ec7a162b99f1d381d442
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
fda645cedee5e3561f80dd9fc180052a0d902745 05-May-2011 Wu-cheng Li <wuchengli@google.com> Merge "Cancel focus after touch focus is triggered for 3 seconds."
3d108b88030763f102398487e9b9e74fb67b47a8 04-May-2011 Wu-cheng Li <wuchengli@google.com> Trigger touch focus only when the event is ACTION_DOWN.

So touch focus will not be triggered again when the
preview area is still being pressed and autofocus
completes.

bug:3475893

Change-Id: Id84c0c6328778150c66d4e766ddf11cd18be1d36
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3958d6c215643953fced0b857c4c6e20e848e093 03-May-2011 Wu-cheng Li <wuchengli@google.com> Cancel focus after touch focus is triggered for 3 seconds.

bug:4349618
Change-Id: Ia7130300fe7358b0bd937ac7ca23b73a63860466
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
49bc3fd984521c8c8eed8733d9bdd7f2ccdd9057 03-May-2011 Wu-cheng Li <wuchengli@google.com> Refactor camera status and focus states.

Change-Id: I74fe291835e8f0cd9d852359463042969a801854
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
51c1bbeeec7d2555debd5d2267a5ae16b076f313 03-May-2011 Wu-cheng Li <wuchengli@google.com> Tap will invoke autofocus & metering, but not snap a photo.

bug:4349618
Change-Id: I6458e24c4d7e892d51de3ecaba128195b7248b58
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7895ae7d31da363a225988ffd2e0479fece6499e 02-May-2011 Wu-cheng Li <wuchengli@google.com> Use frameworks focus area and metering area API.

bug:3475893

Change-Id: I96b958e60b93f48fd1ec27eb5e59ec3f2f11f5f7
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
97d089d718dc92c0e9ccc3c923066cf4f0101c35 27-Apr-2011 Wu-cheng Li <wuchengli@google.com> Do not trigger touch focus when popup window is dismissed.

Also use getLocationInWindow instead of getLocationOnScreen.

bug:3475893
Change-Id: I6e5917cf7340a7968fd07c13bf91e3c555d0cf87
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
feaf2ccff42c44b74be814b66296f9ddedcc9aa9 27-Apr-2011 Wu-cheng Li <wuchengli@google.com> Reduce the size of focus rectangle.

Now the length of focus rectangle is 1/4 of the height of
preview frame.

bug:3475893
Change-Id: Ib1f09d5dbb25bb20343b39116c12febe08d83051
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
18c1ad898f3fddcd321af7ffbb32416a1b32f323 27-Apr-2011 Wu-cheng Li <wuchengli@google.com> Fix the incorrect position of focus rectangle.

1. The position of touch point should be based on the surface view,
not the parent of the surface view.
2. The original images of focus rectangle had too much blank around
the edges.

bug:3475893

Change-Id: I59cdee2b0d1efff7ede91e6482fe270e914cf77f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
bffc2038ddb61423d9dc40882f253f9207458f3b 26-Apr-2011 Wu-cheng Li <wuchengli@google.com> Set metering area when users touch on the preview frame.

bug:3475893
Change-Id: Ie399f938a2a457effed705e9996d665268458f22
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
22e1d11ab2e59b672885fa5f7e5f08b1a2455225 04-Mar-2011 Wu-cheng Li <wuchengli@google.com> Add touch to focus.

bug:3475893

Change-Id: I4b23052a6e548adf5b209d46661590b79b8cb557
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5df067af93e6b386167f11cdf12701b7905ee444 15-Mar-2011 Wu-cheng Li <wuchengli@google.com> Add image capture intent test.

Change-Id: Iba7ecf9054b630a14f1bf24ba223e0eecb1c3fd4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
bcf6200327be0b408426221767467ad2ce132a08 10-Mar-2011 Wu-cheng Li <wuchengli@google.com> Fix image/video capture intents are broken after switching cameras.

The intent action should be kept if it is IMAGE_CAPTURE or
VIDEO_CAPTURE.

This also fixes the bug that video capture will fail after retake.
If the URI is passed in by the intent, it should not be removed
from the content resolver.

bug:4083519

Change-Id: Ia72e399ff8cd5c2a72cc6fe1500ee6922d9a4f5d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
842b44f24ab621122183a149e20a852e5d8e0200 25-Feb-2011 Wu-cheng Li <wuchengli@google.com> Fix the bug that exposure is not matching with settings.

UI should be updated when exposure is reset in onResume.

bug:3398281
Change-Id: I535bac04643a684262ff756d079efc220e4bfa3d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
44377058a0255e2944280fde5cc802e709af0d9b 25-Feb-2011 Wu-cheng Li <wuchengli@google.com> Restart the activity while switching front and back cameras.

This adds 300ms latency but the switching looks better with the
crossfade animation. We should use SurfaceTexture to do a better
and faster animation in the future.

bug:3446535
Change-Id: Ib5a5b2c049fb7c4d93769af530dd07a333ff4cb8
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7673ada94b5e2263e7190ca246694cdee31ed03e 24-Feb-2011 Wu-cheng Li <wuchengli@google.com> Ignore search and menu long press key event.

Also ignore menu key during recording.

In phone UI, long-pressing search key will launch voice search.
Long-pressing menu key will launch software keyboard. It is annoying
to accidently launch them while taking a picture.

bug:3108635
bug:3278557

Change-Id: I87a5411d08c4bb292b5a0f78a4a0992a59e8816c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
232700d54651dcaefb378dc22bdb008a9815d1cd 18-Feb-2011 Wu-cheng Li <wuchengli@google.com> Fix wrong preview orientation when device is held upside down.

Suppose a user opens camera app and press home to exit.
The user holds the device upside down and opens camera again.
The animation takes some time so camera app will get the old
rotation value in onResume and surfaceChanged. Besides, framework
does not have a callback for it. The solution is to poll the
rotation value for 5 seconds. If it changes, restart the preview.

bug:3362860

Change-Id: I065e8601e321361d8db405f9c587ec2a5bce050c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d4a3fb30b2ef7ae03a01661041ff4735e1b4fbf1 10-Feb-2011 Wu-cheng Li <wuchengli@google.com> Make zoom more smooth.

Originally startSmoothZoom and stopSmoothZoom were called
many times even while the zoom button is being pressed.
Now startSmoothZoom is only called once when the button is
pressed and stopSmoothZoom is called once when the button
is unpressed.

Change-Id: I88a7c5027e54a3b36759ded448530cfd310aa0aa
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
855b4ca04f982c7110acd81b509c955df976926f 25-Jan-2011 Wu-cheng Li <wuchengli@google.com> Fix camera preview orientation when device is held in portrait.

The problem is the rotation animation may still in progress during
onCreate. When we start the preview in onCreate, the display rotation
is still the value in portrait. So we check the display rotation
again in surfaceChanged. If it is different, restart the preview.

bug:3362860

Change-Id: Ib930c18d089114a3b5b9ca0f599e1ebdace73eb7
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
75c11984594546002610c9f076520414ae4b6d4d 25-Jan-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE in BasicSettingPopup.

The monkey test sends DPAD_CENTER event and brings up the soft
keyboard. The layout will change and the basic setting popup
may have fewer children than items. In fact, setActiviated is
called by ListView and we do not need to call it.

Also add stateAlwaysHidden to make sure soft keyboard is always
hidden.

bug:3383128
Change-Id: I8032ff4680af7617c1568632af1c1678a04a04f8
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
edcae0ca2d9587e78cc52a58d0797d2aa28c0db9 21-Jan-2011 Wu-cheng Li <wuchengli@google.com> Remove ImageCapture class to fix NPE.

bug:3375346
Change-Id: I6b3b889dcd40e98321c5ca9987ceab424f966ff9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4504e5b41a0f647ef3e16b1134e130fe3678aebf 12-Jan-2011 Wu-cheng Li <wuchengli@google.com> Tapping a ring control with menu opened should close it.

bug:3324333
Change-Id: I6a82db8b36b293630e6a487c22d270e23651dfe4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7341b9b5d8194c4ab7140977a8c5218e6d83d516 11-Jan-2011 Wu-cheng Li <wuchengli@google.com> Refactor. Move the logic from ControlPanel to IndicatorWheel.

The refactor is required to fix 3324333 properly.
bug:3324333

Change-Id: I8e4c9519cafac11bceea8dcaf22a4a92b2dd6181
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
bbe9db4d12978f220aeb0379731b548420bbd6db 17-Dec-2010 Yu Shan Emily Lau <yslau@google.com> Removed the flaky memory checking.
Added the image caputre and video recording stress test for the front facing camera.

Change-Id: Ice3abf35791e1953f70ef25375409fd5efe870b3
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
894696f3f9f068a23696bbd05a5e9fc0d9ae5720 21-Dec-2010 Wu-cheng Li <wuchengli@google.com> Play the focus tone only when focus succeeds.

bug:3109218
Change-Id: I6110085a02931b457a8bf71b2f6c783c93fdd825
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0aaed976b603c56006213d196e6b0703285dafd5 29-Dec-2010 Chia-chi Yeh <chiachi@android.com> Refactoring: Remove the dependency to ImageManager.

Also polish Storage.addImage() a little bit.

Change-Id: I1001f2aeab031e39510ac513eafe85581e164b95
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
37cffb8467d1ccca719a7847582d04da36c5bc6f 27-Dec-2010 Chia-chi Yeh <chiachi@android.com> Refactoring: Remove the dependency of ExifInterface.

Since we only need the orientation information from Exif, it is
fairly simple to implement one by ourselves. This will avoid
disk access and JNI overhead, and save some CPU time since other
tags are not touched.

Change-Id: I962e2f19ec88a082bfd8eb438e255bffad2a5365
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d1ec4e36667086836cd243bee38aded5e1fd88b1 22-Dec-2010 Chia-chi Yeh <chiachi@android.com> Refactoring: Reduce the dependency to the old gallery code.

Most of the functionalities will be implemented in Storage class.

Change-Id: Ibe0185978de511ead4cd91870070bdd2abce1e00
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
721d2d2a963799fad4bda9bb4b278c24fc469303 22-Dec-2010 Chia-chi Yeh <chiachi@android.com> Check and create directories in Storage.getAvailableSpace().

Since creating directories and files is not an atomic operation,
there is no way to prevent MediaRecorder.prepare() from throwing
exceptions. Now we let Storage.getAvailableSpace() to create the
directory and then bail out gracefully if it still fails.

Bug: 3304420
Change-Id: I98f1975b90250d63b60b36950e5813528862cc98
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c8a7fc07e3b905a723e753b0c9144de2b0343f1f 20-Dec-2010 Chia-chi Yeh <chiachi@android.com> Refactoring: Extract the space calculating code into a new class.

Also fix several related bugs.

Bug: 2811896
Change-Id: I2ee31471ba7c67ab30516e85598190ab7630254d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5f039073a239fc8ebf94238c3dce24dc1cce865b 20-Dec-2010 Chia-chi Yeh <chiachi@android.com> Cleanup: Remove MenuHelper.closeSilently().

Change-Id: I449a10104615c402dbd36d615e845185063a9660
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8303435a2466803e05dd99c60cdb2de074b79162 17-Dec-2010 Wu-cheng Li <wuchengli@google.com> Add debug messages for record location.

bug:3258991
Change-Id: I1dcac9d86e34e2b6b28e4a09a3b88bbfa77d9195
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
fba0439b62f19a2a19ff6559c1ae055e910400db 16-Dec-2010 Wu-cheng Li <wuchengli@google.com> Show a toast when wb or flash is pressed in scene mode.

bug:3294395
Change-Id: Id8500a3f2abe6a7c261a4cad625a6ad3beba0b7d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0fad45d0d64569098f4daf34ff7e5ae785601304 17-Dec-2010 Wu-cheng Li <wuchengli@google.com> Choose the preview size that has the same aspect ratio as picture size.

Sometimes the camera driver has many preview sizes with close aspect
ratios. Now camera app only chooses the preview size if its aspect
ratio is an exact match of the picture size or video size.

Change-Id: I3be1189688de3ac499f7d69f4febf09c7763393a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e50d2553aeb9e55504697e2a72759e8f46ee2992 14-Dec-2010 Hung-ying Tyan <tyanh@google.com> Disable camera/video controls when in certain op modes.

Covered modes are:
1. on photo/video picker review screen,
2. on snapping,
3. on auto focusing, and
4. during recording.

Bug: 3258859
Change-Id: Icc7d77c5b281c0ff04b1bffb2702a2e731d06127
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0f405feacb2fa89d22e9fd8cb982cffad14af4a3 14-Dec-2010 Hung-ying Tyan <tyanh@google.com> Fix a NPE in Camera when zoom is changed

as the activity is paused.

Bug: 3285827
Change-Id: Ib5de58a66586d34226111d1197053801f08e6f8e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b7893fdf578192a262dd48297c14092547c15d57 13-Dec-2010 Wu-cheng Li <wuchengli@google.com> Reset zoom to 1x in restore defaults.

bug:3176096
Change-Id: I37060279262e690b81978ba72160c58064445954
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
373d10b91c8e736275a0bc52e247598eec0b3cea 09-Dec-2010 Hung-ying Tyan <tyanh@google.com> Implement photo/video picker mode using holo controls

Bug: 3253016
Change-Id: I0f851f2840cf1303c06921549028dcbf73d53b61
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e9fdf5971bae4ebd6c0afe452da0b4e1be79aabb 09-Dec-2010 Hung-ying Tyan <tyanh@google.com> Disable camera/zoom pickers in photo picker mode.

The pickers should be disabled after a photo is taken and re-enabled when
the re-take button is clicked.

Bug: 3258859 (partially; this CL does not cover the settings on the wheel.)

Change-Id: I517728eb84ca6c947f268d58418188475051ab27
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
003dd5a52457c024a0f99a2bb222bfc6ad70bbe5 06-Dec-2010 Wu-cheng Li <wuchengli@google.com> Add restore default in other settings.

Also change the theme to Holo.
bug:3156672
Change-Id: Ied6f2d3543c3a3282c62b2cc31e5cf4cc30c3172
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5030bd7b700869feb50083571a680fa55730229b 07-Dec-2010 Hung-ying Tyan <tyanh@google.com> Disable camera zoom control in video mode

instead of removing, and other fixes.

+ Add images for disabled state.
+ Remove zoom stub.
+ In ZoomPicker, increase transition period from pressed to long pressed state
to 300ms. 200ms is too short for single press and showing images in pressed
state.
+ In ZoomPicker, restore image to state list instead of normal-state image.

Bug: 3252995
Change-Id: Id9484d6e0580c023671cf96e60a099512075f656
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
95b65b1c84ad44b43bd3defbdba5d881c0881d35 07-Dec-2010 Chung-yih Wang <cywang@google.com> Don't show camera/video thumbnails if no pic/video taken.

Camera: Don't show camera roll stack control if no images were taken
yet.

bug:3252739
Change-Id: I5998ceade0172a45be637fa7c967d266e2079832
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
17bf7bc255fffcf9ae795a5b3983cd4878383613 07-Dec-2010 Hung-ying Tyan <tyanh@google.com> Reset camera zoom index in initializeZoom().

The zoom index was not reset when switching between front and back cameras.
Also fixes the following bug.

Bug: 3108968

Change-Id: If0cee2dc181463bfc97334916c07f5d2e876a5c7
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
067fe861cf3402f2bef3f83995579d3411f0a8b3 03-Dec-2010 Hung-ying Tyan <tyanh@google.com> Re-load camera preferences when switching camera.

Change-Id: Iaf024bc035a4e9906082db2ae84ff6932ca9121d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9e76e8d6eec20739203d213ead1fe1aab3b939ae 06-Dec-2010 Chung-yih Wang <cywang@google.com> Move camera picker to control panel.

Change-Id: I5b2b0693bb3ef8e353b4b9c793583ed3e6522526
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8a66efdc845a5fdf0750d0fd6a2a92ecbcf77fce 03-Dec-2010 Wu-cheng Li <wuchengli@google.com> Update scene mode affected settings during initialization.

Change-Id: I41e8b0e7e48658c56f0bcc1a4c0842b946feffe2
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
85337c206051c2c7d33cca83255e00d92e288421 02-Dec-2010 Hung-ying Tyan <tyanh@google.com> Fix the camera layout in image capture intent mode.

Bug: 3226748
Change-Id: I0f01f4848aee7c8f82f785c5e42266d6247d06b4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
937ea10204656beaa848df913dc9cb9b5a9b934f 30-Nov-2010 Wu-cheng Li <wuchengli@google.com> Let event fall through when users press outside popup windows.

Change-Id: I419c1436f07a91dbcdc851c891c3408ffcdd1429
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
dfc4793ddd07b8a80cdc9989afba006582443a01 30-Nov-2010 Wu-cheng Li <wuchengli@google.com> Remove double tap to zoom.

Double tap to zoom is not very discoverable. Now zoom control is
more obvious. It should be fine to remove double tap to zoom.
bug:3229583

Change-Id: If0cfb75bd15b4721165a8943482b836fd4fb3125
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
823d57389b616091827059ca6401f675e416a53b 30-Nov-2010 Wu-cheng Li <wuchengli@google.com> Override other camera settings when scene mode is active.

Flash mode, focus mode, white-balance cannot be changed when scene mode is not auto.
bug:3156671
Change-Id: Iac019735e570903a1b9197ae6856cc612c7e67cb
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e747919853dfcbe29969647d7bf83269056d77bc 29-Nov-2010 Wu-cheng Li <wuchengli@google.com> Move scene mode to indicator wheel.

bug:3156671
Change-Id: I8e663f7bfde805eeef06bf4f3d9b883a58e51ce5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
048f1818ab5bff5ba97ea416a5166890c812ac1b 25-Nov-2010 Wu-cheng Li <wuchengli@google.com> Remove front/back camera switch from indicator wheel.

bug:3156676
Change-Id: Idb1052563356e54a27b2a5628c3db252d5f1ac54
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
59ddc8c1add2fcffe523e3877baad1b6cc5ba2fb 22-Nov-2010 Chung-yih Wang <cywang@google.com> Add front/back camera switch

bug:3156676
Change-Id: I8a5394aefa068cb099b89c5739abf0cfd78591a9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
eb1f0c8299d96bad9bb449ff9e13eff4b43272cc 18-Nov-2010 Hung-ying Tyan <tyanh@google.com> Highlight camera/video icon when mode is changed.

+ Make camera/video icons on switcher radio buttons instead of RotateImageView
for x-large devices.
+ Add icons for camera and video on different states (normal and checked) for
x-large devices.
+ Add SwitcherSet.java that consists of the radio buttons and the Switcher and
replace the camera_switch_set linear layout with it.
+ Replace Switcher with SwitcherSet in Camera and VideoCamera.

Bug: 3156677
Change-Id: I1ea7b4d4149d0a8dc548086150a9ae1a616cd8de
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
43b6525b4aedc5e177163cab7b6f26698a19097f 13-Nov-2010 Wu-cheng Li <wuchengli@google.com> Set video orientation hint according to device orientation.

Also rotate the on-screen icons according to device orientation.
Move prepare to startVideoRecording because we need to set
the latest orientation to MediaRecorder.setOrientationHint.
setOrientationHint has to be called before prepare.

Manual merge from gingerbread.

bug:3163671
Change-Id: Ieeb4ed9a2777308a70cdd1242e5abf7867ead8c9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1b6cd72127f64a5306ee4acecaf6113627d35db2 13-Nov-2010 Wu-cheng Li <wuchengli@google.com> Move some classes out from Camera.java.

Change-Id: I455d6878feeacb3d44d80d899e8c948e1d28fca2
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
13161c7fe39bf019a334d8ea7e4eaddc1988adad 13-Nov-2010 Wu-cheng Li <wuchengli@google.com> Change the thumbnail list to a single thumbnail.

UI was re-designed.
bug:3156693

Change-Id: I766aab7dce9030f3b2800ea0995e7f4e118241a6
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
70027ba6263ffc7958a24ad8524e7e0a00323816 13-Nov-2010 Wu-cheng Li <wuchengli@google.com> Various UI changes.

- Add video quality to the indicator wheel.
- Remove the head-up display in camcorder app from xlarge devices.
- Move recording time down a little bit.
- Align the zoom control to the left of control panel.
Change-Id: I0732e80edd80a703bcb2350fb4bb01a2c473e6a5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6eabb9b770a7c60cb92aa2e22f360754f32f39f8 11-Nov-2010 Wu-cheng Li <wuchengli@google.com> Close the camera application immediately when media server dies.

Crash the app earlier. Otherwise, the app will crash later in other
places and the log is gone. Getting a new Camera object is not good
because it's hard for the app to reset the current state. For example,
the state can be autofocus, preview, snapshot, recording, saving
thumbnail.

bug:3178948
Change-Id: Ibb38e6bfe927ed2ab9b87e2ee47044be8b96727b
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a2cbd31e81bf6b4a65ade4a5c34c303546d57d8c 11-Nov-2010 Hung-ying Tyan <tyanh@google.com> Move camera UI elements to their own xml files.

Hopefully with this CL, the code doesn't need to worry about the placement of
the UI elements.

Change details:
+ Move preview frame out of camera.xml and video_camera.xml.
--> create preview_frame.xml and preview_frame_video.xml in both layout/
and layout-xlarge/.
+ Move thumbnail list view out of camera.xml and video_camera.xml.
--> create thumbnail_list.xml in layout-xlarge/.
+ Make camera.xml and video_camera.xml a pure container which includes other
UI elements.
+ Create camera_attach.xml and video_camera_attach.xml for the attachment
scenario with its own camera control and no thumbnail list.
+ Camera and VideoCamera are modified accordingly.
+ Remove redundant RelativeLayout container in camera_control.xml.
+ Also fix a layout bug in PreviewFrameLayout.java.

Change-Id: Ief556c9aa77b0322312bb46ce1d274df3a26aa4d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
02ec7c0880ded5863d73d6f173ef35ab5c888dcd 04-Nov-2010 Wu-cheng Li <wuchengli@google.com> Change setting picker to popup window.

UI was re-designed.
bug:3156666

Change-Id: Id40fab084f59cdeca8e2991dc8b3768fcac8e0bf
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1f09dac3d664734d099765783dae1233ef023226 11-Nov-2010 Wu-cheng Li <wuchengli@google.com> Fix the crash on tapping settings button when in front camera mode.

bug:3166485
Change-Id: I1c89a1fbfd5689d9881a7e62e4fac91770728368
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2c111a30c3a6bc6da85f092abb1111a24b166cb9 11-Nov-2010 Wu-cheng Li <wuchengli@google.com> Revert "Close the camera application immediately when media server dies."

This reverts commit 9cdae7b99f46a9a18bc2661d487f6f1e003f45ae.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9cdae7b99f46a9a18bc2661d487f6f1e003f45ae 11-Nov-2010 Wu-cheng Li <wuchengli@google.com> Close the camera application immediately when media server dies.

Crash the app earlier. Otherwise, the app will crash later in other
places and the log is gone. Getting a new Camera object is not good
because it's hard for the app to reset the current state. For example,
the state can be autofocus, preview, snapshot, recording, saving
thumbnail.

bug:3178948
Change-Id: I28a8b962d39d488f374a6f14550655d516a696bc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f63366e6305e75ae289aaac20b397a3e9633d9df 09-Nov-2010 Hung-ying Tyan <tyanh@google.com> Add GPS on-screen indicator UI.

Bug: 3156684
Change-Id: I8985359e9f31df656cbf27024323da7ff33bac92
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ec689e833e5730517d190a136710186a8f0c1445 09-Nov-2010 Hung-ying Tyan <tyanh@google.com> Add new layout file for camera.

+ Copied the layout file from res/layout and put it in res/layout-xlarge.
+ Changed FrameLayout to RelativeLayout in the new layout file.
+ Replace FrameLayout with View/ViewGroup in the code as it's not layout specific.

Bug: 3156684 (in progress)

Change-Id: Ife35528c08bc0e35793a0ff645ec9a7260c842c1
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
87695169a6b54b39258f236656b31991a3dbc2f8 04-Nov-2010 Wu-cheng Li <wuchengli@google.com> Rename some classes and method names to avoid confusion.

bug:3156674
Change-Id: Ia907303880bf806e66431a527a6b778762296796
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7f0d458b7d2ed913879db247d16abcfdec0dc897 01-Nov-2010 Wu-cheng Li <wuchengli@google.com> Add other settings to control panel.

Head-up display is removed from xlarge devices.

Change-Id: I4e05076ae368a7e288d56a092ffb92e9eee8376e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c858490003196648f5f25f56bce716cd24ba9446 25-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add other setting icon in indicator wheel.

Change-Id: Iab326b5b75cacaf6a2e70de9faed28291665d1d7
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5fda23dc5c015de8fcf9956c2fc9849a8c44b265 21-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add color effect UI to indicator wheel.

Change-Id: I9f6724e6b5410fa4758dc0f0d4d28c5dc377567a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9a2b75b19b46ad5a66edf9a1c97f8da281c3dfdc 19-Oct-2010 Jean-Baptiste Queru <jbq@google.com> Merge 559a4151 from gingerbread-plus-aosp

Change-Id: I8ec4aa5210cb5104bedb7d5ed6f823f44517b203
c1dd72054122befb49aa1ca11ffa589b00186f80 18-Oct-2010 Wu-cheng Li <wuchengli@google.com> Fix wrong usage of setRotation and setOrientation.

bug:3105659
Change-Id: Ie2c1559cc03ece66705c1d766bea0e736f2684bc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8974ca6b9412446d05f580c8d694d7e61eacb5ce 17-Oct-2010 Wu-cheng Li <wuchengli@google.com> Show indicator wheel and zoom picker earlier.

They should apeear together with switch and shutter button.

Change-Id: I5ec64cbbbabc3b5cce2bf5d0a11f11168d860faf
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
de751a6a61b0e2806df4b2c5902aaadc7bb1aeb4 14-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add gallery button in thumbnail list.

Change-Id: Ide40ca003bd2454c27805e3c5a857845595ffc28
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3966b3079aeaadbf376bee6aa0e12ff15863da4f 04-Oct-2010 Wu-cheng Li <wuchengli@google.com> Show only the images and videos under DCIM/Camera.

bug:3053286
Change-Id: Ib6c169d51c95ffae8343ea2e250150bdc43cddda
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f5bffc476b8293b30bb500bed2ab7914bb4ca411 12-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add more settings control in control panel.

Change-Id: I6280f5bfbcc87fde2ae046b65a9f91fa620c88bc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6490868a51c9b8c79f30c8d257f89adb8d26b7b9 05-Jul-2010 Owen Lin <owenlin@google.com> Implement the quick capture mode for Camera.

Bug: 2781348

Change-Id: I95d4d5bd9100061c93d1f0926877a0df13307458
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
456f098f934bce0f06fb54a81fb74e0a9429e3d2 14-Oct-2010 Wu-cheng Li <wuchengli@google.com> Double-tap to zoom should only work on preview frame.

Change-Id: I97fa06c3d03c25e4578f14e178b441c5c75814b5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
68b42c6483dfdde2ba899ba09f2122b0c2a5d556 14-Oct-2010 Wu-cheng Li <wuchengli@google.com> am 323d012f: am 1f33b0ca: Merge "Do not call autoFocus in fixed and EDOF focus modes." into gingerbread

Merge commit '323d012feff1265ee67e0051605c030fa4187a5d'

* commit '323d012feff1265ee67e0051605c030fa4187a5d':
Do not call autoFocus in fixed and EDOF focus modes.
e66f0cf3fa14c57ae18104f679ad3d98c90af11b 12-Oct-2010 Wu-cheng Li <wuchengli@google.com> Fix NPE when shutter is pressed before using setting wheel.

Change-Id: Ibaf712ca196061a61d5c5c40a80ed221ff49bf1c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a73ebf03d722d965fc9b394bba2187a66559949f 12-Oct-2010 Wu-cheng Li <wuchengli@google.com> Do not call autoFocus in fixed and EDOF focus modes.

bug:3088128
Change-Id: I9ee656072449b7b900ba03d2afd2ff9ffd9867e0
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
dfee7f813adb8de209472d24553b860d2515ea0a 11-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add white balance setting UI for xlarge layout.

Change-Id: I9775aae56cdee41232e628ebbaa87f7749d7e61f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6f2283fbf049ad1f9870a86474af295604d95600 10-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add camera setting icons around the shutter button.

The icons are not clickable yet.

Change-Id: Ic88197386884849da32774aed932f358043b61b5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c5019f4d58412da6227b3f2e6461bba5b7c671a3 04-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add zoom picker for xlarge layout.

The zoom of on-screen controls is not created if zoom picker
exists.

Change-Id: I229108aa8bc3eac7175acec46e14240627c7da7c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c300a0266d634bb7a1e2df816e97bad2836991ac 03-Oct-2010 Wu-cheng Li <wuchengli@google.com> Pass camera id to CamcorderProfile.hasProfile.

In the future, android.hardware.Camera.Parameters should
have a getCameraId. It is easier for apps to know which
camera it is now.
Change-Id: Iae529c02d89b64a9158a0bdc4b4d0cfd293e7270
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
19cc9417181a1c91ae3ba879df0847933fbf2cfa 30-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 85ab5916: Fix the crash when zoom is not supported.

Merge commit '85ab591653bf09a4c851db374b000ecb18a7a970'

* commit '85ab591653bf09a4c851db374b000ecb18a7a970':
Fix the crash when zoom is not supported.
264d761a902e0f313a8124db91afc80b9e4f78e9 30-Sep-2010 Wu-cheng Li <wuchengli@google.com> am da9b3683: Merge "Fix the bug that on-screen zoom ratio is not reset." into gingerbread

Merge commit 'da9b36836565feab82573e2a1d8713caad67b061'

* commit 'da9b36836565feab82573e2a1d8713caad67b061':
Fix the bug that on-screen zoom ratio is not reset.
1efb18228a45952d699af280482e1c51a4582690 29-Sep-2010 Owen Lin <owenlin@google.com> Change review action domain to com.android.camera.

Change-Id: I21b3ef1494296671472acf3619688739861f2cff
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
85ab591653bf09a4c851db374b000ecb18a7a970 30-Sep-2010 Wu-cheng Li <wuchengli@google.com> Fix the crash when zoom is not supported.

Change-Id: I552f3857d52ed03a2e89e171ccb606dbf940ed44
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c6e3c7823339031096af937464cb528f53e045cf 29-Sep-2010 Wu-cheng Li <wuchengli@google.com> Fix the bug that on-screen zoom ratio is not reset.

After onPause and onResume, zoom value is reset to 1x
but the on-screen text is not updated.
bug:3024097
Change-Id: I1e5be3732b79073da6582799bba54364e87e5d88
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9f73bd9a85d295091fae39dc256a122e1843e2e8 18-Sep-2010 Wu-cheng Li <wuchengli@google.com> Add last captured image thumbnails for xlarge devices.

Change-Id: I96d5472b62a7ffcc57642c09a0a7567a19f6ed42
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6bf9e407d0dc0cd7e2f1f4799987523b107e8c96 28-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 141e3cc6: Fall back to standard VIEW intent if cooliris gallery does not exist.

Merge commit '141e3cc66815fafce690c889269a30ce7e06c4da'

* commit '141e3cc66815fafce690c889269a30ce7e06c4da':
Fall back to standard VIEW intent if cooliris gallery does not exist.
3de23de7b4035255714cd41ccc3d1310cbcb505c 28-Sep-2010 Wu-cheng Li <wuchengli@google.com> am a79c5e1d: Do not switch camera if the activity is pausing.

Merge commit 'a79c5e1d807e5c86f5f9ced44eac50076596e1ab'

* commit 'a79c5e1d807e5c86f5f9ced44eac50076596e1ab':
Do not switch camera if the activity is pausing.
141e3cc66815fafce690c889269a30ce7e06c4da 27-Sep-2010 Wu-cheng Li <wuchengli@google.com> Fall back to standard VIEW intent if cooliris gallery does not exist.

bug:3039893
Change-Id: I52062ba817e2b6393df6c93f41492ca19c32f4f5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a79c5e1d807e5c86f5f9ced44eac50076596e1ab 29-Jul-2010 Wu-cheng Li <wuchengli@google.com> Do not switch camera if the activity is pausing.

bug:2876907
Change-Id: I581d1ebe07dae56b8e5daa5da320f19e7e531842
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2b2cbfb78e3e184b55041926c7bc7bdc18cb5934 16-Sep-2010 Wu-cheng Li <wuchengli@google.com> am c97d2382: Update the code due to API change.

Merge commit 'c97d23826a28dd725951eccb62651244f9fb8228'

* commit 'c97d23826a28dd725951eccb62651244f9fb8228':
Update the code due to API change.
da395f80c71733e46736927f84e731066346f95e 16-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 50ab7fd1: Merge "Fix the wrong rotation on naturally landscape devices." into gingerbread

Merge commit '50ab7fd18e8a631237f7546cd25af974e3e30dcb'

* commit '50ab7fd18e8a631237f7546cd25af974e3e30dcb':
Fix the wrong rotation on naturally landscape devices.
c97d23826a28dd725951eccb62651244f9fb8228 15-Sep-2010 Wu-cheng Li <wuchengli@google.com> Update the code due to API change.

bug:3001395
bug:3001399
Change-Id: Ie1347ed28aa72a3ec637867dc2226c60ef2dbd6c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4aaa2130af7241f128ee561cafd17a4fb560b92c 10-Sep-2010 Wu-cheng Li <wuchengli@google.com> Fix the wrong rotation on naturally landscape devices.

The orientation of on-screen icons and thumbnails are
wrong on devices that are naturally landscape in their
orientation. Display.getRotation should be used to
compensate.

Parameters.setRotation should also be compensated by
camera's orientation.

Change-Id: Ia0684fcd606252c49fa2d701ab07c73f7e29b70b
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8eaa6919f0d5c10c95c99f2f937d57ea5c4a5bba 26-Aug-2010 Wu-cheng Li <wuchengli@google.com> Add switch camera on-screen button. DO NOT MERGE

Change-Id: I00895a9df69d2b29656075da1e03b1a1f684b107
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7add00693c1ec910bc8700fe046ee18cbe4e1148 09-Sep-2010 Wu-cheng Li <wuchengli@google.com> Add switch camera on-screen button.

Change-Id: I1564fdf0f7f70f15278bdbdee6d9b5c8a6e683e0
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
77b6c6a8ef32eeca4c527ca52b04451e7458599e 08-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 4714a1cf: Use SharedPreferences.apply to reduce latency.

Merge commit '4714a1cf1d211aad2d8cf1802f85f649e744beb0'

* commit '4714a1cf1d211aad2d8cf1802f85f649e744beb0':
Use SharedPreferences$Editor.apply to reduce latency.
4714a1cf1d211aad2d8cf1802f85f649e744beb0 08-Sep-2010 Wu-cheng Li <wuchengli@google.com> Use SharedPreferences$Editor.apply to reduce latency.

Replace all commit with apply.
bug:2978683
Change-Id: I6c057fab588aada7c35d03f6237fb850d2a2e856
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
65c5919bc9d1aa584717cbd9a2641151a4e41426 02-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 3c7f489d: Merge "Remove quick capture UI. It is not used." into gingerbread

Merge commit '3c7f489d9ea86e6f37b596469173cd3ceca3ad58'

* commit '3c7f489d9ea86e6f37b596469173cd3ceca3ad58':
Remove quick capture UI. It is not used.
712a221b09dd39d7416b365aab616476d6ffb8a5 01-Sep-2010 Wu-cheng Li <wuchengli@google.com> am d4a37518: Fix wrong orientation after suspend and resume.

Merge commit 'd4a37518c3b73fcf1860ab10fd3bb7e7ceffba99'

* commit 'd4a37518c3b73fcf1860ab10fd3bb7e7ceffba99':
Fix wrong orientation after suspend and resume.
ed8d17a1716b0c8d7d4f4451ad15de66355e9dc0 01-Sep-2010 Wu-cheng Li <wuchengli@google.com> Remove quick capture UI. It is not used.

Change-Id: Ie087afba5633304c71ca5f72276d16f620931869
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d87cb2b7fec4fa2d4ccfb8600a5eb60bae9facf7 01-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 1ba127ec: Merge "Stop and restart the preview in surfaceChanged." into gingerbread

Merge commit '1ba127ec81106c9f63ef945137f315a55da59f4a'

* commit '1ba127ec81106c9f63ef945137f315a55da59f4a':
Stop and restart the preview in surfaceChanged.
d4a37518c3b73fcf1860ab10fd3bb7e7ceffba99 31-Aug-2010 Wu-cheng Li <wuchengli@google.com> Fix wrong orientation after suspend and resume.

Camera application calls setDisplayOrientation according to
Display.getRotation and sensor orientation. After power key is
pressed, camera app resumes behind the lock screen and preview
is started. Rotation is 90 at the time. After the screen is
unlocked, surfaceChanged is called because the orientation is
changed from portrait to landscape. Preview is stopped and
restarted. setDisplayOrientation should be called again because
the rotation has changed to 0.

bug:2870671
Change-Id: I1ca5106087c168d88cc8eb4f2a9f192d7fa75a8a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
068a2e745b284b33af161d629adb9b7839be32d1 01-Sep-2010 Wu-cheng Li <wuchengli@google.com> Stop and restart the preview in surfaceChanged.

If surface is changed, applications should call setPreviewDisplay
again.
Change-Id: I91072e6daba841db486b54240bb85c455588aaee
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7a03ab3258d2c6baa397da09c8a98b0a23426d8c 30-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 454c6838: Remove metering mode support.

Merge commit '454c6838bb220142d05fbd6f1858ba31cc034eda'

* commit '454c6838bb220142d05fbd6f1858ba31cc034eda':
Remove metering mode support.
454c6838bb220142d05fbd6f1858ba31cc034eda 30-Aug-2010 Wu-cheng Li <wuchengli@google.com> Remove metering mode support.

Change-Id: I624f611e19c438630bc84778332d13f0357da23f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6227fa641518492a6b660c78463da18d9ec8fcd8 06-Aug-2010 Nipun Kwatra <nkwatra@google.com> Added support for time lapse video capture.

Changes in individual files:

VideoCamera.java:
- Added swith to time lapse option in Menu.
- initializeHeadUpDisplay(): sets up display according to the
current mode (timelapse/no timelapse).
- readTimeLapseVideoPreferences(): sets parameters according to
the chosen quality. Eventually this should move to CamcorderProfile
through media_profiles.xml files.
- switchTimeLapseMode(): handles switching between time lapse mode
normal mode.
- Since preview size may be different from video size for HD time lapse
capture, we save the desired preview size in mDesiredPreviewWidth,
mDesiredPreviewHeight and use it for comparison in
resetCameraParameters().
- Time lapse mode is enabled/disabled by calling
mMediaRecorder.setTimeLapseParameters().

CamcorderHeadUpDisplay.java: Constructor now takes in a boolean
(captureTimeLapse) telling whether to enable time lapse quality
options or the normal camcorder quality options.

Camera.java: Moved getOptimalPreviewSize() to Util.java to enable
use from VideoCamera.java. Also needed to pass activity, so that can
use getWindowManager(), getSystemService().

CameraSettings.java: added support for time lapse parameters. The
function getVideoTimeLapseQuality() returns the quality identifier
from the passed in string.

res/: added string, array values for time lapse.

res/xml/video_time_lapse_preferences.xml: contains all the preferences
for time lapse mode.

Change-Id: I194e7bc0b6218aa742d91c859a122de2b953a314
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8e5e83e6c5de9186e25bca70f6efc918dd2c5050 05-Aug-2010 Wu-cheng Li <wuchengli@google.com> Do not cancel autofocus when snapshot is in progress.

The bug occurred when camera key was half pressed, focus completed,
camera key was fully pressed, and camera key was released.

Change-Id: I4f25ee2e819cecbb59809de85fb450091e655927
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1ef634d277d550ed55b5b7089dfd56ed71815bd6 17-Jun-2010 Chih-Chung Chang <chihchung@google.com> Support multiple camera preferences.

Change-Id: I7c8440424c472c9ff61ac22692ce60234d359efe
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ac9d0a1ce538eb4bd50cba3b257737a05b9ac4e5 15-Jun-2010 Chih-Chung Chang <chihchung@google.com> Support switching between multiple cameras.

Change-Id: Id444ebcd780c67f4990bd6f6b96c74379b6859ab
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
186ff08e71d106e329171055accd4395760495ea 04-Jun-2010 Wu-cheng Li <wuchengli@google.com> Add metering mode support.

Change-Id: I8b964df4534da0b393479baddabfc85ce1b09b2f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0ab73a87e749477080c566cb9612cd3f25dc7574 28-May-2010 Wu-cheng Li <wuchengli@google.com> Show better message to users if camera fails to access sdcard.

Also print the exception if sdcard access fails.
bug:2713104

Change-Id: I35a553ee75a49398582b587755d097b02b144015
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c8e13fecea56e679418f41ba454f867c49f888aa 13-May-2010 Owen Lin <owenlin@google.com> Initialize the HeadUpDisplay only once in the life time of the activity.

And review the code so that mHeadUpDisplay won't be null when used.

Change-Id: I335a25e64035627c30ec2c6f45c17566f0ea2420
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
125dee14bedc326bfbbb751278d549bafe349135 12-May-2010 Ray Chen <raychen@google.com> am e3911500: Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photo http://2672651

Merge commit 'e391150007300e63d3fb6e2236db3f4c9247fb9c' into kraken

* commit 'e391150007300e63d3fb6e2236db3f4c9247fb9c':
Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photo
e391150007300e63d3fb6e2236db3f4c9247fb9c 10-May-2010 Ray Chen <raychen@google.com> Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photo
http://2672651

Change-Id: I7992574e978bba1f65c01c942220b0d435b45029
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f1672b4a703ea7600f17f451f6632f1cd399e839 06-May-2010 Owen Lin <owenlin@google.com> Initialize zoom in "InitializeSecondTime" so that we can get correct values for
zoom ratios.

Bug: 2643926

The zoom ratios are changed when the preview size changes. We need to read it i
again to get the latest values.

Change-Id: I64a248eba2aa63456f14452ffccaeaab090cc748
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0d73bccf89870682007dd32d4a84bcdb812e2cc7 05-May-2010 Owen Lin <owenlin@google.com> Handle events in the main thread and use GLThread only as a rendering thread.

Coordinate the two threads by synchronizing on the GLRootView instance.

Change-Id: I94459f6afeb468660df7219800bc48b621edecd4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cdf69cba3617c446e4fe9a92b4b4199c6ed36d01 05-May-2010 Owen Lin <owenlin@google.com> Move the texture coordinate 0.5 pixel inner so that GL won't get garbage
data.

So that GL won't get garbage data when do sampling.

Change-Id: I58a88c2fb1166e0c3991edfd320c69633c89d102
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f86e6af0b8833f5f8a4b03fefba54b1922280d28 22-Apr-2010 Chih-Chung Chang <chihchung@google.com> Startup time improvements.
Bug: 2430326

Change-Id: I36dde4cee9f086e468caf87378ce1f2fd0d011c7
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
18a0b5bb13b9dc9cdb01d03e901c0836742f7a3a 21-Apr-2010 Owen Lin <owenlin@google.com> Reset scece mode overrides in InitializeHeadUpDisplay.

bug: 2612518
Change-Id: I1b349f3b52cb2f474fa1b0790cc1f8fbecb0b9aa
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f00d421845b4ff2eca1354419889886fec5f2538 20-Apr-2010 Owen Lin <owenlin@google.com> Remove GLRootView in onPause() and put it back in onResume() to avoid OOM in
Gallery.

Bug: 2557840

Change-Id: I2d6ff6da25bfe342472278efd5fc25c38d5fd5ce
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
523432315cea8f18d703a0d547b4614ce42b6918 20-Apr-2010 Chih-Chung Chang <chihchung@google.com> Don't stop user from taking pictures while the media scanner is scanning.
Bug: 2603078

Change-Id: Ic2159201434083919d7f7bc6b1ea2f3438971ebd
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
29fbda065e287c87b4939a541a24e4f965e0b4f3 14-Apr-2010 Ray Chen <raychen@google.com> Always encode GpsTimeStamp in Camera.
Bug: 2596154

Change-Id: I00f40032e7db512ab09f6a66e5db7dbef8dc8e27
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e6ffea291dde5adde94bf337731213e7fd3c8c56 04-Apr-2010 Wu-cheng Li <wuchengli@google.com> Do not register OneShotPreviewCallback to reduce latency.

bug:2430326
Change-Id: I14f10f1317096966edc094fc4df8691ec20fee11
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e453bdb87ca7eb4e05b817774124731237a3d437 04-Apr-2010 Wu-cheng Li <wuchengli@google.com> Update the code due to API change.

bug:2553570
Change-Id: Ifa6b2ebbbd0d988deef25afdd013b5429438e52a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
82544b4564c079ece1a9065d19add36b2635bb8f 01-Apr-2010 Owen Lin <owenlin@google.com> Remove unused resources and code.

Change-Id: I394352f9da02d2585b2635e07c96bfa1c942d070
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3a4ef93f95bed9f812fe75ef94296450833b3997 31-Mar-2010 James Dong <jdong@google.com> Camera app update due to CameraProfile and CamcorderProfile API changes
Also, make the quality level mapping from String to numeric number less
fragile.

Dependency: https://android-git.corp.google.com/g/#change,47310

bug - 2553862

Change-Id: I50606a16bd9d377f5002bc784a9dcc7b9f8c1486
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b2b23846d89c63ba0d28bbc7627022e6b9fa620b 26-Mar-2010 Owen Lin <owenlin@google.com> Fix one more NPE. (Second run)

Bug: 2529339
Change-Id: Idbfa4e6950a9e1ee3259226697d1cffa34dd23fa
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3eed8999c9fd92600c74225b671a2f03d7dd51d4 25-Mar-2010 Owen Lin <owenlin@google.com> Add some more ways to dismiss popup window(UX change).

Bug: 2538066
Change-Id: Ieb5b28500363ff5cc88b508329c84c35ebc5b230
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
137417dade91f8a98cefa655cbd0d48b8cf52af1 25-Mar-2010 Chih-Chung Chang <chihchung@google.com> Revert "Fix one more NPE."

This reverts commit 416f65b0cc009d251a16512e7b6c3621bf62dc76.

This broke video recording because the GLThread has exited
after the GLSurfaceView is detached from the window, so the
the runnable put into queueEvent never runs.

Change-Id: I7b071ef170d4d36fd551a81db9f3af7f6ff85a83
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
416f65b0cc009d251a16512e7b6c3621bf62dc76 23-Mar-2010 Owen Lin <owenlin@google.com> Fix one more NPE.
Bug: 2529339

Change-Id: Ia9ea3ba839e35e1ce3e5cb3a1b1f0cc6f83f1465
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
637248771a704926412c975da11a0877222e1766 23-Mar-2010 Chih-Chung Chang <chihchung@google.com> Insert the "size" column with other attributes at the same time,
so we don't need to spend time updating it.

Change-Id: I5d22f132f4d63b7a0a5bf8dfcfa04505ed324f34
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
35688439f40f00a1376dcfab6e6495989d82e433 22-Mar-2010 Wei-Ta Chen <weita@google.com> Fix 2533691 by using REVIEW intent added in Gallery.

Bug: 2533691

Change-Id: Ia8b7732a485bde5dec6b7cff0b80d4d6f08a8fee
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e36da237f13cb3f31ec6fe3af98f2f838cabc6b2 22-Mar-2010 Owen Lin <owenlin@google.com> Fix several NPEs.

Bug: 2529432 and Bug: 2529344

Change-Id: I6c845da35d7fcef7b3fc38952a32793458e1f59f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
72d0f95789afb93ea795c9e5deefcbe53d41fef7 20-Mar-2010 Wei-Ta Chen <weita@google.com> Fix 2427867 by specifying the "review" extra when reviewing the last video/photo.

For reviewing video, we explicitly start the activity: com.cooliris.media.Gallery.

Change-Id: Ied03c3d33e426c53a9841b7fb9f10c1ebcc904cb
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f6b8405781b996997cab596419b5c79c8288a5bc 19-Mar-2010 Owen Lin <owenlin@google.com> Fix the startup crash.

Change-Id: Ide5dbbfe00f13cdcc09bf687e838243e579d43d0
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ae7c3e5050bd58f57bd107cf3205f960988543fe 18-Mar-2010 Owen Lin <owenlin@google.com> Fix the zoom indicator not updated issue.

Bug: 2524432
Change-Id: I92bbbb5cc309ae8c1fff2df42691f8111a2d71f4
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d5394c4c526a08b71d29ac1a09ffcf0e54de9caa 19-Mar-2010 Wu-cheng Li <wuchengli@google.com> Get the parameters before reading maximum zoom.

bug:2458926
Change-Id: Ie987df3ecfddc5582b101b4ead267dc2dbd7cc23
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
706bd006d25aa8f322a9807eda6183a3941ad2c6 18-Mar-2010 Owen Lin <owenlin@google.com> Fix the picture size settings doesn't get initialized issue.

Bug: 2524062
Change-Id: Ia1062a23572dce7acc00a6877b92d088bc62aae6
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f5876dbd29607a0e9762f88e9db6fa35ffb20067 18-Mar-2010 Owen Lin <owenlin@google.com> More improvement on UI.

1. Disable on-screen settings while video/camera is acting.
2. Reset exposure in onResume()

Change-Id: I4a58ae9c1a2ecff6d3f504de48e2504c8d86c1f3
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
59b5974a4ae078eb7628fd855db89e5be9b0fe6f 16-Mar-2010 Owen Lin <owenlin@google.com> Some more improvements of the UI.
Use stencial test to draw popup-window
Fix the ACTION_UP won't send to mMotionTarget
Make the text color in Zoom indicator same as others

Reset exposure compensation in onCreate

Change-Id: I4ff7c3774fd0573cc6ac4a86dbeeb9588b587d0c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9ae7d027bb8f55b85a158cddeb7ed84c5a0a7983 13-Mar-2010 Chih-Chung Chang <chihchung@google.com> Add switch to Camera/VideoCamera menu item.

Bug: 2249997
Change-Id: I14434fb5c617a62e02eaace120157c4a9d32e681
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ee1cf3f0509987e9c76626077bd8117399311ced 15-Mar-2010 Chih-Chung Chang <chihchung@google.com> Update camera parameters only when the camera is in idle state.

Bug: 2497176
Change-Id: I66b5c676884805fc1d3ca8c2109b8c210a66880b
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
469a9ef839e38630e1e652d182f7e0ee5882e277 10-Mar-2010 Owen Lin <owenlin@google.com> New UI for camcorder.

Change-Id: Id35564836da7b4051662cccfd0920480421499b0
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c24155c65b45f554ffc29c523d7ea8e63ea10d33 10-Mar-2010 Owen Lin <owenlin@google.com> Restore Settings.

Change-Id: Ie5c26869151dd8959c122bf3c748d61420ac5c30
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1de0469fa91cee8ed0771d020042cc82576a601c 11-Mar-2010 Chih-Chung Chang <chihchung@google.com> Wait for camera idle (not focusing or snapshotting) before setting parameters.

Bug: 2497176
Change-Id: I8ac0d58e4f56042c70f30733aa6658ad4ca671b1
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e480f77352d670b2892a9b7b7cd503838b71ca9f 10-Mar-2010 Romain Guy <romainguy@android.com> Camera should have the com.android.camera package name.
Related to bug #2464545

Change-Id: I08f5cce5b0df623fc62683bd9c9d4a1aa0694240
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
33be45a1abaf6a8d611fb87b18945c84ab76c229 06-Mar-2010 Owen Lin <owenlin@google.com> Add the new ZoomController UI and also the exposure compensation settings.

Fix the bug that some MotionEvent of some actions should always pass to the
component who accept the DOWN event.

Also fix a bug that nine patch image will be drawn incorrectly after rotation.

Change-Id: I8ab36fb6f958c1967afa11eed5f167842b59cada
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3889cf31101cfd4d336f1ce5ae5122c2cb3c0fdc 06-Mar-2010 Chih-Chung Chang <chihchung@google.com> Unbundle: change camera package name.

Change-Id: I9b101ea486f06be553104bc4879f5ec66ae014bc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
281be5337852cb4b5d24e0a0440c426cb96bbebd 03-Mar-2010 Owen Lin <owenlin@google.com> Add pixel density concept to the code. So, it draw about the same size on
mdpi and hdpi devices.

Update the UI assets for mdpi

Fix a issue that GLSurfaceView didn't call onPause and onResume in Camera.
Refactor. Improve the drawing and animation.

Also fix the RawTexture unsupported operation bugs and the NullPointerException
in GLRootView.

Change-Id: I7aeadcad72d64a665828a6bb4f0f73e685fde632
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e8697d7437c343e31e815fd4714238afafc7b1ac 05-Mar-2010 Chih-Chung Chang <chihchung@google.com> Remove unused code.

This is for unbundling, will clean more later.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2ab82979d1701477f8aee1f78919c77edb4e1eaa 25-Feb-2010 Ray Chen <raychen@google.com> Add location provider name to gps-processing-method parameter.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4de149ceb47f2c251f646419907424bfb67d2b64 29-Jan-2010 Owen Lin <owenlin@google.com> The first runnable version of the new UI.

Implement the new UI with OpenGL (GLSurfaceView).

Known issues:

* Texture are never freed from GL
* Do not consider the density of screen. Currently, the dimensions in mdpi
devices are wrong.
* It won't work on Sapphire, bug fired: Bug: 2473605
* The action UP event may pass a wrong target. (It should pass to the same
target who recive the DOWN action.
* Animation is not smooth enough.
* Should not allocate objects into heap during rendering path.
* The scrollbar in GLListView doesn't match the design
* We should calculate our own orientation instead of using the system one.
* Regression: "restore to default settings" is removed

Change-Id: I93fa45831aa87787dd5ee9e43e270a9d786c5a2a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
02627adfa3d240d817e34af69be8d07e9c66c136 24-Feb-2010 James Dong <jdong@google.com> Set duration and still image encoding quality using Java API
- rebased

bug - 2375978
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6d35fde323778d8e1725e399c80503061c200e16 04-Feb-2010 Owen Lin <owenlin@google.com> Fix the no "SD Card is full" bug. Now, we show the error message when we find
out the storage may be not enough for next picture.

Bug: 2377057
Change-Id: Ie6684738a282c382cf6368276dd78f77ca848611
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
803afcc7dae35d6a02e8882fc5fcbcdcca4eaad4 19-Feb-2010 Chih-Chung Chang <chihchung@google.com> Move set screen brightness later so we can start preview earlier.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f4d298013ceeca4b44d63d01587a33cb6bbf7f52 08-Feb-2010 Wu-cheng Li <wuchengli@google.com> Remove some log messages.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
550f04e9cf356b5be7436447d53172895c8407b8 05-Feb-2010 Ray Chen <raychen@google.com> Fix issue 2340332 Inconsistent UI between review mode in Camera app and album view in Gallery app
http://b/2340332
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
52064aa4bacfae605823b99f675649b1786e8c8a 26-Jan-2010 Owen Lin <owenlin@google.com> Fix a minor issue of "restore default" should also improve
performance as well.

Change-Id: I1a762ed78dc27bb711b652431481925c9bd1b8b5
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8791695ba110ad0b088d2e8b3b0127c0042e1865 23-Jan-2010 Owen Lin <owenlin@google.com> Add quick capture settings for Camera application.

Change-Id: Ic4ca9f9e1802559c0d6604616555a94cdee1378b
Bug: 2259528
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
73e782de608cbe2ddffd75c055009ff2e208f78b 19-Jan-2010 Owen Lin <owenlin@google.com> Unbundle with the PreferenceManager.

Change-Id: Ib415bf36147f35cbf1681cd87514124822ac48c6
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a9c2f922763d3f7d19c237f9c5bd46611b5076fd 22-Jan-2010 Wu-cheng Li <wuchengli@google.com> Fix the bug focus bracket may appear in infinite focus mode.

bug:2247217
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
85f7213b44515c06fee68a085065e5d96181465c 15-Jan-2010 Owen Lin <owenlin@google.com> Add restore default settings for Camera/Camcorder app.

Bug: 2167010
Change-Id: I1b59ddd23ee9a3b9cc34f911c048e269fb872cf8
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ed32015f4a0536e842306a207d620ec5e3f665c0 24-Dec-2009 Owen Lin <owenlin@google.com> Set the brightness to a fixed value.

Bug: 2318682
Change-Id: I367fde55fab1102019accd69e69dc516c583c153
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f4823480fdda6e6a4ec7deb28199a7c9631016e5 09-Dec-2009 Wu-cheng Li <wuchengli@google.com> Do not set orientation indicator while handling image capture intent.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
69d05c5c970a83ef5f429130ad378dd00f72c30c 09-Dec-2009 Wu-cheng Li <wuchengli@google.com> Fix the bug that -1 may be passed to setRotation.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ff58fb6921ccb7398ad30c8cec604c38c76be4fc 04-Dec-2009 Owen Lin <owenlin@google.com> Use icon to indicate the orientation of the taken photos.

Change-Id: I144e2dd590e98942763fc6e243da3e17cb25d88d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
30055f6830b3d524cfbdfeab6536bb46e390747a 21-Oct-2009 Petri Gynther <pgynther@google.com> Camera: Clean up the image/video file naming code

1) Create 'image_file_name_format' string in strings.xml

2) Change createName() routines in Camera.java and
VideoCamera.java to use 'image_file_name_format' and
'video_file_name_format', respectively.

3) Change image filenames on SD card to format:
IMG_yyyyMMdd_HHmmss.jpg -- e.g. IMG_20091020_120000.jpg

(Old format was 'yyyy-MM-dd HH.mm.ss.jpg' which
contained undesirable space character in the filename.)

4) Similarly, change video filenames to format:
VID_yyyyMMdd_HHmmss.3gp -- e.g. VID_20091020_120000.3gp

(Old format was 'video-yyyy-MM-dd-HH-mm-ss.3gp' which
was not consistent with the image filename format.)
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4d0f30896f412439b92f38bee204766fb5853b1a 21-Nov-2009 Owen Lin <owenlin@google.com> am 47dd2cf1: Fix black screen after resuming camera.

Merge commit '47dd2cf1dacad3687410ea6e8e4f05542a5fdc46' into eclair-mr2

* commit '47dd2cf1dacad3687410ea6e8e4f05542a5fdc46':
Fix black screen after resuming camera.
47dd2cf1dacad3687410ea6e8e4f05542a5fdc46 20-Nov-2009 Owen Lin <owenlin@google.com> Fix black screen after resuming camera.

Fix the issue that if surfaceChanged is called before onResume().
The new holder will be ignore and we will set null to the preview
display of the camera.

Change-Id: Ic563284e6302f4d174226297d1372c4ed349a084
http://b/2269582
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
471fd0aa7dccebe4ac63e8202ee9227ccb52c83d 20-Nov-2009 Owen Lin <owenlin@google.com> resolved conflicts for merge of 503560f0 to eclair-mr2

Change-Id: I9516a46bf0602cdff0128bf36d4e8dfb6ddd3823
503560f0dc42d6185c61be06f8060dfd50d30d69 19-Nov-2009 Owen Lin <owenlin@google.com> Keep space for those empty icons but hide them if the feature is not
supported.

fix bug: http://b/2250438

Change-Id: I79eb9d575cf275c25decc6236b80f61ecfdf3042
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e1706c13d469a163d811e29d33b86cc5d4bf67e9 19-Nov-2009 Owen Lin <owenlin@google.com> am 3e44f807: Use "Use My Location" settings to decide wheather we store the picture\'s location.

Merge commit '3e44f8076a16792bb295589ca4b467ba27ea2a6f' into eclair-mr2

* commit '3e44f8076a16792bb295589ca4b467ba27ea2a6f':
Use "Use My Location" settings to decide wheather we store the picture's location.
3e44f8076a16792bb295589ca4b467ba27ea2a6f 17-Nov-2009 Owen Lin <owenlin@google.com> Use "Use My Location" settings to decide wheather we store the picture's location.

However, if user has specifically assign the "Record Location" we will
follow the settings.

Bug: http://b/2265010

Change-Id: I4863d299b8f461ee73c8aeb4651740855efe3dbd
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
538e2e2a3923bb614db10bd8586781b6a5c8ec0c 17-Nov-2009 Ray Chen <raychen@google.com> am 92acbf6c: Merge change Ie07be885 into eclair

Merge commit '92acbf6c5a5c654bfdaa871afc891a8723acebf8' into eclair-mr2

* commit '92acbf6c5a5c654bfdaa871afc891a8723acebf8':
Fix issue 2259506 and 2262817 by keeping a reference to MediaProvider when camera is active.
6d68a36b5da24f70e1a8d5e9529720eeb8ce6d86 16-Nov-2009 Ray Chen <raychen@google.com> Fix issue 2259506 and 2262817 by keeping a reference to MediaProvider when camera is active.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
91e7670d43fb5e56e2cb8c5fd7bddb1f3dbeb162 12-Nov-2009 Wu-cheng Li <wuchengli@google.com> am 9324f11a: Add postview callback to know when the captured image is shown. b2237074

Merge commit '9324f11afe9366cd5479828a214dc8de8696a5ab' into eclair-mr2

* commit '9324f11afe9366cd5479828a214dc8de8696a5ab':
Add postview callback to know when the captured image is shown. b2237074
9324f11afe9366cd5479828a214dc8de8696a5ab 10-Nov-2009 Wu-cheng Li <wuchengli@google.com> Add postview callback to know when the captured image is shown. b2237074

Some platform display the captured image to the screen in postview callback.
Some do that in raw picture callback. The camera application wants to make
sure the captured image is displayed for at least 1.2 seconds. But orginally
the app does not register postview callback and always start the timer in
raw picture callback. Currently postview callback always arrives before raw
callback. Without this change, the camera app may think the captured image
is not displyed long enough and add some delay before starting preview,
which will increase the shot-to-shot latency (ex: 0.8s) unexpectedly.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8909442e0bde5cce301ae249ab658db22d36f093 06-Nov-2009 Owen Lin <owenlin@google.com> Remove some more unused code.

Remove unused memebers and parameters

Change-Id: I35ccef892bd711c078a45ddbd92b651f950ff864
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ca99fb07777edcde4c9159c1567b95a227e916fa 10-Nov-2009 Chih-Chung Chang <chihchung@google.com> am 01ed85fb: Merge change Ic823abd0 into eclair

Merge commit '01ed85fbf71fd89db9d031d1cc5529afd7b624f0' into eclair-mr2

* commit '01ed85fbf71fd89db9d031d1cc5529afd7b624f0':
Fix 2241232: Read system properties for quality setting.
faf398ff0fa2b51348b4545505112d70ba7b47a1 09-Nov-2009 Chih-Chung Chang <chihchung@google.com> Fix 2241232: Read system properties for quality setting.

Change-Id: Ic823abd0c352b3eca0b8ef504307bd1de7d1700f
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ff7da7918997b56fbf5f410bedf263622e014bb0 14-Oct-2009 Owen Lin <owenlin@google.com> DO NOT MERGE TO MR2. Fix the focus settings is incorrect when switch back to auto scene mode.

http://b/editIssue?id=2178247

Change-Id: Icae1d4f255106ef47766feb43481a37917e6e885
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ada28d6aed4403ea9ca8494f9fb2524681750d15 05-Nov-2009 Chih-Chung Chang <chihchung@google.com> am 05d20c0c: Improve 2237074: Make preview start earlier.

Merge commit '05d20c0c53cdb3a0381f03b160a840f84d42deef' into eclair-mr2

* commit '05d20c0c53cdb3a0381f03b160a840f84d42deef':
Improve 2237074: Make preview start earlier.
05d20c0c53cdb3a0381f03b160a840f84d42deef 04-Nov-2009 Chih-Chung Chang <chihchung@google.com> Improve 2237074: Make preview start earlier.

Change-Id: I9d7416cfd7c9cbaa3bc135ac8fd67776ec1c65e3
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
271b3095b9f763421c0547109da9de774795072d 02-Nov-2009 Chih-Chung Chang <chihchung@google.com> Clean up and add comments for classes.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
77c1cdc8f2cda250b1db842204efb49f87e094ae 02-Nov-2009 Chih-Chung Chang <chihchung@google.com> Clean up and add comments for classes.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
324b5936db190e06ef4619f89a3deb607de3234a 30-Oct-2009 Wu-cheng Li <wuchengli@google.com> am 2c854bb9: Fix the bug that wrong zoom value is set in takePicture.

Merge commit '2c854bb917480b69630c9ab01aa9247df57a564a' into eclair-mr2

* commit '2c854bb917480b69630c9ab01aa9247df57a564a':
Fix the bug that wrong zoom value is set in takePicture.
2c854bb917480b69630c9ab01aa9247df57a564a 30-Oct-2009 Wu-cheng Li <wuchengli@google.com> Fix the bug that wrong zoom value is set in takePicture.

The application does not getParameters in takePicture due to performance.
After smooth zoom, zoom value has been changed. But mParameters of the app
still keeps the the old value. This is a regression. b2226717
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
004d7dd159d0c208caac1bc8e260f5ecd821ce75 26-Oct-2009 Wu-cheng Li <wuchengli@google.com> am 316af30d: Use zoom api. b2060030

Merge commit '316af30d026dd182edb482ef6de7a330d6b1b012' into eclair-mr2

* commit '316af30d026dd182edb482ef6de7a330d6b1b012':
Use zoom api. b2060030
0c58cdb8537c60a09f512c3a01f9234936adbecc 22-Oct-2009 Cheng-Ru Lin <owenlin@google.com> am da460876: Chagne CropImage invocation to non-explicit.

Merge commit 'da4608768624b1fb492f6676c510b37ad5f294ba' into eclair-mr2

* commit 'da4608768624b1fb492f6676c510b37ad5f294ba':
Chagne CropImage invocation to non-explicit.
316af30d026dd182edb482ef6de7a330d6b1b012 21-Oct-2009 Wu-cheng Li <wuchengli@google.com> Use zoom api. b2060030
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
da4608768624b1fb492f6676c510b37ad5f294ba 16-Oct-2009 Cheng-Ru Lin <owenlin@google.com> Chagne CropImage invocation to non-explicit.

Change-Id: I38d5e9bee524c5e63c2457751756ee800c9b1947
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
70fe12f4d0ba9c08be9e0f0bda75b172a21cf70a 14-Oct-2009 Owen Lin <owenlin@google.com> Fix the focus settings is incorrect when switch back to auto scene mode.

http://b/editIssue?id=2178247

Change-Id: Icbd4eb80b88027f538ddeb4a44316e2b2be911c9
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4d2aefbe7c108bae9e4ae735c7cd230792201098 13-Oct-2009 Chih-Chung Chang <chihchung@google.com> Fix 2182549: Disable search button when using camera.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
12f4b9a20982fa31806385d8e76f1d6da8320739 06-Oct-2009 Owen Lin <owenlin@google.com> Show flash-off indicator on the view-finder.

For those devices without flash support, we will use a new mode: NO_FLASH_MODE
and show no indicator on the view finder.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a5d6b70326c4474770d30f6e6fb3b08cacf1cdfd 06-Oct-2009 Wu-cheng Li <wuchengli@google.com> Adapt to new zoom callback.

b2060030
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
542fa8916296196b10d74b439304bd7fc5bf1cef 02-Oct-2009 Cheng-Ru Lin <owenlin@google.com> Temporally solve the overlay creation problem.

Fix bug: http://b/issue?id=2153980

Because of bugs of overlay and layout, we sometimes will try to layout the
viewfinder in the portrait orientation and thus get the wrong size of
mSurfaceView. When we cange the size of preview size the new overlay will be
created before the old one closed, and cause an exception. For now, just get
the screen size

Change-Id: I3daf4bce801507aaaca1f030f09d6e18cb23f0f2
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
df3731bacfe26910a5dd0813c6aa80a6e55b85ad 02-Oct-2009 Cheng-Ru Lin <owenlin@google.com> Fix the issue that focus options shown on those device without focus support.

This is for bug http://b/2161159

Change-Id: I8f184b8aa5040c19b4f82775b30a99fed4ca035c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
52de1515854859600afe355d9e1672c73016d594 01-Oct-2009 Cheng-Ru Lin <owenlin@google.com> Fix some stupid bugs.

Change-Id: I64280ec21677d84ac3ad6f29168bf9d3234d2194
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3b90cce1e143de64b29a33828d371c9c0e36c772 01-Oct-2009 Cheng-Ru Lin <owenlin@google.com> Make the app can be run on those phone without scene mode.

Change-Id: I4b11fc532fcd531cc93537d6b07e76f0118bb801
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
301c088512a06ec5154da2d27761537b6607f986 30-Sep-2009 Cheng-Ru Lin <owenlin@google.com> More complete support for scene mode.

Now, we will disable focus mode, white balance, and flash mode settings
if scene mode is not "auto". The current settings of scene mode on those
three preference will also reflect on indicators and on screen settings.

Change-Id: I55a20ec1d43b205e35d87185e70820e9c66e5cc6
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
25156f0e1bb921d3d8f7f5cc51e141522533b502 30-Sep-2009 Cheng-Ru Lin <owenlin@google.com> Add indicator for focus, white balance, and scene mode.

Change-Id: Iead8a7a28aeaa07210fd56ecac1f6f6a74fee155
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
abdd8a1c1f4bd5f471b62f2927399dc23a9bd33c 30-Sep-2009 Cheng-Ru Lin <owenlin@google.com> Another candidate for on screen settings UI (opaque).

Make the background opaque and use slide from the whole
screen (not just inside the view finder).

Change-Id: I12b8485399553e2622c9917833dc9aca9d8ee59c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
27e69927ba1a69aaa7a72eab16a278221c2db273 30-Sep-2009 Cheng-Ru Lin <owenlin@google.com> Try some mock icons to feel the layout.

Change-Id: I697e45f93e0c6592bdd812f84d5db189f8cf6b4d
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
083ccc1e5e06bde2102c50e8279178209fa9a056 30-Sep-2009 Wu-cheng Li <wuchengli@google.com> Add debug message for b2149363.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
35bda2dc8ab95a7baf68b544cf97826aabff6210 28-Sep-2009 Wu-cheng Li <wuchengli@google.com> Add zoom UI back.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2a79ecbf5e5a76cfead677262deb089bd3e2e277 27-Sep-2009 Cheng-Ru Lin <owenlin@google.com> Hide indicator when on-screen settings is shown.

Change-Id: Ib37df275a584133b326161fa5fe371697f31f8d1
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ffcca7403c9a364403357d3c76a3ff256c63c786 27-Sep-2009 Cheng-Ru Lin <owenlin@google.com> Resize the preview frame as large as possible.

Now, we will calculate the layout by ourselves in PreviewFrameLayout.

Change-Id: I90f91f9df6d2f75fbd31fc930af624a84820bc95
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
140229cc988a264d9719b8dcc41196cc87092440 28-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix orientation not stored in the database.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
bf45b96e76d84856ab510508ea5dafd9ab834eba 28-Sep-2009 Wei-Ta Chen <weita@google.com> Fix http://b/2149062 by showing on-screen setting when clicking the menu key.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b02ebbea2d3d98a3ab2c15cb152387b9d201dd18 25-Sep-2009 Ray Chen <raychen@google.com> Fix 2145588 jhead reports "Not JPEG"
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0b8028e923b386eaa9062e076ca041914acbcd09 26-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2147286: Camera app should handle back key in onKeyUp
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9926791171e0ba550be21b4498043fbd15acbf35 25-Sep-2009 Wu-cheng Li <wuchengli@google.com> Remove zoom UI.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
32bfffa5822490ea0e105e9fe00b9df8db1b7b02 19-Sep-2009 Owen Lin <owenlin@google.com> Change the default settings of picture size to the largest one.

This fix issue: http://b/2140738.

Change-Id: I9d92370897df7fe392801baa068913728c7d2ffc
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c30e5c21c3858c15473427d82608c473d44bf3e4 24-Sep-2009 Chih-Chung Chang <chihchung@google.com> Return full size image jpeg if the user provides an Uri.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
71d56e21859a797ec4633f209b3605276345d44e 23-Sep-2009 Owen Lin <owenlin@google.com> Fix some warnnings reported by eclipse.

Change-Id: I40037e0735ddbca750cbe5f8364af5247992c51c
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cd972b0cd67d7a45084d9757ebd49b8f22989edd 23-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2129498: add a MaxNumOfPixels parameter for client to specify the captured picture size.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0b706b8d339d6d23b32878c398097beed25c079e 22-Sep-2009 Chih-Chung Chang <chihchung@google.com> Rotate the thumbnail bitmap according the jpeg header.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
37acf79b1cc060f355c9cd1803c2bdd5e39deb27 17-Sep-2009 Owen Lin <owenlin@google.com> Add a icon bar to show the current state.

Change-Id: Ic0c32abffed267fa97b6b449c4dd432af3e0e591
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8a89877f74cf08d7b5f6342721b020a31a144529 21-Sep-2009 Chih-Chung Chang <chihchung@google.com> Remove unused orientation parameter.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ed6661e212048dc3e143c48402b3935911c3741c 21-Sep-2009 Wu-cheng Li <wuchengli@google.com> Use new focus mode API.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
dbb23f7bc9d3f3807f12926ccbfe2a95a0c1355a 19-Sep-2009 Owen Lin <owenlin@google.com> Add checking before setting parameters of Camera hardware.

It is possible that some features are not availalbe with newer
Camera driver. We add check for those unsupported features.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cc529326d9369290abd6933f1d070859b3cadf75 18-Sep-2009 Wu-cheng Li <wuchengli@google.com> Set focus mode to camera driver and add macro focus.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
75b9f0cc111153af31572af7a33ddeca54eccc6e 18-Sep-2009 Wu-cheng Li <wuchengli@google.com> Fix the bug that sometimes scene mode parameter is not set.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6d12b828743cbd81767227229d6351ce412d5698 17-Sep-2009 Owen Lin <owenlin@google.com> Simplify the code. Change references of "@strings" to literals for those
non-translatable values.

Change-Id: I56636cd8f5674937ee6e3fb4023959199fcf4bb0
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c7e8d264dbcd43de53e74351b6bbfab66a5d5cdd 17-Sep-2009 Wu-cheng Li <wuchengli@google.com> Fix the bug that sometimes zoom is not working.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a4e3d2723156de4d03ef1e9807ca4125b166e22e 17-Sep-2009 Owen Lin <owenlin@google.com> Move flash settings from on-scren control to preference settings.

Change-Id: Id45c7321c1e60cc7e29a7e9c601082624d93c9e8
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cc8d7565f1500b6db20dd7d4c8cc3b6434067e0b 16-Sep-2009 Owen Lin <owenlin@google.com> Handle the keep-screen-on more properly.

Change-Id: Iec16b1975537f69230d1c8ac19a5b0ff5a75d861
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c1f2e3021bf7b12f2a33561e09bd0ab32530382e 14-Sep-2009 Owen Lin <owenlin@google.com> Implement the drawer UI. When user click on the drawer button, the
on-screen settings will show up.

Change-Id: I86a587969a9a01d62560e21d457d3639841ba6da
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f6ef7b960f610d557f0bab924b9f7928b46f6f0a 14-Sep-2009 Owen Lin <owenlin@google.com> Fix NPE in resizeForPreviewAspectRadio().

In user mode, if start preview fail, don't try to
set resizeForPreviewAspectRadio(). Also make changes in VideoCamera to prevent
similar problems.

In eng mode, reveal the exception so that test tools can detect and report the
error

Change-Id: Ice457d753dcf18e8e93cac90aa62ee1adcc332cd
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
62a2ae8a96495b77bd1d11420fd352cd0b8ca7c3 15-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2083478: Camera needs an auto-focus cancel API

Change-Id: I015c2ec5496dfd3921845f4974ba91a388675763
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2dabc27c42bbfeb65cd1e8b5ee1248a8bf10ee0a 14-Sep-2009 Chih-Chung Chang <chihchung@google.com> Better fix for 2117211: NPE in Camera.onFlashModeChanged

Change-Id: I03be03c5a648ced971a600c86948d827ce6360bd
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b24e33ac4f8b875d593c7c20cd15698c3edf153d 14-Sep-2009 Owen Lin <owenlin@google.com> Fix the bug that scene mode doesn't change immediately.

Change-Id: I22679cb2e25a6751021a225001247fbf03a758bb
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
42be7712a3f114a7cba8f9e8adf33307509e3fc5 14-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2117211: NPE in Camera.onFlashModeChanged

Change-Id: I80326d1f4556416bfb9bb42d69626df652e6b427
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
78f160ee416ba27ba55954950473e17ba9d20052 10-Sep-2009 Owen Lin <owenlin@google.com> Remove CameraSettings. And then renmae CameraSettingsHelper to CameraSettings

Change-Id: I515c90bb5c4d49a2c4a761a933c0db6fbec0637b
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4a853fff135f3a1e96fcae06d266a84f63bb4043 11-Sep-2009 Owen Lin <owenlin@google.com> Remove switch menu item in both Camera and Camcorder.

Change-Id: Ic55eb043e78cc6ed7c5fea5d0a88937e964f739e
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
50c60047bf55be485fbcfa69bd0ff84e542f212a 10-Sep-2009 Owen Lin <owenlin@google.com> Enable the on-screen settings in Camcorder and also use different settings
in Camera and Camcorder.

Change-Id: I2444a2c8f7a040b2b5fc449df0fc988fba1b7aaf
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8bcef85b93957319ffa20d342f1bf9a69ae6e8dc 10-Sep-2009 Wu-cheng Li <wuchengli@google.com> Do not reset zoom to 1x after snapshot.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5f6484a74fe019337e436e6e0dcb07375a74af25 02-Apr-2009 President Li <wuchengli@google.com> Cherry pick two commits that implements color effect and white-balance
settings and then make it workable.

Change-Id: I519bff761db4b2b0acc1a61a8f901fafcd4b2586
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4c37a761a74d4bf9af3850894f3d919b7f272758 08-Sep-2009 Wu-cheng Li <wuchengli@google.com> Set optimal preview size.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d189083d760820ad0b0d88e11feb897e4ab5011c 08-Sep-2009 Chih-Chung Chang <chihchung@google.com> Clean menu creation code.

Change-Id: Ie8ed04e74beef78208946688ee2f33297de0b6d1
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cc5a6356055dd8a8a4017b0af5410b53f25aaef0 07-Sep-2009 Wu-cheng Li <wuchengli@google.com> Reset frame rate to maximum in camera app.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b5946549f73a3f49ccf163dda424a0319b4b6838 07-Sep-2009 Chih-Chung Chang <chihchung@google.com> Clean menu helper code.

Change-Id: I8c009ad9c340d7267e9d1cf43b6fc1513d44eb21
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9b93bcbe3ccc49db5ce42de19fda1d3a9ef0011b 04-Sep-2009 Chih-Chung Chang <chihchung@google.com> Code clean up.

Change-Id: I8814d8482df5709b03ef105f547f4981db34919a
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2c6c6174e2363fccb4e4f29b76290e99234fe140 01-Sep-2009 Owen Lin <owenlin@google.com> First version of on-screen settings for Camera.

Change-Id: I6e608b5b2d02abf3d1901160adba188399b03542
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
562f9230a5fec6ed0d126f62f498424cd47bb11e 04-Sep-2009 Chih-Chung Chang <chihchung@google.com> Change Cancelable to method call directly.

Change-Id: Id4396646e82593d9a40b3552dd2c6cd8146b29eb
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
aa3cc2012a1ee0cc04e1244dd977cb8bb84683e4 03-Sep-2009 Wu-cheng Li <wuchengli@google.com> Add double tap to control digital zoom.

Double tap to zoom in to the maximum. Double tap again to zoom out to the minimum.

b1977072
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
ba19d8b0011a528b38943458b2f816ed247f2793 02-Sep-2009 Wu-cheng Li <wuchengli@google.com> Use continous zoom.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3665f924034a13014c9016be2707617d29d57f39 02-Sep-2009 Owen Lin <owenlin@google.com> Remove trailing spaces.

Change-Id: I80feb1b58c148b35b2666ef08d4b13d5aa0608b2
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4305c70dc849156be5d79d52772ea71cd890ca40 02-Sep-2009 Wu-cheng Li <wuchengli@google.com> Use new parameters API.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
91227ecf9382fd0af89f6e31794ba3f286e7c3c8 31-Aug-2009 Wu-cheng Li <wuchengli@google.com> Add zoom UI.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
7b645fbd40ec88dc18f4d1c9b751e8f8b48f6bfe 31-Aug-2009 Chih-Chung Chang <chihchung@google.com> Remove unused code.

Change-Id: I848708a594ee58adad404ae3c67257e74cc18e58
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3f3c857e3f34650c15d764810335024654b0fcc3 18-Aug-2009 Owen Lin <owenlin@google.com> Show error dialog when the camera hardware is busy (Eg: hijack by other
activity). We also change the behavior of the "Camera button", if the
camera is being used by others. We just ignore the request and won't start
the camera.

Change-Id: Icf3b00113aba61c9aa3f43ba07cf6944085d5d52
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5a737558964d65560e536f1f096a245f34659d08 28-Aug-2009 Wu-cheng Li <wuchengli@google.com> Fix the bug flash is fired when the setting is off.

b2083478
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
522e836abc90bcb2d4e7a4ac37e269154d06c715 26-Aug-2009 Chih-Chung Chang <chihchung@google.com> Style fix.

Change-Id: I09ba86ee314e643415e41879c1d20ab1ede65a91
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f5bf8ca5870fed38fe91e3e018ebc13cc1738364 25-Aug-2009 Chih-Chung Chang <chihchung@google.com> Create ImageListParam as a spec for creating image lists.
Also merge deactivate() and close().

Change-Id: Idc76eda25bfcefab949e46412dca366228b3f437
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8df283a6685ee0dd18cd3276b6bb716b21f269c6 21-Aug-2009 Chih-Chung Chang <chihchung@google.com> Add on-screen flash button.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e594b19809c160637f34550f27dd7ff4a3aaf5be 13-Aug-2009 Owen Lin <owenlin@google.com> Fix the warnings shown in Eclipse. That is, removing unused field,
replace deprecated methods, and removing unused imports.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5945773c664ada754ce5eb9239bd4c8bd95ee4b4 03-Aug-2009 Wu-cheng Li <wuchengli@google.com> Add flash mode setting.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
781f55b23ec3c3f97189efaba9d214183109f769 10-Aug-2009 Chih-Chung Chang <chihchung@google.com> Make the responsive region larger for the Picture/Video mode switch.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
382b384ec2cd948a82fe42294b18e4ec630bbdf6 06-Aug-2009 Chih-Chung Chang <chihchung@google.com> Removed unused resources and code. See 2036961: build size too large.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
fcb65124480c7a07d8cb1b28eff3c6acd6107531 07-Aug-2009 repo syn && make -j4 <raychen@google.com> Fix issue 2039521: Pressing back key doesn't work.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6b6a6d59ee9d4375a64265ff5e784f2356eabf96 31-Jul-2009 Wu-cheng Li <wuchengli@google.com> Make CropImage always fullscreen.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
640ad87bf4945f5baa22ef1e02eb1c4ac7fd3ef7 30-Jul-2009 Wu-cheng Li <wuchengli@google.com> Make CropImage support fullscreen extra.

b2022570. When returning from a full-screen activity to a non-full-screen one, screen jumps a little and scroll bars are partially off screen. This is a work-around to prevent the issue.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1e50968c0a9eba523efcfdda86e298e33e95687d 29-Jul-2009 Wu-cheng Li <wuchengli@google.com> Check storage again after receiving storage related intents.

Media scanner sends ACTION_MEDIA_SCANNER_STARTED if it is scanning internal. We need to check storage again after receiving intents.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d12ae2098b491bb55798758da8b698ffc625d62c 27-Jul-2009 Wu-cheng Li <wuchengli@google.com> Show "prepareing SD card" when media scanner is scanning.

Fix 1996415.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
48f6cdff77fe6b0c44b7d4c4261599e1de7225f1 15-Jul-2009 Wu-cheng Li <wuchengli@google.com> Start preview earlier to let user see preview earlier.

This reverts commit 785cd00067fc822701aa5e43da00382352a90e99.
A workaround will be added in HAL for overlay case.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d918cfa6846593ceb844196a6d0012f3f350252f 13-Jul-2009 Chih-Chung Chang <chihchung@google.com> Fix 1973541: The mode switcher does not correspond to the actual mode.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
785cd00067fc822701aa5e43da00382352a90e99 10-Jul-2009 Wu-cheng Li <wuchengli@google.com> Revert "Start preview earlier to let user see preview earlier."

This reverts commit 20e4e11c81a37e4dcc87fe501ea853bd5b699fe3.
The original change broke overlay case.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cede87fa23b81b49786831e90a175293e9c8bc7c 03-Jul-2009 Yu Shan Emily Lau <yslau@google.com> Added the memory measurement of the mediaserver in the camera image capture and video capture test cases.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
52aae7063493140ef91e1067c5100d9b52a48287 02-Jul-2009 Owen Lin <owenlin@google.com> Fix some warning shown in Eclipse.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
91acfc99279d5ece7ac9cb2d7a2980eb0d3b50da 06-Jul-2009 Chih-Chung Chang <chihchung@google.com> Style fix.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0a28549a7e6db0307b2cb5d2df7444909fb03a48 03-Jul-2009 Chih-Chung Chang <chihchung@google.com> Change camera latency time variables to non-static.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2e768c1b835a127f190395a91477144d8ae850ac 02-Jul-2009 Owen Lin <owenlin@google.com> Reset the switch state in "onStart" in both Camera and Camcorder.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3283e049aa080c375457de46bbf180a88899228a 26-Jun-2009 Owen Lin <owenlin@google.com> Solve task flow problems in Camera and Camcorder.

1. Let "Camera" and "Camcorder" use the same task affinity, so that there
will only one task stack in the system.

2. Finish the "Camera" or "Camcorder" activity, when switch to the other,
so that it works like the same activity.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
20e4e11c81a37e4dcc87fe501ea853bd5b699fe3 24-Jun-2009 Wu-cheng Li <wuchengli@google.com> Start preview earlier to let user see preview earlier.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e239acc2185c5fb47b22a65f78ffa461e19f183c 24-Jun-2009 Owen Lin <owenlin@google.com> Improve switcher to enable drag and drop operations.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2bb9e74cc84b60a349ec90b34e39973b019ec0bd 24-Jun-2009 repo sync <raychen@google.com> Move storeImage back to UI thread.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
eab15857f3829a7d26979b9604021a3cfbbc4d28 22-Jun-2009 Owen Lin <owenlin@google.com> Address review comment in previous patch sets.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
61b98317dfb7b8bad4e826e1db560128e1c37374 19-Jun-2009 Owen Lin <owenlin@google.com> UI refresh for attachment capture mode.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
84f96469f8c54fcdc61b6e854cd478abc15c4f52 19-Jun-2009 Wu-cheng Li <wuchengli@google.com> Fix attach video.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
46fc7aeec04021dfc2f4c947649888dbc7408f53 19-Jun-2009 Wu-cheng Li <wuchengli@google.com> Integrate camcorder review mode to ReviewImage.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
dad4b187eec436a2716aca5af31f23ce5de95f39 12-Jun-2009 Owen Lin <owenlin@google.com> New UI for camera
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
55319ceeef829274a95e2a41e7e365228acf5ccd 18-Jun-2009 Wu-cheng Li <wuchengli@google.com> Reduce the latency to enter camera setting.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b5e5722981c02926fdbeae7880e662cbbacfe173 18-Jun-2009 Wu-cheng Li <wuchengli@google.com> Remove white balance, effects, ISO, and brightness from setting.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4fc134dffebaddec5bcdb26dc1caeb4ab6f7f91c 18-Jun-2009 Chih-Chung Chang <chihchung@google.com> Try to fix 1917822.

Make sure we have a surface in the holder before proceeding.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
72c06b6947053044d141d8983e2cf1376bf93614 16-Jun-2009 Wu-cheng Li <wuchengli@google.com> Disable zoom until driver is ready.

If zoom is enabled and camera is zoomed in, preview cannot be started after snapshot.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8564b8a3844d87e1ffe3d40cb8ff7ff5cb93312e 16-Jun-2009 Wu-cheng Li <wuchengli@google.com> Do not change surface view size after capture.

This is a workaround for the bug that sometimes preview is not started
when stopPreview and startPreview are called consecutively.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
05309120f233e2f3a2d6319d0efd996254e86c16 16-Jun-2009 Wu-cheng Li <wuchengli@google.com> Fix NPE in zoomIn.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5fa9483e0f3a31fcff7da86cdd9e32795eacf235 15-Jun-2009 Wu-cheng Li <wuchengli@google.com> Hide zoom controller during snapshot.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
547caa3586633adcaddfbe766ec46a0b97ee8d4c 15-Jun-2009 repo sync <raychen@google.com> Fix issue 1880374 The thumbnail does not update in picture review mode after deleting the captured picture.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
827fac7640e0aa20ec9301ec3c9fe9bd9b318f15 12-Jun-2009 Wu-cheng Li <wuchengli@google.com> Add log message for debugging.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6cc6daff9d7cb02805cd9ce71176c7b49655f8a8 10-Jun-2009 Wu-cheng Li <wuchengli@google.com> Fix the bug when surfaceChanged comes after onPause.

b1903651
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
fa1dfa2f3f1385e98cf8bdac5c48f8d13a400a8a 10-Jun-2009 Wu-cheng Li <wuchengli@google.com> Throw exception if startPreview or setPreviewDisplay fails.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b5098fb85b28b02c5ceb515d4dd7ad0c7ae5a947 10-Jun-2009 Chih-Chung Chang <chihchung@google.com> Fix 1820711 Preview ratio is wrong after returning from camera setting.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cd65be31531717fb032b7423f8d5a77df465cfca 09-Jun-2009 Chih-Chung Chang <chihchung@google.com> Share Camera between Camera and VideoCamera.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6c28119cb169369f9394d5e4e46bc7f29fc38e46 06-Jun-2009 repo sync <raychen@google.com> Move storeImage to worker thread so we can start preview in parallel.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
95fc5b2c5b14bb81332570f6d74f75cd63ea04b5 06-Jun-2009 Wu-cheng Li <wuchengli@google.com> Add camera zoom UI.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
11cac263ec966e5a5ac751c53acb851de841c62e 03-Jun-2009 Yu Shan Emily Lau <yslau@google.com> Exposed the camera latency measurement to the test.
Added the camera latency to the StressTest runner.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
deb57259b0055c08a44cd43933276ccf485dcd2d 27-May-2009 Owen Lin <owenlin@google.com> Fixes some warnings shown in Eclipse.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
98334d24526bbbab8c5f33e426173488216c9092 26-May-2009 Chih-Chung Chang <chihchung@google.com> Add picture orientation debug message to help investigate 1877705.

Also clean the code if the orientation is unknown.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
059daa36dc6e83ca24a16d9b99925e71010bcceb 19-May-2009 Owen Lin <owenlin@google.com> New UI for donut's camera !!
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f0666590162507e8b372b32c55dca3835392196a 20-May-2009 Chih-Chung Chang <chihchung@google.com> Fix crash seen in monkey run.

We should not call restartPreview in onPause.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e43adb123b34432b977f57943c3c42614ccfd985 14-May-2009 Wu-cheng Li <wuchengli@google.com> Delay snapshot related initialization after surfaceChanged.

Reduce start-up time (b1656298) and ANR.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
3343507109a7e2fd0579719380c358e313f1885f 13-May-2009 Chih-Chung Chang <chihchung@google.com> findbugs fixit.

remove unused variable and code.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d16a06161fe9e10ae8f656bca4d4482b235cd172 13-May-2009 Wu-cheng Li <wuchengli@google.com> Remove messages in onPause. Remove onStop.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0ce26e03b0b10fc28824518f3e703aa4b1dc02af 06-May-2009 Owen Lin <owenlin@google.com> One last bit to get rid of the duplicated roation ....
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4904e9713a0118af6321dfe0e77a388fe8c3f45d 04-May-2009 Wu-cheng Li <wuchengli@google.com> Close camera immediately in onPause().

Otherwise, other clients may fail to connect to camera.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b24c0398fbebebd1ae6d6f7ee927db33eea94b6b 04-May-2009 Chih-Chung Chang <chihchung@google.com> Check for device != null before setting brightness.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
58e7c4584fbb4bdd1b3475186ae8eabac3946bce 30-Apr-2009 Ray Chen <raychen@google.com> Fix NPE in Camera onKeyDown event.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
41a8578529dedf1e81218d4429954d6ccd9d67af 20-Apr-2009 Owen Lin <owenlin@google.com> Improve the design of ICancelable.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
6b270508bdbc78a52a825c2d934465d99fb779f7 29-Apr-2009 Chih-Chung Chang <chihchung@google.com> Code clean up.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
48b71ca522b5915b1163d91cd41875878692ab18 26-Apr-2009 Wu-cheng Li <wuchengli@google.com> Add ISO setting.
modified: res/values/arrays.xml
modified: res/values/strings.xml
modified: res/xml/camera_preferences.xml
modified: src/com/android/camera/Camera.java
modified: src/com/android/camera/CameraSettings.java
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
75ae09f4ee606960fb1740e3ad4b5b46931ef520 23-Apr-2009 Chih-Chung Chang <chihchung@google.com> Make focus rectangle to become green after focused.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5e5aa7e1e8bd03e9919d5f14b9f5df75cf68ff8f 21-Apr-2009 Chih-Chung Chang <chihchung@google.com> The new focus UI.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f310a3d9ec76ece01801f7bb55a5be8d2d28659a 20-Apr-2009 Owen Lin <owenlin@google.com> Refactor code: decouple ImageGallery2 and GridViewSpecial.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
bcd13fa071abe75b3275e3bc314601f33e33972a 20-Apr-2009 Wu-cheng Li <wuchengli@google.com> Add log messages to measure shot-to-shot latency.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a6e21440a229e270fdc1ad5e1c02cb10970e5442 17-Apr-2009 Chih-Chung Chang <chihchung@google.com> Code clean up.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
bbc560b5216bbb2e3028020e426ce6a6e0e5df08 17-Apr-2009 Owen Lin <owenlin@google.com> Code cleanup. Try to remove some depercated usage of cursor.commitUpadtes()
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c8cd9098d9ca174f5a0374789145faf1f15d503d 17-Apr-2009 Ray Chen <raychen@google.com> Two remaining files for brightness control.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
cd74867668f59ac3f1add73a577021f18c15713a 16-Apr-2009 Chih-Chung Chang <chihchung@google.com> Fix valid brightness range before we decide the parameter interface to driver.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
58e94eddd371a9bb7c04936dbeb99615fd1a0c2c 17-Apr-2009 Chih-Chung Chang <chihchung@google.com> Code clean up.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c396ca0bd5129bc6ae754ea7366e410c5bac41b0 15-Apr-2009 Ray Chen <raychen@google.com> Add brightness control to Camera application.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0f56ef5704b7f1a0874528367147487c051876d9 15-Apr-2009 Wu-cheng Li <wuchengli@google.com> Add infinity focus mode.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
4689e593dc416fe1ec016f5ae1bb2e65bd7cfe0e 15-Apr-2009 Owen Lin <owenlin@google.com> Fix bug 1744766. By setting the file length into DB.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2b82c4a17abfe926dc2942a6d1bf7982b006de6d 14-Apr-2009 Chih-Chung Chang <chihchung@google.com> Clean verbose logging messages.
Extract UriImage to a separate file.
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
937fc48b37fafe3ffc8f4b52bd9a171bbb4d3a37 14-Apr-2009 Owen Lin <> AI 146099: 1. Use ICancelable<T> to replace several different interfaces, such as IGetBooleanCancelable.
2. Remove some warnings.

Automated import of CL 146099
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e0770004600f76cc4b440104e98e14712b4fd1c6 13-Apr-2009 Wu-cheng Li <> AI 145839: Add UI for JPEG quality setting.
BUG=1761244

Automated import of CL 145839
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
73b7a3a18a2e4ab0302c60a486f244acebe64883 13-Apr-2009 Chih-Chung Chang <> AI 145823: Remove unused code.

Automated import of CL 145823
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9dacf7b214339440c16f3d66e12d6afef1248f68 10-Apr-2009 Wu-cheng Li <> AI 145679: Add picture size settings.
BUG=1761248

Automated import of CL 145679
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0e841fe509c3b61ced7ddf4bee4728b382eae62f 09-Apr-2009 Owen Lin <> AI 145318: Fix style for Camera.java.

Automated import of CL 145318
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d53513404618b7e28f3d5726e481faeb051c80d9 07-Apr-2009 Wu-cheng Li <> AI 144770: Fix the crash when camera settings are entered during capture.
BUG=1742461,1753515

Automated import of CL 144770
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
101d528d59f447847d5c6b7578642132c2b76f4f 04-Apr-2009 Owen Lin <> AI 144530: Refactor the huge codes in ImageManager. Extract member classes to top level.
Fix style issue.

Automated import of CL 144530
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2ac0387bbd6792187aeaacf10e40688f4260e316 02-Apr-2009 Wu-cheng Li <> AI 144213: Initial implementation of effect settings.
BUG=1753515

Automated import of CL 144213
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
87341536812081826656040ac81f8f386c6c1407 02-Apr-2009 Wu-cheng Li <> AI 144187: Initial implementation of manual white-balance setting.
BUG=1742461

Automated import of CL 144187
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
11c53782ca0a7be5e033bafdf0be6ac124bde8cb 25-Mar-2009 Dave Sparks <> Automated import from //branches/donutburger/...@142272,142272
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
f5e26bbc592503f28933941740c29070fa6222ae 25-Mar-2009 Dave Sparks <> Automated import from //branches/donutburger/...@142121,142121
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
087497fca0f048f0191cb02e2838819bf210a875 25-Mar-2009 Chih-Chung Chang <> Automated import from //branches/donutburger/...@141961,141961
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
66e144311dcc35620990bd5d0ec6528b75a840c4 25-Mar-2009 Jason Sams <> Automated import from //branches/donutburger/...@141469,141469
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
07c90568c7b0568e6cb75559bd13e5d000ac040f 25-Mar-2009 Owen Lin <> Automated import from //branches/donutburger/...@141143,141143
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9bc8d1b47e5bab978cc9571ddfdedc8309a0b65d 25-Mar-2009 Chih-Chung Chang <> Automated import from //branches/donutburger/...@141053,141053
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
de365d87520c97d6b1636442e6b5c82a3e036f29 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8d0dd0e2ee9a9f8d729ed96597102777cf14701f 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
e3f4516c2154539cb5778ef061abf8a0ccf90a5e 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9a379bd668227d3dcea30312025f304fd248f6e3 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d7e9d1916fbabaecd4be9dacb4472fa3ffe62ed4 06-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136745
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9c9be2eb4a86fc3468dbba1ec5f7bfdb37d22c74 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b64d345c9d51cabce43b5191532a0c185d2a70a5 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
becfb351a5bc43050128f44eb1bcfbcc0c6dcb7a 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
a6aa03f5bd2270bcc52ba1899c22d881955e8e7e 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
2ec6be554f06b2568eb38f7ea5ba4570b1ecfb8d 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
c4ef8241b05b9266de77defcfdf1154f400c77f4 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
d8bccef54d490ce562e61fc907201da0c666314e 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
5055ba62e22becc9c8d03898b80cda8ed68cfe80 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
dee42a6e53cb1d0c7194b0cb92028cca353d7c5c 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
8250896ab37545f4499da79f54c19af2e5018b80 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
33e3e0b3f4f1f54e067bbc54c9b8b5a26660f9f0 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
9c061072c8f4ec16acf25e0af7ca3d8317d1026f 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
b97ccf3f20bee44daf70f10966809e39e30ab4f7 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
0eaec58e292ce4eaa6baadecf643f0f65e48d278 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java
1d4c75065966c4f6f56900e31f655bfd1b334435 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/packages/apps/LegacyCamera/src/com/android/camera/Camera.java