Commit Graph

248294 Commits

Author SHA1 Message Date
Jim Miller
bcc100aae9 Capture fingerprint statistics for estimating FRR
Fixes bug 29258254

Change-Id: I10620c9bf07e4cdd7df456548b6516b5e1f1f5ee
2016-07-06 14:16:49 -07:00
TreeHugger Robot
c7b1d74ae8 Merge "Disabling account modification on demo users" into nyc-mr1-dev 2016-07-01 01:17:33 +00:00
Yohei Yukawa
d2e046a720 Merge "Automatically grant URI permission as needed." into nyc-mr1-dev 2016-07-01 01:09:56 +00:00
Christopher Tate
9ecf5010d3 Make sure SELinux labels are correct after move-to operations
am: fa7d97fa15

Change-Id: I913e54c6269f75b10b51030d0b2921007107281d
2016-07-01 00:29:33 +00:00
Christopher Tate
fa7d97fa15 Make sure SELinux labels are correct after move-to operations
In some circumstances wallpaper-related files are moved into position,
and must then take proper effect.  Make sure that they have the
correct SELinux labels afterwards to avoid preventing some valid
accesses.

Bug 29469965

Change-Id: I6d7c86be63d568fa0ad8841d109a7ff2149fdd54
2016-07-01 00:16:51 +00:00
fionaxu
8aa4a84bc8 DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours am: f52501d2d4 -s ours am: cbb7b8c7a4 am: c666ebef33 am: 1e1974705b -s ours am: c7824b3de3 am: 0b2c2b2a8c am: b281795c12 am: 17414d65fa -s ours
am: 4ce343881c

Change-Id: Iead6e156fdf407e2cadc992bffd8c2df2322f25f
2016-06-30 23:45:10 +00:00
TreeHugger Robot
4d9af67fe2 Merge "Performance optimizations in generatePackageInfo" into nyc-mr1-dev 2016-06-30 23:38:58 +00:00
Suprabh Shukla
408e0d50bd Disabling account modification on demo users
Added user restriction DISALLOW_MODIFY_ACCOUNTS on demo users

Bug: 29910166
Change-Id: I21c9534a3ae66dc3ab650e2d1a45a65cc8ffbd2a
2016-06-30 16:38:08 -07:00
Felipe Leme
7524b13642 Merge \"Removed warning when objects are added on wrong order.\" into nyc-dev
am: a98e4512df

Change-Id: Ic93707d6cda6dbdeed851f216eedbd4333d483ae
2016-06-30 23:37:24 +00:00
fionaxu
4ce343881c DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours am: f52501d2d4 -s ours am: cbb7b8c7a4 am: c666ebef33 am: 1e1974705b -s ours am: c7824b3de3 am: 0b2c2b2a8c am: b281795c12
am: 17414d65fa  -s ours

Change-Id: Ib23d4fd1ac69446544e866a2f0fdc4c28076d148
2016-06-30 23:34:08 +00:00
Svetoslav Ganov
a98e4512df Merge "Removed warning when objects are added on wrong order." into nyc-dev 2016-06-30 23:28:59 +00:00
Yohei Yukawa
f3806f57a5 Automatically grant URI permission as needed.
With this CL, the system automatically grants a temporary URI permission
to the target application when the IME calls
InputConnection#commitContent() with
InputConnection#INPUT_CONTENT_GRANT_READ_URI_PERMISSION.  The temporary
permission will be revoked by any of the following events:
 - InputContentInfo#releasePermission() is explicitly called by the
   target application.
 - The target application returned false in
   InputConnection#commitContent().
 - All the InputContentInfo instances copied from the original one are
   GC-ed.

If we do not do this and there is an application that forgot to call
that method then there is no way for IME developers to prevent
permission denial from happening in the application except for relaxing
the default permission of the ContentProvider just because of such an
application.

Although application developers are still expected to explicitly call
InputContentInfo#{request,release}Permission(), forgetting to call
InputContentInfo#requestPermission() does not hurt the user anymore.

With this CL, calling InputContentInfo#requestPermission() after calling
InputContentInfo#releasePermission() is also allowed.

Bug: 29892936
Change-Id: Id955435dd2e72549ee7134f46b3c6951581694ad
2016-06-30 16:27:46 -07:00
Teng-Hui Zhu
f509358169 Merge \"Mutate the drawable if a valid state change happen\" into nyc-dev
am: 486c76b5ef

Change-Id: I9c42777b96376ce009a22171911acd29aac15b85
2016-06-30 23:27:21 +00:00
fionaxu
17414d65fa DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours am: f52501d2d4 -s ours am: cbb7b8c7a4 am: c666ebef33 am: 1e1974705b -s ours am: c7824b3de3 am: 0b2c2b2a8c
am: b281795c12

