1394 Commits

Author SHA1 Message Date
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
Tomasz Mikolajewski
87cc84e7d6 Update colors for list/grid view.
Bug: 27578805
Change-Id: Ibddc84cf1d1d577fcb22084aaea5e3a98ffcae3c
2016-03-22 15:49:46 +09:00
Tomasz Mikolajewski
8e22d69df2 Make the accent color darker in DocumentsUI for better accessibility.
Bug: 27724950
Change-Id: I8c44ed6caf2b4e2933f8231e61cfbae00f4feecf
2016-03-22 13:43:06 +09:00
Daichi Hirono
c469585cf7 Merge "Change the title of DocumentsUI from "Files" to "Downloads"." into nyc-dev 2016-03-22 01:20:26 +00:00
Aga Wronska
1719b3555d Add config flag to show/hide internal storage.
Hide internal storage by default.

Revert "Always show intern storage."

This reverts commit 7c4395804e450533afb553ab992c47f737da8a9b.

Bug: 27683276

Change-Id: I04ea8b9a307babcea003f9bec200d41265a42c7f
2016-03-21 17:33:27 -07:00
Jeff Sharkey
33758d8513 Only enable asserts on userdebug/eng builds.
Bug: 27699194
Change-Id: Id20f808448ae94371da62d38387f90ad97e7cbd3
2016-03-21 17:04:07 -06:00
Felipe Leme
db892b84e5 Allow Scoped Directory Access on whole volume.
There are some scenarios where an app needs access to the whole SD Card,
not subdirectories. For example, user might have a SDCard with
directories like vacation_pictures (instead of Pictures/vacation);
another example is a file management app.

BUG: 27676858
Change-Id: I20ef713de7e4dfa7e2d7d07bab11898af186d673
2016-03-21 14:25:17 -07:00
Aga Wronska
4639136c3b Make status bar translucent. Make drawer appera below status bar.
Change-Id: I6089a7b5d88514f5df9212839709d38daeb3be8b
Fixed: 27570567
2016-03-21 10:53:13 -07:00
Geoff Mendal
f2189e945e Import translations. DO NOT MERGE
Change-Id: I032236836b7ce9f766a9f8819a683b9066254737
Auto-generated-cl: translation import
2016-03-21 07:10:50 -07:00
Geoff Mendal
bc0f989cba Import translations. DO NOT MERGE
Change-Id: I97e3392c322f11a08bce3c58e5a1c19736809a80
Auto-generated-cl: translation import
2016-03-19 13:39:18 +05:30
Aga Wronska
15066a4069 Merge "Change enter/exit folder animation speed and delay." into nyc-dev 2016-03-18 23:26:20 +00:00
Jeff Sharkey
9eacb81e83 Merge "Avoid spinning up DocumentsProviders at boot." into nyc-dev 2016-03-18 21:23:19 +00:00
Jeff Sharkey
e090b7963c Avoid spinning up DocumentsProviders at boot.
Bug: 27743087
Change-Id: Ia89465c5d13a74f3b78a0d84f1ecfe5fd2a6e744
2016-03-18 15:22:27 -06:00
Daichi Hirono
2917fa9dd5 Change the title of DocumentsUI from "Files" to "Downloads".
BUG=27683277

Change-Id: I429cae8804b8f318f58039fc63d081c2a864fad0
2016-03-18 17:46:57 +09:00
Aga Wronska
632f91b653 Change enter/exit folder animation speed and delay.
Change-Id: I6150911fdfe331d76171b1806fe776540309405f
Fixed: 27654570
2016-03-17 19:43:09 -07:00
Tomasz Mikolajewski
007151a90d Reduce memory allocations and improve sorting in DocumentsUI by 8.42%.
Reland after a revert. No changes.

Bug: 27286016
Change-Id: I0988062106faf4086c44d9b344649ef2cb86d3e7
2016-03-18 02:15:10 +00:00
Tomasz Mikolajewski
4683d4c914 Merge "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%." into nyc-dev 2016-03-18 01:48:16 +00:00
Aga Wronska
836ed4a582 Merge "Add config flag to hide home directory ("Documents") from the roots list. Make home root hidden by default." into nyc-dev 2016-03-18 00:54:16 +00:00
Tomasz Mikolajewski
2e4e14789e Precompute cursor indexes in DocumentsUI and improve perf by 2.7%.
Relands after a revert, with a tiny fix.

