History log of /packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2c1b15d25a635e8972640be10dd828de306ab983 26-Jul-2017 Hyunyoung Song <hyunyoungs@google.com> Upgrade launcher icon and shortcuts to adaptive icon Bug: 62023774 Test: build, and runs, manual testing on marlin device
am: a62e5047cb

Change-Id: Iad334fb34660138054054847eef4366f0524d31e
a62e5047cb708a47c8b23aeb2be0951540a1d6e6 21-Jul-2017 Hyunyoung Song <hyunyoungs@google.com> Upgrade launcher icon and shortcuts to adaptive icon
Bug: 62023774
Test: build, and runs, manual testing on marlin device

Details:
1. Inverted shortcut color and set background to be Grey 100 material color
following the shortcut design guidelines
2. Fixed wrong typecasting in FilesActivity
etc, etc...

Change-Id: I96d245c190ad234aac22fb2e1d58c6e299fb7fcf
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
e3830da96f7358c2b791d1b8573837f4110844b8 14-Jul-2017 Tobias Thierer <tobiast@google.com> Expose a BaseActivity methods to work around compiler/desugar bug.

This is a follow-up to commit 5d19b09512dd7a1bccce3142b97589d89ad68e56
which made a corresponding change in SetupWizard.

OpenJDK 9's LambdaMetaFactory's behavior differs from OpenJDK 8's when
a lambda or method reference (this::methodname) references a supertype's
protected method: OpenJDK 9 will generate a invokevirtual call to the
(inherited) child method whereas OpenJDK 8 generates an invokevirtual
call to the parent method.

If the child class is in a different package, this call fails in the
desugared lambda class (which lives in the child package) because the
lambda class is a non-subclass in the child's package and therefore
doesn't have access to the parent's protected method. Surprisingly,
this invocation succeeds at OpenJDK 9 runtime even when invoking java
-Xverify.

This behavior change was likely introduced upstream in [1] but the
corresponding bug [2] doesn't seem to exist. It is therefore not clear
whether this is a bug in LambdaMetaFactory, desugar, or an integration
bug between desugar and LambdaMetaFactory (perhaps a misunderstanding
of the semantics of the "owner" attribute).

Subclasses refer to protected BaseActivity methods via "this::popDir"
and "this::focusSidebar". This CL adds overrides to those methods
in the subclass. This makes the method available to other classes in
the same package (such as the desugared method reference/lambda),
fixing compilation.

[1] http://hg.openjdk.java.net/jdk9/dev/jdk/rev/a3b3c7b6464d
[2] https://bugs.openjdk.java.net/browse/JDK-8175806

Bug: 62218600
Test: make checkbuild (with OpenJDK 9 toolchain)
Change-Id: I7353dff1083c625cbde7ef1348c24e2848e6c0d2
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
052985f2e9687f4d62c173edeb2f0e5524082a7c 07-Jun-2017 Steve McKay <smckay@google.com> Move shortcuts updater to common package.

Currently, it is useful to invoke the updater when file picker runs...
as that gives the app an opportunity to update shortcuts if/when user
modifies visibility of advanded devices.

Change-Id: If1dc0f65ff5f7cba839a2bc1cd2fcaf8bd012427
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
3807dd96cc48aff2afb28a886d4489683d521241 06-Jun-2017 Steve McKay <smckay@google.com> Merge "Support for dynamic shortcuts." into arc-apps
am: 50bf584715

Change-Id: I5bac745713be9e488d0d5121bdd2451641c697b3
87f1b2c27379b191cda81e91ebc48fc3b722c38b 06-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add menu to show properties, add feature flag." into arc-apps
0930d4ca4b5161a22b0ddeca86c06533624ad610 02-Jun-2017 Dooper <dooper@google.com> Add menu to show properties, add feature flag.