Change-Id: I666bfd00c747b43ef07f90b8ef61b8fe79470312
2016-06-30 23:26:56 +00:00
TreeHugger Robot
24cea93b4a Merge "Allow quick view package to be set via setprop." into nyc-mr1-dev 2016-06-30 23:22:33 +00:00
fionaxu
b281795c12 DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours am: f52501d2d4 -s ours am: cbb7b8c7a4 am: c666ebef33 am: 1e1974705b -s ours am: c7824b3de3
am: 0b2c2b2a8c

Change-Id: I49b57d13076a736f674434403ac2470680fe398a
2016-06-30 23:19:16 +00:00
Felipe Leme
7709041c99 Removed warning when objects are added on wrong order.
append() is used to optimized insertions in the array, but it must
preserve the order of the hashcode array; when it doesn't, it falls back
to append(), but it should not log a warning message

In particular, PendingIntentRecords might have different hashcodes
across different processes.

Fixes: 29912192
Change-Id: I0ab566249829ddb934fd51cf21399b68cb286bd5
2016-06-30 23:19:08 +00:00
Philip Cuadra
e260ba666f Merge "Pinner Service - Pin Camera app on unlock if requested by the config" into nyc-mr1-dev 2016-06-30 23:15:30 +00:00
Tenghui Zhu
486c76b5ef Merge "Mutate the drawable if a valid state change happen" into nyc-dev 2016-06-30 23:12:39 +00:00
Teng-Hui Zhu
ab1cbc2c53 Mutate the drawable if a valid state change happen
In another word, create another cached bitmap, when the current VectorDrawable
will look differently when state changed.

Bug: 29870392
Bug: 29854240

Change-Id: I7a5ef91091e547a930368286defc7ab96aeb9471
(cherry picked from commit 4f1acfb5f5)
2016-06-30 23:11:48 +00:00
fionaxu
0b2c2b2a8c DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours am: f52501d2d4 -s ours am: cbb7b8c7a4 am: c666ebef33 am: 1e1974705b -s ours
am: c7824b3de3

Change-Id: I89dc27d498872a0e4ce539b293f3ffa9f74e38e9
2016-06-30 23:11:22 +00:00
Adrian Roos
78f525b674 Merge \"Fix missing header text in notification groups\" into nyc-dev
am: a275ec269f

Change-Id: Ida3c3f33c63aa904d34c864899ddc8aac0368394
2016-06-30 23:07:39 +00:00
fionaxu
c7824b3de3 DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours am: f52501d2d4 -s ours am: cbb7b8c7a4 am: c666ebef33
am: 1e1974705b  -s ours

Change-Id: Idbdf23dc9c74330080cf55a048d92b0dddafb99e
2016-06-30 23:06:21 +00:00
Adrian Roos
a275ec269f Merge "Fix missing header text in notification groups" into nyc-dev 2016-06-30 23:00:29 +00:00
fionaxu
1e1974705b DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours am: f52501d2d4 -s ours am: cbb7b8c7a4
am: c666ebef33

Change-Id: I8b40b7fbf1c6b2e9fa556c6fc31d81b98e291fdf
2016-06-30 22:57:27 +00:00
fionaxu
c666ebef33 DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours am: f52501d2d4 -s ours
am: cbb7b8c7a4

Change-Id: Iad9b7ca53c003319a89dc3b7091bbbafb94a95dd
2016-06-30 22:51:55 +00:00
Adarsh Fernando
7d03e2736f Docs: Fixed NDK download links for Windows
am: a6a3ca8dac

Change-Id: I2bce5efd608509068f26e91c4cd116bbfe66b2a9
2016-06-30 22:51:18 +00:00
Adrian Roos
9dfb78fab6 Fix missing header text in notification groups
Fixes a case where notification header text could go missing
if a notification view was recycled and previously had a header text.

Reapplying only hid the text without clearing it, so the extraction
logic thought it was still there and hid the text for the children
even though it was not showing for the parent.

Change-Id: I3f96e1e7bebb2f815020d278ad13b2b5d948e63c
Fixes: 29915184
2016-06-30 15:46:15 -07:00
Tenghui Zhu
919e982c3f Merge "Mutate the drawable if a valid state change happen" into nyc-mr1-dev 2016-06-30 22:44:09 +00:00
fionaxu
cbb7b8c7a4 DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352 -s ours
am: f52501d2d4  -s ours

Change-Id: Ibc5076680df923f5edf2a09e4331b75604bd863f
2016-06-30 22:43:10 +00:00
fionaxu
f52501d2d4 DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909
am: a3b851d352  -s ours

Change-Id: I914f9b17db4d515a8d962abb876a2847d2fab6b3
2016-06-30 22:37:24 +00:00
fionaxu
a3b851d352 DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2
am: a0263a9909

Change-Id: Iff18193574eeac7e9d0033025a4fff791ba9ccaa
2016-06-30 22:31:52 +00:00
fionaxu
a0263a9909 DO NOT MERGE revert public api loadSafeLabel
am: f44c73abb2

