OSDN Git Service

android-x86/packages-apps-Camera2.git
12 years agoBetter data change handling for PhotoDataAdapter and PhotoView.
Chih-Chung Chang [Fri, 11 May 2012 09:20:53 +0000 (17:20 +0800)]
Better data change handling for PhotoDataAdapter and PhotoView.

Change-Id: I0f67d918b95000d10786d2035286e036346bfa4e

12 years agoAdd freeze/unfreeze for GLRootView.
Chih-Chung Chang [Thu, 10 May 2012 03:03:35 +0000 (11:03 +0800)]
Add freeze/unfreeze for GLRootView.

Change-Id: Ieb78041fea22b064d176ea1318cf5883d5d4c94f

12 years agoHandle ScreenNail size change.
Chih-Chung Chang [Wed, 9 May 2012 13:17:10 +0000 (21:17 +0800)]
Handle ScreenNail size change.

Bug: 6355399
Change-Id: Ice7560c12aa06cf8ac58cc3883f0888b5c6e71a5

12 years agoCrop-image doesn't show its title in the action-bar.
Yuli Huang [Wed, 9 May 2012 03:01:11 +0000 (11:01 +0800)]
Crop-image doesn't show its title in the action-bar.

bug:6464608
Change-Id: I7b463beaa96f5f475812ec4f0c3de1118a6d0895

12 years agoBetter orientation change handling.
Chih-Chung Chang [Tue, 8 May 2012 09:57:33 +0000 (17:57 +0800)]
Better orientation change handling.

Bug 6451117: Preview location is wrong after rotating the device quickly
Bug 6444303: The preview location is wrong when camera is started upside down on tablet
Bug 6451710: Tap to focus broken in landscape

Change-Id: I12fd57d6618ec5521ccc6efcbf65de57ff2ea3d2

12 years agoKeep the last page if finish() is rejected.
Owen Lin [Fri, 4 May 2012 03:46:29 +0000 (11:46 +0800)]
Keep the last page if finish() is rejected.

bug: 6414642
Change-Id: I480edc43608c08088177113cb3607d517c91e9f6

12 years agoFix back-button's behavior in Crop.
Yuli Huang [Mon, 7 May 2012 15:35:42 +0000 (23:35 +0800)]
Fix back-button's behavior in Crop.

bug:6452504
Change-Id: Ic11dd58c613764e3e6cf7a35135678777e49a4ef

12 years agoMerge "Set default buffer size for SurfaceTexture." into jb-dev
Chih-Chung Chang [Mon, 7 May 2012 14:47:27 +0000 (07:47 -0700)]
Merge "Set default buffer size for SurfaceTexture." into jb-dev

12 years agoRemove PhotoPage spinner shown in the action-bar.
Yuli Huang [Mon, 7 May 2012 07:05:41 +0000 (15:05 +0800)]
Remove PhotoPage spinner shown in the action-bar.

Remove spinners shown for loading data out of view.
bug:5406790

Change-Id: Iffaf97937b86b869559a27f190941c1de263e422

12 years agoMerge "Add UNIQUE to EntrySchema." into jb-dev
Hung-ying Tyan [Mon, 7 May 2012 11:33:41 +0000 (04:33 -0700)]
Merge "Add UNIQUE to EntrySchema." into jb-dev

12 years agoSet default buffer size for SurfaceTexture.
Chih-Chung Chang [Mon, 7 May 2012 11:00:53 +0000 (19:00 +0800)]
Set default buffer size for SurfaceTexture.

This is needed for Panorama.

Change-Id: I452335cfec6357aef7b66ecac003a4b0ca0fd9fe

12 years agoAdd transition for card deck effect.
Chih-Chung Chang [Sun, 6 May 2012 18:29:37 +0000 (02:29 +0800)]
Add transition for card deck effect.

Bug 6442785: Controls disappear & preview surface gets warped after deleting just taken video
Bug 6399861: Filmstrip: Pinch-out animation in fullscreen photo > filmstrip should be metaphorically consistent with the stack of cards model
Bug 6429677: Gray shadow shows up when start

Change-Id: I408cf250e67b4def20f5f15621fe57d7845c90f9

