1340 Commits

Author SHA1 Message Date
Jeff Sharkey
7732e1e544 Fix RootsCache invalidation bugs.
When RootsCache is still running and it detects a provider/package
change, it needs to force reload roots.  Also fix cache invalidation
bug in ContentService to allow for Uri prefix matches.

Mark internal storage broadcasts with flag to bypass new background
checks.

Bug: 27759529
Change-Id: I9d9c6fe15d8640ff56ae7214afb3bac673682c28
2016-03-30 17:14:25 -06:00
Aga Wronska
973168c142 Action OPEN_DOCUMENT_TREE shows advanced roots ignoring config flag
Fixed: 27856396

Change-Id: I2dc135ac6aa66452edf8bd8439d5e54bcc387070
2016-03-29 10:26:25 -07:00
Tomasz Mikolajewski
21fece7a32 Merge "Add basic jank tests for DocumentsUI." into nyc-dev 2016-03-29 00:45:32 +00:00
Aga Wronska
9d032bd9ab Merge "Add full bar mode for search view on small devices" into nyc-dev 2016-03-28 16:18:57 +00:00
Aga Wronska
b09985639f Add full bar mode for search view on small devices
Fixed: 27406434

Change-Id: I828ff72752cdb35dff453ea405209f169e550c1a
2016-03-28 09:14:47 -07:00
Geoff Mendal
4a29c84990 Import translations. DO NOT MERGE
Change-Id: I841ff855e2ecfa65c2ce1e7432c9f5c67543ad4e
Auto-generated-cl: translation import
2016-03-28 07:18:33 -07:00
Tomasz Mikolajewski
8ee8ebfa63 Add basic jank tests for DocumentsUI.
This CL adds two jank tests:
* For opening a root (directory) with many files.
* For flinging through a directory with many files.

Bug: 27383277
Change-Id: Ie67efe6d5495ff3a8ed63135ed7ec2d4e6262bd2
2016-03-28 19:27:05 +09:00
Bill Yi
d2a620f8bf Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-26 05:02:20 +00:00
Bill Yi
365b39a30f Import translations. DO NOT MERGE
Change-Id: I0c9fd440261f12d31c22fbc6bffc0081a90ab187
Auto-generated-cl: translation import
2016-03-25 19:28:29 -07:00
Aga Wronska
a7329c5133 Merge "Fix copying folders using keyboard shortcuts" into nyc-dev 2016-03-25 18:22:43 +00:00
Aga Wronska
abd321a8c9 Merge "Make pressing 'Back' button open the drawer when in Recents root" into nyc-dev 2016-03-25 18:21:50 +00:00
Aga Wronska
b85ec6d0ee Merge "Revert "Revert "Make status bar translucent. Make drawer appera below status bar."" with a fix for cts tests." into nyc-dev 2016-03-25 16:14:15 +00:00
Daichi Hirono
7352c55e78 Add new metric to DocumentsUI to record launch time.
BUG=27255964

Change-Id: I0bebdb95a0008ce087550849b4ca5fc5ead5c664
2016-03-25 19:04:39 +09:00
Tomasz Mikolajewski
50c8d49d4c Merge "Make the activated root color darker in DocumentsUI for better a11y." into nyc-dev 2016-03-24 09:37:58 +00:00
Tomasz Mikolajewski
588d6934d5 Make the activated root color darker in DocumentsUI for better a11y.
Bug: 27724950
Change-Id: Ie1150aae6e6dabe1dc460a99deec4ccfa48ec080
2016-03-24 17:02:46 +09:00
Daichi Hirono
b2ef9ed7c4 Merge "Use mipmap instead of drawable for app icon of DocumentsUI." into nyc-dev 2016-03-24 02:50:18 +00:00
Aga Wronska
1334376d1d Merge "Add guard to access drawer toolbar when setting accessibility, because this toolbar does not exist in fixed_layout mode." into nyc-dev 2016-03-24 00:43:21 +00:00
Tomasz Mikolajewski
378f409034 Merge "Fix testModelIdIsUnique test in DocumentsUI." into nyc-dev 2016-03-24 00:40:07 +00:00
Aga Wronska
96e30eba1e Make pressing 'Back' button open the drawer when in Recents root
Change-Id: I3c6cbcd3d2d003af1a6459c3bfd193ee45021882
Fixed: 27230999
2016-03-23 17:14:18 -07:00
Aga Wronska
d01aac3a81 Fix copying folders using keyboard shortcuts
Change-Id: I1f7797cfc7d0b564b8c70a26b3eca49b02c0da55
Fixed: 27409583
2016-03-23 16:15:30 -07:00
Aga Wronska
d8f74440c8 Add guard to access drawer toolbar when setting accessibility, because this toolbar does not exist in
fixed_layout mode.

