Add a "UiBot" class for driving the UI from tests.
Add a "DocumentsProviderHelper" class for convenient test doc setup.
Update FilesActivityUiTest to use "TargetContext" which is
necessary in order to perform ContentProvider
operations.
Fix a bug where CopyTest relied on implicit order of roots.
Don't include guava in tests...since it breaks functional tests (incompatible class def).
Add test coverage for:
- basic roots list.
- basic files list.
- Live updates to files list.
- basic delete operations.
Bug: 24988170
Change-Id: I2ec01a5e1a474314cb33efb6e92df0f61dfcc1da
NOTE: This is currently broken at the point I try to init files in the stub roots.
Implement a custom ItemAnimator to enable focus to persist across change
animations in the DirectoryFragment's RecyclerView.
Note that this is a temporary stop-gap - a better fix would be to have
the RecyclerView restore focus to the appropriate item after a change
animation.
BUG=24802917
Change-Id: I4e4e6f758a2ea87e6235533860863c822d71a27a
Create a new "Manage" tuner for Downloads.
Aiming to reduce the single-file complexity of DirectoryFragment.
Change-Id: I22b04f776fbd1fdc02ca54083cb1e144eda60799
Adds a bare bones test provider with dummy data.
This is basically just the bones of a test at this point.
Has just one simple test...switch list/grid modes.
Will add more tests (like manipulating the dummy data) in future CLs.
Bug: 24988170
Change-Id: Icc25718a416bc804874835c74a6d7862a52c9861
Also, apply delete in reverse order to placate RecyclerView.
TODO: Refactor this whole stack...needs some love.
Bug: 25091323, 24749296
Change-Id: I84e21c16423048bd50cd988eb1e2a36dc62b9d16
- Add a click handler that basically handles all cases (including the
enter key) of Items being clicked.
- Open the focused file in non-select mode, toggle selection if in
selection mode.
- Remove now-redundant onSingleTapUp handlers.
- Redo focus indicator, since it's now possible to toggle selection on
the focused file.
- Don't dismiss selection on arrow-key navigation.
BUG=24705453
BUG=25114155
Change-Id: Iba74188514ecf2bc6b56573087e3c3ccc83f85d2
Otherwise there is a really rare race condition where we try tearing
down the tasks while we're still setting them up.
Bug: 25078914
Change-Id: Icf89241f9abec3fadc8606cfb4fbc029bbe91515
DirectoryFragment now uses an independent gesture detector.
Move early event-handling logic out of listener into the handler class.
Change-Id: Ie8a01b1507c8a8aa74355ead38feb7b802029540
Define the package in config...suitable for setup via overlay.
Undefined by default makes the feature disabled on phones...n stuff.
Fall back to single-file QUICK_VIEW.
Work around 24963914 (for now).
Bug: 24963914
Change-Id: Ia9c5a606d294ae053fd5e60d015f0aa0010eba4f
- Move the key listener from BaseActivity into DirectoryFragment, where it
belongs.
- Add code to detect the shift key during keyboard navigation, and
extend the selection in that case.
BUG=20859059
Change-Id: Ia7d3c7d4343f0185873deeaf1a35028a716b6e19
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
Temporary fix for CTS.
Eventually we'll need to update UiAutomator to support specific input tooltypes.
Bug: 24544391
Change-Id: Ief339d0d35c4305811928e9605b535c7ef230f7b