12 years agoFix 6429662: Video snapshot doesn't work
Chih-Chung Chang [Sat, 5 May 2012 19:25:16 +0000 (03:25 +0800)]
Fix 6429662: Video snapshot doesn't work

Change-Id: I6414be7f00ee103b7047128fdc92e03ca87c7703

12 years agoPut play video icon at the same place of the screennails.
Chih-Chung Chang [Sat, 5 May 2012 17:24:22 +0000 (01:24 +0800)]
Put play video icon at the same place of the screennails.

Bug: 6412197
Change-Id: Idaae46c598035639907a85f726b763b80bd9572d

12 years agoTapping on the camera icon no matter what should open camera.
Chih-Chung Chang [Fri, 4 May 2012 13:54:01 +0000 (21:54 +0800)]
Tapping on the camera icon no matter what should open camera.

Bug: 6437677
Change-Id: I41ead463652c11986825744465f181ca75674c60

12 years agoMerge "Add support for Beaming multiple pictures." into jb-dev
Martijn Coenen [Sat, 5 May 2012 17:53:58 +0000 (10:53 -0700)]
Merge "Add support for Beaming multiple pictures." into jb-dev

12 years agoFix a TODO by replacing a string.
Yuli Huang [Sat, 5 May 2012 09:42:32 +0000 (17:42 +0800)]
Fix a TODO by replacing a string.

Change-Id: I17216e0ca83a185842bc69151fcf8c5136e2b873

12 years agoDon't show spinner to avoid janky transition.
Yuli Huang [Thu, 3 May 2012 15:36:51 +0000 (23:36 +0800)]
Don't show spinner to avoid janky transition.

bug:5406790
Change-Id: Ieea09f43d5230e1507c16001ec12b3ea6e3c3f0e

12 years agoAdd UNIQUE to EntrySchema.
Hung-ying Tyan [Fri, 4 May 2012 10:07:48 +0000 (18:07 +0800)]
Add UNIQUE to EntrySchema.

Change-Id: I0fbf69a60aafe8d7a82241467d077c48beadbf49

12 years agoFix 6399813: tapping on a photo that isn't in the middle of the screen doesn't select it.
Chih-Chung Chang [Thu, 3 May 2012 10:22:59 +0000 (18:22 +0800)]
Fix 6399813: tapping on a photo that isn't in the middle of the screen doesn't select it.

Also make tapping while flinging stop the scroll instead of opening the item.

Change-Id: Iefef4738d7d74b29e4594ea3ae2cb1c91e0e17ab

12 years agoMerge "Fix 6341866 ANR in com.google.android.gallery3d due to com.android.gallery3d...
Ray Chen [Fri, 4 May 2012 02:07:13 +0000 (19:07 -0700)]
Merge "Fix 6341866 ANR in com.google.android.gallery3d due to com.android.gallery3d.ui.TileImageViewAdapter.setScreenNail" into jb-dev

12 years agoMerge "Add camera icon for camera roll." into jb-dev
Chih-Chung Chang [Thu, 3 May 2012 10:32:06 +0000 (03:32 -0700)]
Merge "Add camera icon for camera roll." into jb-dev

12 years agoMerge "Fix NPE in onFullScreenChanged message handler. Bug: 6430929" into jb-dev
Chih-Chung Chang [Thu, 3 May 2012 10:31:42 +0000 (03:31 -0700)]
Merge "Fix NPE in onFullScreenChanged message handler. Bug: 6430929" into jb-dev

12 years agoAdd camera icon for camera roll.
Chih-Chung Chang [Thu, 3 May 2012 09:53:05 +0000 (17:53 +0800)]
Add camera icon for camera roll.

Bug: 6411709
Change-Id: I2476dba7edb2b763f3b7727f0034fa300cf0287a

12 years agoFix NPE in onFullScreenChanged message handler.
Chih-Chung Chang [Thu, 3 May 2012 03:41:05 +0000 (11:41 +0800)]
Fix NPE in onFullScreenChanged message handler.
Bug: 6430929

Also tweak the timing of showing action bar and the timing of unlock orientation.

Change-Id: I1af4703ccf99f5257e9724a20d0aa216d20e13c2

