• Home
  • History
  • Annotate
  • only in /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
History log of /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5f2a9babb845129fd9595f6265cda84b30c795c5 26-May-2017 Garfield Tan <xutan@google.com> Apply correct restoring logic.

We need to continue on the work left from last time, rather than blindly
believe everything is restored by Android.

Test: Manual test & auto test.
Bug: 38321082
Change-Id: Ic9f80ab16a203a1526c7d23d86512b841c750366
ctionHandlerTest.java
b9ac9cf6d8c5f9b25436df1bb90c5bf5f929cd7f 16-May-2017 Garfield Tan <xutan@google.com> Add a feature flag for overwrite confirmation dialog.

Showing that dialog breaks one CTS test in NYC ARC++.

Test: Auto tests & manual tests w/o confirmation.

Change-Id: If3a568b4c48e75b302fbc879b2b6ae693fb68c20
ctionHandlerTest.java
1d4e007d7651c7f5f3f7710e60550a8b1ec83c70 09-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Proper refresh when Authentication finishes with Activity.RESULT_OK." into arc-apps
800300826ebb50f5a26393bc966c27fa26e9a16f 02-May-2017 Ben Lin <linben@google.com> Proper refresh when Authentication finishes with Activity.RESULT_OK.

Test: Updated DemoProvider, tested manually and added new unit tests.
Bug: 37876119
Change-Id: I0a8f08ff06e536bf83fb4fcf5e91d765dfe5ccbb
ctionHandlerTest.java
estActivity.java
dbf09882377b4752fe45b1e2282fcbac4dcee60b 20-Apr-2017 Ben Lin <linben@google.com> Move defaultRootUri authority and rootId to resources.

Change-Id: I2bd443d86fa3567fe4eb2ddf4cef575be3e4852e
ctionHandlerTest.java
2e81db6f2030ec6c8dd758c3020ce5db8363bf25 28-Apr-2017 Garfield Tan <xutan@google.com> Fix crash when dragging documents from Recents.

Also not allow user to move from Recents (DnD or Ctrl+X).

Bug: 37712649
Change-Id: I5d63b6359ca478e77479872832f8f759d17c92e6
ctionHandlerTest.java
ff7f3aeec1b4fc7e0b8ddb0e8b6b6e105140f68e 26-Apr-2017 Ben Lin <linben@google.com> Clear separation of RootList Context Menu items and DirList items.

Change-Id: I7f83b21a499de67f628b1fe0cf1582fe70f86c4d
enuManagerTest.java
7a4fa239abefd05d03d2e62c651d7b08f682d8b4 18-Apr-2017 Ben Lin <linben@google.com> Fix running small/medium tests on ARC++ devices.

A lot of our unit tests does not respect Features flag. This CL will
make it so tests now toggle features on/off depending on the config overlay.

Bug: 37358647
Change-Id: I13798c112eb6ff1009aa43b2b5d154e4cd7f9912
ctionHandlerTest.java
9bd4099ee27f8302a06fc66980079f29127318f8 24-Mar-2017 Jon Mann <jonmann@google.com> Refactor RootsCache+RootsAccess to ProvdersCache+ProvdersAccess

Test: verified success
Bug: 34219584
Change-Id: I16d5e7d70240626efc9020bd11b13c778fc2d95e
ctionHandlerTest.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
enuManagerTest.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
enuManagerTest.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
enuManagerTest.java
894d487698ff5c7052f499602fb74ad89f1d2d15 17-Mar-2017 Garfield Tan <xutan@google.com> Add unit tests for picker.ActionHandler.

Bug: 36094136
Change-Id: Ia3fe43ab1046a5cde87732a840fc6c062c8c8d0f
ctionHandlerTest.java
estActivity.java
23ac60cd2b1beb59b6cd760b91c7e1b1f7e8fe49 14-Mar-2017 Garfield Tan <xutan@google.com> Add a confirmation dialog before overwriting a file in picker.

And some related refactoring in picker.

Test: Manually tested and auto tests pass.
Bug: 34339143
Change-Id: I0e87a20819756858f4c4eab70e9191cb525f84d9
ctionHandlerTest.java
ae9375844c27ee532c4a3c73d9d2297884933c1e 09-Mar-2017 Garfield Tan <xutan@google.com> Some refactor around default init location for picker.

* Isolate DocumentStack initialization to a static method. Address
Steve's comment in ag/1971473.
* Move the special init location logic in PickActivity for create and
copy destination action into ActionHandler

Change-Id: I0f5b6d0cf6b83c282ed9e14ae46a05269ac971e7
ctionHandlerTest.java
bab25161824d80657b11ba6db6e9f0ecfc72dfbc 09-Mar-2017 Garfield Tan <xutan@google.com> Initialize the location to recents if we fail to restore stack.

