summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Increse the max height of popup window.Wu-cheng Li2010-10-081-1/+1
| | | | | | | | Some users do not know the other settings can scroll. Increase the height a little bit so the bottom breaks between two options. It looks more scrollable. Change-Id: I350a07831ccbd23cb8d2e8b8463fb5764affe61d
* Fix the crash when zoom is not supported.Wu-cheng Li2010-09-291-2/+0
| | | | Change-Id: I552f3857d52ed03a2e89e171ccb606dbf940ed44
* Fix the bug that on-screen zoom ratio is not reset.Wu-cheng Li2010-09-291-1/+3
| | | | | | | After onPause and onResume, zoom value is reset to 1x but the on-screen text is not updated. bug:3024097 Change-Id: I1e5be3732b79073da6582799bba54364e87e5d88
* Merge "Hardcode package/class to switch between camera and camcorder." into ↵Wu-cheng Li2010-09-281-8/+16
|\ | | | | | | gingerbread
| * Hardcode package/class to switch between camera and camcorder.Wu-cheng Li2010-09-281-8/+16
| | | | | | | | | | | | | | | | | | 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
* | Handle multiple camcorder profiles for different camerasJames Dong2010-09-281-1/+2
|/ | | | Change-Id: Ie15d829d20ffc0aaa470f0385e23055a95778a1b
* Fall back to standard VIEW intent if cooliris gallery does not exist.Wu-cheng Li2010-09-272-1/+7
| | | | | bug:3039893 Change-Id: I52062ba817e2b6393df6c93f41492ca19c32f4f5
* Do not switch camera if the activity is pausing.Wu-cheng Li2010-09-272-0/+2
| | | | | bug:2876907 Change-Id: I581d1ebe07dae56b8e5daa5da320f19e7e531842
* Delete the video file if MediaRecorder.stop() throws an exception.Wu-cheng Li2010-09-161-4/+5
| | | | | | | The file may be malformed and causes problems in decoding. bug:2934606 Change-Id: I2864584c934455a5aa01f8fc6d732494dd7c2899
* Update the code due to API change.Wu-cheng Li2010-09-153-3/+3
| | | | | | bug:3001395 bug:3001399 Change-Id: Ie1347ed28aa72a3ec637867dc2226c60ef2dbd6c
* Fix the wrong rotation on naturally landscape devices.Wu-cheng Li2010-09-153-58/+64
| | | | | | | | | | | | 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
* Add switch camera on-screen button. DO NOT MERGEWu-cheng Li2010-09-0812-85/+145
| | | | Change-Id: I00895a9df69d2b29656075da1e03b1a1f684b107
* Use SharedPreferences$Editor.apply to reduce latency.Wu-cheng Li2010-09-083-6/+6
| | | | | | Replace all commit with apply. bug:2978683 Change-Id: I6c057fab588aada7c35d03f6237fb850d2a2e856
* Use new SharedPreferences$Editor.apply instead of commit.Brad Fitzpatrick2010-09-072-2/+3
| | | | | | | | | 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
* Fix the crash when video quality changes.Wu-cheng Li2010-09-031-0/+8
| | | | | | | Stop the preview in surfaceChanged before restarting the preview. bug:2974865 Change-Id: Ie6b99c2650ee4900a277da87006950e984358d6f
* Remove quick capture UI. It is not used.Wu-cheng Li2010-09-012-17/+1
| | | | Change-Id: Ie087afba5633304c71ca5f72276d16f620931869
* Fix wrong orientation after suspend and resume.Wu-cheng Li2010-09-012-6/+3
| | | | | | | | | | | | | | 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
* Merge "Stop and restart the preview in surfaceChanged." into gingerbreadWu-cheng Li2010-09-012-45/+27
|\
| * Stop and restart the preview in surfaceChanged.Wu-cheng Li2010-08-312-45/+27
| | | | | | | | | | | | If surface is changed, applications should call setPreviewDisplay again. Change-Id: I91072e6daba841db486b54240bb85c455588aaee
* | Renaming SharedPreferences$Editor.startCommit to applyBrad Fitzpatrick2010-08-301-1/+1
|/ | | | Change-Id: Ib31ff57f37ba08de32cd569b2bd86aee52cb64fe
* Remove metering mode support.Wu-cheng Li2010-08-303-17/+1
| | | | Change-Id: I624f611e19c438630bc84778332d13f0357da23f
* Fix memory leak. Camera application is leaking activities.Wu-cheng Li2010-08-291-2/+2
| | | | | | | | | | | | | ComboPreferences.sMap (value) -->ComboPreference (field mListeners) -->HeadUpDisplay -->activities Make sure HeadUpDisplay is unregistered from ComboPreference listener list. bug:2949181 Change-Id: Ia0350afd6e9f23f92ce4b252a4b74709b4cd5bf7
* Add SharedPreferences#startCommit() method.Brad Fitzpatrick2010-08-251-0/+4
| | | | | | The interface widened. Change-Id: I3ddf695c3d97b72eab4cfa3abe484db41d79a958
* Close the video file descriptor earlier.Wu-cheng Li2010-08-201-20/+24
| | | | | | | | 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
* Do not cancel autofocus when snapshot is in progress.Wu-cheng Li2010-08-051-2/+2
| | | | | | | The bug occurred when camera key was half pressed, focus completed, camera key was fully pressed, and camera key was released. Change-Id: I4f25ee2e819cecbb59809de85fb450091e655927
* Fix build again again.Chih-Chung Chang2010-06-281-5/+6
| | | | Change-Id: I5acf4836559f265a24c1b0f26582711e6c6b06e4
* Fix build again.Chih-Chung Chang2010-06-281-2/+2
| | | | Change-Id: Id0353479fef015e8b04139198607fb477d0f24ce
* Fix build.Chih-Chung Chang2010-06-281-0/+10
| | | | Change-Id: Ib377c102bc0e2fde467d94ae81101417c76ce78a
* Support multiple camera preferences.Chih-Chung Chang2010-06-237-31/+287
| | | | Change-Id: I7c8440424c472c9ff61ac22692ce60234d359efe
* Support switching between multiple cameras.Chih-Chung Chang2010-06-237-24/+174
| | | | Change-Id: Id444ebcd780c67f4990bd6f6b96c74379b6859ab
* Add metering mode support.Wu-cheng Li2010-06-113-1/+17
| | | | Change-Id: I8b964df4534da0b393479baddabfc85ce1b09b2f
* mParameters is initialized in preview thread and could be NULL inOwen Lin2010-05-311-2/+4
| | | | | | | "initializeHeadUpDisplay()" Bug: 2728390 Change-Id: Iaf27fa940a9758dff816c0c945ead330a2e9ec3f
* Show better message to users if camera fails to access sdcard.Wu-cheng Li2010-05-283-1/+12
| | | | | | | Also print the exception if sdcard access fails. bug:2713104 Change-Id: I35a553ee75a49398582b587755d097b02b144015
* Refactor the code. Improve the inheritance structure of Textures.Owen Lin2010-05-1717-371/+269
| | | | Change-Id: I72a78f97cf54a6505cd7bff98e1db1bdf5fa84c9
* Using GL to draw NinePatchOwen Lin2010-05-174-87/+336
| | | | Change-Id: I2aa92bba691cbfde75523c196a880d0e18eeaba4
* Initialize the HeadUpDisplay only once in the life time of the activity.Owen Lin2010-05-142-22/+25
| | | | | | And review the code so that mHeadUpDisplay won't be null when used. Change-Id: I335a25e64035627c30ec2c6f45c17566f0ea2420
* resolved conflicts for merge of ec1dfcb7 to krakenOwen Lin2010-05-1431-0/+495
|\ | | | | | | Change-Id: I5ea57293d0b34f4189983c7a9851555bcf5f5232
| * Add copyright headers to source codes.Owen Lin2010-05-1330-0/+479
| | | | | | | | | | | | Bug: 2680376 Change-Id: I4d0b297f2cee13bb03104996f020732713c61e03
* | Create a ColorTexture to draw pure color in GL.Owen Lin2010-05-139-28/+86
| | | | | | | | Change-Id: I9dfa69b6037397d01a43c976b2d02acb16f2af62
* | am e3911500: Fix 2672651 When GPS is disabled, GPS EXIF data is still in the ↵Ray Chen2010-05-121-0/+1
|\ \ | |/ | | | | | | | | | | | | | | photo http://2672651 Merge commit 'e391150007300e63d3fb6e2236db3f4c9247fb9c' into kraken * commit 'e391150007300e63d3fb6e2236db3f4c9247fb9c': Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photo
| * Fix 2672651 When GPS is disabled, GPS EXIF data is still in the photoRay Chen2010-05-111-0/+1
| | | | | | | | | | | | http://2672651 Change-Id: I7992574e978bba1f65c01c942220b0d435b45029
* | Initialize zoom in "InitializeSecondTime" so that we can get correct values forOwen Lin2010-05-111-18/+12
| | | | | | | | | | | | | | | | | | | | | | 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
* | Handle events in the main thread and use GLThread only as a rendering thread.Owen Lin2010-05-1030-303/+218
| | | | | | | | | | | | Coordinate the two threads by synchronizing on the GLRootView instance. Change-Id: I94459f6afeb468660df7219800bc48b621edecd4
* | Move the texture coordinate 0.5 pixel inner so that GL won't get garbageOwen Lin2010-05-073-21/+31
| | | | | | | | | | | | | | | | data. So that GL won't get garbage data when do sampling. Change-Id: I58a88c2fb1166e0c3991edfd320c69633c89d102
* | Use our own EGLChooser so that we can fall back to use "copyImage2D" whenOwen Lin2010-05-078-49/+161
| | | | | | | | | | | | | | | | | | 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
* | am 0055c650: Merge "b/2483367 Moving OneTimeInitializer to vendor/google" ↵Michael Chan2010-05-031-158/+0
|\ \ | |/ | | | | | | | | | | | | | | into froyo Merge commit '0055c650940d5c4dbc75998e362c645ec358ec45' into kraken * commit '0055c650940d5c4dbc75998e362c645ec358ec45': b/2483367 Moving OneTimeInitializer to vendor/google
| * b/2483367 Moving OneTimeInitializer to vendor/googleMichael Chan2010-04-291-158/+0
| | | | | | | | | | | | See ee510dbe764abbc7bf74c0bb214f4c9a09b87fe8 Change-Id: I9da94242451ead99c1b26796a4dc554a9d3a6503
* | Improve the Texture by using glTexSubImage to upload the image content.Owen Lin2010-04-293-27/+23
|/ | | | | | | 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
* Avoid loading drawables in CameraSettings.Owen Lin2010-04-264-51/+88
| | | | | | Bug: 2430326 Change-Id: Ia5e6f4320fac3a89ede5054e9ac7b6f31c973273
* Startup time improvements.Chih-Chung Chang2010-04-233-21/+19
| | | | | | Bug: 2430326 Change-Id: I36dde4cee9f086e468caf87378ce1f2fd0d011c7