OSDN Git Service

android-x86/packages-apps-Camera.git
13 years agoFix the bug that on-screen zoom ratio is not reset.
Wu-cheng Li [Wed, 29 Sep 2010 04:06:26 +0000 (21:06 -0700)]
Fix the bug that on-screen zoom ratio is not reset.

After onPause and onResume, zoom value is reset to 1x
but the on-screen text is not updated.
bug:3024097
Change-Id: I1e5be3732b79073da6582799bba54364e87e5d88

13 years agoMerge "Hardcode package/class to switch between camera and camcorder." into gingerbread
Wu-cheng Li [Wed, 29 Sep 2010 03:51:10 +0000 (20:51 -0700)]
Merge "Hardcode package/class to switch between camera and camcorder." into gingerbread

13 years agoHardcode package/class to switch between camera and camcorder.
Wu-cheng Li [Wed, 29 Sep 2010 03:04:49 +0000 (20:04 -0700)]
Hardcode package/class to switch between camera and camcorder.

Users do not expect to choose other camera applications when they
slide the switch. If the activity is not found, fallback to the
intent without package and class names.

bug:3023951
Change-Id: Ifbd9916699255bffdc0cdfb50ed650ad26349dc4

13 years agoHandle multiple camcorder profiles for different cameras
James Dong [Tue, 28 Sep 2010 20:07:02 +0000 (13:07 -0700)]
Handle multiple camcorder profiles for different cameras

Change-Id: Ie15d829d20ffc0aaa470f0385e23055a95778a1b

13 years agoFall back to standard VIEW intent if cooliris gallery does not exist.
Wu-cheng Li [Mon, 27 Sep 2010 20:52:19 +0000 (13:52 -0700)]
Fall back to standard VIEW intent if cooliris gallery does not exist.

bug:3039893
Change-Id: I52062ba817e2b6393df6c93f41492ca19c32f4f5

13 years agoDo not switch camera if the activity is pausing.
Wu-cheng Li [Wed, 28 Jul 2010 23:48:25 +0000 (16:48 -0700)]
Do not switch camera if the activity is pausing.

