History log of /packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
705dc819661cb8c8e839a04577b0641bd6caad53 21-Mar-2013 John Reck <jreck@google.com> Revert "New loading model"

Change-Id: I5d3d4c7a4ca0d11de01278529e1413fc62e6b4ed
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
f52ceba89962829aa12f5caba131580e8da85880 20-Feb-2013 Bobby Georgescu <georgescu@google.com> Replace various BitmapPools with a smarter unified pool

Make all of gallery use a single shared pool, and pave the
way for making the pool more adaptive based on the current
workload.

Change-Id: Ia32561ad50b1b9716ebe2fd32a7bf02737685dac
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
f4f43e7dbc85ab8b7437e8f1d6ab0317470e70b6 16-Jan-2013 John Reck <jreck@google.com> New loading model

Rename reload() to loadIfDirty()
loadIfDirty is implemented by MediaSet and is final
loadIfDirty is now blocking instead of async
Subclasses must implement two protected methods, isDirtyLocked() and load()

The change from async reload() to sync loadIfDirty() should be fine since
all users of reload() were doing so from a background thread already, and the
longest load() is PicasaAlbumSet which is still a fairly brisk 40ms or so

Change-Id: If5cc596a1c13e52e5f4efff1a144bd086d37cfb7
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
d9b8887252a17464b4357e3699192d11c608233a 12-Dec-2012 Your Name <jreck@google.com> Merge "Remove LongSpareArray + some cleanups" into gb-ub-photos-bryce
a4eae1abb4f2547dfbda84301ee764ce35464881 11-Dec-2012 John Reck <jreck@google.com> GL packaging refactor

Change-Id: I1d7a95c4f0b91a5ba59030d57cf6865c11b497aa
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
6dc3866ac10cc6bf38e73f098fe1988d1a6eecd4 04-Dec-2012 Your Name <jreck@google.com> Remove LongSpareArray + some cleanups

Change-Id: If5bb44ebca70bd735e426aeb3d9aac2d4bac646e
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
05da3f520eacb9219964b6ed57ef37846d889fd7 30-Oct-2012 Hung-ying Tyan <tyanh@google.com> Show sync error toast only when both loading and syncing are done.

Bug: 7427597
Change-Id: Ie1fe8510e2a2225424b3c2892b2c0a8b4021324c
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
41b3cff60905a96ab5b6f8e5f42bcc3bab1eb605 20-Oct-2012 Bobby Georgescu <georgescu@google.com> Fix delete and undo behavior on filmstrip

Bug: 7353749
Change-Id: Ib0abd3f71783c01b1df418dd76e674bf05e65ce7
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
030f8dad6aefc42d0af39bc1b93f370937d3e2ab 11-Oct-2012 Owen Lin <owenlin@google.com> Fixes bugs in TiledTexture.

1. Upload tiles in SinglePhotoDataAdapter
2. Rebuild the upload queue after the screen nails being recycled

bug: 6399444

Change-Id: I57e756f8d1d84742bf82dd34c83baf8df89ae4cc
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
a8f3473271cb4bfc5b47f520402bad7cddb5d3e8 11-Oct-2012 Owen Lin <owenlin@google.com> Revert "Revert "Upload screennails in tiles to prevent jank""

This reverts commit ad7cf187bf0c11b05aa3eab7085148e0353f2af5.

bug: 6399444
Change-Id: I94b286ab3e0db21c582cbfa9183489613da30edb
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
ad7cf187bf0c11b05aa3eab7085148e0353f2af5 06-Oct-2012 Bart Sears <bsears@google.com> Revert "Upload screennails in tiles to prevent jank"

This CL is reported to cause images to not be displayed correctly when opened via the view intent.

Bug: 7299123

This reverts commit e29fc4a51b99f12f7fae13fae272858df2e1af36

Change-Id: I5052548a826c275cb4559eeb4721c19f06861b3d
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
e29fc4a51b99f12f7fae13fae272858df2e1af36 24-Sep-2012 Owen Lin <owenlin@google.com> Upload screennails in tiles to prevent jank