12 years agoSimplify Yes/No/Cancel dialog to Yes/Cancel dialog.
Yuli Huang [Thu, 3 May 2012 07:59:23 +0000 (15:59 +0800)]
Simplify Yes/No/Cancel dialog to Yes/Cancel dialog.

Simplify the dialog options to confirm if the user wants to discard
unsaved edited photo, similar to MMS asking if the user wants to discard
the unsent message.

bug:6436477
Change-Id: Ic5af09a1ed46033a25b4ac42bf05b9739f6e8447

12 years agoMerge "Fix NPE because of concurrent access in both GL and main threads." into jb-dev
Yuli Huang [Thu, 3 May 2012 05:58:51 +0000 (22:58 -0700)]
Merge "Fix NPE because of concurrent access in both GL and main threads." into jb-dev

12 years agoShow/hide action bar at the right time.
Chih-Chung Chang [Wed, 2 May 2012 12:05:16 +0000 (20:05 +0800)]
Show/hide action bar at the right time.

Bug: 6399476

Change-Id: I5046b2e73822ebadd94680f61d87db183b40b5c2

12 years agoFix NPE because of concurrent access in both GL and main threads.
Yuli Huang [Wed, 2 May 2012 11:03:54 +0000 (19:03 +0800)]
Fix NPE because of concurrent access in both GL and main threads.

bug:6411187
Change-Id: I811c83f49837ee921436fec0c6b1bf2de0156e0a

12 years agoTurn on unlockOrientation to make onConfigurationChanged in camera work.
Pin Ting [Thu, 3 May 2012 00:26:17 +0000 (08:26 +0800)]
Turn on unlockOrientation to make onConfigurationChanged in camera work.

Bug:6304805
Change-Id: Ia5a8df4153a7ddc7847a8a3744a3537120edb143

12 years agoFix the Camera controls disappearing after zooming problem.
Chih-Chung Chang [Tue, 1 May 2012 07:35:02 +0000 (15:35 +0800)]
Fix the Camera controls disappearing after zooming problem.

Bug: 6392682
Change-Id: I065c52b44c02f9314e58e82846cdf22e2d940eab

12 years agoFix 'Edit' and 'Crop' behaviors.
Yuli Huang [Tue, 1 May 2012 16:50:56 +0000 (00:50 +0800)]
Fix 'Edit' and 'Crop' behaviors.

1. Make Gallery show edited local photo after resuming, similar to how
it shows cropped local photo after resuming.
2. Fix inconsistency between cropping local/PWA photo.

bug:6168430
Change-Id: Ia350e0c67f05969ad42f56b9693c09c3b6433d3c

12 years agoMerge "Change thumbnail's position only when it is invisible." into jb-dev
Owen Lin [Wed, 2 May 2012 10:29:17 +0000 (03:29 -0700)]
Merge "Change thumbnail's position only when it is invisible." into jb-dev

12 years agoMerge "Fix a issue that we are trying upload a recycled tile." into jb-dev
Owen Lin [Wed, 2 May 2012 10:08:51 +0000 (03:08 -0700)]
Merge "Fix a issue that we are trying upload a recycled tile." into jb-dev

12 years agoMerge "Add support to draw on texture." into jb-dev
Owen Lin [Wed, 2 May 2012 10:08:31 +0000 (03:08 -0700)]
Merge "Add support to draw on texture." into jb-dev

12 years agoChange thumbnail's position only when it is invisible.
Owen Lin [Wed, 2 May 2012 09:22:52 +0000 (17:22 +0800)]
Change thumbnail's position only when it is invisible.

bug:6393694
Change-Id: I33f41c3c894b4c6d28e0832cfd4badbfca3a4f64

12 years agoAdd support to draw on texture.
Owen Lin [Tue, 24 Apr 2012 06:08:44 +0000 (14:08 +0800)]
Add support to draw on texture.

Change-Id: I95dd5d29352692b702503969e1ebe07bc91a8a73

12 years agoFix a issue that we are trying upload a recycled tile.
Owen Lin [Fri, 27 Apr 2012 10:17:35 +0000 (18:17 +0800)]
Fix a issue that we are trying upload a recycled tile.

bug:5779992
Change-Id: I2503c87e9cea4e8b0ad5250b1508d06f44125779

