History log of /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c15528afa68a6992a5beeafaa94a97c0d9b876fb 09-Apr-2016 Steve McKay <smckay@google.com> Don't enable new folder in downloads...

During copy operation.
Also, relay intent extras when opening copy destination picker.

Bug: 28081616
Change-Id: I3109eaf993da93239ba25db066beb5787a924196
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
53f109b39e2b62fa3730ce1c43344df2c733251c 05-Apr-2016 Steve McKay <smckay@google.com> Massage code to better support Files overlay.

Also, allow "productivity_mode" config to be enabled via intent extra
as a developement aide.

Bug: 28006206
Change-Id: I7be8d96a0e924f9ce8023347e051d28d69a0eec9
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
67c76b960c255b0c7f29e589de87c92715854b9b 23-Mar-2016 Aga Wronska <agawronska@google.com> Bring the change 'Open drawer when showing copy/move destination screen'
back after fixing problem with tests.

Revert "Revert "Open drawer when showing copy/move destination screen""

This reverts commit 82ae18c87784b5989c1529b97214d63e5d9d3742.
Fixed: 27479369

Change-Id: I70f98cf543de889a9a728d8d7233f8e7b077f871
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a1b13556331136e5e79d0fe545c8bfbb7a394fce 23-Mar-2016 Aga Wronska <agawronska@google.com> Merge "Change copy/move destination to Downloads when home directory is hidden." into nyc-dev
4e627169041376b25fc5d9d62de0eccfa61b2913 22-Mar-2016 Aga Wronska <agawronska@google.com> Change copy/move destination to Downloads when home directory is hidden.

Bug: 27791217
Change-Id: If196441a57053ada9875c6cc29d4c7f13fcb57e8
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ffa829f779d7513c64bba76cc884c62b702f52dd 22-Mar-2016 Ben Kwa <kenobi@google.com> DocsUI: Disable debug logging by default.

Per the platform team, we shouldn't enable debug logging automatically
in debug builds because it increases log-spam. Just disable the flag
and enable it manually when needed.

Add some ifs to make sure all our debug logging is properly removed.

BUG=27380154

Change-Id: I8338f226c07affdb65970c7cb14f1e6aae036934
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
82ae18c87784b5989c1529b97214d63e5d9d3742 22-Mar-2016 Daichi Hirono <hirono@google.com> Revert "Open drawer when showing copy/move destination screen"

This reverts commit 4d5f9f6a7f3b9aa8f7fd1a733ba739e5bfe3ed66.
The CL breaks android.appsecurity.cts.DocumentsTest.

BUG: 27746116, 27479369
Change-Id: Ib9426c54e8c9841f3def55a88e07bf4a2cd7dcac
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
2917fa9dd53ff1643714b42b95556189c727de4b 18-Mar-2016 Daichi Hirono <hirono@google.com> Change the title of DocumentsUI from "Files" to "Downloads".

BUG=27683277

Change-Id: I429cae8804b8f318f58039fc63d081c2a864fad0
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ce71082254b6015ff6475374bc4d0001608b7636 11-Mar-2016 Steve McKay <smckay@google.com> Centralize animation related resources.

Fix minor bug in animation (use height not width).

Change-Id: I357224086b2732fe9ad49a145db3e82259a87891
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
4d5f9f6a7f3b9aa8f7fd1a733ba739e5bfe3ed66 10-Mar-2016 Aga Wronska <agawronska@google.com> Open drawer when showing copy/move destination screen

Bug: 27479369
Change-Id: I0bc7efe88ad47885ecf35fb447cfe5c1f38a10d7
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a1f7680f535a30aa816d129c072870031c8a2eb6 25-Feb-2016 Steve McKay <smckay@google.com> Update preconditions to be asserts...

Which are now supported by Jack.
Retain a few preconditions checks that enforce contract.
Disable the one assert we had...because it failed in tests.

Change-Id: I2f6cb01e1af1534be4428ce4a3ee625a163dd163
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
c95d87c98360e4254c55272c79f0f9a05215aaf6 23-Feb-2016 Steve McKay <smckay@google.com> Don't restore stack when picking copy destination.

Move fancy drawer "fiddling" to FilesActivity.
Rename the various "Restore" tasks to better reflect their roles.

Change-Id: I7f5c3dee11112bf0a31e6219d09c572c5651629d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
cddd034ca78fd92be132cb2336eb2bff04ac5ce8 22-Feb-2016 Steve McKay <smckay@google.com> Merge "Move directory and roots support to own ui bots." into nyc-dev
b9a20d10c948cf111b70981e08233ea97323fe6c 19-Feb-2016 Steve McKay <smckay@google.com> Move directory and roots support to own ui bots.

Also...sorry, snowball, don't automatically open folders
that are created in Files app. Only do this in DocumentsActivity.

Change-Id: I271655fd3566496eced4aaa7a44d5110233150a0
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
893390bd580eca39ecd693cb0d76c7bc9b36a11d 17-Feb-2016 Aga Wronska <agawronska@google.com> Directory fragment refactoring.
First attempt to to refactor fragments handling, state and app lifecycle.

The goal was to simplify code by using android built lifecycle
mechanism, eliminate bugs caused by multiple creation of the fragment,
see the performance impact and give some fundament for refactoring of
fragments and activities in the app.

Search view manager:
* Remove curentSearch from state
* Restore search from saved state (ex. after rotation)
* Rename file to give the better overview of its purpose

Directory fragment:
* Store selection state in a bundle
* Remove double creation of fragment
* Use loaders to reload content when possible
* Keep info about state inside the object
* Refactor available types of fragment to be normal and recents
* Make search type a mode possibly available in all types
* Remove search being invoked from refresh method
* Do search by reloading fragments content instead of recreation as
an example

Other:
* Fix window title maybe

Bug: 26968405, 27101786
Change-Id: I58f36cd0a3e3a6ec98996cd8aac16e10e425e1fe
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
4a1ca86f4757647b62995eede2a45d06273503bf 18-Feb-2016 Steve McKay <smckay@google.com> Don't show recents as copy/move destination.

Revoke "SUPPORTS_CREATE" from the Recents faux-Root.
Don't allow copy to roots that don't support children.
Add friendly access methods to Root info for checking flags.
Only show spacer between roots sections when both non-empty.
Add docs explaining the "apps" section in roots.
Improve logic in the "canCopy" method.

Bug: 27232639
Change-Id: If78ee0ff73f0788de863345b560aecd41b23dfb9
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a6bbeab1d3c94b24b16d6d86401dcbd85806af72 18-Feb-2016 Steve McKay <smckay@google.com> Improvements to Copy/Move flow.

- Always open drawer for copy/move operations.
- Set title to match operation.
- Update button to say "move" for move operations.
- Other minor fixes.

Also fix "Home" tests broken by ag/867110

Bug: 26506479
Change-Id: I3ccb4ddc72be0a21b91744bcb610c1ca490ac30c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
3d988a969f39ca34ef89c449a0675164499c9a3a 15-Feb-2016 Tomasz Mikolajewski <mtomasz@google.com> Provide siblings in a sorted orders in DocumentsUI.

Bug: 27192158
Change-Id: Idefd2ba3027cd4630fcd2aefade9e6b4952e7125
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
aa15dae22d9fe3d0d51b1b28f131f0b1b74a5869 10-Feb-2016 Steve McKay <smckay@google.com> Automatically open roots pane if default dir is empty.

Move drawer fiddling out of DirectoryFragment into respective
FragmentTuner instance.

Bug: 27084308
Change-Id: Ia13fc2be1442e1a7164c2d67ea6ce4bcfda68bcc
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
f873769fba261fb26446b5082fddc4ca2724d931 05-Feb-2016 Steve McKay <smckay@google.com> Move create folder and sort to overflow menu, cleanup back behavior.