Change-Id: Iaccbdf848b7d1e9ccb7c4cca3afd153a2246e68d
Fixed: 27812831
2016-03-23 15:14:51 -07:00
Aga Wronska
78efc9f3d2 Revert "Revert "Make status bar translucent. Make drawer appera below
status bar."" with a fix for cts tests.

This reverts commit 0574d169ba1e649d8bd54d28ba74b9707e675e37.

Change-Id: I33deeef839092956a67ec31bcdbfbbd540db8b68
2016-03-23 14:47:47 -07:00
Felipe Leme
9eb5555aa6 Merge "Allow Scoped Directory Access on whole volume." into nyc-dev 2016-03-23 17:58:48 +00:00
Geoff Mendal
2daca7a181 Import translations. DO NOT MERGE
Change-Id: I98b04d1538e8c5d6e797f23b2ef195c166cd0a16
Auto-generated-cl: translation import
2016-03-23 07:17:21 -07:00
Tomasz Mikolajewski
2bd66d68d8 Merge "Revert "Make the accent color darker in DocumentsUI for better accessibility."" into nyc-dev 2016-03-23 09:46:20 +00:00
Daichi Hirono
b9129bede2 Merge "Revert "Make status bar translucent. Make drawer appera below status bar."" into nyc-dev 2016-03-23 08:32:01 +00:00
Daichi Hirono
0574d169ba Revert "Make status bar translucent. Make drawer appera below status bar."
This reverts commit 4639136c3b4bc22064323a193f06d6585e1a171a.
The commit breaks the following CTS tests.

 * android.appsecurity.cts.DocumentsTest#testCreateExisting FAIL
 * android.appsecurity.cts.DocumentsTest#testCreateNew FAIL

BUG=27805363,27570567

Change-Id: Ic9f1d98714a78afe548eb5ae9afa118ddc83cccc
2016-03-23 17:29:06 +09:00
Tomasz Mikolajewski
d283221426 Fix testModelIdIsUnique test in DocumentsUI.
The logic changed, so the test had to be updated. Basically we support
multiple authorities only for cursors wrapped with MergeCursor.

Bug: 27742039
Change-Id: If07e1bf52279072e408a90efbe838a1d76adfcfd
2016-03-23 16:41:48 +09:00
Daichi Hirono
c545f5e617 Fix the directory item height in grid view.
BUG=27565668

Change-Id: I3d5615b46542dcd0f22f5e9968d3ee5bfe1af19a
2016-03-23 16:35:32 +09:00
Daichi Hirono
50da0ac660 Use mipmap instead of drawable for app icon of DocumentsUI.
App icon can be redered in various size and mipmap automatically
switches to high-resolution resources regardless of screen size when the
icon is rendered in large size.

BUG=27804140

Change-Id: Ib14a4d8ec8ac601f46510ad50ab18f28408b8fc1
2016-03-23 14:40:05 +09:00
Tomasz Mikolajewski
8ed1e55ea9 Merge "Hide underlying toolbars from TalkBack when covered by ActionMode." into nyc-dev 2016-03-23 01:16:09 +00:00
Aga Wronska
2686d7399d Merge "Bring the change 'Open drawer when showing copy/move destination screen' back after fixing problem with tests." into nyc-dev 2016-03-23 01:15:12 +00:00
Tomasz Mikolajewski
4b9b03e6b2 Revert "Make the accent color darker in DocumentsUI for better accessibility."
We have to change the color only in a specific place,
not the accent color everywhere.

This reverts commit 8e22d69df21e638452d07f5dd12f323fb40059a5.