Bug: 62293172
Test: upcoming
Change-Id: Idb0de7ad2b41472fc7b0b762d88dda5f512d5ce2
(cherry picked from commit 3975fa2e90c0322ecf70f350422b83dabda58c5e)
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
0ce04b7a3f2c76452f855d082cd57d5e4cab9d69 05-Jun-2017 Steve McKay <smckay@google.com> Support for dynamic shortcuts.

Bug: 32875404
Test: Build and test.
Change-Id: Iab9558532eab1cf15e094de7294b3b169b731be5
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
3975fa2e90c0322ecf70f350422b83dabda58c5e 02-Jun-2017 Dooper <dooper@google.com> Add menu to show properties, add feature flag.

Bug: 62293172
Test: upcoming
Change-Id: Idb0de7ad2b41472fc7b0b762d88dda5f512d5ce2
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
b47b4b560c46336a0e6ba3e86db3f2d76b4b2bc3 16-May-2017 Garfield Tan <xutan@google.com> Add a type column to show user-friendly type info.

Also add a special map from mime type to user friendly strings.

Test: Auto tests & smoke tests.
Bug: 34844878
Change-Id: I773f2bae524b7dffc6eeda1a1e92330b5ad64473
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
ff7f3aeec1b4fc7e0b8ddb0e8b6b6e105140f68e 26-Apr-2017 Ben Lin <linben@google.com> Clear separation of RootList Context Menu items and DirList items.

Change-Id: I7f83b21a499de67f628b1fe0cf1582fe70f86c4d
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
da2c0f0b075ad9f770182e706c2ec158989568a7 11-Apr-2017 Garfield Tan <xutan@google.com> Allow user control move/copy during drag and drop.

* Refactor some shared drag and drop logic into one single place.
* Add a workaround for updating badges across windows.
* Add unit tests for DragAndDropManager

Bug: 29581353
Change-Id: I2fcf950194457501e35e1bbc2e00ab68d7962666
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
5bd5cb44eacc10fe7cec7c159d6f47d127a3195b 02-Apr-2017 Steve McKay <smckay@google.com> Respect UserManager.DISALLOW_DEBUGGING_FEATURES.

Allow CommandInterceptor to be enabled at runtime.
Allow features to be force enabled within an individual activity (non static).

Bug: 36837295
Test: Presubmit is working on it :)
Change-Id: Ia1a5b11f03b32e263c8a3f9d82cf4b1b42a167e5
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
0d83d32b66332034b17b327352693b125e9b3a05 06-Feb-2017 Tomasz Mikolajewski <mtomasz@google.com> Add progress dialog for transfer operations.

Previously we'd show operations progress in the notification,
which is inconvenient and not exposed to users when the user
stays in the app.

This CL solves this issue by showing a progress bar in the
current activity. Note, that the operation will continue when
the user closes the activity. Also, the user can click on
"Continue in background" to continue working on something else
while copying/moving/compressing/etc.

Finally, it's easier for user to cancel an operation now.

Test: Tested manually.
Bug: 35072376
Change-Id: I15b4842270f12fd746adb14dd5329f305ff371e3
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
9bd4099ee27f8302a06fc66980079f29127318f8 24-Mar-2017 Jon Mann <jonmann@google.com> Refactor RootsCache+RootsAccess to ProvdersCache+ProvdersAccess

Test: verified success
Bug: 34219584
Change-Id: I16d5e7d70240626efc9020bd11b13c778fc2d95e
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
77e0120246c2a16801766ed4761084e8c18f2aaa 23-Mar-2017 Jon Mann <jonmann@google.com> Merge "Implement support for viewing document settings in external applications" into arc-apps
253a99248f1f3d50cd357d902bfc52e7b9367446 22-Mar-2017 Jon Mann <jonmann@google.com> Implement support for viewing document settings in external applications

Makes DocumentsUI respect the Documents#FLAG_SUPPORTS_SETTINGS flag and invoke the DocumentsContract#ACTION_DOCUMENT_SETTINGS intent.