bug: 6399444

Change-Id: Id2338db34d7f87fbabd7861f78b42f2a81d9794b
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
c1c67ea813421a6173d1dab2ad75c11b51c7976d 30-Sep-2012 Mangesh Ghiware <mghiware@google.com> Remove video play icon and tap to play behavior for panorama.

Bug: 7258968

Per new UX design, there'll be a panorama viewer icon in the bottom
right instead (see b/7233446)

This is essentially a revert of Change-Id
I17fdb5d6bcab1f3997a1ab92fcf45e0309b394b3

Change-Id: Ib35c99cca4ee9b2422dd16f5ea3b931ad5f08f35
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
f8a39c644637a15b9291eb9299762b8cf91cd76a 18-Sep-2012 George Mount <mount@google.com> Add UriImage support for viewing LightCycle panoramas.

Change-Id: I7f61cef39370fd23b9481708dc3c902c17873074
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
676d4762496eddae66930c6f8b0bae22a22b3ef6 04-Sep-2012 Owen Lin <owenlin@google.com> Ensure peekObject is called in the syncrhonization block.

bug: 7019598
Change-Id: If153287078826afc9827ea64364b4fb64f2b3a5f
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
a535522fa7661771351e42465c67ed70825ed2e4 07-Sep-2012 George Mount <mount@google.com> Show play icon for panorama.

Bug 7124494

Change-Id: I17fdb5d6bcab1f3997a1ab92fcf45e0309b394b3
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
b21b8e58a604f6c701245d84b141b5b87663192b 23-Aug-2012 Owen Lin <owenlin@google.com> Uses ActionBarSherlock in Gallery

bug: 6927267

Change-Id: I1c22975d1a1f3a36510ad93e6a0cefea110ca38f
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
dbb6acc204ba6f095eb0e49e1298e9ceda2c3096 19-Aug-2012 Wu-cheng Li <wuchengli@google.com> Rotate the camera screen nail correctly in gingerbread.

In gingerbread, camera screen nail is a static image.
Handle its rotation like a bitmap screen nail.

bug:6927809

Change-Id: I554483e58fc9e32399acb20f426d7ec35631b7ac
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
3000f70d462f27ddf992a50b57db2ef9c8dcac15 28-Jul-2012 Mangesh Ghiware <mghiware@google.com> Show the correct image on a ACTION_VIEW

Bug: 6819100
Change-Id: I7c381c506fa627c3f285fb6857b77cdb770addb7
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
0086dbabb383a9ba5e06a8b49e3e180bfa36a64b 01-Aug-2012 Chih-Chung Chang <chihchung@google.com> Handle null item in findIndexOfPathInCache.

Bug: 6708911
Change-Id: Ifd1e8342906a3c61d30448ea6b0085c37ccdeb03
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
d61248536b0dc28ca9e5f84b20e63a4c96ac3ff3 30-Jul-2012 Bobby Georgescu <georgescu@google.com> Fix bugs 6882711 and 6836814

Bug: 6882711
Bug: 6836814

A number of issues surrounding the behavior after deleting
the last photo from the camera roll within the Camera app,
including occasional black screen & incorrectly persistent
action bar.

Change-Id: Ib5f41a78c613da90bb844aab2d40f45e314d3ee3
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
7817979db0c52ffeacb951625b1e821eba303285 30-Jul-2012 Ahbong Chang <cwahbong@google.com> Code clean up.

Remove unused imports.
Remove unused fields.
Remove unnecessary cast.
Add missing override annotations.

Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
6b891c6a3739f8c49d42f9db6fc76cb92c7c5f25 07-Jun-2012 Chih-Chung Chang <chihchung@google.com> Add swipe-to-delete gesture.

Change-Id: I992e59702f9dfff17da2f4464e48c9228d42b1b3
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
c2c0b01fbbf243eee1a11c33ba6dd1ce918a9ce5 18-May-2012 Owen Lin <owenlin@google.com> Reuse bitmap to prevent GC in TiledImageView.

