History log of /packages/apps/Camera/src/com/android/camera/VideoCamera.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
749d056cd82ebfe6e613596d9e22dd355aeeec41 21-Nov-2011 Chung-yih Wang <cywang@google.com> Dismiss open menu if exists.

bug:5648754
Change-Id: I44be2226e65de76e6240adc7b554e0ee7cda2226
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
1947bdb7e2d82f6d1e8e53223dbcf62dfa9c61dd 16-Nov-2011 Pannag Sanketi <psanketi@google.com> Merge "Fix crash: camera swap w/ custom Background video" into ics-mr1
55382a5b3e8baf34e71320ec36d72fc2c38b890e 16-Nov-2011 Pannag Sanketi <psanketi@google.com> Fix crash: camera swap w/ custom Background video

The background uri was not getting stored when swapping the camera
leading to a crash. Now it is sent via the intent.

Related Bug: 5585381

Change-Id: I05aea8321f0d2df96f646119eddd6a8b6a8ac668
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
a7a6a7822799f6630f127e931ac7f6e1cd3f685e 16-Nov-2011 Pannag Sanketi <psanketi@google.com> Merge "Start Effects Recording only after preview loads" into ics-mr1
87e72ba9d89f8b83b1356f17077b9652346a29d4 15-Nov-2011 Pannag Sanketi <psanketi@google.com> Start Effects Recording only after preview loads

Start Effects Recording only after we get SurfaceTexture Callback in
EffectsRecorder, and
hence preview loaded. Disable the shutter button on creation, and
re-enable it on the preview callback. Else, one could potentially start
the recording before the preview loads, leading to a wrong state
information and an eventual crash.
Related Bugs: 5605173, 5605658

Change-Id: I2ed766997294c165ce6c262cf47f124493d0c5ec
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
f3a22b8ec6f172831606598663dead220f76957b 15-Nov-2011 Angus Kong <shkong@google.com> Add location information in Camcorder mode.

bug:5560253
Change-Id: I090722d6755068fa4a70a900e18af28a1adc9bf1
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
685dd4346de0801b66a329b87c184c54096dc5b7 09-Nov-2011 Heechan Park <heech.park@samsung.com> Reset mCurrentVideoUri to null before starting recording.

While running monkey, we encountered a usecase where Video Recording is inProgress and an
intent to launch Panorama Activity came in. While switching StopVideoRecording failed and
resulted in Camera Exception (observed 3 times in 2 weeks of testing). mCurrentVideoUri
is not cleared, so the thumbnail of the last video is re-generated, which can take 3
seconds.

bug:5596264

Change-Id: Ie14c426c81c46f2d9a6741b6213cf66b1dbb5612
Signed-off-by: Braganza Sam Roberts<sam.braganza@samsung.com>
Signed-off-by: Heechan Park <heech.park@samsung.com>
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
219f0da6a5dec8dc20dff909fcb0bf549b6a1219 07-Nov-2011 Angus Kong <shkong@google.com> Make dialog rotatable in Video mode.

bug:5575805
Change-Id: I6776f2b1d5a174a95ab40f8480110f0a34fb41e0
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
3300723ee68dfb28871fcf30864d2f73946ab660 04-Nov-2011 Chih-Chung Chang <chihchung@google.com> am 93b9c8ac: Merge "5554028: Select video snapshot resolution based on the video recording aspect ratio." into ics-mr0

* commit '93b9c8aca92b2a6a651c562c71b8c414458c1419':
5554028: Select video snapshot resolution based on the video recording aspect ratio.
1d965984ecf6c6233967a1f5d5a24f21fd2e450d 02-Nov-2011 Chih-Chung Chang <chihchung@google.com> 5554028: Select video snapshot resolution based on the video recording aspect ratio.

Change-Id: I7b01a21271068b9d201e38197e2a61b183f87902
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7be69bb2c491505a61771effee9cbfaedb8f5344 29-Oct-2011 James Dong <jdong@google.com> Replace hardcoded value with public API constant

Change-Id: I711a6623208f95385a62c72aaec8d95e6e064b3d
related-to-bug: 5343832
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d6e5029b2df45210834334f7c2e99dfc85e962f0 28-Oct-2011 Chih-yu Huang <akahuang@google.com> Show video snapshot toast in first use.

bug:5494290
Change-Id: I7cb498ef50610d300a64d9d053b0a411d86da730
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
a5a767ce09ee46f4b14ff797fab8a84d95dd862d 27-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Fix video capture intent preview alert for effects." into ics-mr1
14a3ffc328740e8fd4734dfa124e4682df8bdd4a 20-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Add portrait support to effects pipeline in VideoCamera.

Needed to enable app to switch to portrait for startup speed. Still
supports landscape for landscape-native devices.

Bug: 5446617
Change-Id: I9853ff50d9fcd8cf53cc6e65d6c16319c1b27f76
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b11ee09d99c9a817eade2ee502a0ff4727f15c8f 24-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Fix video capture intent preview alert for effects.

In effects mode, stopping video record is asynchronous, and dealing
with alerts and thumbnails has to be deferred until a done callback
from the effectsrecorder.

Bug: 5494625
Change-Id: Ic343b672c29515cb77f62b8d3e685d668681fdd1
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b8bd7ee0f8b0c3e0381ae6364bbeca4f28bdf7a4 25-Oct-2011 Ed Heyl <ed@google.com> Merge remote branch 'goog/ics-mr0' into ics-mr1
eb47ed18eb3eec902d1ce18d20530e296bd83d9e 24-Oct-2011 Wu-cheng Li <wuchengli@google.com> Fix video thumbnail is not displayed when intent passes the fd.

bug:5494625
Change-Id: I2bc482c05b9ca47bb566e351746a6e4dccdd6111
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
4cba085e1394742afd1f367f461faf6d0dbca73e 20-Oct-2011 Eino-Ville Talvala <etalvala@google.com> am 7b9a10fe: Merge "Fix effects orientation handling." into ics-mr0

* commit '7b9a10fef160cd452f7905ee52f7b9ac2262faf5':
Fix effects orientation handling.
7b9a10fef160cd452f7905ee52f7b9ac2262faf5 20-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Fix effects orientation handling." into ics-mr0
51b06d6696a4743339d026b3b3bd282645725b27 20-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Fix effects orientation handling.

Effects orientation was incorrectly using the
CameraInfo.orientation field to adjust for true down for face
detection, background replacement, and effects recording video
orientation.

The input surfacetexture from the camera already takes
the orientation into account in its transform matrix, resulting in
incorrect rotation amounts.

Bug: 5488310
Change-Id: I4c4105c44d361ca245874a47e4ff7b93cbd3bb06
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
67668bc2d1433d40437ae8ae320a9533fb47bae9 20-Oct-2011 Pannag Sanketi <psanketi@google.com> am e0b66a87: Merge "Support for max duration recording with effect" into ics-mr0

* commit 'e0b66a87432f452bf4a10ef5e0d835113a8ab69d':
Support for max duration recording with effect
247c37b0b7cd29d58dc96322c993437674636977 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> am 0c1ec7e8: Fix the resolver activity shows the apps that cannot play the video.

* commit '0c1ec7e8cd43de1a4b4cb650b759dd0cbe123eaa':
Fix the resolver activity shows the apps that cannot play the video.
e0b66a87432f452bf4a10ef5e0d835113a8ab69d 20-Oct-2011 Pannag Sanketi <psanketi@google.com> Merge "Support for max duration recording with effect" into ics-mr0
0c1ec7e8cd43de1a4b4cb650b759dd0cbe123eaa 19-Oct-2011 Wu-cheng Li <wuchengli@google.com> Fix the resolver activity shows the apps that cannot play the video.

Camcorder apps needs to set the mime type to play the captured video
in video capture intent mode.

bug:5471592
Change-Id: I104baa4ff789fa8bb3136254105bc7284f391723
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7c278bcad6d4cdf7eb4b8e3c0803e65bc671cebd 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> am eeeea93f: Reset the video effect when camcorder application starts.

* commit 'eeeea93f90ff788a3d86e1e3bb2bb4725adff9ee':
Reset the video effect when camcorder application starts.
eeeea93f90ff788a3d86e1e3bb2bb4725adff9ee 19-Oct-2011 Wu-cheng Li <wuchengli@google.com> Reset the video effect when camcorder application starts.

On video recording, if a Background effect is applied,
it is strange to see the popup window the next time the camera app
is opened.

bug:5477191

To reproduce:
-Open camera;
-Select Video recorder;
-Select settings>Effects>Background;
-Activate a background effect;
-The pop-up ("Place your device...") comes out;
-Effect is active;
-Press Home;
-Select the Camera app again;
-The pop-up is triggered again. The app is in background effect mode.

Change-Id: Iea44d7ef2243df5dec961e5ecf67e85b5e971dcb
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
db1596dc704d2085a3f2f7b5652e6cb43696c265 20-Oct-2011 Pannag Sanketi <psanketi@google.com> Support for max duration recording with effect

Related to Bug: 5472397

Change-Id: I3634b1c9248da24eb82ff825fe52f4262e59d0e7
/packages/apps/Camera/src/com/android/camera/VideoCamera.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.
7b52266b6f9af570f1fdb200a1d0fa7947344e1a 19-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add hysteresis to orientation rounding." into ics-mr0
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/Camera/src/com/android/camera/VideoCamera.java
fdea7c43e7b48e39cc0c8fb588bada0d6cb5c71a 19-Oct-2011 Eino-Ville Talvala <etalvala@google.com> am 53d86908: Merge "Use video capture intent quality when recording with effects." into ics-mr0

* commit '53d86908dc3e1cb54add568aa6bc325485e3efe5':
Use video capture intent quality when recording with effects.
53d86908dc3e1cb54add568aa6bc325485e3efe5 19-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Use video capture intent quality when recording with effects." into ics-mr0
3deae58131c486165f4b05869e5785d8cbbad4ef 19-Oct-2011 Chih-Chung Chang <chihchung@google.com> am 55efc325: Fix 5480562: Set indicator orientation after video recording is stopped.

* commit '55efc325fc17b911ed1d2a252ea82d995eca2360':
Fix 5480562: Set indicator orientation after video recording is stopped.
55efc325fc17b911ed1d2a252ea82d995eca2360 19-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5480562: Set indicator orientation after video recording is stopped.

Change-Id: Ic7bd5fe93d38bbe1c291dc9eee82a5aefcfa7c3a
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
a9b3f482c555729ee87daa2055eec19f1290e1e0 19-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Use video capture intent quality when recording with effects.

Previously, effects always used 480p quality. When used for messaging,
the intent requests a lower quality, and it needs to be used instead.

Bug: 5465146
Change-Id: Ib2ae772de35ad84b8c19f961c71fd9ae43dd4426
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
5ac0a79b20fdd2c7955b1f2478b70a7828d55f22 19-Oct-2011 Pannag Sanketi <psanketi@google.com> am 967d36c0: Merge "Add timelapse recording support to effects mode." into ics-mr0