Test: Added unit testing.
Bug: 34219584
Change-Id: Ib1e8e1362e694ec973db20dd52ea229ba182520a
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
5a7a015520ac48f4cbf0b11d50814782305e13eb 23-Mar-2017 Jon Mann <jonmann@google.com> Merge "Revert "Implement support for viewing document settings in external applications"" into arc-apps
e8c484d8aa5215ec5331909513a0a7aec8fe2143 23-Mar-2017 Jon Mann <jonmann@google.com> Revert "Implement support for viewing document settings in external applications"

This reverts commit 8856ef45ac24e5f7ef539e3c32427c155970bf3d.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ice474cf9b6f79246c59a0d5f4ed350bb80d9cdfd
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
ce97e1f3fffbfb096c089c7da7111b3115f915e0 23-Mar-2017 Jon Mann <jonmann@google.com> Merge "Implement support for viewing document settings in external applications" into arc-apps
8856ef45ac24e5f7ef539e3c32427c155970bf3d 22-Mar-2017 Jon Mann <jonmann@google.com> Implement support for viewing document settings in external applications

Makes DocumentsUI respect the Documents#FLAG_SUPPORTS_SETTINGS flag and invoke the DocumentsContract#ACTION_DOCUMENT_SETTINGS intent.

Test: Added unit testing.
Bug: 34219584
Change-Id: I996dc1d80044c9d14086dc036c9950d9c2efa87e
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
44be0b8b2b84bd7f052e4b6c872c423f2cc5205b 22-Mar-2017 Tomasz Mikolajewski <mtomasz@google.com> Merge "Fix viewing files in archives by mouse." into arc-apps
d22cc1852ed3e028a37d713e41c57286d2e4c9f2 15-Mar-2017 Tomasz Mikolajewski <mtomasz@google.com> Fix viewing files in archives by mouse.

Test: Manual tested and partly unit tested.
Bug: 36098427

Change-Id: I5e8e6715249d545a21b97cbc2e525f470451ab87
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
ddaea8f13b8f2ed466dd5d7c39b6e23f3a4c35f7 16-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make Files look like Downloads in recents." into arc-apps
7295c484bfdd62066f6b49e225d0bf8af2cae19e 16-Mar-2017 Steve McKay <smckay@google.com> Make Files look like Downloads in recents.

...when launched from the Downloads launcher....
and like Files when launched from elsewhere (file manager mode).

Bug: 36178617
Test: Build and view the magic! Open Downlaods > Downloads! Open file manager from setting > Files!
Change-Id: I839355c9fe57c3d3f2c4bd1823c40186ec4438b5
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
0902f07dec9cfb0bd5d7c9c6222b433b91bf2051 14-Mar-2017 Ben Lin <linben@google.com> Moving back button behavior to SharedInputHandler, and now handling ESC keys.

Bug: 35674183
Change-Id: Ia6a5eb78f89ed1346aec81455dd6a721861bc6fa
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
710248d5ee766765b86fa36fe2ddd8d65f926755 14-Mar-2017 Steve McKay <smckay@google.com> Additional tidy up after Features.

1) Correctly hook Archive Creation up to features.
2) Remove archive creation as a preference.
3) Replace a few remaining direct references to R.bool.feature_...
4) Normalize test method naming in files.MenuManagerTest.

Bug: 35936932
Test: Build and run tests, test app manually.
Change-Id: I46db960fa17c438bb02fb3767b97dac3459c7cec
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
30b0dc1896abc67a970b61ebfd420275a31c1e18 08-Mar-2017 Ben Lin <linben@google.com> Fix a bug where dropping on Root never works.

DragEvent gets recycled, so by passing a DragEvent reference directly to
ActionHandler#dropOn, by the time the callback occurs, DragEvent is
updated to ACTION_DRAG_ENDED. ACTION_DRAG_ENDED events have no ClipData
and no localState, so the file operation never will occur.

Also added tests that involved ... refactoring lots of things.