12 years agoFix 6341866 ANR in com.google.android.gallery3d due to com.android.gallery3d.ui.TileI...
Ray Chen [Wed, 2 May 2012 07:31:38 +0000 (15:31 +0800)]
Fix 6341866 ANR in com.google.android.gallery3d due to com.android.gallery3d.ui.TileImageViewAdapter.setScreenNail

RegionDecoder is run in a lower priority thread but it uses the same lock as setScreenNail while decoding, so a priority inversion causes this ANR.
The change tries to separate the lock so setScreenNail doesn't have to wait on the decoding process so the ANR could be avoided.

Change-Id: I02cc26fa0535adaa57cdcf94b819970e179311d1
b:6341866

12 years agoMerge "Fix photo rotates incorrectly in crop image." into jb-dev
Owen Lin [Wed, 2 May 2012 07:31:16 +0000 (00:31 -0700)]
Merge "Fix photo rotates incorrectly in crop image." into jb-dev

12 years agoMerge "Don't enter film mode automatically when moving from camera preview to picture...
Wei Huang [Mon, 30 Apr 2012 19:56:30 +0000 (12:56 -0700)]
Merge "Don't enter film mode automatically when moving from camera preview to picture." into jb-dev

12 years agoDon't enter film mode automatically when moving from camera preview to picture.
Chih-Chung Chang [Mon, 30 Apr 2012 18:58:59 +0000 (02:58 +0800)]
Don't enter film mode automatically when moving from camera preview to picture.

Also don't follow the scaling touch once we decide to change film mode, this makes the animation smoother.

Change-Id: I45f97bd8c3cc90666370afeb1c18d21dfcc87c06

12 years agoMerge "Fix black screen when viewing Gmail image file attachment. Bug: 6415848" into...
Chih-Chung Chang [Mon, 30 Apr 2012 18:27:28 +0000 (11:27 -0700)]
Merge "Fix black screen when viewing Gmail image file attachment. Bug: 6415848" into jb-dev

12 years agoFix black screen when viewing Gmail image file attachment.
Chih-Chung Chang [Mon, 30 Apr 2012 18:25:09 +0000 (02:25 +0800)]
Fix black screen when viewing Gmail image file attachment.
Bug: 6415848

Change-Id: Iec369866be6b5546fbd8cb77eb95a29f92e00b84

12 years agoFix crash when select all is pressed.
Wu-cheng Li [Mon, 30 Apr 2012 15:49:17 +0000 (23:49 +0800)]
Fix crash when select all is pressed.

bug:6411186
Change-Id: Iaa71a320bc4d6d70aade41d5144f75ba6db36e6d

12 years agoFix Back behavior in gallery grid and remove camera preview tile.
Chih-Chung Chang [Mon, 30 Apr 2012 09:33:21 +0000 (17:33 +0800)]
Fix Back behavior in gallery grid and remove camera preview tile.

Bug: 6411801
Bug: 6411709

Change-Id: Iebd7db06d44d315ac67eb8c5133b86044fce30c4

12 years agoDo not show action bar on camera.
Wu-cheng Li [Mon, 30 Apr 2012 10:36:22 +0000 (18:36 +0800)]
Do not show action bar on camera.

bug:6411406
Change-Id: I4fbb95c9913046b4d5b1cfa4ede10490d156ed3f

12 years agoSupport drawing in different orientation in Gallery.
Chih-Chung Chang [Thu, 26 Apr 2012 02:10:49 +0000 (10:10 +0800)]
Support drawing in different orientation in Gallery.

Bug 6312994: Swipe UX: do not directly show the camera roll when camera starts
Bug 6313191: Swipe UX: Change swipe direction after the user rotated the device
Bug 6313192: Swiping UX: make Gallery display in rotated mode
Bug 6399447: Filmstrip: in Gallery, pressing Back from filmstrip doesn't perform the right animation
Bug 6399974: Filmstrip: when swiping from full-screen photo to filmstrip mode, camera view and the photo-roll don't align correctly
Bug 6400014: Swiping UX: in Camera portrait mode, tapping on the Thumbnail doesn't align camera view and the photo-roll correctly
Bug 6401075: Able to scroll through the gallery pics while capturing video.
Bug 6405087: Filmstrip does not change with orientation

Change-Id: I8c479d87800c63b7a95c199c0c1c3bc512d66d42

