1379 Commits

Author SHA1 Message Date
Aga Wronska
6af13300d4 Set status bar color to material_blue_grey_950 as specified by UX.
Change-Id: I010309c5c5aaf312e645a75720e710ef83111952
Fixing: b/27561646
2016-04-06 14:21:56 -07:00
Aga Wronska
48c846368f Revert 'Make Files drawer appear behind system ui bars' because of action mode bug
Fixing: b/27854892
Bug: 27570567

Change-Id: Iefdf2f2a450d80c551027efb35121554503cca3c
2016-04-06 14:03:16 -07:00
Steve McKay
3855e9ce49 Merge "Massage code to better support Files overlay." into nyc-dev 2016-04-06 18:44:59 +00:00
Steve McKay
53f109b39e Massage code to better support Files overlay.
Also, allow "productivity_mode" config to be enabled via intent extra
    as a developement aide.

Bug: 28006206
Change-Id: I7be8d96a0e924f9ce8023347e051d28d69a0eec9
2016-04-06 10:25:02 -07:00
Ben Kwa
2084796e23 Merge "DocsUI: Update the drag shadow to meet UI spec." into nyc-dev 2016-04-06 15:02:04 +00:00
Ben Kwa
e67b0bdf5a DocsUI: Update the drag shadow to meet UI spec.
BUG=27608249

Change-Id: If10f842be4507c5f04e2e91dadcae842610388f2
2016-04-05 15:49:51 -07:00
Jeff Sharkey
e1412415d1 Merge "Invalidate caches when locale changes." into nyc-dev 2016-04-05 21:21:19 +00:00
Bill Yi
0b3aebbe03 Import translations. DO NOT MERGE
Change-Id: I313e43e4b0f2f90265415bfb36ac3316dcb58e00
Auto-generated-cl: translation import
2016-04-05 00:12:38 -07:00
Aga Wronska
2209860597 Merge "Hide 'select all' menu option when ALLOW_MULTIPLE intent is not passed in DocumentsActivity. Make 'select all' select only enabled files." into nyc-dev 2016-04-05 04:34:09 +00:00
Tomasz Mikolajewski
31da1779e7 Merge "Fix perf tests for cold startup." into nyc-dev 2016-04-05 00:33:03 +00:00
Aga Wronska
3210c4d889 Hide 'select all' menu option when ALLOW_MULTIPLE intent is not passed
in DocumentsActivity.
Make 'select all' select only enabled files.

Change-Id: I03326974be46f610622fff14002671e50487e357
Fixing: b/27952285
2016-04-04 17:11:10 -07:00
Jeff Sharkey
a3ebfec731 Invalidate caches when locale changes.
When loading roots for the first time, we're okay using any cached
data from the system, but if the locale changes we need to
force-refresh everything.

Now that we're always using the system cache, we have a nice strong
signal for "empty" versus "not cached" results, so we don't need to
wait around for the first loading pass to finish.

Add logic to invalidate system cache when locale changes, and fix
locking bug.

Bug: 27977906
Change-Id: Ic50083eff360bea887799583f6c9f02c129eec91
2016-04-04 16:46:01 -06:00
Aga Wronska
d42a9bed93 Make Metrics.logKeyboardAction() method take @KeyboardAction type
instead of KeyEvent

Change-Id: Ib9a19532612b679141b6d611e448247d3b0bab23

Fixing: b/27942360
2016-04-04 14:07:27 -07:00
Tomasz Mikolajewski
6a72a0ea9c Fix perf tests for cold startup.
Kiling ia force-stopping was invalidating the entire roots cache.

Bug: 27743087
Change-Id: Ib788cfeaa6e60c40b7277ba7ca0f2371816eded1
2016-04-04 10:34:36 +09:00
Aga Wronska
0614c16b5e Add metrics for keyboard shortcuts
Change-Id: I3a63efd856f25cc33d61b734970675b77645a26d
Fixed: 27942360
2016-04-01 13:34:46 -07:00
Aga Wronska
cf966ae5b5 Add metrics for menu actions
Change-Id: Ic20802730e6068cfe49c277c3378c15ee0ba09fe
Fixed: 27921699
2016-04-01 09:59:48 -07:00
Aga Wronska
9d5aadd5f2 Merge "Add metrics for drag and drop. Add metrics for search." into nyc-dev 2016-04-01 16:51:51 +00:00
Aga Wronska
cf59d32e59 Add comment for FLAG_TRANSLUCENT_STATUS added in CL 898928
Change-Id: I8f4ad4e00c6ce46e61afc087daa890eb90ed18a1
2016-03-31 17:55:44 -07:00
Aga Wronska
b8572b3d50 Merge "Fix dialogs layout after keyboard shows up" into nyc-dev 2016-03-31 23:54:11 +00:00
Aga Wronska
c573bec8cf Add metrics for drag and drop.
Add metrics for search.

Change-Id: I77cb1d13360d764556730303eeb44e14e917b0fa
Fixed: 27940726
2016-03-31 16:39:56 -07:00
Aga Wronska
69e852d759 Fix search view tests on handheld devices
Change-Id: If7107e23e93989f040abf7f909b4134b0035b8e4
2016-03-31 13:31:24 -07:00
Bill Yi
a41213f87d Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-31 04:17:54 +00:00
Bill Yi
e9170af379 Import translations. DO NOT MERGE
Change-Id: If1d2bc9f9f2e22b73c1b093f680f55dbdd67ca42
Auto-generated-cl: translation import
2016-03-30 20:03:30 -07:00
Aga Wronska
276dcd7314 Merge "Add menu option to show/hide internal storage." into nyc-dev 2016-03-31 01:39:12 +00:00
Aga Wronska
774cc932fc Add menu option to show/hide internal storage.
This reverts commit 7c4395804e450533afb553ab992c47f737da8a9b.

Bug: 27683276
Change-Id: Id1a310b57ab7fa3c8c14b464786473f211eaf41f
2016-03-30 18:23:10 -07:00
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