Change-Id: I87daf1a4ec4e536701e03fd6dc53fc55829e5e51
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
e967033315ed64bca8c89d601d187fd12754f1fb 07-Mar-2017 Garfield Tan <xutan@google.com> Lift loader to activity level.

Also fix a bug that leaves DocumentsUI in a weird state if it fails to
obtain root document.

Change-Id: Ibb67bfd0114f45f41c0000078ca56767b5a4542b
Tests: Manual tests and auto tests.
Bug: 35934082
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
98f8c5f502e049a6b85439d773949cdbaa0f78ae 03-Mar-2017 Steve McKay <smckay@google.com> Add Feature Flag support.

Bug: 35923154
Change-Id: I34dd956e8309c779e7a3f35eadc3d84132b970ce
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
78ade2b9111c69a3cb169024646577f38136bbf7 28-Feb-2017 Garfield Tan <xutan@google.com> Consolidate the initializaion of acceptMimes.

Not restrict mime type in FilesActivity.

Credits to Sony folks who reported the original issue.

Test: Manual and auto tests.
Bug: 35415722
Change-Id: Ib506cde439e0e90bee7ac427f8cc9db263f73e61
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
954c5e0d7812bb58be03ae289ad490f48660924e 28-Feb-2017 Jon Mann <jonmann@google.com> Merge "Start to move access to model in to Injector and ActionHandlers, refactor select all and file rename." into arc-apps
30d8c7988e15336d995e4b5033ba533a8333446f 22-Feb-2017 Jon Mann <jonmann@google.com> Start to move access to model in to Injector and ActionHandlers, refactor select all and file rename.

Test: verified existing tests still work
Bug: 35406563
Change-Id: Ie0a6b7fd17a357cd9cce4338c123ca2e5795af22
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
340ab17f468789bb507daeae116cf7940ba84b03 27-Jan-2017 Ben Lin <linben@google.com> Fixing Keyboard Navigation to match spec.

Couple known problems still:
- Tabs go to the search/sort/etc icons first, as opposed to the
breadcrumb.
- There's no "focus" indicator for the sort items.

Test: Manually checked, works.

Bug: 32411179
Bug: 34243462
Bug: 31995556
Change-Id: I39240c0bafee9236f5ea5b760eff437739074cd3
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
f07da5f8bedb4d0f72aede499e46ebd8a122a9ad 27-Feb-2017 Tomasz Mikolajewski <mtomasz@google.com> Follow up for disabling creating archives in resources.

Test: Unit tests.
Bug: 35403496
Change-Id: I88555dadf37cbbbacd78f59d8cfa25688680338d
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
b0cbd6b0b18ea740524808b5af1f99aff628ee3b 20-Feb-2017 Tomasz Mikolajewski <mtomasz@google.com> Disable compressing by default.

Test: Unit tests.
Bug: 35403496
Change-Id: Ic55cba5e1ddf5c3941072cddaeb5718d8ed18fb3
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
49be24c91d71d8f6fe6cb8eb6837b46468abffb5 14-Feb-2017 Jon Mann <jonmann@google.com> Add 'Select All' option to menu.

Test: component was already unit tested
Bug: 33000104
Change-Id: Ic5b29633b0a391407f29e4d35a0de236d2f2c567
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
40c85052e1ae43fdcbda0fe7ecfe8c3316bec2bf 02-Feb-2017 Garfield Tan <xutan@google.com> Remove State#restored.

The stack itself is the best indicator of if it has been initialized or
not. With a small refactor we can encapsulate the stack modification in
initialization phase to ActionHandlers only.

Hopefully it won't cause other issues in other corner cases.

Credits to Sony Mobile devs on their bug report.

Bug: 34593795
Change-Id: I4c8e5f9816ede8bb335151626c2aedd2bed521cc
(cherry picked from commit 23618f30215a4bfecaa10795e2ba413702c12bbf)
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
664025e3eb9184817a1ebc21920c601466b907c1 01-Feb-2017 Tomasz Mikolajewski <mtomasz@google.com> Fix crashing converted files warning dialog.