12 years agoMerge "Remove unused code." into jb-dev
Pin Ting [Mon, 30 Apr 2012 08:14:22 +0000 (01:14 -0700)]
Merge "Remove unused code." into jb-dev

12 years agoRemove unused code.
Pin Ting [Mon, 30 Apr 2012 06:43:11 +0000 (14:43 +0800)]
Remove unused code.

Change-Id: Icd68f286a8b97594495f56d6b4bfa2e785462f5d

12 years agoAdd support for Beaming multiple pictures.
Martijn Coenen [Fri, 27 Apr 2012 18:54:58 +0000 (11:54 -0700)]
Add support for Beaming multiple pictures.

Change-Id: I12bb82bb605813168a7870807390ce2cb37a9a15

12 years agoMake 'Edit' behave more consistent with 'Crop'. DO NOT MERGE.
Yuli Huang [Wed, 25 Apr 2012 15:51:52 +0000 (23:51 +0800)]
Make 'Edit' behave more consistent with 'Crop'. DO NOT MERGE.

1. Save edited PWA photo in 'dowload', same as cropped images.
2. Fix Crop-image toast may show strings without i18n.
bug:6168430

Change-Id: Ic99a478e684597d3dc1a105c4f592dd98d8f227d

12 years agoFix photo rotates incorrectly in crop image.
Owen Lin [Fri, 27 Apr 2012 08:11:58 +0000 (16:11 +0800)]
Fix photo rotates incorrectly in crop image.

bug:6399424
Change-Id: Icc0aca5e9abcd643f8e246211e37bd177bf8ff31

12 years agoDo not use card effect for camera screen nail.
Wu-cheng Li [Thu, 26 Apr 2012 10:36:54 +0000 (18:36 +0800)]
Do not use card effect for camera screen nail.

bug:6402571
Change-Id: I362e675ea4160b7b940e0da4bd018e0e8c7add57

12 years agoMake sure action bar is hidden when camera starts.
Wu-cheng Li [Thu, 26 Apr 2012 08:21:56 +0000 (16:21 +0800)]
Make sure action bar is hidden when camera starts.

bug:6402552

Change-Id: I2ec39e607a505490e431181eb40e259102b9a773

12 years agoHide action bar when camera screen nail is displayed.
Wu-cheng Li [Tue, 24 Apr 2012 10:58:58 +0000 (18:58 +0800)]
Hide action bar when camera screen nail is displayed.

bug:6363385
Change-Id: Ic37afa779339cfe5f66f0a40cbf4870ff1a6a0ee

12 years agoMerge "Remove scissor tests."
Chih-Chung Chang [Wed, 25 Apr 2012 09:03:00 +0000 (02:03 -0700)]
Merge "Remove scissor tests."

12 years agoFix 6376466 After deleting photo, the next one will be shown too dark
Ray Chen [Wed, 25 Apr 2012 06:58:50 +0000 (14:58 +0800)]
Fix 6376466 After deleting photo, the next one will be shown too dark
b:6376466

Change-Id: I7328215c45995d6ae1813ed861da3ad826809461

12 years agoRemove scissor tests.
Chih-Chung Chang [Wed, 25 Apr 2012 07:57:14 +0000 (15:57 +0800)]
Remove scissor tests.

Change-Id: I9f2c462a251e518ce5954dde0eb6e509734254c4

12 years agoFix NPE in Gallery.
Owen Lin [Fri, 20 Apr 2012 10:42:22 +0000 (18:42 +0800)]
Fix NPE in Gallery.

This happens if user set type in an intent. But we get a different type from
content resolver.

Change-Id: Iabafce7f7aaff23a7a9ee09e1d38ab50049abc88
fix: 6358473

12 years agoMerge "Don't do capture animation if we don't have Camera ScreenNail."
Chih-Chung Chang [Wed, 25 Apr 2012 04:05:43 +0000 (21:05 -0700)]
Merge "Don't do capture animation if we don't have Camera ScreenNail."

12 years agoDon't do capture animation if we don't have Camera ScreenNail.
Chih-Chung Chang [Wed, 25 Apr 2012 03:50:08 +0000 (11:50 +0800)]
Don't do capture animation if we don't have Camera ScreenNail.