* commit '967d36c02eca4ae3af6dcd93ac9c7ffd6401aea5':
Add timelapse recording support to effects mode.
d979079aa0735beb302dd58797af0c6b600edfea 13-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Add timelapse recording support to effects mode.

Bug: 5452088

Change-Id: I87c69e715ccdd6c48f18ecaa1fb4f362e2a9d567
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
1920cca5077e15dbfedd85226d7b496d53276d75 18-Oct-2011 Wei Huang <weih@google.com> Merge "fix auto merge issues."
d943c5973495d0caa0f32662b98a8d9e82223092 17-Oct-2011 Wei Huang <weih@google.com> fix auto merge issues.

Change-Id: I0374abc65a037ebc61e340f2eace6a119436d1c8
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
66f54530c7d1022c63ee3e2c0b0b32be21fd174e 17-Oct-2011 Pannag Sanketi <psanketi@google.com> am 9c96da0c: Fixing size limit error on video capture intent with effects

* commit '9c96da0c452cf980eb368cbb5a63afc4ab5f4bc4':
Fixing size limit error on video capture intent with effects
993df346a7b7ec781699e927472399421c743670 17-Oct-2011 Mike Dodd <mdodd@google.com> Fix build.

Change-Id: If6b2622e565e3bf736fe6968f1c90fa462ba5d89
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
1e8525a9f111d2548fdbba291b1d99f77626611a 17-Oct-2011 Rodrigo Carceroni <carceroni@google.com> am f3d505af: Merge "Bug 5383077: handle video thumbnail generation correctly when effects are on" into ics-mr0

* commit 'f3d505afe66e0961e904027e8ab98455ccd3bd2e':
Bug 5383077: handle video thumbnail generation correctly when effects are on
267bccfc197cdb2eaa44a0a96c8138863d1cc0bc 15-Oct-2011 Eddy Talvala <etalvala@google.com> Merge "Remove code introduced by mistake in MR0" into ics-mr0
5eb38c132c1345741d48a2c6e58c63a32ca02a78 15-Oct-2011 Rodrigo Carceroni <carceroni@google.com> Remove code introduced by mistake in MR0

Change-Id: Ic6dc692e703e04960e9a1f0d28d1ca2d59fc05ab
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
5a3b94b72e6c807b0f88bca11d4e8a4a41761cde 15-Oct-2011 Rodrigo Carceroni <carceroni@google.com> resolved conflicts for merge of f3d505af to master

Change-Id: Ic7e9fdcb874b9c41e332c7e2c1bf896fd52b0b11
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9c96da0c452cf980eb368cbb5a63afc4ab5f4bc4 14-Oct-2011 Pannag Sanketi <psanketi@google.com> Fixing size limit error on video capture intent with effects

There was a problem with size limit using video capture intent with the
effects on. The video would not recorded. This fixes that error, though
the limit seems to be reached very soon (~5s).
Related to bug: 5441217

Change-Id: I1ea372840831c8d0852368cb99fd2edecf1a3083
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
094db3868a6f18d9ea2c4268b32214a02a62908c 14-Oct-2011 Chih-yu Huang <akahuang@google.com> DO NOT MERGE: Change low storage threshold in video to 50MB.

bug:5334604
Change-Id: Iefc6a20ace2c7afbbc2cb7b3acf5ac957b4f16be
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
caf8466dcdf6d6c496e46961bb3132126363ef83 14-Oct-2011 Rodrigo Carceroni <carceroni@google.com> Bug 5383077: handle video thumbnail generation correctly when effects are on

Change-Id: I94d63c99dd8b8a488f5c8d660c592bc34d1b7360
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
866908eb2c744c03b9035725d8450bca5e435be4 14-Oct-2011 Pannag Sanketi <psanketi@google.com> am e3fd1952: Merge "Fixing crash in video capture intent with effects on" into ics-mr0

* commit 'e3fd19525c55e58025faa0508c16fd410a159a5f':
Fixing crash in video capture intent with effects on
dca2af0a95ccb682d57bcea43f03fb01b929edf3 14-Oct-2011 Pannag Sanketi <psanketi@google.com> Fixing crash in video capture intent with effects on

The video capture intent sends an uri and not a filename. Adding
support in the EffectsRecorder and VideoCamera for uri. The
effectsrecorder passes that on to the MediaEncoderFilter.

Related to bug: 5441217

Change-Id: I784a6c3b53a586950adcc07a6e26659838ae3cbc
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
4d9d7387eed740a51f56e4bfe063ee8c0d2a4460 14-Oct-2011 Chih-yu Huang <akahuang@google.com> Change low storage threshold in video to 50MB.

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

bug:5244256
Change-Id: I6f5c96a5e1fefab5fa09a12fd3a0cf169bcbc6f5
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
bb6fcb0f4d2a694b0d9af472d7444c653592a99e 12-Oct-2011 Pannag Sanketi <psanketi@google.com> Merge "Handle MediaRecorder stop exception for effects recording" into ics-mr0
c2151f208379162fc1572b3125d3972ec8a8b1f2 11-Oct-2011 Pannag Sanketi <psanketi@google.com> Handle MediaRecorder stop exception for effects recording

When recording videos with the effects ON, if user starts and stops the
video in rapid succession, MediaRecorder stop can throw an exception,
which we want to be treated separately than other runtime exceptions
thrown by effectsrecorder.
In this particular case, the idea is to keep the app running without crashing.

Currently, all "Stop" exceptions will lead to the same behavior.
In future, we might need to work out the details more to find out
what caused the stop to crash and pass that up from the native layer
and react according to the cause of the exception.

Change-Id: I35a961d6cf4fc3cc3ca66870ea80ee16316f0728
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
fde9af6fc5d524727ec883fd819793fded1717e8 12-Oct-2011 Raji Reddy Kandi <rajireddy.k@samsung.com> Clearing Time Lapse string on Preview screen when Restore option selected

Steps:Camcorder->select timelapse interval->select effect->Restore Defaults.
issue: Time lapse string is stil shown on preview screen.

bug:5447893

Change-Id: Ia579cb74dc8ea9f53231cc42dd4c209bf0fc7b14
Signed-off-by: Padmanaban R <padhu.r@samsung.com>
Signed-off-by: Raji Reddy Kandi <rajireddy.k@samsung.com>
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
69e105dbd0d7693ac753dc5c15fa3def65cc31e4 12-Oct-2011 Evan Millar <emillar@google.com> More bg training polish.

Make training modal by placing a semi-transparent view behind the
message panel to prevent interaction with the rest of the camera UI.

Use the framework dialog asset as the background asset for the message
panel. Since this asset is not public I had to copy it into the Camera
package.

bug:5225962
Change-Id: Ief97f545c6c0bb3695a056481d5e6d56d44edf25
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
73ad6a2afa0e66c0984ced0d91b5cc2b42dd0661 11-Oct-2011 Evan Millar <emillar@google.com> [DO NOT MERGE] Add orientation switching and cancel button to bg training panel.

-I also changed some calls to GridView.ClearChoices() to explicit
setItemChecked(..., false) calls because of bug 5439410.

bug:5225962
Change-Id: Ie764a209bc9647db8522efd38609c8ed383b5d0b
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
94ca8baae7e6e3885d895c095890eabf30d922e2 07-Oct-2011 Chih-yu Huang <akahuang@google.com> Let review icons rotatable.

bug:5244256
Change-Id: Ieed6119f22598a34eeb1672d07f55a876dced791
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d5bc2383782a06ef824856ea5712ca64f138d5fc 06-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Properly mirror video for front camera effects recording."
a6237b99ec53f93209f5af3594c98af5abb8a951 06-Oct-2011 Chung-yih Wang <cywang@google.com> Use hardcoded value for QUALITY_TIME_LAPSE_QVGA.

bug:5377739
Change-Id: I42026cb9ed06329482fc0bc6717cb8ea7e7f1fa0
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
739a5ff8a554729a6637cb042889b9c17be6b9b2 06-Oct-2011 Wei-Ta Chen <weita@google.com> Show a toast while taking a video snapshot with effects on.

Show a toast when a user tries to take a video snapshot while the
effects are on.

Bug: 5350124
Change-Id: I09092e01a0864db7e48d94e09dc643d17f6b7528
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
2c2550bd42c614330a3c968bda005ac23d12f8d1 05-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Properly mirror video for front camera effects recording.

- Incoming transform from camera SurfaceTexture is mirrored
for front camera
- Recording preview needs to be mirrored, but the recorded
video needs to be unmirrored.

Bug: 5408479
Change-Id: I0cdb29151ae20b02f690fb976e5a29e594c094a1
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7f1b0d66edd09a4cb218ecc1255a8d48f5c18a60 05-Oct-2011 Wei Huang <weih@google.com> Merge "Add time lapse label for Phone UI."
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/Camera/src/com/android/camera/VideoCamera.java
e4d0a72cbc4633497c393019ff2c57e63b1039b9 05-Oct-2011 Angus Kong <shkong@google.com> Add time lapse label for Phone UI.

1. The behavior on tablet UI and phone UI now is the same.
2. The recording time and time lapse label now always stay on the top-left corner (even when in
portrait).

bug:5394916
Change-Id: Ifa5013748dbdda3a6c0083569ec3c565b4c687eb
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b416f542580970aeac320219b80137b1e9f8d4cd 26-Sep-2011 Mike Dodd <mdodd@google.com> Fix display of preview thumbnail after recording video.

The first was that the code was trying to rotate the video thumbnail
retrieved from MetadataRetriever back by just reversing whatever
rotation we set as a playback hint when we started recording. But
this isn't actually correct -- the bitmap we get back from MetadataRetriever
is going to be oriented correctly for display if the device is oriented
in the locked UI orientation (landscape), and we need to rotate it
to compensate for what the actual device orientation is relative to
that.

Phrased another way, we were taking into account the camera and
device orientation, but not the UI orientation. This just happened
to work on some devices because of their camera orientations, but not all.

bug:5360349

Change-Id: I8b481907c211328726ecd91fa054b9e9a4798601
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7867aba2ba13f0eb70bc23fba2fcbaf45f9c90ab 03-Oct-2011 Marius Renn <renn@google.com> Merge "Initial fix for bug 5357970: Camera now handles errors during effects recording."
ff7106e9609981e79ba183b839223df392deefcf 28-Sep-2011 Angus Kong <shkong@google.com> Fix recording time label in portrait mode.

bug:5039042
Change-Id: I61dd597b0b71566a00eb1cca45ea0b3e3019fac6
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
2bbd7e182f25816008262f2e2bd9a1a08392c913 03-Oct-2011 Chung-yih Wang <cywang@google.com> Fix the UI issue during video recording.

bug:5395575

Start recording when 2nd level settings are open, it should return to
1st level controls during recording with zoom control only displayed
When recording is stopped continue to display 1st level controls -
settings and switch camera icons reappear.

