1454 Commits

Author SHA1 Message Date
Andrii Kulian
ac94586714 Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev 2016-03-31 00:57:42 +00:00
Felipe Leme
d847b511d3 Merge "Minor tweaks on Scoped Directory Access:" into nyc-dev 2016-03-31 00:49:18 +00:00
Jeff Sharkey
09d77417b1 Merge "Fix RootsCache invalidation bugs." into nyc-dev 2016-03-31 00:27:21 +00:00
Felipe Leme
2ac876945b Minor tweaks on Scoped Directory Access:
- Only allow entire directory access on non-primary volumes.
- Do not display primary storage label on scoped access.

BUG: 27743842
BUG: 27676858
Change-Id: I9884fb1e2df3534fceebc5d5bef44adfb758724c
2016-03-30 16:42:10 -07:00
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
3d6dc3a60a Merge "Add metrics for create directory and rename file operations" into nyc-dev 2016-03-30 22:04:24 +00:00
Aga Wronska
6f000a1a63 Merge "Add metrics for opening the drawer" into nyc-dev 2016-03-30 20:13:51 +00:00
Vladislav Kaznacheev
0e84279947 Update DocumentsUI according to DragStartHelper API changes
Bug: 27810240
Change-Id: I1daed13d6d9cc215a6b1ba4d0ad259a996b0eb5f
2016-03-30 11:14:29 -07:00
Aga Wronska
7dcf81e6fa Add metrics for opening the drawer
Change-Id: I1315463c5217ce47aa7fa40ddd8b8773c7038208
Fixed: 27905111
2016-03-30 11:05:04 -07:00
Aga Wronska
4e8c7f61be Add metrics for create directory and rename file operations
Change-Id: I4814673b4066efa840e1fb52a7549d8c7ebc4f63
Fixed: 27908149
2016-03-30 11:00:03 -07:00
Tomasz Mikolajewski
794306fafe Render thumbnails in DocumentsUI jank tests.
Bug: 27383277
Change-Id: I0b5f267d7dc6c6c426b68f261c470f4ae46367a4
2016-03-30 13:54:44 +09:00
Andrii Kulian
933076d805 Refactor usages of Picture In Picture and Multi Window (1/4)
Bug: 27365860
Change-Id: I1590e430a12ceb84cb83da295e0bf7e4378fea96
2016-03-29 18:39:45 -07:00
Daichi Hirono
c124427880 Merge "Use AppFuse to write document." into nyc-dev 2016-03-30 00:20:39 +00:00
Aga Wronska
198cbf65a4 Fix dialogs layout after keyboard shows up
Change-Id: I58e3984586e33855e95e5c2879e51f565759025b
Fixed: 27900202
2016-03-29 13:37:52 -07: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
Daichi Hirono
f4e7fa8038 Use AppFuse to write document.
Previously MtpDocumentsProvider used pipes to transfer bytes from an
application to the provider when writing a document.  The problem was
application could not ensure that the last chunk of bytes was
successfully written to MTP device, since pipes had been already closed
when the provider transferred bytes to MTP device. Though the provider
encountered an error, the provider could not report the error to an
application.

The CL switches the method to transfer bytes from pipes to AppFuse. Now
application can flush() bytes on the file descriptor, and flush will not
complete until the provider completes writing bytes to MTP device.

Fixed: 23093747
Change-Id: I4e28f8cbf19d6c97e591943349a7535241d768f7
2016-03-29 16:27:59 +09: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