Test: Tested manually that the dialog works.
Bug: None
Change-Id: I8e708fbf889dec96ca4d9992581e92463704391a
(cherry picked from commit d573c7dbfed47170bb584f5c7245bbfe737cff75)
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
d8d0ad2bb6b52095b77c537bdd4b79e642361b94 11-Jan-2017 Ben Lin <linben@google.com> Proper ActionMode clean up when spring opening directories.

Since ActionMode has an assert that it should be null when being reset,
there was a crash for the case of spring opening directories due to
actionMode.finish() not properly called before opening the directory.
This now ensures actionMode.finish() is called beforehand.

Test: Wrote ActionHandlerTest#testSpringOpenDirectory.

Bug: 32749167
Change-Id: Ifa39e9fcf02f4f848ea5cf4f26b01280d32a47c0
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
57cafe4a3296b496920c4f8cd6475a404ba68bba 10-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Improve error handling." into nyc-andromeda-dev
99f1dc3da6defec0596864934bfe76adc96a1d62 30-Dec-2016 Steve McKay <smckay@google.com> Improve error handling.

Recover gracefully when a uri cannot be resolved.
Include Uris in information presented in error dialog.
Update DeleteJob and CopyJob to have shared uri resolution code.
Break out error handling to provide clearer and more granular error info.
Update Metrics to be sure we including error information about URIs we failed to resolve.

Bug: 33938336
Test: New coverage in JobErrorHandlingTest.

Change-Id: Idf34882a561ec5cb90170f291683bdc752188b57
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
e8b547f1a7acdd10fd1e2f5816cebae49ecfd90b 19-Dec-2016 Steve McKay <smckay@google.com> Move preferences related code to sub-package.

Change-Id: Idbdcaca4577def4d4a1e44dfb8894adde44a6cbc
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
92ae43d5d22331aad83e1a4302a7e1975f66354e 08-Nov-2016 Steve McKay <smckay@google.com> Move Injector impl into separate class.

Change-Id: I070114479755571e93b9256e0cbf35780b962033
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
047182631669608af946480c2545a10acb2ef1bf 08-Nov-2016 Steve McKay <smckay@google.com> Shared input handling and injection.

Change-Id: I41ae072e55ecc60b708274b5c67bed3a486bf080
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
75b7b9039cf0efcb188e916c6f510328bfe099a8 02-Nov-2016 Ben Lin <linben@google.com> Let focused item also act as a starting anchor for range selection.

Bug: 31991343
Change-Id: Id59cc99a61550cd4a13feb508f13889a8598a3c9
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
a0b52655668ccbe3f12ca13ced4b34118a483783 27-Oct-2016 Steve McKay <smckay@google.com> Rechristen Downloads > Files.

