summaryrefslogtreecommitdiff
path: root/packages/DocumentsUI/src/com/android/documentsui/ThumbnailCache.java
AgeCommit message (Collapse)Author
2016-07-29Delete orig DocumentsUI.Steve McKay
Bug: 29224737 Change-Id: I6d6327918adba699d2ed3652bc2dbea27f872284
2016-07-25Evict thumbnail caches and delay dismissing spinner on refresh finish.Garfield, Tan
Bug: 28334455 Change-Id: I338f83744d7f8b2fe9a9265dcab7ed4ec81edbfb (cherry picked from commit dce173d1a011c07205b4b90da79d24d08e4cf90a)
2016-06-10Remove main looper assertions and attempts to run tests in main thread.Garfield, Tan
It looks like if we pass timeout_msec 300000 main thread is then blocked. If we ever post a runnable to it synchronously in test, we'll get a deadlock. Change-Id: I7bd4ce2aaa1ffad72b83a343ff3331179896bd78
2016-06-07Recycle after return to avoid returning an invalid value.Garfield, Tan
Also add some main thread assertions. Change-Id: Id6314d6e92d530ce57a01902b5570381fa20044d (cherry picked from commit 1a1b9148a2094b4365ff5e65372b1a1eb0282a0a)
2016-05-24Load up-to-date thumbnail if the cached one is out of date.Garfield, Tan
Bug: 28557412 Change-Id: Ib3ef9962249305be22b7a1e49e26350f3596e430 (cherry picked from commit aacb9219a791d2e4415cbbcacc12caed424dff83)
2016-05-17Use thumbnail of other sizes if it's missing in current size.Garfield, Tan
Bug: 26881628 Change-Id: Id7aa6f5c8c1a415f7dd97143a088ba89fae43eea (cherry picked from commit 614eef86e8ce6dd462e2f91ef5c705dc62bb7c7f)
2013-08-18Management actions, invalidate caches.Jeff Sharkey
In manage mode, touching launches a VIEW intent for the file. Also adds actions for sharing and deleting. Move roots and thumbnail caches into Application object, and flush cache when thumbnail size changes. Listen for package changes and broadcasts that should invalidate our roots cache. Pick default grid/list mode based on provider hint. Bug: 10329983, 10330210, 10378834, 10330069 Change-Id: I75afb1c58ab71bb9d55852b1059da7257a376248
2013-08-17Resized thumbnails; async; extend MatrixCursor.Jeff Sharkey
When requesting thumbnails, check if their dimensions are larger than requested, and downscale to avoid memory pressure. Load them async and with LruCache. Extend MatrixCursor so that RowBuilder can offer() columns without requiring they know the projection map. This makes it easier to respond to query() calls, where the remote side controls the projection map. Use it to handle custom projections in external storage backend. Update date/time formatting to match spec. Bug: 10333418, 10331689 Change-Id: I7e947a8e8068af8a39b55e6766b3241de4f3fc16