Also make "Back" jump to first picture instead of the previous one.

Bug: 6388263

Change-Id: Idf78363cf3952bf66c6b0688e79d99c01956cd07

12 years agoam 082ea423: am 49826d43: Reconcile with ics-mr1-release
The Android Open Source Project [Tue, 24 Apr 2012 22:19:35 +0000 (15:19 -0700)]
am 082ea423: am 49826d43: Reconcile with ics-mr1-release

* commit '082ea4230f5892379cb0eebfd87d1594e51987ec':
  Patch 2 for MR1.
  Patch for MR1.

12 years agoAdd capture animation in Gallery.
Chih-Chung Chang [Fri, 20 Apr 2012 12:06:19 +0000 (20:06 +0800)]
Add capture animation in Gallery.

Change-Id: Ibf95cc64f37a4518377e64124af6606c4f14cdaa

12 years agoMerge "Add a method to disable toggle status bar."
Wu-cheng Li [Tue, 24 Apr 2012 10:42:48 +0000 (03:42 -0700)]
Merge "Add a method to disable toggle status bar."

12 years agoAdd a method to disable toggle status bar.
Wu-cheng Li [Tue, 24 Apr 2012 10:33:10 +0000 (18:33 +0800)]
Add a method to disable toggle status bar.

Camera does not show status bar in both landscape and
portrait.

bug:6378178

Change-Id: I80cead9c0e2ef0256288aafead6bd1a96cc93d7b

12 years agoMerge "Add prominent highlights for touch feedback."
Yuli Huang [Tue, 24 Apr 2012 09:50:48 +0000 (02:50 -0700)]
Merge "Add prominent highlights for touch feedback."

12 years agoMerge "Add Raw2DTexture."
Angus Kong [Tue, 24 Apr 2012 08:49:21 +0000 (01:49 -0700)]
Merge "Add Raw2DTexture."

12 years agoAdd Raw2DTexture.
Angus Kong [Wed, 11 Apr 2012 10:49:15 +0000 (18:49 +0800)]
Add Raw2DTexture.

Raw2DTexture is a wrapper of GL 2D texture. It also support copy other
texture's content into this texture.

bug:5988937

Change-Id: Ib4f6ff7ed2f6ea499517536366b511b7984a9b98

12 years agoAdd prominent highlights for touch feedback.
Yuli Huang [Tue, 24 Apr 2012 07:20:28 +0000 (15:20 +0800)]
Add prominent highlights for touch feedback.

Mimic the system UI to fade out highlights on touch releases.
bug:6145331
bug:5379176

Change-Id: I44c9245a926b2c5eb46b28d494c6393ba7f0c30c

12 years agoam 49826d43: Reconcile with ics-mr1-release
The Android Open Source Project [Mon, 23 Apr 2012 21:42:28 +0000 (14:42 -0700)]
am 49826d43: Reconcile with ics-mr1-release

* commit '49826d43d1911939ccb1ac1ee9755ba5057065f6':
  Patch 2 for MR1.
  Patch for MR1.

12 years agoReconcile with ics-mr1-release
The Android Open Source Project [Mon, 23 Apr 2012 21:40:27 +0000 (14:40 -0700)]
Reconcile with ics-mr1-release

Change-Id: If202c8b713a5d273115764c404cbe45a88c8d658

12 years agoFix 6046544 Deleting a photo takes multiple steps and the flow is inconsistent with...
Ray Chen [Thu, 5 Apr 2012 09:25:43 +0000 (17:25 +0800)]
Fix 6046544 Deleting a photo takes multiple steps and the flow is inconsistent with other deleting flows on other core apps

This CL adds a confirm dialog to delete command and removes all confirm/cancel menu items from the actionbar.

b:6046544
Change-Id: I3afe7b59b4f6d1216e192a621621f7bf544e1919

12 years agoMerge "Fix 6208468 21 ANR(s) in: com.google.android.gallery3d on crespo during monkey...
Ray Chen [Mon, 23 Apr 2012 02:06:03 +0000 (19:06 -0700)]
Merge "Fix 6208468 21 ANR(s) in: com.google.android.gallery3d on crespo during monkey runs for JRM80 b:6208468"