Enable productivity mode by default.
- New window support.
- Documents root is shown and is home dir.
Use the Files icon, instead of downloads.
Cleanup Shared.foo settings logic a bit.
Eliminate use of ENABLE_PRODUCTIVITY_MODE (but don't remove just yet).

This will let folks like Ronald Ho test from master.

Change-Id: I038828ac398ec0625db033aa576b6951ea450736
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
0f17d09dcd4e8e40eb28cd4e549e42e45019ef98 22-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Using Activity#setTitle to have TalkBack announce root traversal." into nyc-andromeda-dev
37408d06cf31cde66312e677a14ba5520a0d1b2c 21-Oct-2016 Ben Lin <linben@google.com> Using Activity#setTitle to have TalkBack announce root traversal.

Bug: 32260739
Bug: 28275570
Change-Id: Ib726183e0884451bfcfcc68060c409aae7e766c1
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
d947f0192142c7db40d7dfaa8d0c6caaa1cf7c36 18-Oct-2016 Ben Lin <linben@google.com> Add Cut/Copy/Delete operation to currently focused item.

Also removed ability to focus on items in the directory list while
there's an on-going selection to avoid having a weird state of both
focus and selection. Shift extension still works, just that once user
puts focus on RootsFragment, they won't be able to focus back into
DirectoryFragment.

Bug: 32141890
Change-Id: I14c06f8616b63d04f0b5f489032f7006f91416a8
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
89e0e343c2d00d7862f1b891fbbe63e6adc5d445 20-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Address comments in ag/1514806." into nyc-andromeda-dev
2a837422d25b44f2847bc82e7c90b4e8fcde1518 19-Oct-2016 Garfield Tan <xutan@google.com> Address comments in ag/1514806.

* Isolate LinkedList and stack/root manipulation in DocumentStack
* Consolidate ProviderAccess into DocumentAccess
* Pass Uri as the the param to LoadDocStackTask
* Tidy up initLocation() in picker.Actionhandler
* Add a test case for initLocation with data in picking intents

Bug: 32156176
Change-Id: I3ca07342fc594e47fc003df146dcf982f152f56d
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
6525a19f46eca7fbec21a71f833436823de03da3 18-Oct-2016 Steve McKay <smckay@google.com> Make device storage option controlled by option.

Was always visible in productivity mode.
Simplify logic for fiddling display of menu item.
Introduce ScopedPreferences object to simplify saving prefs by activity.

Change-Id: I9f900583f6e6265e95b008a9877d68edacfa4e56
Bug: 32242016
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
b22a0d2d901675205aa40a031f900866e6b653b9 19-Oct-2016 Ben Lin <linben@google.com> Merge "Updating DropShadow as drag and drop hovers over views." into nyc-andromeda-dev
54c992e775cc00faddd89b2fd66a36c228d7a757 18-Oct-2016 Garfield Tan <xutan@google.com> Merge "Features around findPath API." into nyc-andromeda-dev
1686883a8d049b399e34954a4feaa98490277ae8 26-Sep-2016 Garfield Tan <xutan@google.com> Features around findPath API.

* Add folders into search result
* Allow callers passing data to launch pickers at specfic location
* Rewire loadDocument() to LoadDocStackTask
* Remove VIEW intent for FilesActivity and related OpenUriForViewTask
* Add a ProviderAccess to enable testing in LoadDocStackTask
* Fix a wrong assertion in files/ActionHandlerTest

Change-Id: Iacc2b99dc68cbb4a40a4c445c69473973123c5bf
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
1c45629929c31cf7903cf955a48f170a8cdee255 08-Oct-2016 Ben Lin <linben@google.com> Updating DropShadow as drag and drop hovers over views.

Also moved DragShadowBuilder to Activity level (needs constant reference
to it).

Bug: 31182423
Change-Id: Id3a09cff863d529f92e15e23c6cf53a2ca9da20d
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
79ae3a7d0e6dd6d2e953709a092e83002941d48f 13-Oct-2016 Ben Lin <linben@google.com> Adding ActivityInputHandler and tests.

Change-Id: Ic7a354c09b1bf6a769294cf37d83fdd36393617a
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
aa66c43df01033ccb957bfd1d513945676866f4c 12-Oct-2016 Ben Lin <linben@google.com> Bunch of papercuts.

- Alt+Backspace now acts as delete.
- Alt+Left-click now acts as right click.
- Clicking Share no longer clears selection.
- Middle click does nothing (no longer acts like primary click)

Bug: 31991398
Bug: 31988739
Bug: 31991827
Bug: 31992756
Change-Id: Ic86a65bb2d1e94a8a7fb140bff624483632e84fb
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
63bf8135243605949a3bb140167ef91f5c6ae2ae 11-Oct-2016 Garfield Tan <xutan@google.com> Move openContainerDocument() into ActionHandlers.

Change-Id: I48fb6e38993d2aff80b9d218d001c92ba2235e78
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
d071895ec72bbb9414f6672ff808ec42b8e2d850 10-Oct-2016 Steve McKay <smckay@google.com> Move share impl into files ActionHandler.

Don't include partial files when sharing.
Add test coverage.

Filter documents as list is loaded for sharing, eliminating need to copy.
Rename MimePredicate to MimeTypes and drop the Predicate impl (since nobody was using it).
Move additional mime type functioanlity to the class.

Input DocumentsAdapter.Environment and LoaderCallbacks in inner classes.
This reduces the number of public methods hanging off of DirectoryFragment.
In DirFragment normalize access to context/activity and State.

Added an IntentAssert class with some handy assert methods.

Addressed xutan@'s comment from last CL.

Add friendly support for selecting documents in TestEnv.

Change-Id: I55ea78ab5bef3a2b2644f6e0a3384adeaba78599
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
bd9f05aa36bf19d8b34d0d73a59e9bd65d3d26eb 10-Oct-2016 Steve McKay <smckay@google.com> Move full delete logic into ActionHandler.

Was spread across DirectoryFragment and UserInputHandlers.
Drop "android" test package in favor of the generic "testing".
Add an interface for ActionModeController (ActionModeAddons), so can be tested.
Moved ActionModeHandler out of dirlist ../up d dir.

Change-Id: Id915519656f163d3c413fe5d440d866c3ce4e2ca
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
5b0a2c187a9e446b683687817d22cbe443585223 07-Oct-2016 Steve McKay <smckay@google.com> Inject SelectionManager instead of passing on reset.

Move more delete functionality into ActionHandler.
Make ActionModeController Activity scoped.
Name most "Config" objects (relating to scope) to ContentScope.
Clear focus info when resetting FocusManager.

Bug: 31658228

Change-Id: I6dbdb07ded83c75b82aec5773a60ef0febb6f02c
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
4f78ba643270b9d84da1952d8e408220b25ec6fd 05-Oct-2016 Steve McKay <smckay@google.com> Move selection to selection pkg, make activity scoped.

Move all other selection related classes to selection pkg.

Change-Id: I57a3964fada55b0f4d073f05a7833455235221b9
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
208945c4e262868d3ebe0f55f1b895cd5a201cbb 04-Oct-2016 Garfield Tan <xutan@google.com> Refactor FragmentTuner to ActivityConfig.

* Move model listener that opens drawer to ActionHandler.
* Move showChooserForDoc() to ActionHandler.
* Statically initialize ActionHandler.
* Isolate OnDragListener to FilesActivity only.

Bug: 28315278
Change-Id: I760c8411922fca827fd08c115bd2590ab671c380
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
eed2f4ec78227b5e173ff667a5517637a91b9a30 04-Oct-2016 Steve McKay <smckay@google.com> Move document-opening logic into ActionHandlers.

Add tests for:
viewing
previewing
managing (apks and partial files)
opening containers
showing chooser

Fix issue where partial files weren't being managed correctly.

Change-Id: I1d62bcd0fd5262d6354f0ddc2327d3f0d22c1f3b
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
def4868b1e9ef8a5718c6bc2e165026cbe52b5da 03-Oct-2016 Steve McKay <smckay@google.com> Test location init with doc URI.

Make a more complete test environment.
Move GetRootDocumentTask to roots package.

Change-Id: Icb8f4c42c38c17aa97ec428ef9d46d76d2286fa7
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
a86732316c8fe1694f4c1702cdd6c8e0faff4e18 29-Sep-2016 Ben Lin <linben@google.com> Integrating Android Keyboard Helper to surface commands to users.

Bug: 27527210
Change-Id: I97e6e42fe54e4195875581dcc04188f5552efd22
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java
b6006b2ef723fdbb3fef3b4a350c8d363b127d0f 29-Sep-2016 Steve McKay <smckay@google.com> manager/ManageActivity back to files/FilesActivity.

The "mange" rename resulted in a disturbance in the force.

Change-Id: I0f057ba7621912f173e47a472bfc6e23a5a6d54a
/packages/apps/DocumentsUI/src/com/android/documentsui/files/FilesActivity.java