1454 Commits

Author SHA1 Message Date
Felipe Leme
8a2d1d9c3d Merge "Polished Scoped Directory Access UI." into nyc-dev 2016-03-16 16:22:20 +00:00
Geoff Mendal
9158196c78 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-16 14:21:48 +00:00
Geoff Mendal
e8ec8bd1f4 Import translations. DO NOT MERGE
Change-Id: I33545a8fee9b65fa3e11fdb86c1b6c9d2bcdc7ec
Auto-generated-cl: translation import
2016-03-16 07:14:47 -07:00
Tomasz Mikolajewski
49ca224623 Reduce memory allocations and improve sorting in DocumentsUI by 8.42%.
Bug: 27286016
Change-Id: Icc84aaaedd396d82f4ca7de63a682deebe1e1b93
2016-03-16 09:59:55 +00:00
Tomasz Mikolajewski
54f264fcdb Merge "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%." into nyc-dev 2016-03-16 09:25:29 +00:00
Tomasz Mikolajewski
d35a974b76 Precompute cursor indexes in DocumentsUI and improve perf by 2.7%.
Bug: 27286016
Change-Id: I0ad852faef46ba9eccc90ca32d8c2ea0e2d5cd98
2016-03-16 16:40:09 +09:00
Daichi Hirono
5551228717 Merge "Move to downloads root instead of home root." into nyc-dev 2016-03-16 04:21:06 +00:00
Felipe Leme
493611f541 Polished Scoped Directory Access UI.
- Set proper style on custom alert dialog view.
- Fixed padding.
- Removed redundant style.
- Fixed checkbox color.

BUG: 26750152

Change-Id: Ibf3984e1b0a092affc58f1377b89b6ab7ea2a3aa
2016-03-15 16:56:15 -07:00
Steve McKay
168e464812 Add FLAG_PARTIAL. Partial files can't be copied.
This allows us to exclude in-progress downloads from copy.
Will update Downloads in a followup CL to flag active downloads.

Bug: 27526321
Change-Id: I50d1db5cfb69bc6b47e10cc0f520a51e3d3cb43e
2016-03-15 16:51:23 -07:00
Felipe Leme
a651601771 Merge "Add a "Do not ask again" checkbox." into nyc-dev 2016-03-15 18:43:48 +00:00
Felipe Leme
adccb9950e Add a "Do not ask again" checkbox.
When an app request access to a scoped directory which the user already
denied access, it will display a "Do not ask again" checkbox; if the
user checks that option, further requests will be automatically
rejected.

The history of denials is stored in the shared property file.

The UI is not polished yet, the style will be fixed in a future change.

BUG: 26750152

Change-Id: I181923adfb6a1c7c1c17e305d6838314280417fc
2016-03-15 11:12:53 -07:00
Tomasz Mikolajewski
c51263be1c Merge "Optimize sorting performance by 7.64% in DocumentsUI." into nyc-dev 2016-03-15 09:32:08 +00:00
Tomasz Mikolajewski
77f0595cd1 Optimize sorting performance by 7.64% in DocumentsUI.
This CL prevents allocating new strings just due to the prefix,
which also simplifies the code.

Bug: 27286016
Change-Id: I3d0ea9e4ede68814c78404bd9ac820b8900851f5
2016-03-15 16:05:59 +09:00
Daichi Hirono
72843c13b6 Move to downloads root instead of home root.
Previously we assume the home root exists always, but while migrating
internal storage, the home root is temporary removed from Android. Since
we open donwnloads root by default now, the CL lets Files app move to
the downloads directory instead of home root when the current directory
is removed.

BUG=27570929

Change-Id: I89efb1ae32ba8ae7269b3242035d5b67114fcb54
2016-03-15 13:14:57 +09:00
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