bug:5948093
Change-Id: Iad89c5809bde0de5409752330f607aab153dceba
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
49affdc4e274098a34e4eb2dbe4a89a750f1ba7f 22-May-2012 Owen Lin <owenlin@google.com> Limit the size of a ScreenNail.

bug:6528366
This bug was happened because we are trying to make a texture beyond the
max size allowed in GL.

Here is what we do in this CL:
1. Limit the size of a screen nail
2. Print warning message, if we try to allocate a texture beyond the size
3. Don't show fall-back animation if the image is not loaded yet.

Change-Id: I004b1138efd0eef7ba11aa89556f67743ca46745
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
d2f509734c5c75298c3fed0edf71d55cd71ad9ae 21-May-2012 Chih-Chung Chang <chihchung@google.com> Don't fire data change notification before the data is made consistent.

Bug: 6500467
Change-Id: Ia064461daba92bbf1172eae5d321bf5049de6d48
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
f5ce6aeba448f418c99736465f7a02dacd7715bb 11-May-2012 Chih-Chung Chang <chihchung@google.com> Show gray tile for screennails not loaded yet.

Bug: 6452217
Change-Id: Ied9c2e2c91f4ffe218a73ba1a123df92a2aab98a
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
43a80fd806247cb50e81bacda3ad21d210e9ae88 17-May-2012 Angus Kong <shkong@google.com> Support Panorama preview.

The panorama preview doesn't consider display rotation.

bug:6305152
Change-Id: I6389a74d3c0e64d8b6bc206e728d1088f04be225
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
616a70fdb4473d2fbd7b70772a3a82b908aeae1e 07-May-2012 Owen Lin <owenlin@google.com> Add transition animation for tapping from PhotoPage.

bug:6383694
Change-Id: Ib457d6b636dafd3f8ef7340bfa85725f14d90bd0
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
9723770a40d230092204dd685f19ff4bce6dabd5 17-May-2012 Angus Kong <shkong@google.com> Revert "Support Panorama preview."

This reverts commit 41832d9f1568c7d8227fb9ffebaf7830345cffff
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
41832d9f1568c7d8227fb9ffebaf7830345cffff 17-May-2012 Angus Kong <shkong@google.com> Support Panorama preview.

The panorama preview doesn't consider display rotation.

bug:6305152
Change-Id: I6b87c18ed8eadf1b2bf5e64437c5b290d111cbba
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
214993dc4abf87c386123af50e3c34184ba11cb6 11-May-2012 Chih-Chung Chang <chihchung@google.com> Better data change handling for PhotoDataAdapter and PhotoView.

Change-Id: I0f67d918b95000d10786d2035286e036346bfa4e
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
d9355113da391f8bbddef1d2a2126ce6edc72291 05-May-2012 Chih-Chung Chang <chihchung@google.com> Put play video icon at the same place of the screennails.

Bug: 6412197
Change-Id: Idaae46c598035639907a85f726b763b80bd9572d
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
f50ce2b708c0c70930a346206fdd526f53ae6004 01-May-2012 Yuli Huang <yuli@google.com> 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
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
bd141b5a51c96f6fcaddfa547f0928ce69cf0755 26-Apr-2012 Chih-Chung Chang <chihchung@google.com> 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
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
160e6d776daab93610b3d12413ad9ff2dd867d8b 25-Apr-2012 Chih-Chung Chang <chihchung@google.com> 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
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
c3b2d478f9032a8decf5c6254a238fc49e41b72c 19-Apr-2012 Chih-Chung Chang <chihchung@google.com> In filmstrip, show placeholders for pictures not loaded yet.

Change-Id: I037f1f054da4a3800045d5b89724341ac22272a5
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
fb1a15559bb2a0a1c8a41efd3e0420a2a2d70590 19-Apr-2012 Chih-Chung Chang <chihchung@google.com> Allow filmstrip to scroll before the screennail is loaded.