Bug: 36083419
Change-Id: I8da79eb9dd50d69c828472aae725e286d5e1e8a0
ctionHandlerTest.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
ctionHandlerTest.java
estActivity.java
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
ctionHandlerTest.java
317d65f8153822981ac08b944abde72a7db20104 07-Feb-2017 Steve McKay <smckay@google.com> Don't show Documents root by default.

Replace "productivity_device" with "show_documents_root" bit.

Bug: 34678759
Change-Id: I242e833a6d64db27ff1019a5d87e5bc8c1e1ee4a
ctionHandlerTest.java
f8969d63aa9e6d67e594997080f883ec84dfac71 03-Feb-2017 Garfield Tan <xutan@google.com> Add capability to launch to a document in file manager.

Bug: 34944388
Change-Id: I45a93c99eb16560e489950f75b7fb539908e1cc5
ctionHandlerTest.java
f23cbf4610ecc982ae8b6b118ea1f1994cf3afcf 23-Dec-2016 Ben Lin <linben@google.com> Removed all auto-open-drawer logic on app start.

Bug: 32515191
Change-Id: I8c6fa6cc63d891bc29b39e0c3886617ef3b4b39a
ctionHandlerTest.java
fc72617ec69f5e63c9091c47be23097a40288e2e 05-Nov-2016 Garfield Tan <xutan@google.com> Use the new extra to get the initial location.

Also fix some bugs around that and add respective tests.

Bug: 32648422

Change-Id: I9bba32979c7dda4edc7a694efd0ae5b9f272dcc7
ctionHandlerTest.java
20b84e01f3014c19feb9656405c9eb85fd7d8341 22-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Followups to ag/1553792/" into nyc-andromeda-dev
01996bc21961b64ef355325a9ad5c6445c734521 21-Oct-2016 Steve McKay <smckay@google.com> Followups to ag/1553792/

Change-Id: I82f740df648f7fc3657c58fda972d3fdadc01622
enuManagerTest.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
ctionHandlerTest.java
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
ctionHandlerTest.java
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
ctionHandlerTest.java
63bf8135243605949a3bb140167ef91f5c6ae2ae 11-Oct-2016 Garfield Tan <xutan@google.com> Move openContainerDocument() into ActionHandlers.

Change-Id: I48fb6e38993d2aff80b9d218d001c92ba2235e78
ctionHandlerTest.java
d330727aea1282d6ea6371ea197b4f6be41575bf 10-Oct-2016 Garfield Tan <xutan@google.com> Disable "New Folder" context menu item in search.

Add unit tests to cover more cases in context menus.

Bug: 31996780
Change-Id: I73443e09e81f0c747dd057dbc72ea6441cdd447e
enuManagerTest.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
ctionHandlerTest.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
ctionHandlerTest.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
ctionHandlerTest.java
0f5ec83eeee1d68f344c036cdff0c31ff68e6ee8 04-Oct-2016 Steve McKay <smckay@google.com> Add pick ActionHandler test.

Just basic at this point, only covers initial root loaded when picking copy dest.
Pulled OnRootsChangedTask out of BaseActivity.

Address followups from: https://googleplex-android-review.git.corp.google.com/#/c/1505194/

Change-Id: I2bbf418c8c9c6ad34e6f751e4a69e0f4243cc3c9
ctionHandlerTest.java
estActivity.java
8e9125847b29bbb436108c3bfda50a0018c48796 23-Sep-2016 Ben Lin <linben@google.com> On-demand fetch for DocumentInfo when right-click on a root.

RootInfo has information regarding the whole root, but not scoped
narrowly enough for just the top-level document. We need the top level
DocumentInfo to know specifics such as is it writable. This does a fetch
of that when right clicking on a root, and defaults to a timeout of 1000
ms if it takes too long to answer back for whatever reason (Provider
went bad/non-responding, etc).

Bug: 31662523
Change-Id: I2278ea0171fb63a5783f9be619732c857558a1b6
enuManagerTest.java
b285b40dedbde396aea8080c3d09577677bc71bc 22-Sep-2016 Garfield Tan <xutan@google.com> Make root context menu match spec.

Bug: 31345822
Change-Id: Ibec233cde74092ffe055639e97ed6946c5908c0b
enuManagerTest.java
e5d6ca2c7a32c826607d826bdc18f90ca8e8b7da 20-Sep-2016 Steve McKay <smckay@google.com> Inject DirectoryDetails into MenuManager Const.

Rather than passing to *every* method.

Change-Id: I5890891fa8c98b7db542775655b67c270e699886
enuManagerTest.java
2567603749ff84946a888ffbd698c1381b26b5b1 19-Sep-2016 Garfield Tan <xutan@google.com> Move menu managers to respective packages.

Also add some unit tests to cover mixed docs in context menus.

Change-Id: I764383daed21afa5e355d85f807ad4ef1710593e
enuManagerTest.java