bug:2876907
Change-Id: I581d1ebe07dae56b8e5daa5da320f19e7e531842

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Fri, 24 Sep 2010 17:23:59 +0000 (10:23 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: I80bf3d27e34181e3b97b96c95cdfa4a52276be58

13 years agoUpdate the front and back camera icons in dialog.
Wu-cheng Li [Sat, 18 Sep 2010 00:12:31 +0000 (17:12 -0700)]
Update the front and back camera icons in dialog.

These have the correct sizes.

Change-Id: I8fcd8c19029f0be8ff52c6ab1b3b0e4a0871d6de

13 years agoMerge "Add front facing and back facing camera icons." into gingerbread
Wu-cheng Li [Fri, 17 Sep 2010 22:40:16 +0000 (15:40 -0700)]
Merge "Add front facing and back facing camera icons." into gingerbread

13 years agoAdd translatable="false" for pref_camera_id_default.
Wu-cheng Li [Fri, 17 Sep 2010 22:08:34 +0000 (15:08 -0700)]
Add translatable="false" for pref_camera_id_default.

bug:3013075
Change-Id: Id50bdb1cb8e1cd5750edb80102ac10aea43debe3

13 years agoAdd front facing and back facing camera icons.
Wu-cheng Li [Fri, 17 Sep 2010 21:58:24 +0000 (14:58 -0700)]
Add front facing and back facing camera icons.

Menu select icons are bigger than they should be.
They will be updated after smaller icons are available.

Change-Id: Ie2a50cd02e99306864a6d4f8d6c30de686f0edbe

13 years agoDelete the video file if MediaRecorder.stop() throws an exception.
Wu-cheng Li [Thu, 16 Sep 2010 19:56:22 +0000 (12:56 -0700)]
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

13 years agoUpdate the code due to API change.
Wu-cheng Li [Wed, 15 Sep 2010 21:10:31 +0000 (14:10 -0700)]
Update the code due to API change.

bug:3001395
bug:3001399
Change-Id: Ie1347ed28aa72a3ec637867dc2226c60ef2dbd6c

13 years agoMerge "Fix the wrong rotation on naturally landscape devices." into gingerbread
Wu-cheng Li [Wed, 15 Sep 2010 16:22:42 +0000 (09:22 -0700)]
Merge "Fix the wrong rotation on naturally landscape devices." into gingerbread

13 years agoFix the wrong rotation on naturally landscape devices.
Wu-cheng Li [Fri, 10 Sep 2010 19:48:00 +0000 (12:48 -0700)]
Fix the wrong rotation on naturally landscape devices.

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

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

Change-Id: Ia0684fcd606252c49fa2d701ab07c73f7e29b70b

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Fri, 10 Sep 2010 20:06:29 +0000 (13:06 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: I3c66df04362f1497bff74bdbec54a68166e0b127

13 years agoAdd switch camera on-screen button. DO NOT MERGE
Wu-cheng Li [Thu, 26 Aug 2010 16:53:17 +0000 (09:53 -0700)]
Add switch camera on-screen button. DO NOT MERGE

Change-Id: I00895a9df69d2b29656075da1e03b1a1f684b107

13 years agoMerge "Add the test for activity leak." into gingerbread
Wu-cheng Li [Wed, 8 Sep 2010 18:48:27 +0000 (11:48 -0700)]
Merge "Add the test for activity leak." into gingerbread

13 years agoUse SharedPreferences$Editor.apply to reduce latency.
Wu-cheng Li [Wed, 8 Sep 2010 18:12:43 +0000 (11:12 -0700)]
Use SharedPreferences$Editor.apply to reduce latency.

Replace all commit with apply.
bug:2978683
Change-Id: I6c057fab588aada7c35d03f6237fb850d2a2e856

13 years agoUse new SharedPreferences$Editor.apply instead of commit.
Brad Fitzpatrick [Tue, 7 Sep 2010 00:29:58 +0000 (17:29 -0700)]
Use new SharedPreferences$Editor.apply instead of commit.

apply is the new async version when the caller doesn't care about the
return value, but is otherwise identical in observable effects.

BUG=2978683

Change-Id: I82086fc4501da53266802f95bebc624a7217fd8b

13 years agoAdd the test for activity leak.
Wu-cheng Li [Wed, 1 Sep 2010 16:05:37 +0000 (09:05 -0700)]
Add the test for activity leak.

bug:2949181
Change-Id: I3a804f360611d8195ff5a9dc5046ad75789329b3

13 years agoFix the crash when video quality changes.
Wu-cheng Li [Fri, 3 Sep 2010 22:10:44 +0000 (15:10 -0700)]
Fix the crash when video quality changes.

Stop the preview in surfaceChanged before restarting the preview.

bug:2974865
Change-Id: Ie6b99c2650ee4900a277da87006950e984358d6f

13 years agoMerge "Remove quick capture UI. It is not used." into gingerbread
Wu-cheng Li [Thu, 2 Sep 2010 16:42:22 +0000 (09:42 -0700)]
Merge "Remove quick capture UI. It is not used." into gingerbread

13 years agoMerge "Turn on the camera unit tests." into gingerbread
Yu Shan Emily Lau [Wed, 1 Sep 2010 21:08:03 +0000 (14:08 -0700)]
Merge "Turn on the camera unit tests." into gingerbread

13 years agoRemove quick capture UI. It is not used.
Wu-cheng Li [Wed, 1 Sep 2010 18:28:31 +0000 (11:28 -0700)]
Remove quick capture UI. It is not used.

Change-Id: Ie087afba5633304c71ca5f72276d16f620931869

13 years agoFix wrong orientation after suspend and resume.
Wu-cheng Li [Tue, 31 Aug 2010 20:57:23 +0000 (13:57 -0700)]
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

13 years agoMerge "Stop and restart the preview in surfaceChanged." into gingerbread
Wu-cheng Li [Wed, 1 Sep 2010 16:02:29 +0000 (09:02 -0700)]
Merge "Stop and restart the preview in surfaceChanged." into gingerbread

13 years agoTurn on the camera unit tests.
Yu Shan Emily Lau [Wed, 1 Sep 2010 02:03:40 +0000 (19:03 -0700)]
Turn on the camera unit tests.

Change-Id: Ic8580ed3c047268b3a25a114c512030e01439f6a

13 years agoStop and restart the preview in surfaceChanged.
Wu-cheng Li [Tue, 31 Aug 2010 22:04:22 +0000 (15:04 -0700)]
Stop and restart the preview in surfaceChanged.

If surface is changed, applications should call setPreviewDisplay
again.
Change-Id: I91072e6daba841db486b54240bb85c455588aaee

13 years agoRenaming SharedPreferences$Editor.startCommit to apply
Brad Fitzpatrick [Tue, 31 Aug 2010 00:54:08 +0000 (17:54 -0700)]
Renaming SharedPreferences$Editor.startCommit to apply

Change-Id: Ib31ff57f37ba08de32cd569b2bd86aee52cb64fe

13 years agoRemove metering mode support.
Wu-cheng Li [Mon, 30 Aug 2010 20:51:39 +0000 (13:51 -0700)]
Remove metering mode support.

Change-Id: I624f611e19c438630bc84778332d13f0357da23f

13 years agoMerge "Import revised translations. DO NOT MERGE" into gingerbread
Eric Fischer [Mon, 30 Aug 2010 17:29:29 +0000 (10:29 -0700)]
Merge "Import revised translations.  DO NOT MERGE" into gingerbread

13 years agoMerge "Fix memory leak. Camera application is leaking activities." into gingerbread
Wu-cheng Li [Mon, 30 Aug 2010 16:33:41 +0000 (09:33 -0700)]
Merge "Fix memory leak. Camera application is leaking activities." into gingerbread

13 years agoFix memory leak. Camera application is leaking activities.
Wu-cheng Li [Fri, 27 Aug 2010 16:45:19 +0000 (09:45 -0700)]
Fix memory leak. Camera application is leaking activities.

ComboPreferences.sMap (value)
-->ComboPreference (field mListeners)
-->HeadUpDisplay
-->activities

Make sure HeadUpDisplay is unregistered from ComboPreference
listener list.

bug:2949181
Change-Id: Ia0350afd6e9f23f92ce4b252a4b74709b4cd5bf7

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Sat, 28 Aug 2010 00:10:38 +0000 (17:10 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: I5ff345b289968ccf023b6c641c8e3c839a095fc9

13 years agoAdd camera selection setting strings.
Wu-cheng Li [Thu, 26 Aug 2010 22:56:45 +0000 (15:56 -0700)]
Add camera selection setting strings.

Change-Id: I1cebf6c926c4b475e2d66894f748c2c6861937d8

13 years agoAdd SharedPreferences#startCommit() method.
Brad Fitzpatrick [Wed, 25 Aug 2010 22:00:25 +0000 (15:00 -0700)]
Add SharedPreferences#startCommit() method.

The interface widened.

Change-Id: I3ddf695c3d97b72eab4cfa3abe484db41d79a958

13 years agoClose the video file descriptor earlier.
Wu-cheng Li [Thu, 19 Aug 2010 23:38:21 +0000 (16:38 -0700)]
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

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Tue, 17 Aug 2010 23:44:27 +0000 (16:44 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: I8e4d5edb29dbfd46f6095808e3d9de1aebc83cf6

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Tue, 10 Aug 2010 18:51:18 +0000 (11:51 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: I26db5882f7f30f165914cbfdd6351c18e5a639cf

13 years agoDo not cancel autofocus when snapshot is in progress.
Wu-cheng Li [Thu, 5 Aug 2010 16:58:08 +0000 (09:58 -0700)]
Do not cancel autofocus when snapshot is in progress.

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

Change-Id: I4f25ee2e819cecbb59809de85fb450091e655927

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Wed, 4 Aug 2010 17:41:47 +0000 (10:41 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: If28d05bf747e8d16594d3788b4b9ced62a9ba380

14 years agoFixed the NPE issue with the test file output name.
Yu Shan Emily Lau [Wed, 28 Jul 2010 00:04:00 +0000 (17:04 -0700)]
Fixed the NPE issue with the test file output name.

Change-Id: I715772867d84b60d87c1b44ef6588e7b5003019d

14 years agoExpose the camera stress test parameters.
Yu Shan Emily Lau [Tue, 20 Jul 2010 00:05:09 +0000 (17:05 -0700)]
Expose the camera stress test parameters.

Change-Id: Iff20081e8e49da744f4ee36925167bbeb6a2a87c

14 years agoFix build again again.
Chih-Chung Chang [Mon, 28 Jun 2010 05:19:58 +0000 (13:19 +0800)]
Fix build again again.

Change-Id: I5acf4836559f265a24c1b0f26582711e6c6b06e4

14 years agoFix build again.
Chih-Chung Chang [Mon, 28 Jun 2010 05:19:58 +0000 (13:19 +0800)]
Fix build again.

Change-Id: Id0353479fef015e8b04139198607fb477d0f24ce

14 years agoFix build.
Chih-Chung Chang [Mon, 28 Jun 2010 05:19:58 +0000 (13:19 +0800)]
Fix build.

Change-Id: Ib377c102bc0e2fde467d94ae81101417c76ce78a

14 years agoSupport multiple camera preferences.
Chih-Chung Chang [Thu, 17 Jun 2010 12:32:22 +0000 (20:32 +0800)]
Support multiple camera preferences.

Change-Id: I7c8440424c472c9ff61ac22692ce60234d359efe

14 years agoSupport switching between multiple cameras.
Chih-Chung Chang [Tue, 15 Jun 2010 08:41:33 +0000 (16:41 +0800)]
Support switching between multiple cameras.

Change-Id: Id444ebcd780c67f4990bd6f6b96c74379b6859ab

14 years agoAdd metering mode support.
Wu-cheng Li [Fri, 4 Jun 2010 06:18:16 +0000 (14:18 +0800)]
Add metering mode support.

Change-Id: I8b964df4534da0b393479baddabfc85ce1b09b2f

14 years agoam b84acd02: Merge "Fixed the camera test instrumentation target naming issue." into...
Yu Shan Emily Lau [Thu, 10 Jun 2010 20:02:01 +0000 (13:02 -0700)]
am b84acd02: Merge "Fixed the camera test instrumentation target naming issue." into froyo

Merge commit 'b84acd02e46f87dead1fa75abb14427bf29ba8d8' into kraken

* commit 'b84acd02e46f87dead1fa75abb14427bf29ba8d8':
  Fixed the camera test instrumentation target naming issue.

14 years agoMerge "Fixed the camera test instrumentation target naming issue." into froyo froyo-x86 android-x86-2.2 android-x86-2.2-r2
Yu Shan Emily Lau [Thu, 10 Jun 2010 20:00:10 +0000 (13:00 -0700)]
Merge "Fixed the camera test instrumentation target naming issue." into froyo

14 years agoam 432a1c68: Import revised translations
Kenny Root [Thu, 10 Jun 2010 05:33:24 +0000 (22:33 -0700)]
am 432a1c68: Import revised translations

Merge commit '432a1c682221baadfb36d12c651a4092ea75ebcb' into kraken

* commit '432a1c682221baadfb36d12c651a4092ea75ebcb':
  Import revised translations

14 years agoImport revised translations
Kenny Root [Thu, 10 Jun 2010 05:28:46 +0000 (22:28 -0700)]
Import revised translations

Change-Id: Ia5d2e7169014c35590ab1fe5ae5467d68f824d62

14 years agoFixed the camera test instrumentation target naming issue.
Yu Shan Emily Lau [Wed, 9 Jun 2010 21:26:35 +0000 (14:26 -0700)]
Fixed the camera test instrumentation target naming issue.

Change-Id: Ia98963e7ae38157d96a7fe3b70d37eca9c5f4af2

14 years agomParameters is initialized in preview thread and could be NULL in
Owen Lin [Mon, 31 May 2010 09:40:28 +0000 (17:40 +0800)]
mParameters is initialized in preview thread and could be NULL in
"initializeHeadUpDisplay()"

Bug: 2728390
Change-Id: Iaf27fa940a9758dff816c0c945ead330a2e9ec3f

14 years agoShow better message to users if camera fails to access sdcard.
Wu-cheng Li [Fri, 28 May 2010 11:57:36 +0000 (19:57 +0800)]
Show better message to users if camera fails to access sdcard.

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

Change-Id: I35a553ee75a49398582b587755d097b02b144015

14 years agoRefactor the code. Improve the inheritance structure of Textures.
Owen Lin [Fri, 14 May 2010 06:13:02 +0000 (14:13 +0800)]
Refactor the code. Improve the inheritance structure of Textures.

Change-Id: I72a78f97cf54a6505cd7bff98e1db1bdf5fa84c9

14 years agoUsing GL to draw NinePatch
Owen Lin [Wed, 12 May 2010 07:43:14 +0000 (15:43 +0800)]
Using GL to draw NinePatch

Change-Id: I2aa92bba691cbfde75523c196a880d0e18eeaba4

14 years agoMerge "Fix issue 2622023: Clean up all hardcoded '/sdcard' in camera related codes...
Ray Chen [Fri, 14 May 2010 18:21:20 +0000 (11:21 -0700)]
Merge "Fix issue 2622023: Clean up all hardcoded '/sdcard' in camera related codes 2622023" into kraken

14 years agoInitialize the HeadUpDisplay only once in the life time of the activity.
Owen Lin [Thu, 13 May 2010 08:21:29 +0000 (16:21 +0800)]
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

14 years agoresolved conflicts for merge of ec1dfcb7 to kraken
Owen Lin [Fri, 14 May 2010 06:31:06 +0000 (14:31 +0800)]
resolved conflicts for merge of ec1dfcb7 to kraken

Change-Id: I5ea57293d0b34f4189983c7a9851555bcf5f5232

14 years agoCreate a ColorTexture to draw pure color in GL.
Owen Lin [Mon, 10 May 2010 10:27:17 +0000 (18:27 +0800)]
Create a ColorTexture to draw pure color in GL.

Change-Id: I9dfa69b6037397d01a43c976b2d02acb16f2af62

14 years agoAdd copyright headers to source codes.
Owen Lin [Thu, 13 May 2010 04:12:50 +0000 (12:12 +0800)]
Add copyright headers to source codes.

Bug: 2680376

Change-Id: I4d0b297f2cee13bb03104996f020732713c61e03

14 years agoam e3911500: Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photo...
Ray Chen [Wed, 12 May 2010 14:57:16 +0000 (07:57 -0700)]
am e3911500: Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photo 2672651

Merge commit 'e391150007300e63d3fb6e2236db3f4c9247fb9c' into kraken

* commit 'e391150007300e63d3fb6e2236db3f4c9247fb9c':
  Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photo

14 years agoFix 2672651 When GPS is disabled, GPS EXIF data is still in the photo
Ray Chen [Mon, 10 May 2010 21:12:41 +0000 (14:12 -0700)]
Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photo
http://2672651

Change-Id: I7992574e978bba1f65c01c942220b0d435b45029

14 years agoInitialize zoom in "InitializeSecondTime" so that we can get correct values for
Owen Lin [Thu, 6 May 2010 07:14:05 +0000 (15:14 +0800)]
Initialize zoom in "InitializeSecondTime" so that we can get correct values for
zoom ratios.

Bug: 2643926

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

Change-Id: I64a248eba2aa63456f14452ffccaeaab090cc748

14 years agoHandle events in the main thread and use GLThread only as a rendering thread.
Owen Lin [Wed, 5 May 2010 07:03:49 +0000 (15:03 +0800)]
Handle events in the main thread and use GLThread only as a rendering thread.

Coordinate the two threads by synchronizing on the GLRootView instance.

Change-Id: I94459f6afeb468660df7219800bc48b621edecd4

14 years agoMove the texture coordinate 0.5 pixel inner so that GL won't get garbage
Owen Lin [Wed, 5 May 2010 08:39:54 +0000 (16:39 +0800)]
Move the texture coordinate 0.5 pixel inner so that GL won't get garbage
data.

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

Change-Id: I58a88c2fb1166e0c3991edfd320c69633c89d102

14 years agoMerge "Use our own EGLChooser so that we can fall back to use "copyImage2D" when...
Owen Lin [Fri, 7 May 2010 03:10:15 +0000 (20:10 -0700)]
Merge "Use our own EGLChooser so that we can fall back to use "copyImage2D" when stencil is not supported. Also fix an issue in GLListView due to a different behavior on Emulator, i.e., ACTION_MOVE won't be sent after ACTION_DOWN." into kraken

14 years agoUse our own EGLChooser so that we can fall back to use "copyImage2D" when
Owen Lin [Wed, 28 Apr 2010 03:36:07 +0000 (11:36 +0800)]
Use our own EGLChooser so that we can fall back to use "copyImage2D" when
stencil is not supported. Also fix an issue in GLListView due to a different
behavior on Emulator, i.e., ACTION_MOVE won't be sent after ACTION_DOWN.

Bug: 2538315

Change-Id: I8eb26794656b42df1c89e675bc153879920a7155

14 years agoam aefb028c: Nudge the camera preview 2dip from the screen edge.
Daniel Sandler [Thu, 6 May 2010 19:36:17 +0000 (12:36 -0700)]
am aefb028c: Nudge the camera preview 2dip from the screen edge.

Merge commit 'aefb028cb120b2908038f459e33b61d18ad32417' into kraken

* commit 'aefb028cb120b2908038f459e33b61d18ad32417':
  Nudge the camera preview 2dip from the screen edge.

14 years agoNudge the camera preview 2dip from the screen edge.
Daniel Sandler [Wed, 5 May 2010 19:28:30 +0000 (15:28 -0400)]
Nudge the camera preview 2dip from the screen edge.

On Sapphire, the preview background was right up against the
edge of the screen; since that portion of
border_view_finder.9.png is very dark, it looked as if there
was no border at all. Now there's a guaranteed 2dip of
bg_camera_pattern.png texture visible to the left of the
viewscreen.

Bug: 2655309
Change-Id: I4d4f45542700b8b0fec564b72895e42d9dd29da3

14 years agoam 0055c650: Merge "b/2483367 Moving OneTimeInitializer to vendor/google" into froyo
Michael Chan [Tue, 4 May 2010 03:52:03 +0000 (20:52 -0700)]
am 0055c650: Merge "b/2483367 Moving OneTimeInitializer to vendor/google" into froyo

Merge commit '0055c650940d5c4dbc75998e362c645ec358ec45' into kraken

* commit '0055c650940d5c4dbc75998e362c645ec358ec45':
  b/2483367 Moving OneTimeInitializer to vendor/google

14 years agoMerge "b/2483367 Moving OneTimeInitializer to vendor/google" into froyo
Michael Chan [Tue, 4 May 2010 03:40:55 +0000 (20:40 -0700)]
Merge "b/2483367 Moving OneTimeInitializer to vendor/google" into froyo

14 years agoFix issue 2622023: Clean up all hardcoded '/sdcard' in camera related codes
Ray Chen [Fri, 30 Apr 2010 21:07:03 +0000 (14:07 -0700)]
Fix issue 2622023: Clean up all hardcoded '/sdcard' in camera related codes
http://2622023

Change-Id: I10205ab378c863e2ffed460c83b0037311a6d1a1

14 years agob/2483367 Moving OneTimeInitializer to vendor/google
Michael Chan [Fri, 30 Apr 2010 01:14:13 +0000 (18:14 -0700)]
b/2483367 Moving OneTimeInitializer to vendor/google

See ee510dbe764abbc7bf74c0bb214f4c9a09b87fe8

Change-Id: I9da94242451ead99c1b26796a4dc554a9d3a6503

14 years agoam 739ab183: Import revised translations
Kenny Root [Thu, 29 Apr 2010 23:28:38 +0000 (16:28 -0700)]
am 739ab183: Import revised translations

Merge commit '739ab183c50f2d670357dfcc49653cdef2fc9b5b' into kraken

* commit '739ab183c50f2d670357dfcc49653cdef2fc9b5b':
  Import revised translations

14 years agoImport revised translations
Kenny Root [Thu, 29 Apr 2010 22:28:17 +0000 (15:28 -0700)]
Import revised translations

Change-Id: Id797436a1fe841a4ed068c23ecb9aeb907e29ec3

14 years agoImprove the Texture by using glTexSubImage to upload the image content.
Owen Lin [Thu, 29 Apr 2010 06:20:25 +0000 (14:20 +0800)]
Improve the Texture by using glTexSubImage to upload the image content.

So that we can prevent create another Bitmap just to satisfied the limit that
the width and height must be power of 2.

Change-Id: Ie0cdb1e944fb2bf928464955851fe62d00394d70

14 years agoImport revised translations
Kenny Root [Tue, 27 Apr 2010 20:00:25 +0000 (13:00 -0700)]
Import revised translations

Change-Id: Ife0e63f97c1cd90bcb397098b31116a1d3421e85

14 years agoAvoid loading drawables in CameraSettings.
Owen Lin [Mon, 26 Apr 2010 03:34:30 +0000 (11:34 +0800)]
Avoid loading drawables in CameraSettings.

Bug: 2430326

Change-Id: Ia5e6f4320fac3a89ede5054e9ac7b6f31c973273

14 years agoMerge "Startup time improvements. Bug: 2430326" into froyo
Chih-Chung Chang [Fri, 23 Apr 2010 17:16:52 +0000 (10:16 -0700)]
Merge "Startup time improvements. Bug: 2430326" into froyo

14 years agoStartup time improvements.
Chih-Chung Chang [Thu, 22 Apr 2010 10:40:53 +0000 (18:40 +0800)]
Startup time improvements.
Bug: 2430326

Change-Id: I36dde4cee9f086e468caf87378ce1f2fd0d011c7

14 years agoRemove unused state in some resources.
Owen Lin [Fri, 23 Apr 2010 02:14:15 +0000 (10:14 +0800)]
Remove unused state in some resources.

Change-Id: I7acfd20cb77ace0c953b0f349a64fc85cc334365

Bug: 2557840

14 years agoReset scece mode overrides in InitializeHeadUpDisplay.
Owen Lin [Wed, 21 Apr 2010 07:21:15 +0000 (15:21 +0800)]
Reset scece mode overrides in InitializeHeadUpDisplay.

bug: 2612518
Change-Id: I1b349f3b52cb2f474fa1b0790cc1f8fbecb0b9aa

14 years agoRemove GLRootView in onPause() and put it back in onResume() to avoid OOM in
Owen Lin [Tue, 20 Apr 2010 03:14:44 +0000 (11:14 +0800)]
Remove GLRootView in onPause() and put it back in onResume() to avoid OOM in
Gallery.

Bug: 2557840

Change-Id: I2d6ff6da25bfe342472278efd5fc25c38d5fd5ce

14 years agoMerge "Fix bug: 2609027." into froyo
Owen Lin [Wed, 21 Apr 2010 07:03:38 +0000 (00:03 -0700)]
Merge "Fix bug: 2609027." into froyo

14 years agoFix bug: 2609027.
Owen Lin [Tue, 20 Apr 2010 06:42:01 +0000 (14:42 +0800)]
Fix bug: 2609027.

Change-Id: Ic59f542f50c401492770423f98546e34a70fa2ef

14 years agoDon't stop user from taking pictures while the media scanner is scanning.
Chih-Chung Chang [Tue, 20 Apr 2010 10:07:15 +0000 (18:07 +0800)]
Don't stop user from taking pictures while the media scanner is scanning.
Bug: 2603078

Change-Id: Ic2159201434083919d7f7bc6b1ea2f3438971ebd

14 years agoAlways encode GpsTimeStamp in Camera.
Ray Chen [Tue, 13 Apr 2010 23:44:56 +0000 (16:44 -0700)]
Always encode GpsTimeStamp in Camera.
Bug: 2596154

Change-Id: I00f40032e7db512ab09f6a66e5db7dbef8dc8e27

14 years agoAdd aboutToChange to GLRootView.
Owen Lin [Tue, 13 Apr 2010 08:31:05 +0000 (16:31 +0800)]
Add aboutToChange to GLRootView.

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

Change-Id: I8ea2a00c90f0d25c06ee9b292fa9defa2f379abd
Fix: 2591831

14 years agoAdd a hack to avoid allocating GL surface with different sizes.
Chih-Chung Chang [Fri, 9 Apr 2010 12:48:02 +0000 (20:48 +0800)]
Add a hack to avoid allocating GL surface with different sizes.
Bug: 2515291

Change-Id: Ib0d886dcd355ddd3af09cc31089ed8c446911536

14 years agoFix a typo in the code.
Owen Lin [Thu, 8 Apr 2010 10:22:30 +0000 (18:22 +0800)]
Fix a typo in the code.

Bug: 2580309
Change-Id: I25ade485a56230b919d07698e1f9d9f25baaa5b8

14 years agoMerge "Fix the ANR after switching between Camera and Camcorder." into froyo
Chih-Chung Chang [Thu, 8 Apr 2010 05:10:41 +0000 (22:10 -0700)]
Merge "Fix the ANR after switching between Camera and Camcorder." into froyo

14 years agoMerge "Make shortcut upgrading code a bit more robust. Bug: 2558040" into froyo
Chih-Chung Chang [Thu, 8 Apr 2010 05:10:29 +0000 (22:10 -0700)]
Merge "Make shortcut upgrading code a bit more robust. Bug: 2558040" into froyo

14 years agoDo not register OneShotPreviewCallback to reduce latency.
Wu-cheng Li [Sun, 4 Apr 2010 05:37:36 +0000 (13:37 +0800)]
Do not register OneShotPreviewCallback to reduce latency.

bug:2430326
Change-Id: I14f10f1317096966edc094fc4df8691ec20fee11

14 years agoMake shortcut upgrading code a bit more robust.
Chih-Chung Chang [Thu, 8 Apr 2010 02:54:46 +0000 (19:54 -0700)]
Make shortcut upgrading code a bit more robust.
Bug: 2558040

Change-Id: Id2fac56bd4c6082039c48648a757ff228217c713

14 years agoFix the ANR after switching between Camera and Camcorder.
Owen Lin [Thu, 1 Apr 2010 07:42:33 +0000 (15:42 +0800)]
Fix the ANR after switching between Camera and Camcorder.

The reason of this bug is we try to queue an event in the GLThread, but the thread
has already dead when the GLRootView detacched from the window. So, we are
waiting a task that will never be executed.

I have seen a similar ANR in GLRootView.onTouch(), so I also fix the that issue
in this change.

Bug: 2559472

Change-Id: I49efd9ca01f1f6cce73320c31448ebaa7687469f

14 years agoUpdate the code due to API change.
Wu-cheng Li [Sun, 4 Apr 2010 07:07:38 +0000 (15:07 +0800)]
Update the code due to API change.

bug:2553570
Change-Id: Ifa6b2ebbbd0d988deef25afdd013b5429438e52a