1340 Commits

Author SHA1 Message Date
Aga Wronska
0ce9af0971 Merge "Suppress tests failing because or permission inconsistency" into nyc-dev 2016-03-14 23:31:36 +00:00
Aga Wronska
7e166888ac Suppress tests failing because or permission inconsistency
Bug: 27653930
Change-Id: I92581b8d048af1a207ca8cf56dea40f17f38f42d
2016-03-14 15:10:56 -07:00
Ben Kwa
57c8ab9c9b Add support for dpads.
Open items when DPAD_CENTER and BUTTON_A are pressed.

BUG=27616153

Change-Id: Ibf00ff2c5cfeb641888ccb7b96a0f4b2e42be11e
2016-03-14 13:56:10 -07:00
Jeff Sharkey
8731408b11 Offer to cache ContentResolver-related Bundles.
There are a handful of core system services that collect data from
third-party ContentProviders by spinning them up and then caching the
results locally in memory.  However, if those apps are killed due to
low-memory pressure, they lose that cached data and have to collect
it again from scratch.  It's impossible for those apps to maintain a
correct cache when not running, since they'll miss out on Uri change
notifications.

To work around this, this change introducing a narrowly-scoped
caching mechanism that maps from Uris to Bundles.  The cache is
isolated per-user and per-calling-package, and internally it's
optimized to keep the Uri notification flow as fast as possible.
Each Bundle is invalidated whenever a notification event for a Uri
key is sent, or when the package hosting the provider is changed.

This change also wires up DocumentsUI to use this new mechanism,
which improves cold-start performance from 3300ms to 1800ms.  The
more DocumentsProviders a system has, the more pronounced this
benefit is.  Use BOOT_COMPLETED to build the cache at boot.

Add more permission docs, send a missing extra in DATA_CLEARED
broadcast.

Bug: 18406595
Change-Id: If3eae14bb3c69a8b83a65f530e081efc3b34d4bc
2016-03-14 11:45:50 -06:00
Steve McKay
0a96dae887 Merge "Run all downloads through trampoline." into nyc-dev 2016-03-12 00:43:45 +00:00
Steve McKay
3e63e7de23 Run all downloads through trampoline.
This guarantees the retry/delete support in the downloads
    trampoline can do its thing.
Allow APKs not in downloads to go directly to pakcage
    manager via VIEW intent.
Add test coverage for retry dialog.

Bug: 27539337

Change-Id: I75c5db8915e24a7648c7990136d39ed86d407637
2016-03-11 16:42:51 -08:00
Steve McKay
178e407181 Minor animation cleanup.
Delete unused animators and add a cautionary warning.

Change-Id: I10c79ccef42147c01e4db256a082dc20b3f30de1
2016-03-11 14:08:35 -08:00
Steve McKay
ce71082254 Centralize animation related resources.
Fix minor bug in animation (use height not width).

Change-Id: I357224086b2732fe9ad49a145db3e82259a87891
2016-03-11 13:50:03 -08:00
Steve McKay
a45612b777 Merge "More snazzy animation for UX happiness." into nyc-dev 2016-03-11 15:42:02 +00:00
Bill Yi
8a9b6827c3 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-11 04:41:44 +00:00
Bill Yi
f5fec3273f Import translations. DO NOT MERGE
Change-Id: I7b062c5a86c4ddd248859b41c335aa74be16e6b3
Auto-generated-cl: translation import
2016-03-10 18:45:30 -08:00
Steve McKay
0ba383693a More snazzy animation for UX happiness.
Slide up/down and fade in/out.

