History log of /packages/apps/DocumentsUI/src/com/android/documentsui/base/State.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
27de2306520b8d838358978dc89911b26f00b340 02-Apr-2017 Jon Mann <jonmann@google.com> Added some debugging tools.

Test: verified
Change-Id: Ie043c5ff8209c9aa78480d16a4c710377a0c1bbb
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.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
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.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/base/State.java
2fc1baa865f80e62af2194c27bbc203a205b4cae 16-Nov-2016 Shunta Sato <shunta.sato@sonymobile.com> Fix Download file can't be found in setting's recent folder

Symptom:
Download file can't be found in settings recent folder.

Root cause:
When start explore files from Settings, the intent's mType is set to
DocumentsContract.Root.MIME_TYPE_ITEM. While starting DocumentsUI,
State::acceptMimes will be set to "vnd.android.document/root" aka
DocumentsContract.Root.MIME_TYPE_ITEM. When the user tries to open
'Recent', it will finally use RecentsLoader to load all the recent
files. Before actually loading the recent files, it will use
RootsCache::getMatchingRootsBlocking to get all the matching roots.
In RootsCache::getMatchingRoots, it will check whether the target's
mime matches the State::acceptMimes or not. Since State::acceptMimes
is set to DocumentsContract.Root.MIME_TYPE_ITEM, they (video, audio,
image, etc) will fail this match, as a result, there will be no items
found for 'Recent'.

Solution:
If the mime type is "vnd.android.document/root", we will treat it as
'*/*'

Bug: 35415722
Author: JiongXuan Gao <jiongxuan.xa.gao@sonymobile.com>
Change-Id: I816ce0d55b259a7b26ac3c734990a183cd5ab504
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.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/base/State.java
bc7eb5fc39b5555eedc7d7b3591687343ecda18d 27-Jan-2017 Tomasz Mikolajewski <mtomasz@google.com> Add boilerplate for compressing in DocumentsUI.

This CL adds strings, constants, and classes for compressing, which
for now do the same as copying.

Along the way it does the same to extracting.

Test: Tested manually.
Bug: 20822019
Change-Id: I9866166c635befae59b3fff13125bd563f71936a
(cherry picked from commit 4f2254941c4e495e0653bd2773fc8a2ecc6daef3)
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.java
1dfad7f207dac2c8f623ec54ca161e7a8e807596 22-Dec-2016 Steve McKay <smckay@google.com> Use correct classloader in State CREATOR.

Change-Id: I0bfe34218a2d9806e7493ffd6ecda3543847ce39
Test: Build and run and small and med unit.
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.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
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.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
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.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/src/com/android/documentsui/base/State.java
2d67ee2495903883dae491fc219aba58109901f4 21-Sep-2016 Ben Lin <linben@google.com> Rename DirState -> Config to avoid confusion with State.

Change-Id: Ibe832a52a84a90a24db9ef8c46e5a5df598bfeeb
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.java
d9caa6ab53aa784acaf241c0ded3c4ae2d342bf8 16-Sep-2016 Steve McKay <smckay@google.com> Move State to base and root stuff to roots.

And move Shared to base.
And lots more to base.

Change-Id: I8b01264a329473c13c59f0cd25a320ba73dbd82d
/packages/apps/DocumentsUI/src/com/android/documentsui/base/State.java