Change-Id: I502f2486c764dce8baa35cd45e00cd324930c894
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
d97adb8f99e522a613d484d9d5725dd84921489f 29-Sep-2011 Marius Renn <renn@google.com> Initial fix for bug 5357970: Camera now handles errors during effects recording.

For now, the camera front-end deletes the recorded file and then continues
to throw the exception upwards. Recovering from this situation gracefully
will require more work and testing.

Change-Id: I98814d5143090f1bc7b92561fd7aae58b3a166a6
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
c159dfe54fbc0f055a1d760f1614db4a8bcec94c 28-Sep-2011 Angus Kong <shkong@google.com> Change the option menu items for Crespo.

bug: 5164126
Change-Id: I63014a3ffc24f734b08ff45e485951347c83800f
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
5ac801c1d8474a148570a64347394c710612e167 28-Sep-2011 Eino-Ville Talvala <etalvala@google.com> Fix crash when starting up Camcorder mode.

When having previously used 'pick from gallery' background replacement,
and then starting camcorder with the effect still selected, a crash
would occur due to references to not-initialized UI elements.

Bug: 5382973
Change-Id: Iccc64d1cecdc29b1138a12f339e5505b39c4d13c
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
cfcb0b746106900c9233f9bf51843f82d50f9d20 26-Sep-2011 Angus Kong <shkong@google.com> Fix the bug that local preference is not reset.

bug:5366049
Change-Id: Ifee52c43c7c2ec8ff674fca8ce7762cc489c1b6a
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
926405a84a882ab78f2f5aa1e88c4961640724f7 20-Sep-2011 Eino-Ville Talvala <etalvala@google.com> Restrict effects to 480p.

- Preview stretching still occurs after some transitions.
- Correct quality used in recording, shown in UI at all times.

Bug: 5320425
Change-Id: I63612c55d2e6e0e979208c59f2caf9a61ac1d3f8
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
97805866d29c7de439105ebdfbfe788a1735c878 23-Sep-2011 Wei Huang <weih@google.com> Merge "Show the real resolution for quality settings." into ics-factoryrom
70c9730d0cbdcd64d29928f8de293c6c753deba7 23-Sep-2011 Wei Huang <weih@google.com> Merge "Clear zoom listener and error callback when leaving." into ics-factoryrom
05999715cc38365aa4751a2a355eb1af284573ab 23-Sep-2011 Angus Kong <shkong@google.com> Show the real resolution for quality settings.

1. Change the assets.
2. Change the strings from high/low/mms to 1080p/720p/480p.
3. Change the preference from customized string to the real values of
CamcorderProfile.QUALITY_[1080|720|480]P

bug:5141068
Change-Id: I294799bda8e873f828bbf4bd21330591f0859632
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
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/Camera/src/com/android/camera/VideoCamera.java
3c5ee7fa680b4fa7bf2ec1d20d3de774b245c097 23-Sep-2011 Chih-yu Huang <akahuang@google.com> Fix bugs about review control in video intent mode.

- Switch position of checkmark and X.
- Let review play icon visible in intent mode.
- Let review control visible after reviewing video.

bug:5244256
Change-Id: I20d51faf9fb5658ee009dd45ff112947cf4ebf02
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
e335860d0e456a8182bee3aa67c52d1395b6f563 21-Sep-2011 Eino-Ville Talvala <etalvala@google.com> Disallow video snapshot while using effects in recording.

Bug: 5350124
Change-Id: I515f7982072987e888408f8d667a6a8cd422104b
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
717ddf373190a7a0b85d57d2ffa4f4ed26abb5b1 21-Sep-2011 Angus Kong <shkong@google.com> Show the video quality setting only when needed.

1. Remove mms option from quality setting.
2. Hide the quality preference when the desired quality is already known.

bug:5141068
Change-Id: I3d839bc60fc6173626d0dfb4110edb06db4bf28e
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
91d9529fee2283f491737e6b55c8e5e8f738c9c2 20-Sep-2011 Wu-cheng Li <wuchengli@google.com> Merge "Hide review controls in onResume." into ics-factoryrom
a555a5681f964aaace10c79ecf4659c3fec3df50 20-Sep-2011 James Dong <jdong@google.com> Merge "Support QVGA resolution in video recording" into ics-factoryrom
e77bc2918d46c2e896f0517cbb42eac816c80438 20-Sep-2011 James Dong <jdong@google.com> Support QVGA resolution in video recording

Change-Id: I06a174a2da8938247d800d4c03029e052a681cd1
related-to-bug: 5145483
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
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/Camera/src/com/android/camera/VideoCamera.java
a27b8c0d0a1467994a9163df5f718002db504458 19-Sep-2011 Braganza <sam.braganza@samsung.com> Initialise zoom controls in OnResume rather than OnCreate

Issue:
1. Zoom is not working after coming back from the camcorder album
Description:
Step 1: Go to Camera
Step 2: Change to Camcorder
Step 3: Zoom in
Step 4: Record->Stop
Step 5: Quick View
Step 6: Share via messaging
Step 7: Back to camcorder preview
Step 8: Try to zoom
Actual Result: After coming back for the messaging screen zoom is not working
Expected Result: Zoom should work properly

Analysis:
Zoom change listener is set to null in Camera.open. We need to set it everytime
in after camera is opened.

bug:5338478

Change-Id: I5f31504ace6fb6b6d5f76a5c9bdf28cdd7acf581
Signed-off-by: Sam <sam.braganza@samsung.com>
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
4bdaddf2fd7e989d61a1ba6e9958fa9b700110ed 17-Sep-2011 Wei Huang <weih@google.com> bug #5334042: don't use Picasa video as background replacer background.

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

bug:5244256
Change-Id: Idf02f40edb7e2e15edb4fc1ac86a4694d9147661
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
c718193efe9b13f1e00f6bd8e3c145e9c28d9309 14-Sep-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Fix orientation handling for Effects mode."
3ac6ed3a95322fa9e29f81377e92669ebaeb77fb 14-Sep-2011 Eino-Ville Talvala <etalvala@google.com> Fix orientation handling for Effects mode.

- Did not correctly set mDisplayRotation for effects mode
This caused very slow startups for effects
- EffectsRecorder does not need camera facing adjustment
- onOrientationChange did not properly calculate orientation
for effects

Bug: 5309932
Bug: 5311545
Bug: 5280905
Change-Id: I2c5b240f42cebfaad974176f72864c61e1861042
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7ef764eb76f8e1e463c143ec5c7aa9a9d678b2d8 14-Sep-2011 Chung-yih Wang <cywang@google.com> Fix the Camcoder not working for MMS message.

bug:5309725
Change-Id: I1745a3805327420433f106dc2a43469b18bceb9d
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
f519d8845d0f8b884bf3c594bb0753e918e670b8 12-Sep-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE in video capture intent mode.

bug:5297312
Change-Id: Ib4efd8fb181f28611e1800aedc757eef07cb1538
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
822a8165fc214ce2ce8cf9eeb95efc55c102c669 12-Sep-2011 Wu-cheng Li <wuchengli@google.com> Disable thumbnail during recording.

Users want to click the thumbnail after video snapshot.
Disable the thumbnail so it does not show pressed
state feedback.

bug:5187868

Change-Id: Iede42310670dc6a41afef4af8522eacd4a165038
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7ff76029a67b1d310355555514231c966852b1d7 12-Sep-2011 Wu-cheng Li <wuchengli@google.com> Merge "The last thumbnail can be an image or video."
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/Camera/src/com/android/camera/VideoCamera.java
0bb4487fcc7601118111d4545c31dae04651b456 08-Sep-2011 Wu-cheng Li <wuchengli@google.com> Disable zoom and shutter button during video snapshot.

bug:5274338

Change-Id: I4a0f578535075ff37a92f642fd2a7bc6343d3357
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
2580cb3166768fd6f98a1113e1229f733507fd7e 08-Sep-2011 Wu-cheng Li <wuchengli@google.com> Set picture size in camcorder for video snapshot.

+ Use public API isVideoSnapshotSupported.

bug:5187868
Change-Id: I5ff12487be3dec7e9788cd9510269df792247b10
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
e0861e7473d042bdd9c935f3bdf50ae220891b6c 08-Sep-2011 Wu-cheng Li <wuchengli@google.com> Enter lights out mode.

bug:5158325
Change-Id: I7c14397d6b6d9fe72e92bf0ea260322d64c87b98
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
3eb65e705ec7446fc888fc8d621fb5e1d9a1bfb8 08-Sep-2011 Wu-cheng Li <wuchengli@google.com> Merge "Use the same thumbnail in camera and camcorder."
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/Camera/src/com/android/camera/VideoCamera.java
2670b3d7c318604f07b680b22360d349103144be 07-Sep-2011 Wei Hua <whua@google.com> Added Orientation change support for goofy face effect.

bug: 5221073
Change-Id: Iff414f33fe389f0bac8f75920d8a14283f4a4d2e
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
03e53d81e5d64542fba64565962b9c0049525f71 07-Sep-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add video recording with effects into Camera."
9efb0b19fa929c528253f0a9b6f5b27791e1ee52 20-Aug-2011 Eino-Ville Talvala <etalvala@google.com> Add video recording with effects into Camera.

Initial support for video recording in the Camera app, with
the goofyface and background replacement effects.

Bug: 5212166

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

bug:5246857
Change-Id: I8aa96a744cbff414f38e7c886a613cf2c9c7922e
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
ea136afa2f4d38428ad486df5fb0a24db8314a3d 30-Aug-2011 Chih-yu Huang <akahuang@google.com> Move review control out of preview.

bug:5141555
Change-Id: I04e4ca0d0e1a40ccfe39e5276fda66ffd02ae1b5
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
4a7c00fed8ad1753fe7bf016267850c040c73c9f 29-Aug-2011 Chih-yu Huang <akahuang@google.com> Merge "Change video recording shutter button and overflow assets"
4bbbfc12a05120a2d06e07ba1252367d42e6bb82 29-Aug-2011 Chung-yih Wang <cywang@google.com> Merge "Add ZoomControlWheel."
68798bfa946e812beb9190fa7c98a316392fbce6 29-Aug-2011 Chih-yu Huang <akahuang@google.com> Change video recording shutter button and overflow assets

bug:5024054
Change-Id: Icd8c66bcf9be76df35852e6772ffd76f6f1013e8
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
ab2ffa88872149978823c3184d0af162d3cdca13 24-Aug-2011 Chung-yih Wang <cywang@google.com> Add ZoomControlWheel.

bug:5083780
Change-Id: I1a18c247d638edd3f8e5e0588170b6820f280f96
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
71e76dcebdbb3e5768fc948bed9c529a5787294e 28-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add goofy face effect setting UI.

The functionality is not working yet.

bug:5226051