Bug: 26918725
Change-Id: I4ef8e31d3e1f6087369daddbfd0a74bca3ff6937
2016-03-10 18:20:19 -08:00
Aga Wronska
8800f2d314 Merge "Display file names in Media libraries in grid mode" into nyc-dev 2016-03-11 01:23:20 +00:00
Aga Wronska
a0768ff8ee Merge "Open drawer when showing copy/move destination screen" into nyc-dev 2016-03-11 01:15:25 +00:00
Aga Wronska
4d5f9f6a7f Open drawer when showing copy/move destination screen
Bug: 27479369
Change-Id: I0bc7efe88ad47885ecf35fb447cfe5c1f38a10d7
2016-03-10 16:06:32 -08:00
Steve McKay
4064f60831 Merge "Delete downloads activity." into nyc-dev 2016-03-11 00:04:00 +00:00
Aga Wronska
09c07bdf37 Display file names in Media libraries in grid mode
Bug: 26829518
Change-Id: If9e2f331df0233ef114c4147ffbc16214558b5ce
2016-03-10 15:56:43 -08:00
Steve McKay
2c4c90d246 Merge "Fallback to byte-by-byte copy/move if optimized fails." into nyc-dev 2016-03-10 23:18:51 +00:00
Steve McKay
6ce903d7b7 Delete downloads activity.
Delete "MANAGE_ROOT" activity.
Add intent filter for "BROWSE_DOWNLOADS".
Open by default on Downloads directory.

Bug: 27563427
Change-Id: I1f85dc17a0bc94b439a272847e4ab3bb347ead23
2016-03-10 11:34:03 -08:00
Tomasz Mikolajewski
1008a11233 Fallback to byte-by-byte copy/move if optimized fails.
Sometimes providers may refuse to do a provider-side copy/move
even though the documents had the SUPPORTS_COPY/MOVE flags set.

This is because optimized copy/move may be only supported within
the same root.

Since there is no easy way to check if documents are on the same
roots from DocumentsUI, as well as whether the provider can actually
copy/move efficiently between different roots, we should tolerate the
failure and do a fallback to byte-by-byte operation.

Bug: 27436368
Change-Id: Ia1a0fbdba26c06b2151afc25d8513c01d60d31db
2016-03-10 16:48:29 +09:00
Tomasz Mikolajewski
9ab36aa86e Merge "Improve sorting performance by 2.5 times." into nyc-dev 2016-03-10 00:28:24 +00:00
Steve McKay
32c90f1d53 Merge "Make disabled items look disabled." into nyc-dev 2016-03-09 18:35:33 +00:00
Steve McKay
ad2953c8a2 Merge "Fix notification message when moving." into nyc-dev 2016-03-09 18:00:19 +00:00
Steve McKay
df72a43218 Make disabled items look disabled.
Update app to use color-selectors for item text.

Bug: 27246583
Change-Id: I2ba0b89e4640b987da248957f8ba5e6760d1b21d
2016-03-09 09:51:19 -08:00
Geoff Mendal
a61798943a Import translations. DO NOT MERGE
Change-Id: If7a6ec897bf79a8cf93a325ec6957ed79e673787
Auto-generated-cl: translation import
2016-03-09 07:12:47 -08:00
Tomasz Mikolajewski
fccba759d1 Fix notification message when moving.
Bug: 27251085
Change-Id: Ia5683f9745724539f8c5ff7e6e96129e11fa512d
2016-03-09 17:50:43 +09:00
Aga Wronska
91484b4af6 Merge "Add haptic feedback when entering ActionMode" into nyc-dev 2016-03-09 02:25:02 +00:00
Aga Wronska
7d5a247c67 Add haptic feedback when entering ActionMode
Bug: 27357146
Change-Id: I3712a0b077dd8ac8d77a3ec561cc813a4c789cad
2016-03-08 17:58:19 -08:00
Aga Wronska
836202114a Merge "Added word 'selected' to action bar description of selected elements" into nyc-dev 2016-03-09 00:39:39 +00:00
Aga Wronska
91c1a434c1 Added word 'selected' to action bar description of selected elements
Bug: 27296839
Change-Id: I30d3b726f281872da298dbc481a22241fbd45a9a
2016-03-08 16:34:14 -08:00
Steve McKay
67daccc11b Merge "Don't exit selection after sharing and copying..." into nyc-dev 2016-03-08 23:44:01 +00:00
Steve McKay
779c4d38c4 Merge "Suppress Rename tests that fail consistently..." into nyc-dev 2016-03-08 23:42:50 +00:00
Steve McKay
ebc3c60fb9 Merge "Show more menu items on larger devices." into nyc-dev 2016-03-08 23:29:24 +00:00
Steve McKay
da4b8aa3f1 Don't exit selection after sharing and copying...
And after canceled deletes.