Change-Id: I6d712fc1d0275f91b20ff90f91450e849cbb1622
2016-03-23 00:58:05 +00:00
Aga Wronska
67c76b960c Bring the change 'Open drawer when showing copy/move destination screen'
back after fixing problem with tests.

Revert "Revert "Open drawer when showing copy/move destination screen""

This reverts commit 82ae18c87784b5989c1529b97214d63e5d9d3742.
Fixed: 27479369

Change-Id: I70f98cf543de889a9a728d8d7233f8e7b077f871
2016-03-22 17:33:15 -07:00
Tomasz Mikolajewski
18bbea9c96 Merge "Update colors for list/grid view." into nyc-dev 2016-03-23 00:20:27 +00:00
Tomasz Mikolajewski
13bcd7b3c3 Merge "Make the accent color darker in DocumentsUI for better accessibility." into nyc-dev 2016-03-23 00:20:05 +00:00
Aga Wronska
a1b1355633 Merge "Change copy/move destination to Downloads when home directory is hidden." into nyc-dev 2016-03-22 23:03:03 +00:00
Aga Wronska
4e62716904 Change copy/move destination to Downloads when home directory is hidden.
Bug: 27791217
Change-Id: If196441a57053ada9875c6cc29d4c7f13fcb57e8
2016-03-22 14:18:43 -07:00
Ben Kwa
dcaf047a41 Merge "DocsUI: Disable debug logging by default." into nyc-dev 2016-03-22 20:01:51 +00:00
Ben Kwa
ffa829f779 DocsUI: Disable debug logging by default.
Per the platform team, we shouldn't enable debug logging automatically
in debug builds because it increases log-spam.  Just disable the flag
and enable it manually when needed.

Add some ifs to make sure all our debug logging is properly removed.

BUG=27380154

Change-Id: I8338f226c07affdb65970c7cb14f1e6aae036934
2016-03-22 11:38:59 -07:00
Ben Kwa
71432a08c6 Merge "DocsUI: Switch the launcher icon to Downloads." into nyc-dev 2016-03-22 17:30:52 +00:00
Ben Kwa
e912e8af99 DocsUI: Switch the launcher icon to Downloads.
Switch to using the "Downloads" icon for this app in the launcher.

BUG=25954736

Change-Id: I44092505b02bccdbe8d49463dbb327f836dd6155
2016-03-22 10:24:57 -07:00
Aga Wronska
5f7d673f3b Merge "Add config flag to show/hide internal storage. Hide internal storage by default." into nyc-dev 2016-03-22 17:04:28 +00:00
Aga Wronska
1363b677b3 Merge "Make status bar translucent. Make drawer appera below status bar." into nyc-dev 2016-03-22 16:27:49 +00:00
Jeff Sharkey
9d9a55be9d Merge "Only enable asserts on userdebug/eng builds." into nyc-dev 2016-03-22 15:13:13 +00:00
Daichi Hirono
5c3a1525b3 Merge "Revert "Open drawer when showing copy/move destination screen"" into nyc-dev 2016-03-22 10:46:45 +00:00
Daichi Hirono
82ae18c877 Revert "Open drawer when showing copy/move destination screen"
This reverts commit 4d5f9f6a7f3b9aa8f7fd1a733ba739e5bfe3ed66.
The CL breaks android.appsecurity.cts.DocumentsTest.

BUG: 27746116, 27479369
Change-Id: Ib9426c54e8c9841f3def55a88e07bf4a2cd7dcac
2016-03-22 19:43:41 +09:00
Tomasz Mikolajewski
1e479abcfd Hide underlying toolbars from TalkBack when covered by ActionMode.
Bug: 27725451
Change-Id: I8479e2438e671e7fb7ef09e0d77963f8cc4d951a
2016-03-22 18:50:52 +09:00
Tomasz Mikolajewski
ace5a78194 Merge "Notify via TalkBack about selected items." into nyc-dev 2016-03-22 09:40:51 +00:00
Tomasz Mikolajewski
52137acd0c Notify via TalkBack about selected items.
Bug: 27723098
Change-Id: I6927b004b3e5a592325646ae3a4663bb298a65c8
2016-03-22 16:43:59 +09:00