Bug: 27286016
Change-Id: Ifb6cea46a86e8158b05db5dbf87878892c6cc702
2016-03-18 09:48:24 +09:00
Aga Wronska
824ac17ae3 Generate more descriptive delete confirmation message.
Change-Id: I194ef353aec9d2841b5f3fc8dfd76df6286ce969
Fixed: 27489240
2016-03-17 16:44:10 -07:00
Aga Wronska
b4129d785c Add config flag to hide home directory ("Documents") from the roots list.
Make home root hidden by default.

Change-Id: Ia9f97f3cad7ab102d65e01d6e0dd9bc39ab72f21
Fixed: 27683725
2016-03-17 11:57:29 -07:00
Tomasz Mikolajewski
f9845b4ecf Merge "Add a performance test for launching DocumentsUI." into nyc-dev 2016-03-17 08:11:53 +00:00
Tomasz Mikolajewski
5cd060a931 Update comment for compareToIgnoreCaseNullable().
Bug: 27286016
Change-Id: I0ff4d59e24e8afe129aa8a2921d3de71d3df7236
2016-03-17 06:20:12 +00:00
Tomasz Mikolajewski
e46d7f93ad Add a performance test for launching DocumentsUI.
The test launches the DocumentsUI as picker, then waits until the
main thread idles, which guarantees that roots are loaded and UI
rendered.

It confirms, that the recent system cache improves cold start
performance by around 24% on my configuration (from 1685ms to 1357ms).

Bug: 27370274
Change-Id: I738202ea434a7bfe7080fc0994f636ef0e7847cd
2016-03-17 15:12:17 +09:00
Ben Kwa
7705999afd Merge "DocsUI: Don't animate selection changes on all bind events." into nyc-dev 2016-03-16 23:26:52 +00:00
Ben Kwa
db1f58a0a5 Merge "Add delete key support." into nyc-dev 2016-03-16 23:24:44 +00:00
Ben Kwa
e0413ed38a Merge "DocsUI: Don't crash on invalid window sizes." into nyc-dev 2016-03-16 22:52:35 +00:00
Ben Kwa
1a63c613ea DocsUI: Don't crash on invalid window sizes.
Our layout code asserts when passed an (invalid) width of 0.  The assert
is unnecessary as we already handle this situation by always laying out
the content pane with a column count of at least 1.

Also, per Steve, bump the minimum column count in grid mode to 2.

BUG=27150284

Change-Id: I8aa87beaaf4907ef5248999d0c590deef732589f
2016-03-16 15:50:58 -07:00
Aga Wronska
5ecade7512 Merge "Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%." It ia causing tests failures and exception at the app start." into nyc-dev 2016-03-16 20:54:42 +00:00
Ben Kwa
eb61aac503 Add delete key support.
- Pull the action mode up from the ActionMode listener into the
  DirectoryFragment.  There is no way to globally check on action mode,
  so fragment-level coordination on the action mode requires a
  fragment-level variable.

- Add a key handling clause for the delete key.  Unfortunately this
  can't be set up as a shortcut key, because shortcuts all have to be
  modified with the "Ctrl" key.

BUG=27409328

Change-Id: I48d1c87613ee7434728828e3b745fadb3bc915c1
2016-03-16 13:53:07 -07:00
Aga Wronska
f3244e870e Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."
It ia causing tests failures and exception at the app start.

This reverts commit d35a974b76cb0b3387aff7780d101e3f7de2ebd3.

Change-Id: I2577f723a7e25d4dcc12050791c65a900ac41f7d
2016-03-16 13:49:58 -07:00
Ben Kwa
7f245435c5 Merge "Add support for dpads." into nyc-dev 2016-03-16 20:24:09 +00:00
Ben Kwa
415c0627b3 Merge "Fix band selection problems." into nyc-dev 2016-03-16 20:06:14 +00:00
Steve McKay
08e5936485 Merge "Don't allow selection in copy dest picker." into nyc-dev 2016-03-16 20:05:48 +00:00
Ben Kwa
a3c09b4b9b DocsUI: Don't animate selection changes on all bind events.
When directory contents update, this causes all items to be bound, which
can cause flickering even though item selection state hasn't changed.

Add a boolean var to trigger UI animations only when selection changes
are triggered by the selection manager.

BUG=27680153

Change-Id: I892d8111cf3ba7e1610d94af4a1a646f1cdb5546
2016-03-16 12:13:21 -07:00
Steve McKay
88edde4d33 Don't allow selection in copy dest picker.
Bug: 27490262
Change-Id: I1938a900cfd3693739c2ac10b5eea3176a4ca82c
2016-03-16 12:01:52 -07:00
Ben Kwa
c29fd8d149 Fix band selection problems.
BUG=27364174
BUG=27645942

Change-Id: Ib14680db708f1ddf1f5dc9dff8b93b655fa3f123
2016-03-16 11:02:48 -07:00
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