12 years agoMerge "Fix 6046987 The header on the contextual action bar when multiple photos are...
Ray Chen [Mon, 23 Apr 2012 02:05:55 +0000 (19:05 -0700)]
Merge "Fix 6046987 The header on the contextual action bar when multiple photos are selected is very janky b:6046987"

12 years agoMerge "Fix a UI bug in rendering a rotated image."
Owen Lin [Fri, 20 Apr 2012 03:47:43 +0000 (20:47 -0700)]
Merge "Fix a UI bug in rendering a rotated image."

12 years agoFix 6208468 21 ANR(s) in: com.google.android.gallery3d on crespo during monkey runs...
Ray Chen [Fri, 20 Apr 2012 02:58:20 +0000 (10:58 +0800)]
Fix 6208468 21 ANR(s) in: com.google.android.gallery3d on crespo during monkey runs for JRM80
b:6208468

Both getDataManager and getImageCacheService use the same lock but the latter method is blocked on
RandomAccessFile's open syscall. The lock should be separated because they're independent and
getDataManager is very frequently used too.

Change-Id: I4d44cfc949f45a31c7200c8327115bc4b7fde60f

12 years agoPatch 2 for MR1.
Chih-Chung Chang [Wed, 21 Mar 2012 11:01:30 +0000 (19:01 +0800)]
Patch 2 for MR1.

Change-Id: I39cc780e0ef49c4e0863a1a83e585e16f0a32425

12 years agoPatch for MR1.
Chih-Chung Chang [Tue, 20 Mar 2012 12:56:49 +0000 (20:56 +0800)]
Patch for MR1.

Change-Id: I3f4bba2854257008eed95b8eacce598abdca3180

12 years agoMerge "In filmstrip, show placeholders for pictures not loaded yet."
Chih-Chung Chang [Thu, 19 Apr 2012 13:25:24 +0000 (06:25 -0700)]
Merge "In filmstrip, show placeholders for pictures not loaded yet."

12 years agoIn filmstrip, show placeholders for pictures not loaded yet.
Chih-Chung Chang [Thu, 19 Apr 2012 12:14:11 +0000 (20:14 +0800)]
In filmstrip, show placeholders for pictures not loaded yet.

Change-Id: I037f1f054da4a3800045d5b89724341ac22272a5

12 years agoFix 6046987 The header on the contextual action bar when multiple photos are selected...
Ray Chen [Thu, 19 Apr 2012 09:14:40 +0000 (17:14 +0800)]
Fix 6046987 The header on the contextual action bar when multiple photos are selected is very janky
b:6046987

Change-Id: I86c79cf4d8995bfa0faab95ecd61e89879847630

12 years agoFix a UI bug in rendering a rotated image.
Owen Lin [Thu, 19 Apr 2012 07:09:12 +0000 (15:09 +0800)]
Fix a UI bug in rendering a rotated image.

Change-Id: I14f9f74c5d810dfbb56151722c7f604522fea938

12 years agoMerge "Allow filmstrip to scroll before the screennail is loaded."
Chih-Chung Chang [Thu, 19 Apr 2012 06:53:35 +0000 (23:53 -0700)]
Merge "Allow filmstrip to scroll before the screennail is loaded."

12 years agoAllow filmstrip to scroll before the screennail is loaded.
Chih-Chung Chang [Thu, 19 Apr 2012 05:34:48 +0000 (13:34 +0800)]
Allow filmstrip to scroll before the screennail is loaded.

Change-Id: I9aa7405902c4bfb7e4946cfe4e1263314a958686

12 years agoam 3abf8faf: am 42c1892a: Patch 2 for MR1.
Chih-Chung Chang [Wed, 18 Apr 2012 16:31:59 +0000 (09:31 -0700)]
am 3abf8faf: am 42c1892a: Patch 2 for MR1.

* commit '3abf8faf44da51a63243b7cc943cdb0055141ef4':

12 years agoam 402e680d: am 4745319b: Patch for MR1.
Chih-Chung Chang [Wed, 18 Apr 2012 16:31:58 +0000 (09:31 -0700)]
am 402e680d: am 4745319b: Patch for MR1.

* commit '402e680d220e73d80c5889e129fab459af9713c5':