Change-Id: I9aa7405902c4bfb7e4946cfe4e1263314a958686
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
b8be1e0ad76b6abc0da7ead39f7a9811195d001e 17-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add thumb pool the cache Bitmap used for thumbnails.

Change-Id: Ib710f2a6fc1aa86fe4abdd18d1fa7ac71396a3b4
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
b7ec5534c7b539be2397c27cfa5e8b992974c12d 02-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add new filmstrip mode for PhotoView.

Change-Id: I9da9896303ced8d63a3557d5e6e9bc06fb366cf5
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
921895ba0b3511aeba053bdc0c965f9d3f62eb51 02-Apr-2012 Chih-Chung Chang <chihchung@google.com> Remove FilmStripView.

Change-Id: I45cee8c32863cc65eba4c5e83e667e104cf24e42
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
b29a27f475a2c449abdda8d4e03d30914feed8c6 22-Mar-2012 Chih-Chung Chang <chihchung@google.com> Use SurfaceTexture to show Camera preview.

Change-Id: I8bf63dfc5b969ecce51841378b093a650b6f91d8
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
cb4fb7c19f20405fb5e08513e6297dffce824118 21-Mar-2012 Chih-Chung Chang <chihchung@google.com> New effect in photo browsing.

Change-Id: I12ca70f56f5c874292a7a6f38f0518bbc855ed70
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
15b351a22d02e89d882fc9fe32b3f4c512080e0a 15-Mar-2012 Chih-Chung Chang <chihchung@google.com> Create a ScreenNail interface so we can add other types of screenails.
Add a new MediaItem type to contain a ScreenNail.

Change-Id: Ia303949f3013dd48ded204eaf9ec69a102b8503e
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
2b3ee0ea07246b859a5b75d8a6102a7cce7ec838 14-Mar-2012 Owen Lin <owenlin@google.com> Reorganize import for all files.

Change-Id: Ia9188bcde727e317e6a476caccaea562f0758b19
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
a7b78e224b1808895ea2c3d42ae385526dea12aa 07-Feb-2012 Yuli Huang <yuli@google.com> Fix b/5840847: Always show 'Loading...' for corrupt pictures.

Change-Id: I040f6e4090dad3e73b86062ddefd9bb0be581bf5
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
22493b29c32142f2588c623f5c78e9167352dddc 11-Sep-2011 Owen Lin <owenlin@google.com> Fix picasa images rotate incorrectly.

fix: 5268469

Change-Id: I58fc4a6d4a10c2952040eedee5936efa949b66e2
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
e7327d0566b182c522ca6dfa8e04c649d8f631a0 06-Sep-2011 Owen Lin <owenlin@google.com> Fix a no-thumbnail error message.

This happens if we cancel the first image reqest and then resend another
in a very short time. We may got an null image for the first request and
think this is a invalid bitmap.

Change-Id: I9ab62a658c281ef3d197474a5db50579e560f1bd
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
113bfc77c4468411da9ae1290553c3be89f8df9a 30-Aug-2011 Owen Lin <owenlin@google.com> Improve the performance of Reviewing a photo.

fix: 5144370

There is two componenet in the photo page. One is the large photo and the
other is the thumbnail strip. They idenpendently load their own data and images.

This change fixes several issues here:

1. Prevent sending to many jobs to ThreadPool and block others.
In a worse case, if the thumbnail strip send image requests first,
it may block the ThreadPool very long.
2. Improve the performance of extracting thumbnails from local files.
Now we try to extract the thumbnails from EXIF data first.

Change-Id: I45100d4daa025efb479f47c4f105de2b4731b498
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java
f9a0a4306d589b4a4e20554fed512a603426bfa1 17-Aug-2011 Owen Lin <owenlin@google.com> Initial code for Gallery2.

fix: 5176434

Change-Id: I041e282b9c7b34ceb1db8b033be2b853bb3a992c
/packages/apps/Gallery2/src/com/android/gallery3d/app/PhotoDataAdapter.java