22842 Commits

Author SHA1 Message Date
Daichi Hirono
5551228717 Merge "Move to downloads root instead of home root." into nyc-dev 2016-03-16 04:21:06 +00:00
Steve McKay
709be25f04 Merge "Add FLAG_PARTIAL. Partial files can't be copied." into nyc-dev 2016-03-16 01:37:08 +00: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
Adrian Roos
e49ede4ed4 Merge "Prevent Log.wtf crash in benign case" into nyc-dev 2016-03-15 23:31:13 +00:00
Adrian Roos
6a04cb1efc Prevent Log.wtf crash in benign case
Fixes a crash that happens when you turn of the screen
while moving the finger. Some touches still come in even
when the screen went to sleep. No need to get upset over
those.

Bug: 27595423
Change-Id: If75ae3b6c2c83a87f38daaf8777f89d8c74a9cd1
2016-03-15 15:47:14 -07:00
Felipe Leme
1f7659ba34 Merge "Log received intent." into nyc-dev 2016-03-15 20:53:14 +00:00
Felipe Leme
39355fb5f7 Log received intent.
BUG: 27660862
Change-Id: Ibe49080c15448ac2672f5e1d5eeaf6d9ff8d282e
2016-03-15 13:52:14 -07:00
Felipe Leme
213e355c77 Handle AccountManager failures so Shell doesn't crash.
BUG: 27665208
Change-Id: Iccb6ce810c8e1c93bded58871d7ec220b7d14ba9
2016-03-15 13:21:43 -07:00
Jason Monk
93a075ecdd Merge "Fix crashes during density changes" into nyc-dev 2016-03-15 19:25:21 +00: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
Ian Pedowitz
440ef18fe7 Merge "Revert "Permissions: Get rid of GET_ACCOUNTS"" into nyc-dev 2016-03-15 17:09:53 +00:00
Ian Pedowitz
358e51f3d1 Revert "Permissions: Get rid of GET_ACCOUNTS"
This reverts commit d39600585bcb720d739ef6f0091066e3d4f77765.

Bug: 27665091
Change-Id: I7d017ba7062ac594225229436d2877c7d21fb065
2016-03-15 17:08:27 +00:00
Jason Monk
a9df999963 Fix crashes during density changes
Bug: 27516933
Change-Id: Ibffa2f4d68c8c4aff09e74ee4dfb073d7d7bc8c5
2016-03-15 12:41:13 -04: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
Adrian Roos
7400f82699 Merge "Don't show wallpaper when backdrop is visible" into nyc-dev 2016-03-15 03:26:02 +00:00
Daichi Hirono
aa0fa38432 Merge "Regard timeout as an error in the MtpDocumentsProvider test." into nyc-dev 2016-03-15 02:36:46 +00:00
Daichi Hirono
acb0e27bb3 Regard timeout as an error in the MtpDocumentsProvider test.
Previously if DocumentsProvider found timeout when terminatnig
RootScanner's background thread, it just output it in error log. Thus
the timeout is not regarded as an error in MtpDocumentsProviderTest, and
it makes flaky PipeManagerTest which runs just after
MtpDocumentsProviderTest.

The CL

 * lets MtpDocumentsProvider throw TimeoutException for timeout.
 * removes redundant resumeRootScanner calls to avoid timeout of
   RootScanner#pause.

Also the CL did cleanup the logic that pauses RootScanner when we don't
find any devices. Previously the logic was in
MtpDocumentsProvider#closeInternal but it is not efficient because we
invokes RootScanner#resume just after
MtpDocumentsProvider#closeInternal. Now the CL moves the logic to
RootScanner so that it can pause itself automatically.

BUG=27638500

Change-Id: Ic11bca67c099cbb0f46679db2f035988045d67d6
2016-03-15 11:35:34 +09:00
Adrian Roos
d5c2db630f Don't show wallpaper when backdrop is visible
Hides the wallpaper when it's not needed and fixes
the unlock animation to not unnecessairly show the
wallpaper if neither the Keyguard nor the underlying
app need it.

Also fixes a bug where the enter animation had a background
set, which led to uglyness when no wallpaper is involved.

Bug: 27533740
Change-Id: I667c6f7ca6c0e1ff7e9f793c6ddc13f6da8387b1
2016-03-14 18:55:41 -07:00
Carlos Valdivia
658e4c5ece Merge "Permissions: Get rid of GET_ACCOUNTS" into nyc-dev 2016-03-15 01:36:26 +00:00
Jim Miller
6593c28c31 Merge "Attempt to fix problem where keyguard isn't locking" into nyc-dev 2016-03-15 01:26:17 +00:00
Sudheer Shanka
13e22319e4 Merge "Call preference.setEnabled only after updating disabledByAdmin state." into nyc-dev 2016-03-14 23:51:13 +00: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
Sudheer Shanka
2893302afc Call preference.setEnabled only after updating disabledByAdmin state.
We check the value of disabledByAdmin state in setEnabled, so update it
first before calling setEnabled.