Change-Id: Icb684d9320688f90ea0856b97424f9bfb6c47f39
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
ff45331706e2fe361b4ff736d90b0ad4af0e7be9 18-Aug-2011 Chung-yih Wang <cywang@google.com> Refactor indicator wheel.

+add IndicatorControlWheel container.

Change-Id: Ia3c7f0441de75a70c8a2172e86d3812b2ef1a15b
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
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/Camera/src/com/android/camera/VideoCamera.java
827192aefc4c75151dd389e1a1a5ebc8313d0164 15-Aug-2011 Wu-cheng Li <wuchengli@google.com> Remove unused files.

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

Change-Id: Ia4d54034b0b2c039e874b1fa580b036962f4cd33
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
93ad273a53e7d2975a67d7d1f8a157f845e41cf2 09-Aug-2011 Wu-cheng Li <wuchengli@google.com> Use recording hint API.

bug:4266229
Change-Id: Iafd4b6cb4bf20a1bff3ed639f9e48ca71f026969
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
16ca94d73bfe07f280e381595709b56c2681b2bc 08-Aug-2011 Wu-cheng Li <wuchengli@google.com> Use new background and shutter button.

bug:5024054

Change-Id: I2def331433b0db66efc0d38f1e9537c0980441bb
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
4b602592e0d189499b22d107d997b83e798b5bd9 03-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add face detection UI.

bug:4460717
Change-Id: Id09cc012efffcee0f5af3a070b5dcb775a7048a0
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
f8e7cdfca602c5f9699b54f25e1552fc20fadd15 26-Jul-2011 Wu-cheng Li <wuchengli@google.com> Fix wrong camccorder profile for mms.

The camcorder profile for mms was incorrectly selected
as the high resolution.

bug:5028241
Change-Id: I66767199090e5c5fdbab9a4f75fa7a2ab2b35e2b
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
0f33ecf033eb8057ab3d21a9224ae54712eb7ff3 20-Jul-2011 Wu-cheng Li <wuchengli@google.com> Enable continuous autofocus in camcorder.

bug:5029304

Change-Id: If05059ba846573b43fd00d16dec8ceaba74c1f26
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
79227ee2627163a64a3f8f5133528a6c86d79e04 11-Jul-2011 Wu-cheng Li <wuchengli@google.com> Fix wrong preview border drawable is displayed in phone UI.

Change-Id: Iccee528e8e3681f22480a0b726dac90c46757a5f
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
3008e86ddbf854e9fb6a247b6fa9f267d44886ba 07-Jul-2011 Wu-cheng Li <wuchengli@google.com> Remove color effect in camcorder app.

bug:5000060

Change-Id: Iaac250dfb0cabf3d6d6a9c563d432d9fac889a3d
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
c5e37cbb96b8284203560c51dd5f41c705a21f58 30-Jun-2011 Wu-cheng Li <wuchengli@google.com> Add expanded thumbnail in phone UI.

bug:4725968

Change-Id: I2a59a3714b93bc96f2a1689d948c9e4e0edd14cb
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
25c0a6c44f32788cb4e14095c48f1452b14530a6 29-Jun-2011 Wu-cheng Li <wuchengli@google.com> Lock the camera if starting recording fails.

bug:4965716
Change-Id: I271ceb3790bd2d13d597c77cd26659d47298bb3a
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
4a045a8e858706f56a6ffb5187960768f861f007 31-May-2011 Wu-cheng Li <wuchengli@google.com> Add camcorder zoom.

bug:2644213

Change-Id: I669966e4fd54c76d19660efa6f1700a86b4d6c07
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
3b096a491432b9904ad758fa11a6b894a03ad6ec 22-Jun-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE when video cannot be inserted to media store.

Change-Id: I9f37c9aaca22377e3f169ae126dad4f870211eee
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
585f0caa3549f5a700e9a939a9ce05ad7d1d6bb6 08-Jun-2011 Wu-cheng Li <wuchengli@google.com> am 5665e379: am 4b478c99: Merge "Camcorder HUD no longer disappears when opening slider"

* commit '5665e3790841ffc54ab3494ef6627026d5048a8c':
Camcorder HUD no longer disappears when opening slider
5665e3790841ffc54ab3494ef6627026d5048a8c 07-Jun-2011 Wu-cheng Li <wuchengli@google.com> am 4b478c99: Merge "Camcorder HUD no longer disappears when opening slider"

* commit '4b478c9940ad3e79f1c99ad70b2aa7b4643b3946':
Camcorder HUD no longer disappears when opening slider
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/Camera/src/com/android/camera/VideoCamera.java
82b1903e5b7f1be665b645835c1eef1d1660fe8e 01-Jun-2011 Wu-cheng Li <wuchengli@google.com> am dd56e778: am a5c1d8bf: Fix some comments.

* commit 'dd56e778e4f16a615b62961bbb9588feeac9200f':
Fix some comments.
e4303f7a3925ad0bd9d66bbecef1c91d0c5ab000 18-Jan-2011 Thomas Hultgren <thomas.hultgren.x@sonyericsson.com> Camcorder HUD no longer disappears when opening slider

The camcorder head up display was incorrectly detached when opening
the slider. Changed behavior to conform with the camera head up
display.

Change-Id: Ie52ab641c0702cbae5e04530a40f992ded8923bc
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
6374ed8614a151c27d6277272e3e72769e768766 15-May-2011 Wu-cheng Li <wuchengli@google.com> Add share button for phone UI.

bug:4391419

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

bug:4473360
Change-Id: If87b14a1613b1c8d4095961665944ee0db70c7ca
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
c3b311ea7c3718a8b8c704e29c5928c0537a0b64 24-May-2011 Wu-cheng Li <wuchengli@google.com> am 9bb90c3b: am 2049ccfd: Fix NPE in phone UI.

* commit '9bb90c3b940421a60251d2fb94b586461c544d5d':
Fix NPE in phone 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/Camera/src/com/android/camera/VideoCamera.java
2049ccfd9b086f001e72c6d5e09876038fd18fa3 21-May-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE in phone UI.

Phone UI assumes the on-screen icon changes when the setting
changes. Time lapse interval does not have icons yet. Remove
it from phone UI for now.

bug:4473360

Change-Id: Id413ea5fec58e26b78e44db4ac30e6c2d2a29106
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
1c24f5161cfc6a78e45da5f564626d06f6278f7c 17-May-2011 Wu-cheng Li <wuchengli@google.com> Show review image before share.

bug:4391419

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

Change-Id: Ic435b7cd97ba775ec8f4b8342a1d4d25e2a5120c
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d4594cafc86f8400012146abd48534aa9d68d92d 12-May-2011 Wu-cheng Li <wuchengli@google.com> Remove unused code and resource.

Change-Id: Ia6d98847716ef187eefd05758c5c61b530967b27
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
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/Camera/src/com/android/camera/VideoCamera.java
9fff0f154b8531094aa1349e0241a998c14da810 05-May-2011 Wu-cheng Li <wuchengli@google.com> Pass camera id while getting camcorder profile.

This also prevents NPE during variable initialization if camera
module fails to load. When camera module fails to load,
CamcorderProfile.get(int) will return null.

bug:4381780

Change-Id: I14a9af9e6f172cd02ef6df11ed81f1655361618a
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
d6274919641427d3062c0818943f2d55ab98c15d 18-Mar-2011 Wu-cheng Li <wuchengli@google.com> Add video capture intent tests.

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

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

* commit 'bcf6200327be0b408426221767467ad2ce132a08':
Fix image/video capture intents are broken after switching cameras.
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/Camera/src/com/android/camera/VideoCamera.java
8da3d3a262b3b6c30718c0eaee5b2bd0427baf06 09-Mar-2011 Wu-cheng Li <wuchengli@google.com> Print log while getting error from MediaRecorder.OnErrorListener.

Change-Id: Iae82d210c5c28873e886d55ed52b826a4bb46167
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
38a16262e8936afd22a83cf6b5b5a758de8f4f9e 02-Mar-2011 Owen Lin <owenlin@google.com> Fix a NPE in error handling code.

bug: 3499208
Change-Id: I45071a0d373cff2c58d9bbd89a46109750183020
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
0565270359fe5bb01699bd9ff602b6ef949e0b72 25-Feb-2011 Wu-cheng Li <wuchengli@google.com> Merge "Ignore search and menu long press key event."
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/Camera/src/com/android/camera/VideoCamera.java
d27cd2ac1d65481d40a50dc9f0b3fe0d8e845fa0 24-Feb-2011 Wu-cheng Li <wuchengli@google.com> Close video fd after recording is done.

MediaRecorder sets the fd in prepare(). If camcorder closes fd
before that, fd will be -1 and prepare will fail.

bug:3471488

Change-Id: I72840ae8eb06a475a2d13745a15c57911558c97c
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
9ace7a3c3af99226613c4a3a327f5726829f44a5 19-Jan-2011 Wu-cheng Li <wuchengli@google.com> Merge "Use arc shaped indicator to show the next frame in time lapse." into honeycomb
8da52d4bb31ad280779ec320bb86076386a485a2 18-Jan-2011 Wu-cheng Li <wuchengli@google.com> Update the recording time by time lapse frame interval.

Change-Id: I518c4e803dbe12b6dc3c8571233a2021c83de64f
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
a18b115b025fe0c3b046348953946c8db07e12ce 23-Dec-2010 Wu-cheng Li <wuchengli@google.com> Use arc shaped indicator to show the next frame in time lapse.

bug:3278557
Change-Id: Icee0bbe93cd5558aabc474bfba74a217fd5d4501
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
446b319606f90abedfa1927d4d47ce50e6b965c3 05-Jan-2011 Wu-cheng Li <wuchengli@google.com> Fix the wrong video duration in time lapse mode.

bug:3320235
Change-Id: I9532684b51f4a5091a27ea4d5a7d0e12d551fff1
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
bf5c2c192adfa62860fdcff560a458ba317e9b98 03-Jan-2011 Ray Chen <raychen@google.com> Fix 3294798 MediaStore database reports duration of 0 for any video recorded using the camera

Change-Id: I3e6a7c8af201e15dd08c86f77e75814c21a9b089
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
75da345f6899b6e10274b9a443b32848aa34f39c 23-Dec-2010 Chung-yih Wang <cywang@google.com> Increase the resolution of video quality low.

bug:3287017
Change-Id: I7b3d814eecad5555690e1afca6e038ca43e44aeb
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
0217a7aeb599076b423b29232b124112363b727d 21-Dec-2010 Wu-cheng Li <wuchengli@google.com> Remove the workaround that sets preview to invisible.

The current device does not have this problem. This can
also make camera and camcorder applications consistent.

Change-Id: I857e40d0b9536e11fd018bea9f3af70bcd3c3b56
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
1afe2a1ff266f1ccd7fccf2c37e97d2136384896 20-Dec-2010 Wu-cheng Li <wuchengli@google.com> Avoid time-lapse recording label overlapping on review control.

