summaryrefslogtreecommitdiff
path: root/packages/DocumentsUI/src/com/android/documentsui/DocumentsApplication.java
AgeCommit message (Collapse)Author
2016-07-29Delete orig DocumentsUI.Steve McKay
Bug: 29224737 Change-Id: I6d6327918adba699d2ed3652bc2dbea27f872284
2016-07-12Pull clipping related classes to a separate package.Garfield, Tan
Change-Id: I125d1c34e475f9465e82014cb869f88c9c7cebc4
2016-07-12[multi-part] Eliminate 1k selection limitGarfield, Tan
* Implement ring buffer to cope the challenge of deleting file clips * Fix a bug to allow concurrent read on the same clip file Change-Id: I53450d94ee881966d5631f0dc6edcb0fdd8ff9d5
2016-06-24[multi-part] Eliminate 1k selection limitGarfield, Tan
* Remove clearing clip files at app launch. * Remove clip files when they won't be used. * Stop adding clip items to jumbo clip data. * Repurpose ClipDetails to hold operation type, srcParent and file list. * Use ClipDetails for copyTo/moveTo/delete menu actions. * Make FileOperationService consume ClipDetails. * Add set up state to jobs; show set up notification in set up phase. * Make copy job cancelable at set up phase. Bug: 28194201 Change-Id: I2018ff9bc51515c1f6a029f0ede3f4c7d2beee43 (cherry picked from commit 664881e4b1fdc3416648f000287f52168978364f)
2016-06-17[multi-part] Eliminate 1k selection limitSteve McKay
* Save selection to disk, delete old selections on app startup. * Do clipper work in background for copy/cut. * Pull DragShadowBuilder out of DirFragment. * Reorganize selection handling to avoid creation of large lists of objects. * Eliminate getAll from selection, make it iterable, remove unused method. * Avoid creating DocumentInfo instances for full selection when initiating drag and drop. Next step will be to pass selection tokens to FileOperationService. Change-Id: Ia3e30a88ebf328e5b045d06b0df15dbd26a01a42 (cherry picked from commit 69b63de63ddae8d1a3ad8fa49a0beb1ff6f921e1)
2016-05-25Separate paste code from DirectoryFragment.Garfield, Tan
Also untie DocumentClipper from activities. We'll have a single DocumentClipper across the app from now on. Bug: 28742120 Change-Id: Ib9e2537c3499ba2fa0a203ddad3ae71246d5b009 (cherry picked from commit 0cd92d35c533c16b301bd228cce8c68a289407a1)
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)
2016-04-04Invalidate caches when locale changes.Jeff Sharkey
When loading roots for the first time, we're okay using any cached data from the system, but if the locale changes we need to force-refresh everything. Now that we're always using the system cache, we have a nice strong signal for "empty" versus "not cached" results, so we don't need to wait around for the first loading pass to finish. Add logic to invalidate system cache when locale changes, and fix locking bug. Bug: 27977906 Change-Id: Ic50083eff360bea887799583f6c9f02c129eec91
2016-02-03Lint fixes and config tweaks.Ben Kwa
- Add recommended ignore properties to lint.xml. - Make Fragment subclasses public. - Truncate log tags at 23 chars. - Fix one instance of passing a color ID instead of a color. - Misc xml property fixes. Change-Id: Ie8d6a8932cda72b7a239f6dfab56bd854f909820
2013-10-23Update roots when data cleared, refresh UI.Jeff Sharkey
Data cleared usually means accounts went away, so kick off roots refresh. Also update any visible UI after a refresh finishes. Bug: 10899793 Change-Id: Id68c80b5e635e358cfd75f4961ce13cd1c7c5f82
2013-10-01Detect wedged ContentProviders, treat as ANR.Jeff Sharkey
All ContentProvider calls are currently blocking, making it hard for an app to recover when a remote provider is wedged. This change adds hidden support to ContentProviderClient to timeout remote calls, treating them as ANRs. This behavior is disabled by default. Update DocumentsUI to use a 20 second timeout whenever interacting with a storage provider. Bug: 10993301, 10819461, 10852518 Change-Id: I10fa3c425c6a7225fff9cb7a0a07659028230cd3
2013-09-19Load RootInfo in background, invalidation.Jeff Sharkey
Move all RootInfo queries to background threads to avoid janking the UI. Update passes happen on spawed task, which swaps out updated cache results when finished. Support partial updates when only a single package/authority has changed. Watch for change notifications for roots, since flags can change over time. Ignore stopped packages when in background, but query them for roots when launching any picker UI. Optimize management launches by treating as one-shot requests that don't need to wait for all RootInfo. Bug: 10600454, 10745490 Change-Id: Ibc7b15688ef6b41bd7e9dd0d7564b501e60e49a9
2013-09-10More UX work for thumbnails, search, management.Jeff Sharkey
Hide non-finished downloads from normal picker UI, but keep them around in management mode. Uses a Uri query parameter and a hidden API on DocumentsProvider. Scale thumbnails to fit viewport, always show MIME icon while waiting on thumbnails, and crossfade between them. Cancel thumbnail tasks when views are recycled. Filter directories out of search results for now. Also leave sort ordering from backend intact, since it's custom ranking. Fix SearchView interaction to dismiss properly and restore across orientation and drawer state changes. Hide most actions when drawer is open. Invalidate RootInfo cache when locale changes. Apply sort ordering when showing recent create directories. Hide recent summary string when icon is enough for user to disambiguate. Bug: 10667184, 10665663 Change-Id: I331d3272a08c497f88dc659d9e112231cb35aa69
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