Bug: 27642236
Change-Id: Ie6c805b85a3afb87ffdaad0b80dbadc172b62d49
2016-03-14 14:59:52 -07:00
Jaewan Kim
2f9ac1ad8b Merge "PIP: Update char limit and description for translation" into nyc-dev 2016-03-14 21:52:32 +00:00
Mady Mellor
336d8a8092 Merge "Clean up animation listener when translating notification" into nyc-dev 2016-03-14 21:02:45 +00:00
Jason Monk
5c3b34425d Merge "Tweaks to QS Animation" into nyc-dev 2016-03-14 20:37:18 +00:00
Jason Monk
98196b04ca Tweaks to QS Animation
Bug: 27201532
Change-Id: I1aaea4fd611ae9fc4791994bed452c50ecf3e1cf
2016-03-14 16:36:27 -04:00
Mady Mellor
723f1f996f Clean up animation listener when translating notification
The listener only needs to be added to one of the translating views
but was added to all of them, this CL changes it to add to the
listener to the first view.

This CL also handles cancelling the animation.

Change-Id: Ifda0f7f04bae1608250e9d2f008b4f21c1745bc6
2016-03-14 12:46:13 -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
Geoff Mendal
031d15dd70 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-14 14:43:50 +00:00
Geoff Mendal
422c32e706 Import translations. DO NOT MERGE
Change-Id: I0b6587843dfcdcc35b6f1786182f3f8f69e6a10c
Auto-generated-cl: translation import
2016-03-14 07:32:54 -07:00
Geoff Mendal
d0a559ce5d Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-03-14 14:24:06 +00:00
Geoff Mendal
4e81500ba7 Import translations. DO NOT MERGE
Change-Id: Ibb696b389c27d30115f09d8e0f2d59dcec951c8b
Auto-generated-cl: translation import
2016-03-14 07:22:38 -07:00
Geoff Mendal
03a76f7c9e Import translations. DO NOT MERGE
Change-Id: Iebdb30818688a27d0c8edb60c5686a37e69f3444
Auto-generated-cl: translation import
2016-03-14 07:19:18 -07:00
Daichi Hirono
497b473b8a MtpDocumentsProvider returns mime type from file extension.
File extensions contain more information to determine mime type than MTP
format codes. The CL lets MtpDocumentsProvider return mime type from
file extensions if it's not inconsitent with format code.

BUG=27004954

Change-Id: I08a4a91235b1d3f48e77b70b28c8c5aedf8d601d
2016-03-14 15:30:37 +09:00
Jaewan Kim
eafce4537e PIP: Update char limit and description for translation
This also includes the PIP bound fix.

Bug: 27604658, Bug: 27600435
Change-Id: I57ca971e5ed19475cb8d29e1c838d4defc1e106f
2016-03-14 14:56:57 +09:00
Carlos Valdivia
d39600585b Permissions: Get rid of GET_ACCOUNTS
Second attempt. Still need to add strict mode violation checks and
logging.

Bug: 21901286

This reverts commit bf33bd4d31cfec895c96990525b0cb856407c8d6.

Change-Id: I5d73343544c32ce4fc4c377ba44db8e677a1287d
2016-03-13 17:13:54 -07:00
Nick Kralevich
3972507684 fix spelling
Change-Id: I82e64fa8a64be0fbfda748e6b57b5d339fd6f903
2016-03-12 15:00:50 -08:00
Mady Mellor
466b702cac Merge "Revert "Revert "Improve interaction around showing / hiding the gear behind notifications""" into nyc-dev 2016-03-12 17:50:42 +00:00
Selim Cinek
48103be6a2 Merge "Fixed a bug where the expandhelper was expanding to quickly" into nyc-dev 2016-03-12 01:43:50 +00:00
Selim Cinek
821d6a7735 Fixed a bug where the expandhelper was expanding to quickly
It was expanding even when the xDifference was bigger than the
yDifference.

Bug: 27376558
Change-Id: Ie5faeb40a1b8391ace8822f9f210f519302ca133
2016-03-11 17:24:19 -08:00
Mady Mellor
3a5e8dd820 Revert "Revert "Improve interaction around showing / hiding the gear behind notifications""
This reverts commit 88eca2aa0e707c06731fc273af4e6181ad743c3c.

It additionally fixes an issue with notification scrolling after gear is displayed
by indicating that the user is no longer swiping by calling onDragCancelled

Change-Id: Ieba0cea35bba9c383d8b5fdca08cb5ff083666c3
2016-03-11 17:17:00 -08:00
Selim Cinek
53c9fa98e2 Merge "Fixed a bug where expanding in the bottom stack messed up the whole layout" into nyc-dev 2016-03-12 00:56:11 +00:00
Selim Cinek
4e4cac3031 Fixed a bug where expanding in the bottom stack messed up the whole layout
Bug: 27596737
Change-Id: If6d5f693bbc953962eb2e746a6293d66be3c4373
2016-03-11 16:45:52 -08: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