1. Put time-lapse label under review control.
2. Hide review control during recording.
3. Hide time-lapse UI during review.
bug:3287027
Change-Id: If1695e5b1b0c5d222c8ae65ac721a4bb2e05a131
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
286727c4681ccdc0b9832ff006accf569ddab172 17-Dec-2010 Wu-cheng Li <wuchengli@google.com> Remove the 30-minute limitation of video length.

New devices do not have this limitation anymore.

Change-Id: I48e30c55a5375b6926c861c5d2f2466f54e87ea9
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
34fa41048a31866b3188190ec597b5a00f44269b 15-Dec-2010 Hung-ying Tyan <tyanh@google.com> Use the preview border images in asset git.

+ Append .9 to the file name.
+ Create time lapse verion.
+ Fix the 9 patch for hdpi images.
+ Remove the old images.
+ Increase margins for GPS indicator and thumbnail.

Change-Id: I4c3eb6599fe36846d4b9bb9bdf825b8aa8f1aaad
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
3e0ae4cf60e8735049aa9a276bc3c4b911537471 14-Dec-2010 Wu-cheng Li <wuchengli@google.com> Ring lights up around preview frame to indicate time lapse mode.

bug:3278551
Change-Id: Ib2acf5266f256a47bd1b5eb29c9d96c518b0a0bc
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
3da604b599211a0e3814a4238646abdee02f2786 13-Dec-2010 Wu-cheng Li <wuchengli@google.com> Show only the actual recorded time in time lapse mode.

Showing both actual recorded time and elapsed time is confusing.
bug:3278619

Change-Id: I554c89fa41daa7fd96aff669cb5ff3b2bccf99dc
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
9bbd157589ef9ee4a525bc8bc49586c8ba45b3ae 10-Dec-2010 Wu-cheng Li <wuchengli@google.com> Enable time lapse recording UI.

Enable time lapse so people can try it.
bug:2901600
Change-Id: Idb20c25f1fc52981226dc3b5ea6e88bb9de0639d
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
ac058a1c9895c2a47e94fd7e8c0b43a51dfd0e2c 08-Dec-2010 Wu-cheng Li <wuchengli@google.com> Add time lapse recording code.

UI is not enabled because time lapse recording still has some problems.

bug:2901600
Change-Id: I1d60be9b11f8b98928dd5acacb79c70a3c2330e9
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d18f70fe9b9769242e23d04f7de8f300b4702f2e 09-Dec-2010 Hung-ying Tyan <tyanh@google.com> Fix the layout in video capture intent mode.

Side effect: camera picker is now disabled instead of disappeared during
recording. This is to make it consistent with other controls.

Bug: 3226747
Change-Id: Iecd62d83559f2df7dd544a8ecd00679473dfd4fe
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
74c5164d19fa213c6904639e6e6b0d9e542cbf66 08-Dec-2010 Hung-ying Tyan <tyanh@google.com> Implement camera ring/shutter control new design.

Bug: 3252941
Bug: 3252703
Change-Id: I1901fc88f6310881d8e0c864683041dbf6d986ba
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
067fe861cf3402f2bef3f83995579d3411f0a8b3 03-Dec-2010 Hung-ying Tyan <tyanh@google.com> Re-load camera preferences when switching camera.

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

Change-Id: I5b2b0693bb3ef8e353b4b9c793583ed3e6522526
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
fa15ed300e2a487c2e305994a75fd8f162dc3be8 03-Dec-2010 Wu-cheng Li <wuchengli@google.com> Choose a separate preview size if the camera supports video output.

bug:3237021
Change-Id: I1ccda0ef2bc7cc419541699fe02f5056f024598d
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
616cbda19e4dffc71e3826f8748852c122af560b 16-Nov-2010 Wu-cheng Li <wuchengli@google.com> Fix NPE in releaseMediaRecorder. do not merge

Change-Id: I3b96bbaf3889ebf0ce825a20337196df04f11d19
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
59ddc8c1add2fcffe523e3877baad1b6cc5ba2fb 22-Nov-2010 Chung-yih Wang <cywang@google.com> Add front/back camera switch

bug:3156676
Change-Id: I8a5394aefa068cb099b89c5739abf0cfd78591a9
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
9cfab4bc18b8d9d905263c687e19c06df885dca7 09-Nov-2010 Wu-cheng Li <wuchengli@google.com> Rotate the postview to correct orientation in video attach mode.

Manual merge from gingerbread.
bug:3208306
Change-Id: Ib7fb0a960c862527324adefd419e74224f59bc30
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
147bd5fe09aaed4c66967bd0b033c6c82accfbb3 17-Nov-2010 James Dong <jdong@google.com> Adapt the file extension of the recorded files to the requested file format.

bug - 3202417

Change-Id: Icb865419abc47726dc59c3fada4e4d789430b78a
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
97a0ada3700cc76f999eaeb476d9a840f6f6e176 16-Nov-2010 Wu-cheng Li <wuchengli@google.com> Fix NPE in releaseMediaRecorder.

bug:3196125
Change-Id: If3f5ee415f29312366abcb775ffd5ca0cb5df184
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
becd4ed88304f83436403b4d785e18d1955535cb 11-Nov-2010 Wu-cheng Li <wuchengli@google.com> Check if surface holder is null in initializeRecorder. do not merge

If shutter button is pressed before surface changed,
surface holder can be null. Recording should be ignored.

bug:3187885
Change-Id: I61406f3c44342db28f0ebeddc788d2d1d621fc1b
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
64fbf551646615592f8bd8320fef57e9aae01492 09-Nov-2010 Wu-cheng Li <wuchengli@google.com> Rotate the recording time according to orientation. do not merge

bug:3163671
Change-Id: I87d8d8615df136d8347fb345e68eb1f8f8b6fb8b
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d56274ad69e088a1682d33c6d414261ed080b378 09-Nov-2010 Wu-cheng Li <wuchengli@google.com> Rotate the postview to correct orientation in video attach mode. do not merge

bug:3163671
Change-Id: I78d8de1b2fc5f15a268c94062a58b3065772b688
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
6897561d02003e59c038f1dc4d4669e3723e9cad 09-Nov-2010 Wu-cheng Li <wuchengli@google.com> resolved conflicts for merge of 86b149d9 to master

Change-Id: Ida51ce14cbee3071cc26448e39bec05d505c8947
6e5a8f04d04155f7e3a8681f42475ce5863ee046 08-Nov-2010 Wu-cheng Li <wuchengli@google.com> Set audio input source type to CAMCORDER in camcorder app.

Up to Froyo release, the media framework (pv opencore in particular)
was forcing the audio input source type to CAMCORDER whenever the
capture was for video and audio. This is not true anymore on
gingerbread with stagefright. The proposed solution is to specify
the audio input source as CAMCORDER in the camera app, and not
enforce it in the framework. Enforcing it in the framework removes
flexibility like recording from the front camera with a mic different
from the back mic on platforms with 2 mics and 2 cams.

bug:3171482
Change-Id: I5024ebb453054bfc0fcafedcdc78d98b0393bf81
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
e424c1b9176bb838feb67180a738836bb42b2a7a 06-Nov-2010 Wu-cheng Li <wuchengli@google.com> Set video orientation hint according to device orientation. do not merge

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.

bug:3163671
Change-Id: I69efe7408aa5d47e2ef9bbab9dd4337a10d56814
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
3ecd5f5a78f828a2333457d3ee1ff5e180134fe1 05-Nov-2010 Wu-cheng Li <wuchengli@google.com> Enable front-facing camera recording. do not merge

bug:3163671
Change-Id: I88ea7c93aa6a08fb1cd529c3f5ad448399daba37
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
1b97e31508c0d17636c6989c6fefab90ca84381e 03-Nov-2010 Wu-cheng Li <wuchengli@google.com> Remove front-facing camera recording. do not merge

The video looks upside down when the phone is held in portrait.
Remove front-facing camera recording before we have a complete fix.

bug:3163671
Change-Id: I453a21739c9ba387dd02be94bef5f92428e371f1
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
a365e0209d5b7059f029a7433fc0ded6a73f0983 26-Oct-2010 Wu-cheng Li <wuchengli@google.com> am 89213eb3: am 12a1f7a2: Fix the bug that wrong profile is selected after switching camera
12a1f7a284f750ca0eb75689c9d07eaf72cd758f 25-Oct-2010 Wu-cheng Li <wuchengli@google.com> Fix the bug that wrong profile is selected after switching camera

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

Change-Id: I9f6724e6b5410fa4758dc0f0d4d28c5dc377567a
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9847656580c612bee31b5b1f2256d2cad718644f 14-Oct-2010 Wu-cheng Li <wuchengli@google.com> Change recording time position for xlarge layout.

Move recording time to the top right of the camera control
panel.
Change-Id: I8c13d2903f568d479d1aa963c6f0955e3126860c
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
de751a6a61b0e2806df4b2c5902aaadc7bb1aeb4 14-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add gallery button in thumbnail list.

Change-Id: Ide40ca003bd2454c27805e3c5a857845595ffc28
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
f5bffc476b8293b30bb500bed2ab7914bb4ca411 12-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add more settings control in control panel.

Change-Id: I6280f5bfbcc87fde2ae046b65a9f91fa620c88bc
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
8c5745a1ed8b825e84e4cc52b2b08b6146d621ea 29-Sep-2010 James Dong <jdong@google.com> A second patch to enable timelapse profiles for different cameras

Change-Id: I3cb6d1e0f3b90622d5ff02e7681a54e2e5d2a273
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
f746543692b971ce8fc41dddb646ddea07b63cb6 29-Sep-2010 James Dong <jdong@google.com> am 655327c6: Handle multiple camcorder profiles for different cameras

Merge commit '655327c6eb292b0647c603bfcf0c677a21a92fc6'

* commit '655327c6eb292b0647c603bfcf0c677a21a92fc6':
Handle multiple camcorder profiles for different cameras
9f73bd9a85d295091fae39dc256a122e1843e2e8 18-Sep-2010 Wu-cheng Li <wuchengli@google.com> Add last captured image thumbnails for xlarge devices.

Change-Id: I96d5472b62a7ffcc57642c09a0a7567a19f6ed42
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
655327c6eb292b0647c603bfcf0c677a21a92fc6 28-Sep-2010 James Dong <jdong@google.com> Handle multiple camcorder profiles for different cameras

Change-Id: Ie15d829d20ffc0aaa470f0385e23055a95778a1b
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
8604957e95a17135dead711c98e6554a13249652 17-Sep-2010 Wu-cheng Li <wuchengli@google.com> am f17b91d9: Delete the video file if MediaRecorder.stop() throws an exception.

Merge commit 'f17b91d977b3ef91da6df83140776d93f2fa4e47'

* commit 'f17b91d977b3ef91da6df83140776d93f2fa4e47':
Delete the video file if MediaRecorder.stop() throws an exception.
f17b91d977b3ef91da6df83140776d93f2fa4e47 16-Sep-2010 Wu-cheng Li <wuchengli@google.com> Delete the video file if MediaRecorder.stop() throws an exception.