12 years agoFilm strip should be accessible only when an image is its default state.
Chih-Chung Chang [Wed, 18 Apr 2012 12:08:57 +0000 (20:08 +0800)]
Film strip should be accessible only when an image is its default state.

Change-Id: I4df0db809f6a3f8d28b4e7bbbcddc3fa19d35387

12 years agoAdd thumb pool the cache Bitmap used for thumbnails.
Chih-Chung Chang [Tue, 17 Apr 2012 12:35:14 +0000 (20:35 +0800)]
Add thumb pool the cache Bitmap used for thumbnails.

Change-Id: Ib710f2a6fc1aa86fe4abdd18d1fa7ac71396a3b4

12 years agoMerge "Add page tap listener."
Wu-cheng Li [Wed, 18 Apr 2012 12:09:05 +0000 (05:09 -0700)]
Merge "Add page tap listener."

12 years agoAdd page tap listener.
Wu-cheng Li [Wed, 18 Apr 2012 09:10:02 +0000 (17:10 +0800)]
Add page tap listener.

Camera needs this for touch focus and video snapshot.

bug:6313318

Change-Id: Ie0b8129160c2a79d4b20fab2173027cddfee7a79

12 years agoMerge "Slower scrolling for fling in filmstrip mode."
Owen Lin [Wed, 18 Apr 2012 10:22:10 +0000 (03:22 -0700)]
Merge "Slower scrolling for fling in filmstrip mode."

12 years agoFix NPE in onContentDirty.
Owen Lin [Tue, 17 Apr 2012 08:21:12 +0000 (16:21 +0800)]
Fix NPE in onContentDirty.

onContentDirty is suppose to be called in Main thread.

Change-Id: Ic6a0fba8abd8a3e17d400bcfc5b82d272b07bc41

12 years agoFix NPE in SlotView.
Owen Lin [Tue, 17 Apr 2012 07:38:36 +0000 (15:38 +0800)]
Fix NPE in SlotView.

This NPE is actually a concurrent issue. We shall lock renderring when we clean up
the slots' data. But it didn't, so it may access to null data.

Change-Id: I2a8abfbb77f83bd9a240477fa53216ce69b7774d
fix: 6302487
fix: 6308873

12 years agoFix b/6318340: window range isn't updated when data size changes.
Yuli Huang [Tue, 17 Apr 2012 11:05:52 +0000 (19:05 +0800)]
Fix b/6318340: window range isn't updated when data size changes.

bug:6318340
Change-Id: I2098ddc75fe1a4422a20ab90f02a12c9be85c31e

12 years agoFix b/6213053 Add Help entry point to Gallery (targeted for J release)
Ray Chen [Mon, 16 Apr 2012 08:18:47 +0000 (16:18 +0800)]
Fix b/6213053 Add Help entry point to Gallery (targeted for J release)

b:6213053

Change-Id: Ib9d9c5e69f09d6c2fffb4e6ecb09b2c3ae700365

12 years agoMerge "Fix a concurrent issue in reload()."
Owen Lin [Tue, 17 Apr 2012 07:45:45 +0000 (00:45 -0700)]
Merge "Fix a concurrent issue in reload()."

12 years agoSlower scrolling for fling in filmstrip mode.
Chih-Chung Chang [Tue, 17 Apr 2012 04:56:08 +0000 (12:56 +0800)]
Slower scrolling for fling in filmstrip mode.

Also don't animate scale for the first image size.

Change-Id: I6a71c00e813bd203e9f454bc9a776eadec06fd78

12 years agoFix a concurrent issue in reload().
Owen Lin [Tue, 17 Apr 2012 04:12:03 +0000 (12:12 +0800)]
Fix a concurrent issue in reload().

We need to hold the DataManager.LOCK when calling reload.

Change-Id: If908c233bcd835effffc7750a7ef07f56a63136c
fix: 6315479

12 years agoam 3f3316a5: am 81bdb903: am 42c1892a: Patch 2 for MR1.
Chih-Chung Chang [Tue, 17 Apr 2012 03:19:54 +0000 (20:19 -0700)]
am 3f3316a5: am 81bdb903: am 42c1892a: Patch 2 for MR1.

* commit '3f3316a5e86dd24af60023a877d027fef28e9b4f':