History log of /packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.java
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
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.java
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
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.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
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.java
894d487698ff5c7052f499602fb74ad89f1d2d15 17-Mar-2017 Garfield Tan <xutan@google.com> Add unit tests for picker.ActionHandler.

Bug: 36094136
Change-Id: Ia3fe43ab1046a5cde87732a840fc6c062c8c8d0f
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.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/tests/common/com/android/documentsui/TestActivity.java
e9abd2d49b31535c6c3f52fa439e48ab5e22451f 06-Dec-2016 Ben Lin <linben@google.com> Crash fix for accessing DocumentInfo.derivedUri when in Recents.

Bug: 33371320
Change-Id: Ib04dfce6073dc03e4a3711f767b52de05174748a
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.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
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.java
63bf8135243605949a3bb140167ef91f5c6ae2ae 11-Oct-2016 Garfield Tan <xutan@google.com> Move openContainerDocument() into ActionHandlers.

Change-Id: I48fb6e38993d2aff80b9d218d001c92ba2235e78
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.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/tests/common/com/android/documentsui/TestActivity.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/tests/common/com/android/documentsui/TestActivity.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
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.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/tests/common/com/android/documentsui/TestActivity.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/tests/common/com/android/documentsui/TestActivity.java
09404b3e765ec99e4db30dbddf4aed5524b8523e 30-Sep-2016 Steve McKay <smckay@google.com> Add test for loading init location from rootUri.

Bug: 31858715
Change-Id: I51130d15a545526d6ba5101edaa4fbeb58f3e229
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.java
988d8a354b00dce7e24deee187c08a4591956ac9 27-Sep-2016 Steve McKay <smckay@google.com> Move launch logic into ActionHandlers.

Add test.
Add RootsAccess interface to RootsCache (to faciliate testing).
Create a new TestEnv class that:
* bootstaps basic data and dependencies
* installs test executor so async tasks can be executed predictably.
* instruments main thread to ensure AsyncTasks return results
before we continue to make asserts.
Add new Lookup interface to provide improved semantics over j.u.f.Function.
Inject access to Provider specific Executors by way of Lookup.

Change-Id: I0fc71897a4cc40d26c5fa3ae3bb88bad7dbdcf5c
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/TestActivity.java