The file may be malformed and causes problems in decoding.
bug:2934606

Change-Id: I2864584c934455a5aa01f8fc6d732494dd7c2899
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
f6a9ed7f6b08d0694795adc6ea6fce999e8cab87 15-Sep-2010 Nipun Kwatra <nkwatra@google.com> Adding ui for setting frame capture interval.

Currently adding a bunch of discrete options for the user
to choose from.

- Modified BasicIndicator class to allow ListPreference as well as
IconListPreference.
- Modified addIndicator() in HeadUpDisplay to take ListPreference
instead of IconListPreference.
- Modified GpsIndicator::getIcon() to return BitmapTexture instead
of ResourceTexture as its base class BasicIndicator does the same
now.
- Fixed default value of time lapse quality.

Change-Id: I9f01d8c77e9a803219c4661e10731fabbecf65a9
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b5ec9823f642decda6467e55dc1fd806d000bb75 15-Sep-2010 Nipun Kwatra <nkwatra@google.com> Switch to setCaptureRate from setTimeLapseParameters due to api change.

Switching to using setCaptureRate instead of setTimeLapseParameters due
to change in MediaRecorder API.

Change-Id: I9a838841ab55f9f968b77b2b8e518369c7e64d37
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
f09c56a025473647b16dcfe417fc0ecd25095d0f 14-Sep-2010 Nipun Kwatra <nkwatra@google.com> removing mUseStillCameraForTimeLapse, skipping audio for timelapse

- removing mUseStillCameraForTimeLapse as mediaRecorder whether to use
still camera automaticaly.
- don't set audio for time lapse case.

Change-Id: I3e4800639251c796e9798417a863ad8ee8163a37
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
035376721081f70aaf41d3da31aa50b479624ef0 12-Sep-2010 Nipun Kwatra <nkwatra@google.com> Filter out unsupported time lapse resolutions.

- Filtering out unsupported resolutions.
- Added getSupportedTimeLapseProfiles() to find the list of supported
time lapse profiles.
- added CamcorderProfile quality level values to the
pref_video_time_lapse_quality_entryvalues in arrays.xml
- removed getVideoTimeLapseQuality as can use the quality values directly.
- Use the newly added time lapse profiles for setting resolution values.

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

Change-Id: I1564fdf0f7f70f15278bdbdee6d9b5c8a6e683e0
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
e8a08cd080fef292bde739405c9a6867b348ab37 04-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 91561bdb: Fix the crash when video quality changes.

Merge commit '91561bdb6ab42d5a262201fb4044bdc5949ca07c'

* commit '91561bdb6ab42d5a262201fb4044bdc5949ca07c':
Fix the crash when video quality changes.
91561bdb6ab42d5a262201fb4044bdc5949ca07c 04-Sep-2010 Wu-cheng Li <wuchengli@google.com> Fix the crash when video quality changes.

Stop the preview in surfaceChanged before restarting the preview.

bug:2974865
Change-Id: Ie6b99c2650ee4900a277da87006950e984358d6f
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
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.
626690482a7252c1961931a590d575884c47662e 01-Sep-2010 Wu-cheng Li <wuchengli@google.com> Fix the build.

The change was automerged. But the master build has another
reference to showCameraBusyAndFinish.

Change-Id: Ib346321bcc95cc9d7a97adb0401a60499c48f7ac
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
678edf97c618e1699f4180815af3846380d5ee46 19-Aug-2010 Nipun Kwatra <nkwatra@google.com> Added live diplay of recorded video time for time lapse capture.

Since the length of time lapse video is different from the length
of the actual wall clock time elapsed, we display the video length
alongside the wall clock time.

- Moved creating of hh/mm/ss string from milliseconds
to millisecondToTimeString() function.
- Added getTimeLapseVideoLengthString() which computes the video
length from elapsed time, capture rate and frame rate.

Change-Id: Ifea0a4f8376ad09f4a0a5a14aa3f96ac48fd27dd
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
4b0ab246e5eaf8a0650e6ee7499f97199b5d7069 24-Aug-2010 Wu-cheng Li <wuchengli@google.com> am dcd762a8: Close the video file descriptor earlier.

Merge commit 'dcd762a819f195fdbd441334ca5b97a07f1aa8dd'

* commit 'dcd762a819f195fdbd441334ca5b97a07f1aa8dd':
Close the video file descriptor earlier.
dcd762a819f195fdbd441334ca5b97a07f1aa8dd 20-Aug-2010 Wu-cheng Li <wuchengli@google.com> Close the video file descriptor earlier.

The file descriptor will be closed in finalize() eventually.
But it is better to close it as soon when we are done with it.

bug:2912676
Change-Id: I04e1abfdc946c2f218cca30d9140627444bce706
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7705578d76ad0e4a181f64d52fade7694afb84f8 19-Aug-2010 Nipun Kwatra <nkwatra@google.com> Don't set max recording duration for time lapse.

Change-Id: I4752a63c77268808e5a395bff4bb5ab66e1b2a3d
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d34ea4afb694b5e06906b5a431b3bdf4bfe001ca 14-Aug-2010 Nipun Kwatra <nkwatra@google.com> Use video mode for 720p time lapse.

Change-Id: I3ce834b83c633e781e4edbf245650acb1090ff46
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
1ef634d277d550ed55b5b7089dfd56ed71815bd6 17-Jun-2010 Chih-Chung Chang <chihchung@google.com> Support multiple camera preferences.

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

Change-Id: Id444ebcd780c67f4990bd6f6b96c74379b6859ab
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
f2c905af4638db3b4aed433cc2664620704f2e6d 31-May-2010 Owen Lin <owenlin@google.com> mParameters is initialized in preview thread and could be NULL in
"initializeHeadUpDisplay()"

Bug: 2728390
Change-Id: Iaf27fa940a9758dff816c0c945ead330a2e9ec3f
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
b7957a87172eee9a34074bc6aec3a993dee96781 13-Apr-2010 Owen Lin <owenlin@google.com> Add aboutToChange to GLRootView.

This allow user to notify GLRootView to expect a size change in a near furture.

Change-Id: I8ea2a00c90f0d25c06ee9b292fa9defa2f379abd
Fix: 2591831
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
cba44d7c2bb86e5cbca3b0721d32547e8e70b94c 31-Mar-2010 Ray Chen <raychen@google.com> ThumbnailUtils.createVideoThumbnail API change

Change-Id: I175e722353dafac615c34e7b5b0e08c47ad6502a
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
b2b23846d89c63ba0d28bbc7627022e6b9fa620b 26-Mar-2010 Owen Lin <owenlin@google.com> Fix one more NPE. (Second run)

Bug: 2529339
Change-Id: Idbfa4e6950a9e1ee3259226697d1cffa34dd23fa
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
416f65b0cc009d251a16512e7b6c3621bf62dc76 23-Mar-2010 Owen Lin <owenlin@google.com> Fix one more NPE.
Bug: 2529339

Change-Id: Ia9ea3ba839e35e1ce3e5cb3a1b1f0cc6f83f1465
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
e36da237f13cb3f31ec6fe3af98f2f838cabc6b2 22-Mar-2010 Owen Lin <owenlin@google.com> Fix several NPEs.

Bug: 2529432 and Bug: 2529344

Change-Id: I6c845da35d7fcef7b3fc38952a32793458e1f59f
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
fce06cd38c8886204981478ce505a32de2127c24 18-Mar-2010 Owen Lin <owenlin@google.com> Fix a NPE in VideoCamera.

Bug: 2520984
Change-Id: Ief7c7f58150bf7323d8ea59422ff31523a0a517a
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
469a9ef839e38630e1e652d182f7e0ee5882e277 10-Mar-2010 Owen Lin <owenlin@google.com> New UI for camcorder.

Change-Id: Id35564836da7b4051662cccfd0920480421499b0
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7da52284cebf4e292033975e428b21affb661d73 13-Mar-2010 Wu-cheng Li <wuchengli@google.com> Remove the extra media recorder initialization during exit.

When users click on the video thumbnail, we should not initialize media
recorder again because we are about to exit.

bug:2505003
Change-Id: Ifdf892142d2acc985fd91a77c87ff12ca5f3d603
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
f08b1fdd1e860be0f27b277e0bbb9c2457d1abe0 10-Mar-2010 Wu-cheng Li <wuchengli@google.com> Hide the preview in onPause to avoid rotated preview.

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

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

This is for unbundling, will clean more later.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7cd2db8800fd2ad9ed09d299d9c505a338b9c4ec 02-Mar-2010 James Dong <jdong@google.com> Use unhidden public API from MediaRecorder.java class for setting parameters
This change depends on the MediaRecorder.java class change: 42513

bug - 2362412
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
a692ae22a3234bb0f6abdfe7a6e4244b84ef1ca1 02-Mar-2010 Horia Ciurdar <horia@google.com> Don't start recording right away, even when in quickCapture mode.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d297974355b4ccf25f2164965e3564d537305168 08-Feb-2010 James Dong <jdong@google.com> Replace calls to system_property with CamcorderProfile API
- rebased

bug - 2417312
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
cc0a1360f79b09e34a96123b6cb26c6a0ac7c5df 28-Jan-2010 Ray Chen <raychen@google.com> Unbundle Camera: Unhide ThumbnailUtil and rename it to ThumbnailUtils.
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
73e782de608cbe2ddffd75c055009ff2e208f78b 19-Jan-2010 Owen Lin <owenlin@google.com> Unbundle with the PreferenceManager.

Change-Id: Ib415bf36147f35cbf1681cd87514124822ac48c6
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
e2900e1761d73aec4d269d166981278dd27dffbc 21-Jan-2010 Horia Ciurdar <horia@google.com> Adding hidden quickCapture extra.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
ed32015f4a0536e842306a207d620ec5e3f665c0 24-Dec-2009 Owen Lin <owenlin@google.com> Set the brightness to a fixed value.

Bug: 2318682
Change-Id: I367fde55fab1102019accd69e69dc516c583c153
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
6dfb03741e9ed0821fbd7fa6912f44bf76bebca6 14-Dec-2009 Wu-cheng Li <wuchengli@google.com> Do not set WB or effect if driver does not support it.

The app should always check if camera driver support the parameter
before setting it. Otherwise, the app will always crash if parameter
string changes.

b/2323831
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
59595d1cad16653e73bfdf811386b037f8925569 11-Dec-2009 Wu-cheng Li <wuchengli@google.com> Avoid initializeRecorder during onPause.

When on-screen setting is visible and home key is pressed,
onPause will set mSetting to invisible and initializeRecorder()
will be called in onVisibilityChanged(). That will cause exception
if surface holder is still null.
bug 2319111
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
da3e9964a4a82a942d7f450e7c89904f5c5aa03f 07-Dec-2009 Wu-cheng Li <wuchengli@google.com> Add flash light setting in video camera.