Change-Id: If7d00ce5ba4955b3511e6bb46670c45927f9e5d2
2016-06-30 22:25:47 +00:00
Philip Cuadra
7cb2f8b7ee Pinner Service - Pin Camera app on unlock if requested by the config
Pin the default camera app on unlock and user switch if the config requests it.
Do not pin an app if there is no default camera app for the intent.

Only pin the app for the MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA
action, not the _SECURE one.  While there could be different apps chosed
for different intents, the belief is most people will choose only one
app.

Pin both apk and odex.  Not all apps will have an odex, so it is not a
fatal error if that isn't pinned.

Bug 28251566

Change-Id: I3387c23c20d2f75c8864e29bdfc312fef6276434
2016-06-30 14:50:18 -07:00
Fyodor Kupolov
5e57a20c09 Performance optimizations in generatePackageInfo
In PM.generatePackageInfo, granted permissions (returned by permissionsState.
getPermissions) are only used if the package has a non-empty list of
requested permissions. Added a shortcut to handle that. In my tests
this shortcut is triggered in ~20% calls to PM.generatePackageInfo.

Also added an early continue in PermissionsState.getPermissions. Calling
hasRuntimePermission was not necessary in 90% cases.
Also changed ArraySet to be created with capacity for all mPermissions --
this is the typical scenario, previously it was going through multiple
grow operations.

Bug: 29879962
Change-Id: Ic4d8914d1c4f4df447deee2e3e3a15a2594e90ef
2016-06-30 14:49:48 -07:00
Makoto Onuki
60efbf2586 Merge "Start shortcuts as if publisher apps did using PendingIntent" into nyc-mr1-dev 2016-06-30 21:45:05 +00:00
Daniel Nishi
d9f0e37dc1 Merge "Add counters for the automatic storage manager." into nyc-mr1-dev 2016-06-30 21:17:18 +00:00
Fyodor Kupolov
5a1f346e2d Merge "Optimized onUnlockUser" into nyc-mr1-dev 2016-06-30 21:06:16 +00:00
Fyodor Kupolov
7877b8add8 Optimized onUnlockUser
Offload work to the handler thread to allow AM to proceed with unlocking
the user.

Also optimized generatePackageInfo by not computing GIDs when GET_GIDS
flag is not set.

Bug: 29619732
Change-Id: Ib9dea53ea0d74038baeed67f21077305da61e46e
2016-06-30 13:53:56 -07:00
TreeHugger Robot
d4ec5df707 Merge "SysUI: Mantain non-weak reference to listener" into nyc-mr1-dev 2016-06-30 20:41:53 +00:00
Andrew Sapperstein
ac44c9ef45 Merge "Update the volume panel to use a system color." into nyc-mr1-dev 2016-06-30 20:26:36 +00:00
TreeHugger Robot
fc27d96bcd Merge "Status bar blacklist: fix items resetting" into nyc-mr1-dev 2016-06-30 20:16:54 +00:00
Yohei Yukawa
8acb1a7570 Merge "Revert "Remove InputContentInfo#requestPermission()"" into nyc-mr1-dev 2016-06-30 19:30:21 +00:00
Yohei Yukawa
79d1c75a3f Revert "Remove InputContentInfo#requestPermission()"
This reverts commit c4b8f36de5.

Having InputContentInfo#requestPermission() should not hurt developers,
but we can polish the behavior in a subsequent CL without changing
the API.

Bug: 29450031
Bug: 29892936
Change-Id: I1b43c19417b643d0c269af860db2d309b73a90d5
2016-06-30 19:24:43 +00:00
Jason Monk
705a4bc623 SysUI: Mantain non-weak reference to listener
Change-Id: Ie11dfac0af90d65baed40f593eb4ffe7ab0cc0e3
Fixes: 29778623
2016-06-30 15:04:11 -04:00
Adarsh Fernando
a6a3ca8dac Docs: Fixed NDK download links for Windows
Bug:29549878
Change-Id: I57415b1353e4a27633a5bce200a73d24f30eee81
2016-06-30 11:52:25 -07:00
Jason Monk
0570e36b3b Status bar blacklist: fix items resetting
Change-Id: Id3f287ce3b0fed4e3a7d0abff5fce025f16d9a1e
Fixes: 27600379
2016-06-30 14:37:10 -04:00
Jason Monk
536a1a2ae7 Merge "QS: Layout and animation refinement" into nyc-mr1-dev 2016-06-30 18:36:02 +00:00
Jason Monk
b46059a1d4 QS: Layout and animation refinement
Bug: 29315917
Fixes: 29879993
Change-Id: I0153e81ff9cd81022958a1baf3531ac5ca6b4144
2016-06-30 14:27:44 -04:00
Geoffrey Pitsch
656b9db5fb Merge "Support trimmed images in BootAnimation" into nyc-mr1-dev 2016-06-30 18:24:16 +00:00