Bug: 27135937
Change-Id: I2cd736ce53e15d48b6b00ed1156a2b359f1aeb42
2016-03-08 15:27:20 -08:00
Steve McKay
f830017bd7 Show more menu items on larger devices.
Bug: 27036292, 27406771
Change-Id: I1ceee3c69fbda33a6c51c0ff4f28e52911c1ca7d
2016-03-08 15:15:48 -08:00
Aga Wronska
407e10e25f Merge "Applied Material design rules to calculate drawer width" into nyc-dev 2016-03-08 22:32:42 +00:00
Aga Wronska
5df50368ee Applied Material design rules to calculate drawer width
Bug: 27437727
Change-Id: I2f634815d5e534053e0ed7a66631df9bddf32bd5
2016-03-08 14:22:16 -08:00
Steve McKay
f346796b88 Suppress Rename tests that fail consistently...
on APCT.

Change-Id: I81e464855e16573e536828813b592f7ebc5b464f
2016-03-08 13:14:37 -08:00
Steve McKay
67f50e64e0 Make delete dialog match spec.
Bug: 27535181
Change-Id: Icd2347003747b4e7674048f632dbe47a1607f8b2
2016-03-08 09:25:24 -08:00
Steve McKay
cc90976612 Merge "Suppress tests that are consistently failing..." into nyc-dev 2016-03-08 01:38:52 +00:00
Steve McKay
d38b6f1f70 Merge "Show active downloads in Files app Downloads dir." into nyc-dev 2016-03-08 00:34:53 +00:00
Tomasz Mikolajewski
c05d98f64e Improve sorting performance by 2.5 times.
This CL replaces List<String> with String[], which prevents from
calling get() and set() multiple times within a loop, in favor of
System.arraycopy().

Scanning a directory with 10K files went down from 1200ms to 450ms.

Bug: 27286016
Change-Id: Id533480934f739905a845cb0e13fe862e361b3db
2016-03-08 09:26:55 +09:00
Steve McKay
5b6c9823c5 Merge "Send APKs through safe install path." into nyc-dev 2016-03-07 23:43:55 +00:00
Steve McKay
18d3e853cc Suppress tests that are consistently failing...
on APCT.

Change-Id: I3a3a718b8211a5188130aa698322934bf62d81d1
2016-03-07 15:36:14 -08:00
Steve McKay
9bb98f3121 Send APKs through safe install path.
Basically push them through downloads.ui TrampolineActivity
    to get origin url and referer and other security bits
    added before handing off to package manager.

Bug: 24676446
Change-Id: Id40787ada6ace424c4e5e4bfeedc0a8005b7a734
2016-03-07 14:35:50 -08:00
Steve McKay
75fe6bca49 Show active downloads in Files app Downloads dir.
And permit users to peek into zip files stored in Downloads.
But dont' show active downloads in pickers.

Bug: 26759955
Change-Id: Ib425a79488e953c981ddadeb01a37f6e1d8a8285
2016-03-07 14:17:06 -08:00
Geoff Mendal
0595d78d12 Import translations. DO NOT MERGE
Change-Id: I6e0ba0cb89a831434306e8681b9c66d803394103
Auto-generated-cl: translation import
2016-03-07 07:13:50 -08:00
Guang Zhu
c5a511ad0c fix DocumentsUI tests makefile
For instrumentation test apks, it should not statically include
Java libraries that are already present in the app module being
instrumented. They only need to be on classpath during compile
time.

Bug: 26689464
Change-Id: I68d4be95e30ae70bbab23d016a87eb085c10cc50
2016-03-06 00:47:59 +00:00
Aga Wronska
4730beb85c Changed breadcrumb arrow to match mocks
Bug: 27136601
Change-Id: I03b3d789c1edf8de7f3d92238045cca123ce5e72
2016-03-04 16:12:38 -08:00
Aga Wronska
b6db022312 Made breadcrumb drop down match mocks
Bug: 27136601
Change-Id: I93af07a45defaddd7f5785fac8b686984a889583
2016-03-04 14:05:39 -08:00