http://b/2118298
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b15fd7eac3cdd69662cd0bbeb11a7d99b8f143cc 02-Dec-2009 Owen Lin <owenlin@google.com> Add check if the media is still recording when the timeup event is comming.

Change-Id: If3ab51b5da867378182960694dab12af3cae5da1
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
f651904fc747442f849bb084aaaf4d3245106860 01-Dec-2009 Owen Lin <owenlin@google.com> Prevent double click for record button.

http://b/2273733

Change-Id: Ibb62c511db77568aed5ae7899e2193b85a6b2e8c
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
fb4f6c794b282f1a255f5405cf54222acb51d512 12-Nov-2009 Cheng-Ru Lin <owenlin@google.com> am cc12a303: Add icon-indicators to VideoCamera.

Merge commit 'cc12a303ad51063cee73715849a951fb5f383188' into eclair-mr2

* commit 'cc12a303ad51063cee73715849a951fb5f383188':
Add icon-indicators to VideoCamera.
cc12a303ad51063cee73715849a951fb5f383188 12-Nov-2009 Cheng-Ru Lin <owenlin@google.com> Add icon-indicators to VideoCamera.

Change-Id: Ie5ace8cf1863636ffe94f89d70525483a95b3239

http://b/2247081
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
46d402ade45b258f4515c42b6940749364557fb3 04-Nov-2009 Owen Lin <owenlin@google.com> Remove some more code.

Change-Id: I5779a15fcffecd9de28e6e1c24a59d3cf0a523f7
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
111bf09fd62bd0c714ef2164c77965fb0db05a8e 03-Nov-2009 Chih-Chung Chang <chihchung@google.com> Fix 2225024: Handle the case where the sd card is unmounted while recording.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b5b1901e83564a032545bb6a3d1c521b48c15dfb 03-Nov-2009 Chih-Chung Chang <chihchung@google.com> Fix 2232894: doesn't generate thumbnails on pressing thumbnails button, while recording video
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
271b3095b9f763421c0547109da9de774795072d 02-Nov-2009 Chih-Chung Chang <chihchung@google.com> Clean up and add comments for classes.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
77c1cdc8f2cda250b1db842204efb49f87e094ae 02-Nov-2009 Chih-Chung Chang <chihchung@google.com> Clean up and add comments for classes.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
3f1947b04f2764b81e30cfde38468c4224f5035f 02-Nov-2009 Chih-Chung Chang <chihchung@google.com> Remove unused code.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9c57ded79ff3d986acfed935865a2fc2a7f0d14e 30-Oct-2009 Owen Lin <owenlin@google.com> remove unused resource files and elements

Change-Id: Ia4e7b9724501c0a1c5c16008390e0116bb409c14
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
4d2aefbe7c108bae9e4ae735c7cd230792201098 13-Oct-2009 Chih-Chung Chang <chihchung@google.com> Fix 2182549: Disable search button when using camera.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
82e96d2d003bd524439f81901d1462eab6790eb1 09-Oct-2009 Chih-Chung Chang <chihchung@google.com> Fix 2172926: Remove unnecessary invalidate to speed up video recording.

This is tested on G1, and has no visible difference.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9af17eebb0481d8e412407bcb590531166ff0ded 06-Oct-2009 Wu-cheng Li <wuchengli@google.com> am 13874d7f: Fix the bug sometimes record counter does not increment.

Merge commit '13874d7f42be37f1c4eb94320737b10d63527c46' into eclair-mr2

* commit '13874d7f42be37f1c4eb94320737b10d63527c46':
Fix the bug sometimes record counter does not increment.
13874d7f42be37f1c4eb94320737b10d63527c46 06-Oct-2009 Wu-cheng Li <wuchengli@google.com> Fix the bug sometimes record counter does not increment.

b2167715
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
22b5c55b71947252c35cc3478a751b4976e85da4 03-Oct-2009 Chih-Chung Chang <chihchung@google.com> Fix 2161972: Unable to record new video on deleting all existing videos.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d18f380d7e57f03cb775e79445cdab22b7c73f09 01-Oct-2009 Wei-Ta Chen <weita@google.com> Fixed http://b/2157791 registering OnSharedPreferenceChangeListener
when on-screen settings are visible and unregistering it
when the on-screen settings are invisible.
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
5f3fe873999e5dca82f33f89f641914b3613d07f 30-Sep-2009 Wu-cheng Li <wuchengli@google.com> Make video record counter run more smooth. b2154768
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
1f0564eb75f20943d496109928b5542902d3bd61 29-Sep-2009 Wei-Ta Chen <weita@google.com> Fix http://b/2144865 by re-positioning the on-screen setting when the size of preview frame is changed.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
207ad85f1875dd7acb69091cbcf022646aaee818 28-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2150684: Set frame rate according to encoder fps in video camera app
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
80b7c5bf37e032c2d75431c6d563ed4525159688 28-Sep-2009 Wu-cheng Li <wuchengli@google.com> VideoCamera should crash if media recorder prepare fails.

b2143881
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7e4655b1b3fcbc543430bea680872f564af098f5 26-Sep-2009 Wei-Ta Chen <weita@google.com> Fix http://b/2144590 by honoring Intent's content when provisioning options in on-screen settings.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
0b8028e923b386eaa9062e076ca041914acbcd09 26-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2147286: Camera app should handle back key in onKeyUp
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
c7e5e484f83da0d44b8f1d5639a8bfb2f53db469 25-Sep-2009 Wei-Ta Chen <weita@google.com> Fix http://b/2140611 by adjusting the width of the preview view when video quality is changed.

The preview view's aspect ratio should be the same to that of the preview frame.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9f1480b2c27d744c816c71cb3c512d37bc48c524 28-Aug-2009 Ray Chen <raychen@google.com> Change Camera & Gallery code to use the new thumbnail APIs.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
71d56e21859a797ec4633f209b3605276345d44e 23-Sep-2009 Owen Lin <owenlin@google.com> Fix some warnnings reported by eclipse.

Change-Id: I40037e0735ddbca750cbe5f8364af5247992c51c
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
fae0daa1edb499346af16c63c23d9b1d7aa2697c 20-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2130355: Enter camera settings when recording a video will cause the phone to freeze and then reset
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d0759feb7317bedff26c022bd7564f0053d483e3 18-Sep-2009 Wu-cheng Li <wuchengli@google.com> Change how VideoCamera uses lock() due to API change.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
4e3c3d5d4ae6820ff14a0ca88d4fce46b23abe50 18-Sep-2009 Owen Lin <owenlin@google.com> Fix the bug that we show camea preference in camcorder.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b0c8e311899683da46f2e0638fd88edcf9c68d9d 17-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2122382: We don't handle overlay destroy and re-create properly.

Because the overlay behavior changed, the overlay will be destroyed if we hide it.
So we need to stop preview at that time. To properly handle this situation we need
to add more code and it will be slower. For now we just don't hide the overlay
because the image on top of it will obscure it anyway.

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

Change-Id: Iec16b1975537f69230d1c8ac19a5b0ff5a75d861
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
ffde05cfdec09c6d04fe923b40e4a5436714ddca 15-Sep-2009 Wu-cheng Li <wuchengli@google.com> Restart preview if preview size is changed in camcorder.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
0dd2341fdf0f9aae201a71cf1dc26f03adca37c3 11-Sep-2009 Owen Lin <owenlin@google.com> Serveral improvement of OnScreenSettings.

1. Keep in submenu after changing option. Users will need to press the selected
option again or press on "back" to go back to main menu.
2. Fix a bug that when submenu show up. User cannot use traceball to select menu.
3. Simplify the code, there is no need to use "mRecorderInitialized", we can know
that by testing whether mMediaRecorder is null.

Change-Id: I2ab949e26aef7f1f9f874252295c2066688ed49d
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
3e737c29c72503cc599dd6652483fa0170ccbbbc 11-Sep-2009 Owen Lin <owenlin@google.com> Add OnVisibilityChangedListener to OnScreenSettings. So that we can
release the media recorder at better timing.
Also reset the OnScreenSettings when hiding it.

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

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

Change-Id: Ic55eb043e78cc6ed7c5fea5d0a88937e964f739e
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
d189083d760820ad0b0d88e11feb897e4ab5011c 08-Sep-2009 Chih-Chung Chang <chihchung@google.com> Clean menu creation code.

Change-Id: Ie8ed04e74beef78208946688ee2f33297de0b6d1
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b5946549f73a3f49ccf163dda424a0319b4b6838 07-Sep-2009 Chih-Chung Chang <chihchung@google.com> Clean menu helper code.

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

Change-Id: I8814d8482df5709b03ef105f547f4981db34919a
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
3665f924034a13014c9016be2707617d29d57f39 02-Sep-2009 Owen Lin <owenlin@google.com> Remove trailing spaces.

Change-Id: I80feb1b58c148b35b2666ef08d4b13d5aa0608b2
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
54dd1d32bbc01e9355c4a2dde555184a2d36c54e 01-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2066449: Align aspect ratio of the UI layout for video/image capture aplication

Change-Id: Ic51f6d670a8cfc692dd52e2221a4cde8d8e6f4a4
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
6f2c530d91749ff2b235125c3d134c981970f13d 31-Aug-2009 Chih-Chung Chang <chihchung@google.com> Make the video duration preference text depend on the system property.

Also upgrade old "1 minutes" duration to new "MMS video length" duration.

Change-Id: I21a975f2a3f1cde1c35a336e5552a2ae350bb6f6
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
522e836abc90bcb2d4e7a4ac37e269154d06c715 26-Aug-2009 Chih-Chung Chang <chihchung@google.com> Style fix.

Change-Id: I09ba86ee314e643415e41879c1d20ab1ede65a91
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
232b70ae4f02586fe39fe76513f975c4848395fc 25-Aug-2009 Chih-Chung Chang <chihchung@google.com> Fix 1993400: Use the max recording duration parameter.
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
eb6a5532a258e3ed7a08d5e332002ff2d1437923 06-Aug-2009 Snigdha <snigdha@snigdha.(none)> fixed encoder type string from mp4 to m4v
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
6db7f8e12af8def5ddaa49aed55d006d868f81ef 10-Aug-2009 Chih-Chung Chang <chihchung@google.com> am 781f55b2: Make the responsive region larger for the Picture/Video mode switch.

Merge commit '781f55b23ec3c3f97189efaba9d214183109f769'