Improved drawer management in reponse to back button presses:
- if drawer is open (and we didn't just open it), close it.
- if at top of root (and we didn't close root) open it.
- there's a timeout on this behavior such that pressing back
a second time within a 1.5 second perior will NOT initiate
the behaviors described above.

Change-Id: I5990848cd3047d9dc985ec10e57ab3a0f99ce79c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a4761f0b8b27a058cba965db42e859f18b6a3e49 05-Feb-2016 Ben Kwa <kenobi@google.com> Fix an NPE in RestoreStackTask.

BUG=27007822

Change-Id: I166dc89bfe94f2a07a1fe3769cbce763b7472ec0
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
95cd85ad3859991c756c8ff9bb683c97b3546eb9 04-Feb-2016 Steve McKay <smckay@google.com> Simplify State initialization w/ better semantics + improved Task security.

Also, reveal the illusion that we're restoring state in Files and Downloads.
Also, define a "PairedTask" class that guards calls to task methods
with checks against isDestroyed. This also let us make all of the tasks
static, so we get much narrower scope and tasks can even be moved to
their own files.

Change-Id: I6a9e8706e1ab1d1f43301e73dd9858a115a6baaf
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
1f264a8a1a6c3e770e45c52fc08dc06de6b1aa55 03-Feb-2016 Steve McKay <smckay@google.com> Normalize toolbar management.

Since it was almost all redundant (especially the stack stuff).
Ensure "Files" title present on drawer title in Files app.
DocumentsToolBar > DocumentsToolbar to match toolkit naming.

Bug: 26193264
Change-Id: I92c82c66d936aae3ce0f792581daa12898dfadee
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
3ce95951bd173c422b8d369b4651c28e5bcc20f4 02-Feb-2016 Steve McKay <smckay@google.com> Show view mode button in action bar on Downloads.

A grab bag also with:
Report Roots while loading (in DEBUG).
Null check DirectoryFragment before calling methods on it.

Bug:26936660,26143397
Change-Id: Ief2c943eb24fb14349bbd9cc4a5fbd670f57d567
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
efa1761776160376278fa467ea31d8e3f621a286 30-Jan-2016 Steve McKay <smckay@google.com> Decouple SD card from ADVANCED storage toggle.

A variety of related fixes:
- don't force size enable when browsing from device mounted notifications.
- don't show settings menu item as action (put in overflow).
- add sd card icon (not quite yet used, need to suss that out).

Bug:26880985,26883578,26771127
Change-Id: I36f153c42217f8092f157ded2a756c02525593ab
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
3eb2d07fd3ef67e54d5004fb6bff931b1b7b44c9 26-Jan-2016 Steve McKay <smckay@google.com> Remember view mode by root.

Now stored in local prefs, not recents DB.
Don't consult preferences for recents from DocumentsActivity.

Bug: 22671255 26689962 26411301
Change-Id: I492d85c450253bce984c929a6dd15d7c31ee6a0b
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
f6a31d319f3e08d26ca4c0fbfb5803056bafb243 16-Jan-2016 Aga Wronska <agawronska@google.com> Refactor SearchManager:

- Move SearchManager out of BaseActivity.
- Refactor usage of onCurrentDirectoryChanged(int anim).
- Cancel search when directory changes.
- Enable testing for cancelling search when directory changes.
- Avoid recreating action bar when only the content of the directory is
changed.

BUG=26495573

Change-Id: I1400090fcb529ad3905018d1640fdb7416542989
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
7c7e684b787bb27db46b0148727602449f86ee88 08-Jan-2016 Steve McKay <smckay@google.com> Fix bug where both list and grid buttons are visible.

Bug: 26456290
Change-Id: I41d97d7ce33a193b6a9591609deadf9690b00ba7
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
14e827a958f713d9cdec550e0b1099622cda9479 07-Jan-2016 Steve McKay <smckay@google.com> CopyService generalization.

Make the service operation agnostic, so we can also move delete operations to it.
In a followup change we'll see about adding support for multiple concurrent
operations. We'll need to evaluate how to do this in IntentService (which
serializes requests....a major limitation).

Change-Id: I03eca9c1ecaba519af42d88edffeb0dce78bd1da
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
c75fa4a5bcacdcebfcd2486bb0887a76c9bc21af 17-Dec-2015 Steve McKay <smckay@google.com> Merge "Eliminate dialog mode from DocumentsUI."
a8f03a2d81394002242d1909488eaa4a0467ea05 15-Dec-2015 Steve McKay <smckay@google.com> Eliminate dialog mode from DocumentsUI.

DocumentsActivity to Use standard drawer layout at all display resolutions.

Bug: 26208032
Change-Id: I3b93c81bf97045744074a299e92cdea4aae7628d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
862b9641e39997f5189dadf0f0c6776f911f344e 07-Dec-2015 Ben Kwa <kenobi@google.com> Re-enable sorting in the DirectoryFragment.

- Move sorting from the back-end (using SortingCursorWrapper) to the the
front-end (in DocumentsAdapter). This makes it such that re-sorting
the directory contents doesn't necessitate a reload.
- Update DirectoryLoaders to just return unsorted results, and rely on
the UI to sort them.
- Remove the (now-unused) SortingCursorWrapper.
- Update Model tests to test sorting.

BUG=26024369

Change-Id: I871cc0e496267d381ae546e0309125d04649415a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
39acff5a36ab0540981cdae3027ea1a45fe040e5 25-Nov-2015 Tomasz Mikolajewski <mtomasz@google.com> Wire support for archives to DocumentsUI.

Bug: 20176812
Change-Id: I8220afa2f53b07aa842bf6ac24fcc62afd4e2617
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a8057a9dcef71f9b3e0f31e830d750337a4349ba 16-Nov-2015 Tomasz Mikolajewski <mtomasz@google.com> Add first-class support for virtual files in SAF.

Bug: 20820363
Change-Id: Ic509a6003a99997126f129a836fdd8c0e843108f
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
84cebbeb69e5b473f0cb4d1575bdc57aac48e32e 25-Sep-2015 Ben Kwa <kenobi@google.com> Open the destination dir when a copy notification is tapped.

- Cleanup: rename the "open copy destination" action to "pick copy
destination", which better reflects what it does.
- Move DocumentsIntent from BaseActivity to Shared.
- Rename ACTION_BROWSE_DOCUMENT_ROOT to ACTION_BROWSE for general browsing.
- Use the new ACTION_BROWSE to open the copy destination when copy
notifications are tapped.

BUG=23137963

Change-Id: I10480b45a16ce716febac5453cb5015d26bb0062
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
261b6bdd36ab2b820f1646b3eaa5f4a3123a7bcf 04-Nov-2015 Tomasz Mikolajewski <mtomasz@google.com> Remove TRANSFER_MODE_NONE from CopyManager.

This field is not necessary, as an operation is always either copy or move.

Change-Id: Ide68bb2bf5d237ed4c9abe8c443edd8e12dd82dd
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
f862155e3476f8d9644d57072a6d92375bde628e 04-Nov-2015 Steve McKay <smckay@google.com> Move DirectoryFragment and family to dirlist pkg.

Stuff was getting out of control in the main package.

Change-Id: Ia06ba96f5bbe13388d51e6ad52a9dac76af97cc0
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a7e9eb04e2a980c455cd2a62a27c91bbf3b1a4d7 29-Oct-2015 Ben Kwa <kenobi@google.com> Update DocumentUI styles to match mocks.

BUG=24870921

Change-Id: Ic91c9fbbe8c577c2276a4afc79753ba702c53733
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
0c2a0a811f00c693a4af331971be80b04ac86c02 15-Oct-2015 Steve McKay <smckay@google.com> Performe save when ENTER is pressed.

Push save enabling logic into SaveFragment, let it figure it out.
Don't assume DirectoryFragment is present in BaseActivity.
Permit DirectoryFragment#get to return null when not present.

Bug: 24305559
Bug: 24955068
Change-Id: Ib50d674b16ba48dcefb6e5b73055120c3e7c6dba
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
5bbae10c4c603ec6597f8dc7e1c7d060877cefc9 01-Oct-2015 Steve McKay <smckay@google.com> Normalize and improve menu fiddling.

Also, don't show copy/paste menu items (though they can still be invoked via keyboard).
Show copy to /move to instead.

Change-Id: I6e7bdf35bf370ea30d4f12a5a200ad38ff0221f4
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
8359eaafa264679c30a56c0ea9850d829c9c6e0c 01-Oct-2015 Steve McKay <smckay@google.com> Merge "Provide previous stack when opening new window."
94b486d32c10d5ffbd8627977ca4759c246ecf4b 30-Sep-2015 Ben Kwa <kenobi@google.com> Switch DocumentsUI over from Toasts to Snackbars.

Add a new top-level CoordinatorLayout to ensure proper operation of the
snackbar.
Switch all Toast code over to use Snackbar.

BUG=24474629

Change-Id: Iafffb35be6115cbac9304fd44e77e73b6be40c17
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
323ee3ec094b78b9f96a8ab55b5c3b291028eeaf 26-Sep-2015 Steve McKay <smckay@google.com> Provide previous stack when opening new window.

EXTRA_STACK support was already in place (from CopyService).
Add "isRootUri" to DocumentsContract.

Bug: 24410611
Change-Id: Ia380030216323d1272ef247280582e4b55b83c42
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
7a3b88cf56ded3afb9bd6d1ad150b2d6b1f2f4d7 24-Sep-2015 Steve McKay <smckay@google.com> Move State to a separate file.

Update remaining local DEBUG definitions to use Shared.DEBUG.

Change-Id: I3ed4d4b184836da161adff14bd3d9ca01b435847
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
83df8c072ddd01a5adc11da0869103c4645e6d76 17-Sep-2015 Steve McKay <smckay@google.com> Merge BROWSE and BROWSE_ALL actions.

Open Files app when exploring from settings.
Force visibility of file size in this mode.
Don't hide empty media providers.

Bug: 24136618, 24140864
Change-Id: I6f238586725f9b6255812e3082bb8d8655219a7d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
c643386e2801b7bb7f3ba79c4474a5b05a224d4f 23-Sep-2015 Steve McKay <smckay@google.com> Update RecentsCreateView to use RecyclerView.

Move common DirectoryContainerView handling to BaseActivity.

Change-Id: I2c34b23b7050b68999f16e6d7f651c94ea8e47b6
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
0f7078f0045f354ba6573f0094e097a9afd6534d 08-Sep-2015 Ben Kwa <kenobi@google.com> Refactor DocsUI to break out a new ManageRootActivity.

- Split all ACTION_MANAGE-related functionality off from
DocumentsActivity, into a new activity.
- Create new full-screen layouts for said activity.
- Fix some styling issues in {Documents,Files}Activity.

Change-Id: I0384715ad3c7d70a3a3daf510f1a09e8c5732348
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
38b4c6f436bb880413a5824895203055655a1988 24-Aug-2015 Steve McKay <smckay@google.com> Use resource aliases in-lieu of ViewStubs.

This eliminates the double resource inflation necsesitated by the use of ViewStubs.

Change-Id: I9749356bed24f48b8304897dc6d8dc47cc11736c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
12055474a7f7119d3b44955e09358b9675167716 21-Aug-2015 Steve McKay <smckay@google.com> Show a drawer when in portrait mode.

This makes more space available for content.
Rename all the "Standalone" stuff to just "Files".
Move layout inflation into base class.
Move backbutton > drawer interaction into BaseActivity.

Change-Id: Ie778b323c6e80122389f029be148dd9e0c4bfb6e
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
4f1604088f11f6c5583d1148c34bc6a45e5c619f 17-Aug-2015 Steve McKay <smckay@google.com> Move Drawer management code to a facade.

Update Standalone mode to use drawer on smaller form factors.
While we're not implementing this now, we'll probably want
to switch to drawer mode when in portrait mode, even on relatively
larger devices.

Change-Id: I244cd3c6021d63cf43d0631a5397b05339a96ced
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
6eaf3863c81779233c032b7f7fc5b90e94f5f70a 04-Aug-2015 Steve McKay <smckay@google.com> Populate quick view intent w/ file uris.

Change-Id: Ie4f15b11be1939f8b71752505caa9d74ab9f9680
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
177c9c8c14687f65f5f967f0836c6126effca4dd 16-Jul-2015 Jeff Sharkey <jsharkey@android.com> Merge commit '3bc83eb0' into downstream

Change-Id: Id3980b39889f28ab42284119747eb461be0a3ce5
04ec6f4f092f1c2d56ef6213019ce4b9068b8a0a 15-Jul-2015 Jeff Sharkey <jsharkey@android.com> Only send EXTRA_STACK for private intent.

Since it's a private Parcelable class, we can't send it to other
third-party apps, since they won't know how to unpack it.

Bug: 22255387
Change-Id: Ie2ea6cf72b733bd122eb3581a5df295cec608425
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
9e9c246f560038d74fb2a72dba5b28fad8531f78 26-Jun-2015 Oren Blasberg <orenb@google.com> Load Downloads view in full screen.

BUG=17467808

Change-Id: I70f2ed074d3f08cc7d70f0228b763de25142014a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
e9b4972d24dc7ad189009287902a72b21cbc827c 24-Jun-2015 Makoto Onuki <omakoto@google.com> am a4e38b9d: am 423c824b: am d1e62d9d: Merge "Remove default activity title to prevent talkback from..." into mnc-dev

* commit 'a4e38b9d86c59e033f0d17ee7ac96734133881ac':
Remove default activity title to prevent talkback from...
9feac1425c02d2da91e500e7c2f6b7d87a4f3d44 23-Jun-2015 Makoto Onuki <omakoto@google.com> Remove default activity title to prevent talkback from...

reading the wrong title.

We get a title from DocumentProvider with an async task, and by the time we
get it, it's *usually* too late and talkback end up reading the default title.

Bug 20041072

Change-Id: I7686fe4ae4c157ebfc07bd8b895c4cfdf99c057a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
8a246ea3ff3ed826ad5ee0174474e4ed3c98a772 18-Jun-2015 Tomasz Mikolajewski <mtomasz@google.com> am 9223788e: am 327dbb57: am 41ce0039: Merge "Remove the action bar icon when there is no drawer enabled." into mnc-dev

* commit '9223788e655784417e1cf0023d78b5d850dd0d1e':
Remove the action bar icon when there is no drawer enabled.
58461ebdef243843c0398c764bed2b11d3fc9df3 18-Jun-2015 Tomasz Mikolajewski <mtomasz@google.com> am 87a45380: am 456778ff: am 9ce9ffec: Merge "Allow to customize title of the dialog." into mnc-dev

* commit '87a4538034d41964ed81b69749939c1868505847':
Allow to customize title of the dialog.
41ce003934c228f68e82645062665e0d2c443781 18-Jun-2015 Tomasz Mikolajewski <mtomasz@google.com> Merge "Remove the action bar icon when there is no drawer enabled." into mnc-dev
0e591f95bd023fc153520efe0852180bb580a442 13-Jun-2015 Tomasz Mikolajewski <mtomasz@google.com> Allow to customize title of the dialog.

TEST=adb shell am start -a android.intent.action.OPEN_DOCUMENT -e
android.intent.extra.TITLE 'Upload!' -t "text/plain"
BUG=19150996

Change-Id: Ibded6cfaa2de3698c5eada154efbee2b323464d4
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
536ac48aa9268539913c210267679ded906057ca 13-Jun-2015 Tomasz Mikolajewski <mtomasz@google.com> Remove the action bar icon when there is no drawer enabled.

Keep the hamburger menu though if the drawer is visible and unlocked.

TEST=Tested manually on both tablet and phone form factors.
BUG=18685509

Change-Id: Ie6f8d7064da99d2dc34315ccb92ab4db6ee321b6
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
5f3699685b4d2bb87e759ad19f8d4a37c733298c 11-Jun-2015 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 70be78a8 to master

Change-Id: I0743be4b22602ad0255998d22cff345c36a60ecb
186efa3836ec3e8c564b53d0948a51eb25cb7161 11-Jun-2015 Daichi Hirono <hirono@google.com> Update visibility of the stack dropdown list after the search view is collapsed.

Previously we hid the stack dropdown list just before the action bar is
collapsed. Then the dropdown list gets back to be visible when the action bar is
collapsed.

The CL updates visibility of the stack dropdown list just after the action bar
is collapsed.

BUG=20945584
Change-Id: Iaf5055bce101f8134accd311829e50f441ddc98b
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ad144ea6bbe4429cc8f1c51e8ea50615d094ebce 11-Jun-2015 Ben Kwa <kenobi@google.com> Merge "resolved conflicts for merge of 3aff4fc6 to master"
cf1e2f03dfe3191c06513fe64faa8b76ead7c2a0 11-Jun-2015 Ben Kwa <kenobi@google.com> resolved conflicts for merge of 3aff4fc6 to master

Change-Id: Id816d859f929de3bd0328ef3a67e2bef9fadf28b
77797400ec103b1691e1c3fa602c329b49ac18ca 30-May-2015 Ben Kwa <kenobi@google.com> Enable apps to exclude their own roots from the DocumentsUI roots list.

- Add DocumentsContract.EXTRA_EXCLUDE_SELF (boolean extra)
- Add code to DocumentsActivity to cache the providers of the calling
app if EXTRA_EXCLUDE_SELF is set on incoming Intents.
- Add code to RootsCache to exclude roots from the calling app.
- Add code to allow only system apps to use EXTRA_PACKAGE_NAME.

Change-Id: Ia7cc2a1a297676c7b26f6e583042a4607d8c9a4e
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ac990ceb3874d00c5a4c5dfb7e8ba20598d60202 28-May-2015 Daichi Hirono <hirono@google.com> DocumentUI: Plish the design of footer bottons.

* Remove the directory name from "pick" button.
* Allign buttons at right.
* Fix bug that the pick button turns to be hidden after screen rotation.

BUG=20285152

Change-Id: I909d52f341bf67c5627431a354a9b0ccec152a05
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
574b4bcd1bf63f673a7fc456272a0824cbe58d8a 20-May-2015 Steve McKay <smckay@google.com> [mnc-dev] Hide list/grid menu items for copy dest action...in mnc-dev!

BUG=21259006
Change-Id: Ic31dfa1a1cffa4340769c08db3e3cb3fb46e31d5
(cherry picked from commit e04e02d027b731448d68995a202c8867c4985fa3)
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ef7d034ae9435a605d0b7518888e22f311837de2 20-May-2015 Steve McKay <smckay@google.com> Merge "Hide list/grid menu items for copy dest action."
e04e02d027b731448d68995a202c8867c4985fa3 20-May-2015 Steve McKay <smckay@google.com> Hide list/grid menu items for copy dest action.

BUG=21259006
Change-Id: Ic31dfa1a1cffa4340769c08db3e3cb3fb46e31d5
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
cc3452136e1cf2a7552d767d16ad10f3932d4b5f 18-May-2015 Ben Kwa <kenobi@google.com> Fix UI for file moves.

Change the destination picker to have a "MOVE" button when moving files.

BUG=20880263

Change-Id: I69686a2f13daa0f0048113e1a2ad71dd37b3de1c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
e9cbfe8e5adadfbe740836d46b8a52a066316697 17-Apr-2015 Daichi Hirono <hirono@google.com> DocumentUI: Plish the design of footer bottons.

* Remove the directory name from "pick" button.
* Allign buttons at right.
* Fix bug that the pick button turns to be hidden after screen rotation.

BUG=20285152
Change-Id: I909d52f341bf67c5627431a354a9b0ccec152a05
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ed6fcb5929f4911eafc97287d62086bee07b746d 15-May-2015 Ben Kwa <kenobi@google.com> Merge "Add a move feature to DocumentsUI."
0b4a3c47c657e3b713f0f9b0f5b6170ec8c48dfa 05-May-2015 Ben Kwa <kenobi@google.com> Add a move feature to DocumentsUI.

Add a menu item (protected behind a system property) for moving files.
Add an extra to the copy intent for transfer mode (copy/move).
Add code to CopyService to delete files after copy when in move mode.
Add tests.

BUG=20559838

Change-Id: I983f57a528327d1e7a12982b599094aad2c856ed
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
273103b192d66375d560f98f3f099e8ff21d0607 12-May-2015 Steve McKay <smckay@google.com> Fix local-storage menu item visibility issue.

Update DocumentsActivity to hide the local-storage (aka "advanced") menu item when visibility of that item is forced-on via extra flag in the intent.
Update StandalongActivity to explicitly NOT honor local-only and force-advanced intent flags.
Fix import ordering (and get my IDE settings in shape).

Change-Id: I5323c85448d029e77732404d6dc8cfdb51ebcfc8
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
6e02dc8cd69720043bd36ae29fe93e767e3b38a9 07-May-2015 Steve McKay <smckay@google.com> Delete StandaloneActivity from M (DO NOT MERGE)

The activity is already disabled by default.
Fix an issue where copy support error handling was attempting to invoke StandaloneActivity.

Change-Id: If15c312a183cae1b2a84517e7f7b3123c11bd619
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
69aee097a3853490c9c7afb191af4f047ab1d164 01-May-2015 Steve McKay <smckay@google.com> Ensure sort menu is shown as needed.

This also hoists common code for options menu setup into BaseActivity.

Change-Id: Ie87b8188a6c142b2312c92dc0d0bd550f0b1e59f
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a78a3694b533a4b02d3193342144dbd2f17bd8f0 23-Apr-2015 Steve McKay <smckay@google.com> Update activities to clear search term when a root that doesn't support search is selected by the user.

BUG=20495230

Change-Id: Iee2e2bd80dea6d368cad0911117e3759bdfe37d9
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ef3e2cf35fbede340d5ff830b410baea8e461a94 21-Apr-2015 Steve McKay <smckay@google.com> Reduce code duplication between DocumentsActivity and StandaloneActivity.

Ensure StandaloneActivity has toolbar management consistent w/ DocumentsActivity.
Introduce a separate SearchManager class since there seemed to be a sufficient body of logic and state to warrant the separation.

Change-Id: I87d9da40095c6de575b124005ca34a8c0b0b4b35
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
1a2fdb496ec080cd6ff7ed547320dcfa7994abbd 15-Apr-2015 Daichi Hirono <hirono@google.com> DocumentsUI: Move intent related constants to BaseActivity.DocumentsIntent.

BUG=None
Change-Id: I81d367d5f8d727a5fa76bc22b2fe871ae441dbcf
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
c96e494ac73e11dfd34a2df39c80d673474c4d44 15-Apr-2015 Daichi Hirono <hirono@google.com> Merge "DocumentsUI: Filter out downloads root if the source documents include directory."
9be34298be02783b4cc91cf1784aa0627cf36012 14-Apr-2015 Daichi Hirono <hirono@google.com> DocumentsUI: Filter out downloads root if the source documents include directory.

This is the short term solution for the downloads root, which does not support
directory creation. For the long term solution, we need to add a flag to Root
model to check if the root support directory creation or not.

BUG=20186663

Change-Id: I15c4795892f38e3f968776f732a6f2160ae775fc
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
de021abe409a293492d998d8b837ea1aee9604ff 13-Apr-2015 Daichi Hirono <hirono@google.com> DocumentsUI: Polish buttons of copy destination dialog.

* Add cancel button to directory picker dialog.
* Turns "select" label to "copy to" label for copy destination picker.

BUG=20170953

Change-Id: I66214804aed75a6fccc716d1a01163c634e73d7f
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
1407d4c77732c7fad34c6b813d05771de6ed970f 13-Apr-2015 Jeff Sharkey <jsharkey@android.com> DocumentsUI roots can have settings.

Roots use a flag to indicate they have settings, and DocumentsUI
offers to launch towards someone who handles a new Settings intent.

Slight rename of browse intent for clarity.

Bug: 19993667
Change-Id: I86302ec1cfac5e435d8bc5701bdb85fb9b0dcbae
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
bbe2292bc671f74d77c9a0e4e0e1d5ea5714d939 10-Apr-2015 Daichi Hirono <hirono@google.com> DocumentsUI: Add new private intent action to select copy destination.

The CL adds INTENT_ACTION_OPEN_COPY_DESTINATION, and implements the behavior to
respond the intent action.

The directory picker:
* filter out read only roots
* return document URI instead of document tree URI
for the intent action.

BUG=b:20146034
Change-Id: I96c565100c3cdaa57cc7abd8cf6d895d148941a7
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
e1a03f8eec2719279037ab348df306764dc45a70 10-Apr-2015 Tomasz Mikolajewski <mtomasz@google.com> Show copy destination when clicking on the copy notification in Documents UI.

Change-Id: I3d955595bc46903c134c0633a6d32663cc2d0c05
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
59d577a518333f4b4514315b6d10e8dba160abcd 12-Apr-2015 Jeff Sharkey <jsharkey@android.com> Browse mode for DocumentsUI, removed volume state.

The existing management mode is too specific, and requires that
storage backends add queryChildDocumentsForManage(), etc. Instead,
to offer more natural browsing support, add a new BROWSE_ROOT intent.

It behaves mostly like MANAGE_ROOT, except that it doesn't mutate
its Uris with setManageMode(), and it shortcuts straight to VIEW on
clicked documents.

It can be launched like this:

$ adb shell am start -a android.provider.action.BROWSE_ROOT
-d content://com.android.externalstorage.documents/root/8405-1DFB
-c android.intent.category.DEFAULT

Also rename a MetricsConstants to make it clearer, and don't
auto-mount all emulated volumes.

Fix bugs around parceling of DiskInfo/VolumeInfo. Method to resolve
the best description for a VolumeInfo, which might need to fall
back to DiskInfo.

Add back "removed" volume state so we send broadcast when a volume
is destroyed, matching the expected public API behavior.

Bug: 19993667
Change-Id: I13aff32c5e11dfc63da44aee9e93a27f4690a43f
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
e934ce6f8430f50d1d22bccd3b341b982f5541ee 25-Mar-2015 Steve McKay <smckay@google.com> Implement a standalone file manager activity.

Change-Id: Iaf86ef416b979cea4ab3890d3a26f09741392c3d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
43aef1643b82e0fe1a524b20c2a533fd620ecfc3 24-Nov-2014 Jeff Sharkey <jsharkey@android.com> Move Documents action bar update even later.

At some point Activity started restoring the Toolbar/ActionBar title
during onPostCreate(), which would clobber some of the setup we just
finished doing. To fix, move our update to be even later in the
restore lifecycle.

Also fix grid item widths for small screen devices.

Bug: 17428127
Change-Id: I258121b6a6eec5924f92b02290a67d3ae7dd9cf6
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
0166ddf5bbb5d855cb2f5bca4c6a9f0281c14814 23-Oct-2014 Jeff Sharkey <jsharkey@android.com> Recent directories can't show file size.

Don't show the toggle to the user, which can avoid crashing.

Bug: 17942524
Change-Id: Iaedd61b7c69e14b57508cb9865d1e0124ca2e505
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
b7b30f691c5b87468ef6ad769487a9f4b315075d 13-Oct-2014 Jeff Sharkey <jsharkey@android.com> DocumentsUI: Add content description for nav.

Bug: 17922955
Change-Id: I44c0107d8dd03aab36da55deeb864e328b492124
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
669f8e7c70c595964a1c9ca154ac123da84d99a1 09-Aug-2014 Jeff Sharkey <jsharkey@android.com> Move DocumentsUI settings into overflow menu.

Also use different strings based on device type to make clearer.

Bug: 13437894
Change-Id: I4053780de2c7197fb45cc53aee7659e9d0d75c0a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
c29dd61cbfc9f073239bdce3f4fe397deae2c623 08-Aug-2014 Jeff Sharkey <jsharkey@android.com> More material updates to DocumentsUI.

All assets cut as alpha variants so we apply desired tinting at
runtime. Small script to automatically generate XML resources.

Bug: 15836082, 16658537
Change-Id: I803b3f0bf6f121194a5445fd1c6600fabaf28f60
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a847d79310320ae8adbedb281123a0f879c2fc6e 30-Jul-2014 Jeff Sharkey <jsharkey@android.com> Light icons for DocumentsUI.

In some cases we want to show light variants. Also tweak drawer
sizes and grid padding.

Bug: 15836082
Change-Id: Ic6459ff0533a7d346c03db5d7deb3d6da42e7649
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
8a850b4c0e0d4ceff4553dbb2490fe13f0e05f9d 30-Jul-2014 Jeff Sharkey <jsharkey@android.com> Latest DocumentsUI material asset drop.

Bug: 15836082
Change-Id: Ifdd8a42a963071f1c958d56b3f835228f257cf9a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
f52773fd62fc2fec40c2e17230b644dfbee6cf2d 29-Jul-2014 Jeff Sharkey <jsharkey@android.com> More DocumentsUI material iteration.

Move to using Toolbar for all actions. Drawer contains its own
Toolbar with separate title, and hamburger is always visible. Change
drawer items to match spec. Switching to Toolbar allows us to remove
nasty dialog-on-tablet hacks, yay! This also means we can finally
get real IME resizing support.

Move to using elevation for all shadows; this removes more nasty
hacks around drawing directory shadows.

Bug: 15836082
Change-Id: Iba70b898f385a7debd8aabfc98ff39d20bca860d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
b9fbb7290b02de1ce621deaa2d28a5e42f2e0937 05-Jun-2014 Jeff Sharkey <jsharkey@android.com> Refactor directory API to "opening document tree."

Cleans up API so it consistently refers to opening or working with a
subtree of documents. Also separates isChildDocument() support from
the concept of directory tree selection.

Bug: 15429194
Change-Id: Ice66a751ff4bd0cc4d34c44c5da13a0dc4186dc9
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
21de56a94668e0fda1b8bb4ee4f99a09b40d28fd 06-Apr-2014 Jeff Sharkey <jsharkey@android.com> Add directory selection to DocumentsProvider.

Introduce new ACTION_PICK_DIRECTORY that allows users to grant access
to an entire document subtree. Instead of requiring grants for each
individual document, this leverages new prefix URI permission grants
by defining new "via"-style URIs:

content://com.example/via/12/document/24/

This references document 24 by using a prefix grant given for
document 12. Internally, we use isChildDocument() to enforce that
24 is actually a descendant (child, grandchild, etc) of 12. Since
this is an optional API, providers indicate support with
Root.FLAG_SUPPORTS_DIR_SELECTION.

Extend DocumentsUI to support picking directories. Expose
createDocument() API to work with returned directories.

Offer to canonicalize via-style URIs into direct URIs, generating
exact permission grants along the way. Override openAssetFile()
to pass through CancellationSignal. Move testing code into ApiDemos.

Bug: 10607375
Change-Id: Ifffc1cff878870f8152eb6ca0199c5d014b9cb07
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
96c620595bd0585f934b0971b4552c57845e9a78 26-Oct-2013 Jeff Sharkey <jsharkey@android.com> Extra to always show advanced devices.

Also always lower-case extension to extract MIME type correctly,
we may want to fix in MimeUtils at some point.

Bug: 11354402
Change-Id: I77d0c06a663cd0c4320c41553ff1980b6f9a7778
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
04d45a0bdd47c243ad7ccb179aa52a83e7bf45db 24-Oct-2013 Jeff Sharkey <jsharkey@android.com> Show spinner while waiting for mutations.

When mutation operations are waiting for a storage backend, show a
spinner in place of the save button.

Bug: 11333249
Change-Id: I2b620b4532ad977a2b60d4bdc5caa55f89021456
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
15be83612c34b65404f15d0feafdb4a329467769 09-Oct-2013 Jeff Sharkey <jsharkey@android.com> Support overriding calling package in Documents.

Calling package is only used to pick the stack to restore, not for
security purposes. This lets other system tools (like Printing)
indicate the real caller.

Bug: 11149540
Change-Id: I155e32577eaeda7dfcb80a7d84ac3b54f281590a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
d01571e6d4e1c403534e19142720530d324eac9b 02-Oct-2013 Jeff Sharkey <jsharkey@android.com> Isolate calls to each remote DocumentsProvider.

All background work is going through AsyncTasks, which uses a shared
thread pool. Even with the new ContentProviderClient logic to detect
ANRs, the UI can still appear to be unresponsive for 20 seconds, even
if the user attempted to switch to a different backend. In the worst
case, a backlog of thumbnail requests would end up wedging Loaders
for a long time, since they all share the same THREAD_POOL_EXECUTOR.

This change isolates calls to each provider onto their own thread,
which they're free to wedge and recover from over time.

It also means we no longer need a dedicated thread pool for recents
loading, and can use a simpler Semaphore instead.

Disables thumbnails in recents on svelte devices.

Bug: 10993301, 11014856
Change-Id: I7f8a5bbb5f64437e006cb2c48b7e854136d5c38c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
7aa7601c09ab5d87cc15a0ed9a8f511d494a4cbc 30-Sep-2013 Jeff Sharkey <jsharkey@android.com> Detect wedged ContentProviders, treat as ANR.

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
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
6efba22ce510352bb84910d6efc42fecafd31ed7 28-Sep-2013 Jeff Sharkey <jsharkey@android.com> New roots UX, async, performance, docs.

Yet another iteration from UX on how roots should be ordered. Since
we no longer categorize by type, remove from public API. Updated
asset drop with new dividers.

Update public API docs to be explicit about required columns. Hide
flags and columns that aren't required for third-party apps.

Move remainder of potentially blocking work to AsyncTasks, including
creating directories, picked root resolution, and creation of new
documents once picked.

Improve performance of layouts by removing baseline alignment and
reduce hierarchy depth. Set alpha on ImageViews directly to avoid
offscreen rendering hit.

Limit returned recents to 45 days. Show load in recents when still
waiting for backends. Show empty message when no recents stacks to
create from. Use unique key when saving recent stacks.

Bug: 10941423, 10819454, 10964412, 10960718
Change-Id: I08cf589dcda7e203acf67928f4d30322ae36ee94
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
e66c1778f80f4b18e29e018eca3a338f125f23b9 20-Sep-2013 Jeff Sharkey <jsharkey@android.com> Require that persistable Uri permissions be taken.

Change our Intent flag to indicate that a Uri permission grant is
persistable, but don't actually persist it until explicitly taken by
the receiving app. This prevents apps from spamming each other if
persisted permissions aren't really required.

Remember the last time a persisted grant was taken by an app, and
use this to prune away the oldest grants when the number of grants
grows too large. Allow apps to query persisted grants they are
holding, and allow them to release previously persisted grants. Add
public UriPermission class to return grant details and timestamp.

Track various permission strengths separately, and combine together
after each mutation pass. Persistable grants are currently treated
like global grants, but they could be moved to have owners in the
future. Require that grant holders trying to extend a persistable
permission actually hold a persistable permission themselves.

Bug: 10835779
Change-Id: I95b2f797c04ce7fd2612f9a644685dbd44e03759
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
6a20e574116af1072782c1e87cb03eb33f05ec50 25-Sep-2013 Jeff Sharkey <jsharkey@android.com> Handle null stacks gracefully.

Bug: 10928395
Change-Id: Ie7c3f7e0eb068ece0cf678a5d6346f18a413856b
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
deffadeb7485e8660ecce12822e259d96fa06dce 24-Sep-2013 Jeff Sharkey <jsharkey@android.com> Freshen restored stacks, more UX bug fixes.

When restoring a persisted stack, such as last location or a location
where save occurred, freshen the DocumentStack to get the latest
details from backend, and ensure the path is still valid.

Filter Recent directories in create mode based on roots allowed by
incoming request.

Remember when user last picked an external app, and open drawer next
time user launches for GET_CONTENT.

Fix state list drawable ordering, and avoid clobbering Drawable
callback when wrapping in InsetDrawable; tricksy hobbitses!

Make grid items smaller to always fit two columns on phones. Draw
grid items all the way to screen edge; don't clip to padding. Better
error message when folder creation failed. Show Recents in grid mode
when picking any visual content, not just images.

Bug: 10846100, 10903211, 10898993, 10892808, 10892058, 10892009, 10885012
Change-Id: Ia0f88d911abc6ea03645d6fd3e04271c21d5936a
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
1feeddf518d31a7ff5d28000a631857442cd7161 22-Sep-2013 Jeff Sharkey <jsharkey@android.com> Latest UX asset drop, grid padding.

Bring in latest asset drop. Apply grid padding programmatically
instead of waiting for asset. Remove alpha from directory animation.

Update save footer background to match spec.

Bug: 10700025
Change-Id: I8eef08f36d04767b78e91b23f72bdbebfbb02f58
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
5545f56f7561810187545a1817b6001dd1f9931b 21-Sep-2013 Jeff Sharkey <jsharkey@android.com> Create unique files, root ordering, UI bugs.

When a file already exists on disk, try adding a counter suffix to
make a unique name. Move services near top of roots list, just below
recents. Remove "Documents" root.

Increase number of recents allowed from single provider, and add more
logging to diagnose wedged loaders.

When launching GET_CONTENT apps, wait for successful result before
relaying result; canceled requests now return to DocumentsUI.

Add CloseGuard to ContentProviderClients, since leaked instances can
keep the remote process alive.

Fix UI bug around trailing breadcrumbs. Fix bug that dropped Recents
from roots list. Add up action to Settings activity. Give our
activity a default icon while waiting for async roots to load.

Bug: 10818683, 10819461, 10819461, 10819196, 10860199
Change-Id: I7b9e26b1cf8353dd3175458b23da2b4bda6c5831
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a9ce049db87259e302e2368d2a4a1c11a94fd831 20-Sep-2013 Jeff Sharkey <jsharkey@android.com> Load RootInfo in background, invalidation.

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
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
e20a3acdc2d52c7eeb76940206145b3c419394a6 19-Sep-2013 Jeff Sharkey <jsharkey@android.com> Save directory state and animate.

Save scroll position and restore when rotating or going up the
directory stack. Also show directory animations when navigating
the directory stack.

Bug: 10417201
Change-Id: Ia2c508debc2bffffe6306eb9078afefef259dfe2
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
f6db154975ef575479ba4ab59d80bcf592288252 13-Sep-2013 Jeff Sharkey <jsharkey@android.com> More UX updates around picking images.

When picking images or videos, hide the titles in recents, since the
thumbnails should speak for themselves. Also respect new flag that
allows a directory to request their titles be hidden.

Show directory icon hint in grid mode when showing a thumbnail, to
remind user it's a directory.

Filter directories out of recents. Hide most action bar icons on
phones, even when room. Only show drawer on first launch. Hide most
drawer headers to match spec.

Bug: 10710331
Change-Id: I0ef1973ddd62750f57345336388366eda1449720
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
3e1189b3590aefb65a2af720ae2ba959bbd4188d 13-Sep-2013 Jeff Sharkey <jsharkey@android.com> Move search to roots; Documents root; hide empty.

Documents searches now happen root-wide, instead of only under a
subdirectory. Updates abstract class and flags to match. Add flag
for a root to indicate it's empty, and hide empty roots in UI unless
creating.

Define "Documents" public directory and storage backend to contain
files.

Bug: 10712057, 10710865, 10710758
Change-Id: I8716367568969f9cb1d83927b2bf5a7013809350
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
88f322c3115e85bb96fb46f9192b5daecd472c64 13-Sep-2013 Jeff Sharkey <jsharkey@android.com> DocumentsUI tablet support.

Shows as a faux dialog on larger tablets, since the normal dialog
themes from framework don't support action bars. Instead, this hacks
itself to look like a dialog with an InsetDrawable. Detects touches
in dim area to dismiss dialog.

Show all action bar icons on tablets, and roots panel is always
visible with a different shadow. Show settings in dialog. Allow mode
switches in recents.

Bug: 10329832
Change-Id: Id02982ce7b0d4694962d32f8d5286fdfcc207208
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
4ec973925fc2cd18f9ec0d0ca5af588564fded27 10-Sep-2013 Jeff Sharkey <jsharkey@android.com> More UX work for thumbnails, search, management.

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
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
fb3445c9b31c7f8401d6eec0606dabee366c8aad 10-Sep-2013 Jeff Sharkey <jsharkey@android.com> Sort order is sticky for session, back leaves.

Instead of persisting sort order per-directory, the order is now
sticky for that session. Any user selected sort order takes
precedence over an ordering hinted by a backend.

When a restored DocumentStack is untouched, the back key now leaves
the dialog, instead of popping from the restored stack.

Persist list/grid mode changes async.

Bug: 10659604, 10672973
Change-Id: I9f022a081c014537447c9c2af10e19d8cd9566aa
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
d182bb641f228b2d28527a6aa86075f6358ab838 07-Sep-2013 Jeff Sharkey <jsharkey@android.com> Remember mode and sort on per-directory basis.

Persist the last user-selected list/grid mode and sort order for
each directory. Remembered user choice always overrides provider
hinting.

Filter out recent documents that don't match requested MIME type, and
show recents in grid mode when picking images. Hide mode and sort
order in recents.

Add hinting flag for backend to indicate a directory would like to be
sorted by last modified. Include explicit root in DocumentStack and
clearly mark derived fields.

Bug: 10392047, 10608506
Change-Id: I2dd3a0e4112852ebf87e7dbb08b3781c86587dcf
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
28c05ee8931cecf4c51c470e0043d30196010c49 06-Sep-2013 Jeff Sharkey <jsharkey@android.com> Item layout tweaking, hook up more assets.

Update layouts for items in both list and grid mode to reflect
latest UX. Use new card background in grid mode, and apply gradient
treatment over thumbnails.

Visibly mark currently selected root.

Bug: 10510022
Change-Id: I36b290d7082b5cdfd7b3167df7d976032bc01bd6
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
6d97d3c1a2ebac4e3f32c7e5bc134864ace1c17f 06-Sep-2013 Jeff Sharkey <jsharkey@android.com> Another asset drop, provider icons, tests.

Latest asset update, including provider icons which are treated as
special cases for now instead of checking into separate apps. Add
tests for MIME type matching of roots. Remove unused XML.

Bug: 10510022
Change-Id: Id567a9e06ba241f60ac011823e550253c6c797fb
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a61dc8e03e6e863005b3a4629ca8f3801d33d3c4 06-Sep-2013 Jeff Sharkey <jsharkey@android.com> Separate root and document management.

Two hidden intents for managing roots and documents, used to support
Downloads UI. Touching an item tries launching as MANAGE_DOCUMENT
first before falling back to VIEW. Provide MIME type for roots.

Bug: 10446265, 10531347, 10599641
Change-Id: Ia5584bd6ce3e5a9b0048e8caf1447e3053664413
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ded77187ef53341765fcab8e29cda94810fc2ca5 03-Sep-2013 Jeff Sharkey <jsharkey@android.com> Updated documents UX around action bar.

Change action bar to match current design; drawer is always available
and navigation dropdown is used to interact with current traversal
path in hierarchy. On first launch, show recents with drawer
expanded. On subsequent launches, resume from last location with
drawer closed. If last location root isn't applicable, then behave
like initial launch. Move sort order into action bar submenu.

Delete documents using contract. Use unstable provider when
inflating DocumentInfo from Uri.

Bug: 10330219, 10510851
Change-Id: I6e94637d70ebca156a6c5d50272e878156d0dd62
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
348ad6866b91afa4d59d45df533ef88094c74d13 03-Sep-2013 Jeff Sharkey <jsharkey@android.com> Filter roots based on incoming request.

When incoming request is for local-only content, or for ACTION_CREATE,
only include roots advertise those features.

Filters roots based on the allowed MIME types and the supported types
advertised by each root. This supports displaying Images and Audio
roots only when requesting those content types. Applies the same
filter when deciding which roots to query for recents.

Fixes advanced filtering instead of limiting to just devices. Update
sorting so that Recent always appears first. Add testing support for
LOCAL_ONLY.

Bug: 10597317, 10526535
Change-Id: Ic5ccf475c4fe93fd52b29388d369d7f6915c0c42
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
b51331116eb2ebbc41aaf69142916f9af6dffdd5 02-Sep-2013 Jeff Sharkey <jsharkey@android.com> Instance state, fix sharing, Durable objects.

Remember instance state across configuration changes, and enable
rotation. This remembers current modes and in-progress traversals.

Always finish action modes after launching an action. Fix sharing
by always putting Uris in extras, and always wrap in a chooser. Find
common MIME types when sharing multiple documents. Fix downloads
launching by following directory MIME type change.

Introduce "Durable" which is like Parcelable, but can be used for
both byte[] storage and Parcel transport. Make both DocumentInfo
and DocumentStack durable.

Disable recents until new behavior is implemented.

Bug: 10460236, 10446265, 10533674, 10456344, 10456702
Change-Id: I4eaf2b0b4cde611c69a1e7b5f1586f6b02019b27
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ae9b51bfa313c51a31af30875a71255d7b6d2e61 01-Sep-2013 Jeff Sharkey <jsharkey@android.com> Refactoring of DocumentsContract.

Combines related columns and constants onto the same class so they
are easier to discover. Move back to surfacing roots with columns
so they are consistent with documents.

Advanced roots are represented with a flag instead of distinct
types. Flags to indicate supporting of well-known media types,
instead of arbitrary an MIME filter. Reintroduce well-formed rootId
to support recents.

Always use the expanded version of "documents" in constants, methods,
and argument names.

Refactor DocumentProvider method names to clearly distinguish if
a single item or multiple could be returned, and of which type. Add
documentation to clearly define which methods have already been
overridden.

Bug: 10567506, 10567557
Change-Id: I981f26ab82f2b520a19aa1ce66f659de50d7fac0
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
aeb16e2435f9975b9fa1fc4b747796647a21292e 28-Aug-2013 Jeff Sharkey <jsharkey@android.com> Stronger DocumentsProvider contract.

Using a contract class requires that a provider implement it exactly
with little help. This change introduces a DocumentsProvider abstract
class that provides a client-side implementation of the contract that
greatly reduces developer burden, and improves correctness.

This also moves to first-class DocumentRoot objects, and moves calls
with complex side effects to be ContentProvider.call() invocations,
offering more granular permission control over Uri operations that
shouldn't be available through Uri grants.

This new design also relaxes the requirement that root information be
burned into every Uri. Migrate ExternalDocumentsProvider and
DocumentsUI to adopt new API.

Bug: 10497206
Change-Id: I6f2b3f519bfd62a9d693223ea5628a971ce2e743
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
bd3b902567b09379e1b62c60b3319ad82102efad 21-Aug-2013 Jeff Sharkey <jsharkey@android.com> Add CancellationSignal support to file operations.

Since ContentProvider file operations can end up doing substantial
network I/O before returning the file, allow clients to cancel their
file requests with CancellationSignal.

Ideally this would only be needed for openFile(), but ContentResolver
heavily relies on openAssetFile() and openTypedAssetFile() for common
cases.

Also improve documentation to mention reliable ParcelFileDescriptors
and encourage developers to move away from "rw" combination modes,
since they restrict provider flexibility. Mention more about places
where pipes or socket pairs could be returned.

Improve DocumentsContract documentation.

Bug: 10329944
Change-Id: I49b2825ea433eb051624c4da3b77612fe3ffc99c
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
4eb407a832b7d6a2d62a535e5cab70b00a0bc8ed 19-Aug-2013 Jeff Sharkey <jsharkey@android.com> Management actions, invalidate caches.

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
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
a5599ef636e37cb0b6474349936999be1afe6987 16-Aug-2013 Jeff Sharkey <jsharkey@android.com> Documents management mode; API adjustment.

Create documents manage mode to support Downloads and transient
storage devices. Locks user into requested backend root, and forces
file sizes on and sorting by last modified.

Separate API constants for Documents versus Roots, and give concrete
MIME types for roots.

Treat null sizes as unknown. Documents are always enabled in list
so that divider is drawn. Mark external storage file as writable.

Bug: 10329983, 10332993, 10332952
Change-Id: I05f4fdf5b04041a38e1ba7fb30202a3b0c615bf6
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
54ca29a5b94c2edf461c5433825d4ae17469fd7c 15-Aug-2013 Jeff Sharkey <jsharkey@android.com> DocumentsUI handles GET_CONTENT; hinting, errors.

Document browser now takes over all GET_CONTENT requests that request
openable Uris. It shows both storage backends and includes other apps
that respond to GET_CONTENT. Only grants transient read permissions.

Better guarding against throwing storage backends. Send sort order
and local-only hinting to backends.

Require that OPEN/CREATE_DOC users include openable category.

Bug: 10330112, 10329976, 10340741, 10331689, 10329971
Change-Id: Ieb8768a6d71201816046f4a4c48832061a313c28
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
255b4a6fdb8296e95e6ee57f7155ecc0cb995650 09-Aug-2013 Jeff Sharkey <jsharkey@android.com> Always include a default DocumentStack.

Change-Id: Idbde1d832ac95c4b3c8bd5cd82b0fa695e0bcb6d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
0c2d31bfa113c2848620ac05c916802410b71da1 08-Aug-2013 Jeff Sharkey <jsharkey@android.com> Better handling of broken storage providers.

Begin throwing FNFE when storage provider doesn't know about document
or when it's having trouble. Treat all provider errors as FNFE and
avoid crashing our UI.

Change-Id: I946f1ae4125791999464dc4ce494853d5d1c0629
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
9fb567b59112f99e64e0bff6f343188331bad28d 08-Aug-2013 Jeff Sharkey <jsharkey@android.com> Settings, replace files, sorting by size, tweaks.

Add settings to show file sizes and advanced storage devices, both
disabled by default. Add sorting by size when enabled in settings.

Always show all documents, but only allow selection when they match
MIME filter. When creating, select entire filename on focus. When
creating, treat selected documents as replacement targets using that
exact Uri unless display name is changed.

Show available bytes for device roots. Show empty text label in
empty directories. Split grid backend and details into two separate
lines. Fix path label ordering when rendering recent directories.

Change-Id: I44c62e8adb8ca7d4355510a13d1ba975196a2d29
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
b156f4bf8cdfe475a7116b627d84a281e1a281b7 07-Aug-2013 Jeff Sharkey <jsharkey@android.com> Recents in create, uniform item layouts.

Show recent directories in a separate fragment, and save as serialized
versions of new DirectoryStack. Cleaner behavior around recents and
search, instead of treating them as pseudo-Documents.

More uniform item layouts between list and grid, including both date
and size information, and originating storage root in recents. Avoid
clashing directory loaders by assigning unique numbers. Promote
list/grid switching up into activity.

Change-Id: I9a93460b896067ca036d7e772eeabde31face2e1
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
66516697a29cf00d93893a1011d3befc7c1ee37f 06-Aug-2013 Jeff Sharkey <jsharkey@android.com> Storage roots in fragment, sectioned.

Move storage roots into a fragment, since it's not a drawer on
tablets. Cluster and sort roots when displaying. SectionedListAdapter
to make clustered roots easier to manage. Add docs for root types.

Move roots cache into separate class to make it easier to share.

Change-Id: Ia0b92eade059e816324641f600c08026c0e268c9
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
ef7184a1aa0be5d496a5cb495a0f9e11f342af44 06-Aug-2013 Jeff Sharkey <jsharkey@android.com> More recents work; filtering and sorting.

Update DirectoryFragment to render List<Document>, making it more
general purpose. Feed it documents either from a backend Cursor or
after resolving fields from a recents Cursor. Start in recents when
no persisted stack available. Synthesize a root for recents.

Local directory filtering and sorting using predicates and
comparators, all performed on background thread. Introduce
UriDerivativeLoader which handles ContentObserver updates while
producing a derivative work of a Cursor.

Split data model classes into separate files.

Change-Id: Idb88b4ee22c58c8e508328e678877f7e4c978533
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
dc2963aecaf38bf53d6de82957412a486049c207 03-Aug-2013 Jeff Sharkey <jsharkey@android.com> Track and persist directory stacks; recents work.

Move to manual tracking of directory navigation stack so we have Uri
data to persist, instead of opaque fragment backstack. Remember
directory stacks across launches on a per-app basis.

Start recording recently opened and created files. Uniform Uri
parameter extraction utility methods in contract.

Change-Id: I79ed30ee10272bf7c53d339e797639c993f649bb
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
92d7e697a864a3e18bef4ef256bb3eb339a66b4e 02-Aug-2013 Jeff Sharkey <jsharkey@android.com> Reference docs by ROOT_ID and DOC_ID; recents.

The same document may be present with different sematics under
multiple storage roots, so always reference using both ROOT_ID and
DOC_ID. This enables backends to revoke permissions for an entire
root, such as when an account is removed.

Start building provider to remember recently accessed documents.

Change-Id: I75befa2e61393dec12fcc7fd27f631fcddae46fa
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
7e258b31e70464bb6d80b8b42f0cef8e4417bd6a 01-Aug-2013 Jeff Sharkey <jsharkey@android.com> XML metadata for storage backend; custom icons.

Introduce XML metadata for storage backends, used to indicate if
custom roots should be queried, and provide any custom MIME type
icons inside that backend.

Parse metadata and resolve custom icons in UI.

Change-Id: Iec026c0b10845edff7a345d9389691ddf2c87a0e
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
bc2971d2499f5bf5534ced7296ece630ca902738 01-Aug-2013 Jeff Sharkey <jsharkey@android.com> Sliding drawer for roots, move sorting, search.

Move backend root exploration into sliding drawer, and adjust action
bar when moving between modes. Moves sorting into action bar spinner
instead of separate dialog. Also add initial search support.

Change-Id: I70189911ba56ae6bd93d5c503a8600acd6d6c0c5
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
20d96d8aff2193d548977e23ce5158657cac94e0 31-Jul-2013 Jeff Sharkey <jsharkey@android.com> Define storage roots, external GUIDs, creation.

Allow storage backends to publish multiple roots into the UI, which
are defined by a directory GUID, type, and label details. Update
external provider to surface a primary external storage root, and
switch to burning file path into the returned GUIDs so they remain
durable.

Added insert, update, and delete support to external provider. Adds
file extensions to display names when needed to match MIME type.

Add flags for searching and deletion, and extras for Cursor
pagination. Add directory creation dialog to UI. Opening a document
always gives write access.

Change-Id: I9bea1aa0dcde909a5ab86aefeece7451ab920cf1
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
1482789374fb8da3abea8f6f4f272a67205b95db 02-Jul-2013 Jeff Sharkey <jsharkey@android.com> Support sorting in storage UI.

Extract mode information into DisplayState which is now consistent
across directory traversal. Use grid mode by default when working
with images. Dialog to switch sort order.

Add testing UI to exercise until we have real clients.

Change-Id: Ic423584d4559732fb3d2aea9e0406b57d43f6e6d
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
be8b12e687bd10a526b1f54c2d8a52abdad15d85 02-Jul-2013 Jeff Sharkey <jsharkey@android.com> Support multi-select in storage UI.

When caller has specified that multiple documents are okay, enable
multi-select action mode. Currently only allows document selection,
not directories. Returns multiple documents through ClipData.

Fix bug where GridView was stuck with 2 columns on tablets.

Change-Id: Id49b29a86330639b56fa116d37e7f0d874980c5b
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
54e55b740fef1be654c3959aee41ef5ddfa61293 01-Jul-2013 Jeff Sharkey <jsharkey@android.com> Iterate on storage UI.

Support both grid and list view of documents. Show breadcrumb
navigation trail in action bar. Start supporting file and directory
creation.

Change-Id: I93a973da7b0d4387a57fe719e7bb20944adb0290
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
9e0036ed7d3260d79cc5f9ffd8e3bbe760699924 27-Apr-2013 Jeff Sharkey <jsharkey@android.com> External storage provider, document picker UI.

Continuing to flesh out storage backends by adding an external
storage document backend. Still rough, but it can traverse files
and directories.

Early pass at OPEN/CREATE_DOC picker UI, which offers to traverse
any known storage backends. Supports opening subdirectories and
returning a picked file.

Change-Id: Idc3554036b3816a93d9b465ee8a620746859d2ae
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java