* commit '781f55b23ec3c3f97189efaba9d214183109f769':
Make the responsive region larger for the Picture/Video mode switch.
781f55b23ec3c3f97189efaba9d214183109f769 10-Aug-2009 Chih-Chung Chang <chihchung@google.com> Make the responsive region larger for the Picture/Video mode switch.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
012d0f38e1fd547436675257c5cd5c62928e2ed5 20-Jul-2009 Ray Chen <raychen@google.com> Defer bitmap rotation until it's drawn on ImageView.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
947455a44af2b912e9c342b36eb9ab619fab2a66 29-Jul-2009 Chih-Chung Chang <chihchung@google.com> Sets more parameters for media recorder.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
97601c7ab6aa9ec093a7d3436e99aa1571b87092 27-Jul-2009 Chih-Chung Chang <chihchung@google.com> Fix 1993400: Read video recorder setting from system properties.
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
b6ed73e152c385c10ea20c605fa231e04de38ccc 08-Jul-2009 Wu-cheng Li <wuchengli@google.com> Read max file size from video capture intent.

Fix b1660028.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
91acfc99279d5ece7ac9cb2d7a2980eb0d3b50da 06-Jul-2009 Chih-Chung Chang <chihchung@google.com> Style fix.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
2e768c1b835a127f190395a91477144d8ae850ac 02-Jul-2009 Owen Lin <owenlin@google.com> Reset the switch state in "onStart" in both Camera and Camcorder.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
482a3a54cfa8ec2cc913efc0e73a01d78453ee6d 27-Jun-2009 Owen Lin <owenlin@google.com> Fixed the OOM in crop image.

The original code of "CropImage" won't wait the save action to be complete
before exiting.

We have to hide the ProgressDialog in onStop(), otherwise, if the job is done
in background(after onStop()), a "no window token exception" will be
thrown when dialog.dismiss() is called. Thus, a new MonitoredActivity is
introduced to help us handle this, hope it will be useful in other places.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
35f8af0ff228adfeec6bb40844d362f6dd62dab6 01-Jul-2009 Chih-Chung Chang <chihchung@google.com> Fix 1950477: Menu items for video review are incorrect.
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
20e4e11c81a37e4dcc87fe501ea853bd5b699fe3 24-Jun-2009 Wu-cheng Li <wuchengli@google.com> Start preview earlier to let user see preview earlier.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
e239acc2185c5fb47b22a65f78ffa461e19f183c 24-Jun-2009 Owen Lin <owenlin@google.com> Improve switcher to enable drag and drop operations.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
1af86ab03dbd9fe57fb833ddc7abce3062e4151b 23-Jun-2009 Owen Lin <owenlin@google.com> Change icon for retake in video.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
37dcfbb99d78c5179ecda79e7fd408eca4d00844 23-Jun-2009 Wu-cheng Li <wuchengli@google.com> Do not start preview if surface is null.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
61b98317dfb7b8bad4e826e1db560128e1c37374 19-Jun-2009 Owen Lin <owenlin@google.com> UI refresh for attachment capture mode.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
84f96469f8c54fcdc61b6e854cd478abc15c4f52 19-Jun-2009 Wu-cheng Li <wuchengli@google.com> Fix attach video.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
46fc7aeec04021dfc2f4c947649888dbc7408f53 19-Jun-2009 Wu-cheng Li <wuchengli@google.com> Integrate camcorder review mode to ReviewImage.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
84eaae7fbd51fe915c4a5e1daffe444b02352cdb 16-Jun-2009 Owen Lin <owenlin@google.com> Fill the size in database when insert a new item to the table.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
dad4b187eec436a2716aca5af31f23ce5de95f39 12-Jun-2009 Owen Lin <owenlin@google.com> New UI for camera
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
55319ceeef829274a95e2a41e7e365228acf5ccd 18-Jun-2009 Wu-cheng Li <wuchengli@google.com> Reduce the latency to enter camera setting.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
fa1dfa2f3f1385e98cf8bdac5c48f8d13a400a8a 10-Jun-2009 Wu-cheng Li <wuchengli@google.com> Throw exception if startPreview or setPreviewDisplay fails.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
cd65be31531717fb032b7423f8d5a77df465cfca 09-Jun-2009 Chih-Chung Chang <chihchung@google.com> Share Camera between Camera and VideoCamera.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
1fb8ac4e3e03f31e6e099776d1026b9cadf57610 05-Jun-2009 Chih-Chung Chang <chihchung@google.com> Revert the workaround for the buggy driver.
The original change is d55a5e92d6065bd36a60925221d8cc9a773572eb.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
317fe84be91efd6789caba48d31a53320fbaa99d 06-Jun-2009 Owen Lin <owenlin@google.com> Add correct action icons to ViewImage for video
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b128446b7ef264c33e91e119391045156a19439b 05-Jun-2009 Wu-cheng Li <wuchengli@google.com> Reduce VideoCamera start-up time.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
deb57259b0055c08a44cd43933276ccf485dcd2d 27-May-2009 Owen Lin <owenlin@google.com> Fixes some warnings shown in Eclipse.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
fbdbae6005e1720f2108d9bb345196cb87b22572 02-Jun-2009 Wu-cheng Li <wuchengli@google.com> Lock camera before releasing it. Skip keys after pausing.

Fix 1715862, 1882912, 1890705, and 1889929.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b653f90f33c6f9e6b48dfab018dece9dd021a476 01-Jun-2009 Chih-Chung Chang <chihchung@google.com> Issue 1860338: Remove the video size check for "share".
So the receiving end applications can queue the video to MediaUploader.
This is basically a revert of perforce CL 137817.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
059daa36dc6e83ca24a16d9b99925e71010bcceb 19-May-2009 Owen Lin <owenlin@google.com> New UI for donut's camera !!
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
cb79ab13392eae4919f4dde5d109d76f78eaab9a 20-May-2009 repo sync <raychen@google.com> Fix Issue 1750544.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
82ded2070a47fff16e1de1c78b516eb25888b91e 20-May-2009 Chih-Chung Chang <chihchung@google.com> Implement 1746508: add duration limit settings to camcorder.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
acdd1d7d819d17f9690d9bfddb7a9aec9dd2210d 20-May-2009 Chih-Chung Chang <chihchung@google.com> Fix 1864421.

Handle the situation that startPreview fails.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d55a5e92d6065bd36a60925221d8cc9a773572eb 14-May-2009 Chih-Chung Chang <chihchung@google.com> Restart preview after recording to avoid the bug in driver.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
ac3a8c8ae81482867daa897d5d763e777430de9e 12-May-2009 Wu-cheng Li <wuchengli@google.com> Move things out of surfaceChanged to reduce ANR.
modified: res/layout/video_camera.xml
modified: src/com/android/camera/VideoCamera.java
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
c0701504237478f810e43012a155b3461b640e54 07-May-2009 Chih-Chung Chang <chihchung@google.com> Temporarily change max duration for video recording to 600 minutes for testing.

(b/1681159)
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
6b270508bdbc78a52a825c2d934465d99fb779f7 29-Apr-2009 Chih-Chung Chang <chihchung@google.com> Code clean up.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
2687ac3dc7764260692223a247b19f9a189ace46 23-Apr-2009 Chih-Chung Chang <chihchung@google.com> Take user to video preview after the video button is clicked in review mode.
BUG=1737969
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
845acccf672f6b5f64381859cf932132ceaca0e1 23-Apr-2009 Chih-Chung Chang <chihchung@google.com> Enable hot camera preview.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
a6e21440a229e270fdc1ad5e1c02cb10970e5442 17-Apr-2009 Chih-Chung Chang <chihchung@google.com> Code clean up.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
58e94eddd371a9bb7c04936dbeb99615fd1a0c2c 17-Apr-2009 Chih-Chung Chang <chihchung@google.com> Code clean up.
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
0a475e11e2ceadbaa70308b52e06f4e6d9e56f12 16-Apr-2009 Chih-Chung Chang <chihchung@google.com> Code clean up.
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
73b7a3a18a2e4ab0302c60a486f244acebe64883 13-Apr-2009 Chih-Chung Chang <> AI 145823: Remove unused code.

Automated import of CL 145823
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
23c51b794e95c201290e36737f379c4bb8eefeae 10-Apr-2009 Ray Chen <> AI 145700: Style fix.

Automated import of CL 145700
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
272c3fdc60d4b4f773dfdff46ad3dd643ce22d5c 08-Apr-2009 Chih-Chung Chang <> AI 145048: Code clean up.

Automated import of CL 145048
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d8209aa01ae56ea27f551f621b419251bf80b265 07-Apr-2009 Chih-Chung Chang <> AI 144837: Style fix.

Automated import of CL 144837
/packages/apps/Camera/src/com/android/camera/VideoCamera.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/Camera/src/com/android/camera/VideoCamera.java
eb9d8a271a8c16514cc75a0ba1c54cfcf5d311fd 28-Mar-2009 Chih-Chung Chang <> AI 143170: am: CL 142872 Remove the share button if the image is shared from MMS.
This is based on CL 142524.
Original author: chihchung
Merged from: //branches/cupcake/...

Automated import of CL 143170
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
47bf4ced40df23a26db78fe5aec5dfce98ed797e 25-Mar-2009 Chih-Chung Chang <> Automated import from //branches/donutburger/...@142525,142525
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
095afa19556bf550262e3cccb9edacc04e6f726a 25-Mar-2009 Owen Lin <> Automated import from //branches/donutburger/...@142517,142517
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
7638a541959f3f371b9998844a0bbef2df4aa3ee 25-Mar-2009 Ray Chen <> Automated import from //branches/donutburger/...@141603,141603
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
314f9a79f1395af71f2c2bb629435bfda07a55ae 25-Mar-2009 Andreas Huber <> Automated import from //branches/donutburger/...@141400,141400
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9bc8d1b47e5bab978cc9571ddfdedc8309a0b65d 25-Mar-2009 Chih-Chung Chang <> Automated import from //branches/donutburger/...@141053,141053
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
de365d87520c97d6b1636442e6b5c82a3e036f29 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
8d0dd0e2ee9a9f8d729ed96597102777cf14701f 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
e3f4516c2154539cb5778ef061abf8a0ccf90a5e 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9a379bd668227d3dcea30312025f304fd248f6e3 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9c9be2eb4a86fc3468dbba1ec5f7bfdb37d22c74 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b64d345c9d51cabce43b5191532a0c185d2a70a5 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
becfb351a5bc43050128f44eb1bcfbcc0c6dcb7a 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
a6aa03f5bd2270bcc52ba1899c22d881955e8e7e 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
2ec6be554f06b2568eb38f7ea5ba4570b1ecfb8d 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
d8bccef54d490ce562e61fc907201da0c666314e 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
5055ba62e22becc9c8d03898b80cda8ed68cfe80 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
dee42a6e53cb1d0c7194b0cb92028cca353d7c5c 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
8250896ab37545f4499da79f54c19af2e5018b80 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
33e3e0b3f4f1f54e067bbc54c9b8b5a26660f9f0 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
9c061072c8f4ec16acf25e0af7ca3d8317d1026f 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
b97ccf3f20bee44daf70f10966809e39e30ab4f7 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/packages/apps/Camera/src/com/android/camera/VideoCamera.java
0eaec58e292ce4eaa6baadecf643f0f65e48d278 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/packages/apps/Camera/src/com/android/camera/VideoCamera.java