OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Merge \"Delete the NDK docs from Git. They\'re now in Piper, as per: https...
Android Build Merger (Role) [Fri, 1 Jul 2016 19:17:34 +0000 (19:17 +0000)]
Merge "Merge \"Delete the NDK docs from Git. They\'re now in Piper, as per: https://critique.corp.google.com/#review/126357681\" into nyc-dev am: 5460fef952" into nyc-mr1-dev

7 years agoMerge "Fix navigation bar order in seascape" into nyc-mr1-dev
Adrian Roos [Fri, 1 Jul 2016 19:17:13 +0000 (19:17 +0000)]
Merge "Fix navigation bar order in seascape" into nyc-mr1-dev

7 years agoMerge \"Delete the NDK docs from Git. They\'re now in Piper, as per: https://critique...
smain@google.com [Fri, 1 Jul 2016 19:17:10 +0000 (19:17 +0000)]
Merge \"Delete the NDK docs from Git. They\'re now in Piper, as per: https://critique.corp.google.com/#review/126357681\" into nyc-dev
am: 5460fef952

Change-Id: I7c9c8b7091a974b01b72cf192651f3c44ed7ee87

7 years agoMerge "Delete the NDK docs from Git. They're now in Piper, as per: https://critique...
Scott Main [Fri, 1 Jul 2016 19:07:29 +0000 (19:07 +0000)]
Merge "Delete the NDK docs from Git. They're now in Piper, as per: https://critique.corp.google.com/#review/126357681" into nyc-dev

7 years agoMerge "null check jarfile before using" into nyc-mr1-dev
TreeHugger Robot [Fri, 1 Jul 2016 19:00:55 +0000 (19:00 +0000)]
Merge "null check jarfile before using" into nyc-mr1-dev

7 years agoMerge "Use category DEFAULT home actions" into nyc-mr1-dev
TreeHugger Robot [Fri, 1 Jul 2016 17:48:34 +0000 (17:48 +0000)]
Merge "Use category DEFAULT home actions" into nyc-mr1-dev

7 years agoMerge \"Revert \"Revert \"docs: Add Videos section to N Preview landing page\"\"...
Joe Fernandez [Fri, 1 Jul 2016 17:39:50 +0000 (17:39 +0000)]
Merge \"Revert \"Revert \"docs: Add Videos section to N Preview landing page\"\"\" into nyc-dev
am: 9dc8ede619

Change-Id: Ib67ebea43044f8866f81234f966bfced4242afc7

7 years agoMerge "Revert "Revert "docs: Add Videos section to N Preview landing page""" into...
Joe Fernandez [Fri, 1 Jul 2016 17:28:40 +0000 (17:28 +0000)]
Merge "Revert "Revert "docs: Add Videos section to N Preview landing page""" into nyc-dev

7 years agonull check jarfile before using
Todd Kennedy [Fri, 1 Jul 2016 17:20:20 +0000 (10:20 -0700)]
null check jarfile before using

Bug: 29937423
Change-Id: I14f8530523bedf6c287a7f89d3e54919d98454c9

7 years agoMerge "Make sure re-published dynamic shortcuts are always enabled" into nyc-mr1-dev
Makoto Onuki [Fri, 1 Jul 2016 16:40:24 +0000 (16:40 +0000)]
Merge "Make sure re-published dynamic shortcuts are always enabled" into nyc-mr1-dev

7 years agoMerge "ShortcutManager: Make sure persisted default launcher still exists." into...
Makoto Onuki [Fri, 1 Jul 2016 16:32:39 +0000 (16:32 +0000)]
Merge "ShortcutManager: Make sure persisted default launcher still exists." into nyc-mr1-dev

7 years agoMerge \\\\"Always apply config updates.\\\\" into mnc-dr-dev am: f437bd068c am: 2a448...
Julia Reynolds [Fri, 1 Jul 2016 16:29:42 +0000 (16:29 +0000)]
Merge \\\\"Always apply config updates.\\\\" into mnc-dr-dev am: f437bd068c am: 2a44859c21 am: 005394cd01  -s ours
am: 7e2ae2b143

Change-Id: I17b031b52b826bb288090bc737a41a8863cbde95

7 years agoMerge \\\"Always apply config updates.\\\" into mnc-dr-dev am: f437bd068c am: 2a44859c21
Julia Reynolds [Fri, 1 Jul 2016 16:23:48 +0000 (16:23 +0000)]
Merge \\\"Always apply config updates.\\\" into mnc-dr-dev am: f437bd068c am: 2a44859c21
am: 005394cd01  -s ours

Change-Id: I45ff9548eb6091ecbcf9e45e0fddb2cbcebc889d

7 years agoMerge "QS: Make edit non-clickable when collapsed" into nyc-mr1-dev
TreeHugger Robot [Fri, 1 Jul 2016 16:06:22 +0000 (16:06 +0000)]
Merge "QS: Make edit non-clickable when collapsed" into nyc-mr1-dev

7 years agoMerge "Add metrics for toll-free/travel-abroad buttons in Settings" into nyc-mr1-dev
Fan Zhang [Fri, 1 Jul 2016 16:04:12 +0000 (16:04 +0000)]
Merge "Add metrics for toll-free/travel-abroad buttons in Settings" into nyc-mr1-dev

7 years agoMerge "Prevent PrintRegistry callbacks when finishing" into nyc-mr1-dev
TreeHugger Robot [Fri, 1 Jul 2016 15:41:59 +0000 (15:41 +0000)]
Merge "Prevent PrintRegistry callbacks when finishing" into nyc-mr1-dev

7 years agoMerge "N MR1 is API 25" into nyc-mr1-dev
TreeHugger Robot [Fri, 1 Jul 2016 15:34:12 +0000 (15:34 +0000)]
Merge "N MR1 is API 25" into nyc-mr1-dev

7 years agoMerge \\"Always apply config updates.\\" into mnc-dr-dev am: f437bd068c
Julia Reynolds [Fri, 1 Jul 2016 15:31:52 +0000 (15:31 +0000)]
Merge \\"Always apply config updates.\\" into mnc-dr-dev am: f437bd068c
am: 2a44859c21

Change-Id: I1462c5cc78001f6be749f518c861c7fcc771f90f

7 years agoMerge \"Always apply config updates.\" into mnc-dr-dev
Julia Reynolds [Fri, 1 Jul 2016 15:26:58 +0000 (15:26 +0000)]
Merge \"Always apply config updates.\" into mnc-dr-dev
am: f437bd068c

Change-Id: I899b923c075a5f3351c4791a23a94adf123d1247

7 years agoMerge "Always apply config updates." into mnc-dr-dev
Julia Reynolds [Fri, 1 Jul 2016 15:21:23 +0000 (15:21 +0000)]
Merge "Always apply config updates." into mnc-dr-dev

7 years agoMerge changes from topic 'networkrequest_private' into nyc-mr1-dev
Lorenzo Colitti [Fri, 1 Jul 2016 15:12:52 +0000 (15:12 +0000)]
Merge changes from topic 'networkrequest_private' into nyc-mr1-dev

* changes:
  Make the NetworkRequest list private to NetworkAgentInfo.
  Move the request type from NetworkRequestInfo to NetworkRequest.

7 years agoQS: Make edit non-clickable when collapsed
Jason Monk [Fri, 1 Jul 2016 14:25:16 +0000 (10:25 -0400)]
QS: Make edit non-clickable when collapsed

Change-Id: I44e289b3692a41f7cdc1491c1d45c446612546ee
Fixes: 29521073

7 years agoUse category DEFAULT home actions
Todd Kennedy [Fri, 1 Jul 2016 13:55:41 +0000 (06:55 -0700)]
Use category DEFAULT home actions

When querying for activities that support action HOME, only consider
those that also have category DEFAULT.

Bug: 29899206
Change-Id: I0cd95c90dff5ed90896205eb6c0ec9be1306eb25

7 years agoN MR1 is API 25
Michael Wright [Wed, 29 Jun 2016 14:47:16 +0000 (15:47 +0100)]
N MR1 is API 25

Also, finalize resource IDs for N MR1

Bug: 29816674
Change-Id: Ie880adb2544f4e2e32b439fe975a68a3928e6fe5

7 years agoMerge "add neko metrics" into nyc-mr1-dev
Chris Wren [Fri, 1 Jul 2016 13:41:35 +0000 (13:41 +0000)]
Merge "add neko metrics" into nyc-mr1-dev

7 years agoMerge "QS: Fix clipping for some font sizes" into nyc-mr1-dev
Jason Monk [Fri, 1 Jul 2016 13:25:09 +0000 (13:25 +0000)]
Merge "QS: Fix clipping for some font sizes" into nyc-mr1-dev

7 years agoMerge "Quick settings icons have focus" into nyc-mr1-dev
TreeHugger Robot [Fri, 1 Jul 2016 13:24:29 +0000 (13:24 +0000)]
Merge "Quick settings icons have focus" into nyc-mr1-dev

7 years agoMake the NetworkRequest list private to NetworkAgentInfo.
Lorenzo Colitti [Thu, 30 Jun 2016 16:37:11 +0000 (01:37 +0900)]
Make the NetworkRequest list private to NetworkAgentInfo.

This allows us to keep track of how many live requests a network
is satisfying without having to count them every time.

Bug: 23113288
Change-Id: Ic4756676491e09071dbf80b7c48da3be028d68eb

7 years agoMove the request type from NetworkRequestInfo to NetworkRequest.
Lorenzo Colitti [Fri, 1 Jul 2016 04:19:21 +0000 (13:19 +0900)]
Move the request type from NetworkRequestInfo to NetworkRequest.

This will allow us to simplify code that deals with
NetworkRequests outside ConnectivityService.

Bug: 23113288
Change-Id: I9b3a859d0c68cad73d7f6baa4b584d13ffd2ae36

7 years agoMerge "Disabling account modification on demo users" into nyc-mr1-dev
TreeHugger Robot [Fri, 1 Jul 2016 01:17:32 +0000 (01:17 +0000)]
Merge "Disabling account modification on demo users" into nyc-mr1-dev

7 years agoMerge "Automatically grant URI permission as needed." into nyc-mr1-dev
Yohei Yukawa [Fri, 1 Jul 2016 01:09:54 +0000 (01:09 +0000)]
Merge "Automatically grant URI permission as needed." into nyc-mr1-dev

7 years agoShortcutManager: Make sure persisted default launcher still exists.
Makoto Onuki [Thu, 30 Jun 2016 00:34:02 +0000 (17:34 -0700)]
ShortcutManager: Make sure persisted default launcher still exists.

- Also make sure to ignore unexported activities.
(e.g. unexported activities shouldn't have shortcuts.)

- Also add unit tests for package manager related operations.

- Also remove stale TODOs (per-activity shortcut count check is
implemented already.)

Bug 29699769
Bug 29516954

Change-Id: Ia18301baf6bec1ad71ae195d9ae3d10bd8386fc4

7 years agoMake sure SELinux labels are correct after move-to operations
Christopher Tate [Fri, 1 Jul 2016 00:29:33 +0000 (00:29 +0000)]
Make sure SELinux labels are correct after move-to operations
am: fa7d97fa15

Change-Id: I913e54c6269f75b10b51030d0b2921007107281d

7 years agoMake sure SELinux labels are correct after move-to operations
Christopher Tate [Thu, 30 Jun 2016 19:21:57 +0000 (12:21 -0700)]
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

7 years agoMake sure re-published dynamic shortcuts are always enabled
Makoto Onuki [Fri, 1 Jul 2016 00:07:25 +0000 (17:07 -0700)]
Make sure re-published dynamic shortcuts are always enabled

- Originally there was explicit code to take over the disabled flag,
which was simply not necessary.

- Also fix the startShortcut() tests that have temporarily
been disabled.

(Also remove the stale TODOs to avoid conflict with Ia18301ba)

Bug 29633681

Change-Id: I58b12ad6918d7fef4b79059b0c2c7f2df6e32269

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 23:45:10 +0000 (23:45 +0000)]
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

7 years agoAdd metrics for toll-free/travel-abroad buttons in Settings
Fan Zhang [Thu, 30 Jun 2016 19:26:55 +0000 (12:26 -0700)]
Add metrics for toll-free/travel-abroad buttons in Settings

Bug: 29105266
Change-Id: I44cf2bdc3b01d0755e0305e8c26e6bf871ae9d52

7 years agoDelete the NDK docs from Git.
smain@google.com [Thu, 30 Jun 2016 23:41:03 +0000 (16:41 -0700)]
Delete the NDK docs from Git.
They're now in Piper, as per:
https://critique.corp.google.com/#review/126357681

Change-Id: I734d730d0e631b6ceae0d931fe639bcb83a762ec

7 years agoMerge "Performance optimizations in generatePackageInfo" into nyc-mr1-dev
TreeHugger Robot [Thu, 30 Jun 2016 23:38:57 +0000 (23:38 +0000)]
Merge "Performance optimizations in generatePackageInfo" into nyc-mr1-dev

7 years agoDisabling account modification on demo users
Suprabh Shukla [Thu, 30 Jun 2016 23:32:20 +0000 (16:32 -0700)]
Disabling account modification on demo users

Added user restriction DISALLOW_MODIFY_ACCOUNTS on demo users

Bug: 29910166
Change-Id: I21c9534a3ae66dc3ab650e2d1a45a65cc8ffbd2a

7 years agoMerge \"Removed warning when objects are added on wrong order.\" into nyc-dev
Felipe Leme [Thu, 30 Jun 2016 23:37:24 +0000 (23:37 +0000)]
Merge \"Removed warning when objects are added on wrong order.\" into nyc-dev
am: a98e4512df

Change-Id: Ic93707d6cda6dbdeed851f216eedbd4333d483ae

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 23:34:08 +0000 (23:34 +0000)]
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

7 years agoMerge "Removed warning when objects are added on wrong order." into nyc-dev
Svetoslav Ganov [Thu, 30 Jun 2016 23:28:58 +0000 (23:28 +0000)]
Merge "Removed warning when objects are added on wrong order." into nyc-dev

7 years agoAutomatically grant URI permission as needed.
Yohei Yukawa [Thu, 30 Jun 2016 23:27:46 +0000 (16:27 -0700)]
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

7 years agoMerge \"Mutate the drawable if a valid state change happen\" into nyc-dev
Teng-Hui Zhu [Thu, 30 Jun 2016 23:27:21 +0000 (23:27 +0000)]
Merge \"Mutate the drawable if a valid state change happen\" into nyc-dev
am: 486c76b5ef

Change-Id: I9c42777b96376ce009a22171911acd29aac15b85

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 23:26:56 +0000 (23:26 +0000)]
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

7 years agoMerge "Allow quick view package to be set via setprop." into nyc-mr1-dev
TreeHugger Robot [Thu, 30 Jun 2016 23:22:31 +0000 (23:22 +0000)]
Merge "Allow quick view package to be set via setprop." into nyc-mr1-dev

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 23:19:16 +0000 (23:19 +0000)]
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

7 years agoRemoved warning when objects are added on wrong order.
Felipe Leme [Thu, 30 Jun 2016 23:09:13 +0000 (16:09 -0700)]
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

7 years agoMerge "Pinner Service - Pin Camera app on unlock if requested by the config" into...
Philip Cuadra [Thu, 30 Jun 2016 23:15:29 +0000 (23:15 +0000)]
Merge "Pinner Service - Pin Camera app on unlock if requested by the config" into nyc-mr1-dev

7 years agoMerge "Mutate the drawable if a valid state change happen" into nyc-dev
Tenghui Zhu [Thu, 30 Jun 2016 23:12:37 +0000 (23:12 +0000)]
Merge "Mutate the drawable if a valid state change happen" into nyc-dev

7 years agoMutate the drawable if a valid state change happen
Teng-Hui Zhu [Wed, 29 Jun 2016 23:56:40 +0000 (16:56 -0700)]
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 4f1acfb5f507798daaff2ff0da47d2b15607ded4)

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 23:11:22 +0000 (23:11 +0000)]
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

7 years agoFix navigation bar order in seascape
Adrian Roos [Wed, 29 Jun 2016 20:04:54 +0000 (13:04 -0700)]
Fix navigation bar order in seascape

Change-Id: I4a4edb05f6fdeabc45609fc29aae1c01baed37ab
Fixes: 29612635

7 years agoMerge \"Fix missing header text in notification groups\" into nyc-dev
Adrian Roos [Thu, 30 Jun 2016 23:07:39 +0000 (23:07 +0000)]
Merge \"Fix missing header text in notification groups\" into nyc-dev
am: a275ec269f

Change-Id: Ida3c3f33c63aa904d34c864899ddc8aac0368394

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 23:06:21 +0000 (23:06 +0000)]
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

7 years agoMerge "Fix missing header text in notification groups" into nyc-dev
Adrian Roos [Thu, 30 Jun 2016 23:00:27 +0000 (23:00 +0000)]
Merge "Fix missing header text in notification groups" into nyc-dev

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 22:57:27 +0000 (22:57 +0000)]
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

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 22:51:55 +0000 (22:51 +0000)]
DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352  -s ours am: f52501d2d4  -s ours
am: cbb7b8c7a4

Change-Id: Iad9b7ca53c003319a89dc3b7091bbbafb94a95dd

7 years agoDocs: Fixed NDK download links for Windows
Adarsh Fernando [Thu, 30 Jun 2016 22:51:18 +0000 (22:51 +0000)]
Docs: Fixed NDK download links for Windows
am: a6a3ca8dac

Change-Id: I2bce5efd608509068f26e91c4cd116bbfe66b2a9

7 years agoFix missing header text in notification groups
Adrian Roos [Thu, 30 Jun 2016 22:43:44 +0000 (15:43 -0700)]
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

7 years agoMerge "Mutate the drawable if a valid state change happen" into nyc-mr1-dev
Tenghui Zhu [Thu, 30 Jun 2016 22:44:07 +0000 (22:44 +0000)]
Merge "Mutate the drawable if a valid state change happen" into nyc-mr1-dev

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851...
fionaxu [Thu, 30 Jun 2016 22:43:10 +0000 (22:43 +0000)]
DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909 am: a3b851d352  -s ours
am: f52501d2d4  -s ours

Change-Id: Ibc5076680df923f5edf2a09e4331b75604bd863f

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909
fionaxu [Thu, 30 Jun 2016 22:37:24 +0000 (22:37 +0000)]
DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2 am: a0263a9909
am: a3b851d352  -s ours

Change-Id: I914f9b17db4d515a8d962abb876a2847d2fab6b3

7 years agoDO NOT MERGE revert public api loadSafeLabel am: f44c73abb2
fionaxu [Thu, 30 Jun 2016 22:31:52 +0000 (22:31 +0000)]
DO NOT MERGE revert public api loadSafeLabel am: f44c73abb2
am: a0263a9909

Change-Id: Iff18193574eeac7e9d0033025a4fff791ba9ccaa

7 years agoDO NOT MERGE revert public api loadSafeLabel
fionaxu [Thu, 30 Jun 2016 22:25:47 +0000 (22:25 +0000)]
DO NOT MERGE revert public api loadSafeLabel
am: f44c73abb2

Change-Id: If7d00ce5ba4955b3511e6bb46670c45927f9e5d2

7 years agoPinner Service - Pin Camera app on unlock if requested by the config
Philip Cuadra [Wed, 15 Jun 2016 23:23:43 +0000 (16:23 -0700)]
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

7 years agoPerformance optimizations in generatePackageInfo
Fyodor Kupolov [Thu, 30 Jun 2016 21:48:22 +0000 (14:48 -0700)]
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

7 years agoMerge "Start shortcuts as if publisher apps did using PendingIntent" into nyc-mr1-dev
Makoto Onuki [Thu, 30 Jun 2016 21:45:03 +0000 (21:45 +0000)]
Merge "Start shortcuts as if publisher apps did using PendingIntent" into nyc-mr1-dev

7 years agoMerge "Add counters for the automatic storage manager." into nyc-mr1-dev
Daniel Nishi [Thu, 30 Jun 2016 21:17:17 +0000 (21:17 +0000)]
Merge "Add counters for the automatic storage manager." into nyc-mr1-dev

7 years agoMerge "Optimized onUnlockUser" into nyc-mr1-dev
Fyodor Kupolov [Thu, 30 Jun 2016 21:06:12 +0000 (21:06 +0000)]
Merge "Optimized onUnlockUser" into nyc-mr1-dev

7 years agoOptimized onUnlockUser
Fyodor Kupolov [Wed, 29 Jun 2016 21:39:19 +0000 (14:39 -0700)]
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

7 years agoMerge "SysUI: Mantain non-weak reference to listener" into nyc-mr1-dev
TreeHugger Robot [Thu, 30 Jun 2016 20:41:51 +0000 (20:41 +0000)]
Merge "SysUI: Mantain non-weak reference to listener" into nyc-mr1-dev

7 years agoMerge "Update the volume panel to use a system color." into nyc-mr1-dev
Andrew Sapperstein [Thu, 30 Jun 2016 20:26:34 +0000 (20:26 +0000)]
Merge "Update the volume panel to use a system color." into nyc-mr1-dev

7 years agoMerge "Status bar blacklist: fix items resetting" into nyc-mr1-dev
TreeHugger Robot [Thu, 30 Jun 2016 20:16:53 +0000 (20:16 +0000)]
Merge "Status bar blacklist: fix items resetting" into nyc-mr1-dev

7 years agoMerge "Revert "Remove InputContentInfo#requestPermission()"" into nyc-mr1-dev
Yohei Yukawa [Thu, 30 Jun 2016 19:30:19 +0000 (19:30 +0000)]
Merge "Revert "Remove InputContentInfo#requestPermission()"" into nyc-mr1-dev

7 years agoRevert "Remove InputContentInfo#requestPermission()"
Yohei Yukawa [Thu, 30 Jun 2016 19:24:04 +0000 (19:24 +0000)]
Revert "Remove InputContentInfo#requestPermission()"

This reverts commit c4b8f36de5523366e354fc01b6cba81ad72f6423.

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

7 years agoQuick settings icons have focus
Min Yun [Mon, 27 Jun 2016 20:55:15 +0000 (13:55 -0700)]
Quick settings icons have focus

To have focus in quick setting icons,
add focusable

Fixes: 29769508
Change-Id: I1b10203d60614a7b94274da046dac69a7ed5b80a
Signed-off-by: Sungyoung An <sungyong.an@lge.com>
Signed-off-by: Min Yun <min.yun@lge.com>
7 years agoSysUI: Mantain non-weak reference to listener
Jason Monk [Thu, 30 Jun 2016 19:04:11 +0000 (15:04 -0400)]
SysUI: Mantain non-weak reference to listener

Change-Id: Ie11dfac0af90d65baed40f593eb4ffe7ab0cc0e3
Fixes: 29778623

7 years agoDocs: Fixed NDK download links for Windows
Adarsh Fernando [Wed, 29 Jun 2016 18:02:49 +0000 (11:02 -0700)]
Docs: Fixed NDK download links for Windows

Bug:29549878
Change-Id: I57415b1353e4a27633a5bce200a73d24f30eee81

7 years agoQS: Fix clipping for some font sizes
Jason Monk [Thu, 30 Jun 2016 18:46:12 +0000 (14:46 -0400)]
QS: Fix clipping for some font sizes

Change-Id: I44b68f0104341a6b772fd2d61d7c7baeb019d151
Fixes: 29262822

7 years agoStatus bar blacklist: fix items resetting
Jason Monk [Thu, 30 Jun 2016 18:37:10 +0000 (14:37 -0400)]
Status bar blacklist: fix items resetting

Change-Id: Id3f287ce3b0fed4e3a7d0abff5fce025f16d9a1e
Fixes: 27600379

7 years agoMerge "QS: Layout and animation refinement" into nyc-mr1-dev
Jason Monk [Thu, 30 Jun 2016 18:36:01 +0000 (18:36 +0000)]
Merge "QS: Layout and animation refinement" into nyc-mr1-dev

7 years agoQS: Layout and animation refinement
Jason Monk [Thu, 30 Jun 2016 18:22:42 +0000 (14:22 -0400)]
QS: Layout and animation refinement

Bug: 29315917
Fixes: 29879993
Change-Id: I0153e81ff9cd81022958a1baf3531ac5ca6b4144

7 years agoMerge "Support trimmed images in BootAnimation" into nyc-mr1-dev
Geoffrey Pitsch [Thu, 30 Jun 2016 18:24:15 +0000 (18:24 +0000)]
Merge "Support trimmed images in BootAnimation" into nyc-mr1-dev

7 years agoMerge "Remove InputContentInfo#requestPermission()" into nyc-mr1-dev
Yohei Yukawa [Thu, 30 Jun 2016 18:21:46 +0000 (18:21 +0000)]
Merge "Remove InputContentInfo#requestPermission()" into nyc-mr1-dev

7 years agoMerge "Add a new API to improve VR thread scheduling." into nyc-mr1-dev
Tim Murray [Thu, 30 Jun 2016 18:05:56 +0000 (18:05 +0000)]
Merge "Add a new API to improve VR thread scheduling." into nyc-mr1-dev

7 years agoPrevent PrintRegistry callbacks when finishing
Philip P. Moltmann [Wed, 29 Jun 2016 18:44:02 +0000 (11:44 -0700)]
Prevent PrintRegistry callbacks when finishing

Previously these callbacks could happen while we clean up the print
preview controller. Then these callbacks called in destroyed and cleaned
up modules.

Fixes: 29874802
Change-Id: I5d8497e3364b97a33a837f8e3e825e5d254592f9

7 years agoMerge \"Only clip PopupWindow in the vertical direction\" into nyc-dev
Alan Viverette [Thu, 30 Jun 2016 17:35:52 +0000 (17:35 +0000)]
Merge \"Only clip PopupWindow in the vertical direction\" into nyc-dev
am: 4b736ea56d

Change-Id: Idf5aedfb2f19595b8317c7dca1640ff0caf31696

7 years agoMerge "Only clip PopupWindow in the vertical direction" into nyc-dev
Alan Viverette [Thu, 30 Jun 2016 17:24:21 +0000 (17:24 +0000)]
Merge "Only clip PopupWindow in the vertical direction" into nyc-dev

7 years agoMerge \"Exclude children from excess space distribution when using largest child...
Alan Viverette [Thu, 30 Jun 2016 17:19:41 +0000 (17:19 +0000)]
Merge \"Exclude children from excess space distribution when using largest child\" into nyc-dev
am: 7705d5fd6e

Change-Id: I747b4dab5bfc31b2461b445d1d983ac95a05693d

7 years agoOnly clip PopupWindow in the vertical direction
Alan Viverette [Thu, 30 Jun 2016 17:17:26 +0000 (13:17 -0400)]
Only clip PopupWindow in the vertical direction

Bug: 29865091
Change-Id: Ic4e3b50571034f341aff2c2fbf2c349342622448

7 years agoUpdate the volume panel to use a system color.
Andrew Sapperstein [Thu, 30 Jun 2016 17:14:53 +0000 (10:14 -0700)]
Update the volume panel to use a system color.

Removes all hardcoded usages of blue_grey_200 and replaces
them with the use of one color resource that's defined in the
framework.

Change-Id: Ic6450f8ec03c3d9cbf915fa5de6f1184bf64266e
Fixes: 29574243

7 years agoMerge "Exclude children from excess space distribution when using largest child"...
TreeHugger Robot [Thu, 30 Jun 2016 17:07:06 +0000 (17:07 +0000)]
Merge "Exclude children from excess space distribution when using largest child" into nyc-dev

7 years agoAdd a new API to improve VR thread scheduling.
Srinath Sridharan [Tue, 28 Jun 2016 01:13:47 +0000 (18:13 -0700)]
Add a new API to improve VR thread scheduling.

Adds a new API that enables device-specific scheduler optimizations for
latency-sensitive VR threads.

BUG: 29163534
Change-Id: I58d7be0eb266eca452c804cd07004784fb7daf2b

7 years agoRemove InputContentInfo#requestPermission()
Yohei Yukawa [Thu, 30 Jun 2016 16:32:54 +0000 (09:32 -0700)]
Remove InputContentInfo#requestPermission()

It turns out that requiring editor authors to call
InputContentInfo#requestPermission() as needed is just confusing and can
cause compatibility issues, because if an editor author forgot to call
that method then there would be no way for IME developers to prevent
permission denial except for relaxing the default permission of the
ContentProvider just because of such an application. This is not what we
want to see.

My conclusion is that the system should automatically call
InputContentInfo#requestPermission() (or do any equivalent operation)
when InputConnection#INPUT_CONTENT_GRANT_READ_URI_PERMISSION is
specified, like we have done in Context#startActivity().

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, and 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.

Bug: 29450031
Bug: 29892936
Change-Id: I37fb744e4d3d1c59177fb0a9be4ef5c325c9a39f

7 years agoMutate the drawable if a valid state change happen
Teng-Hui Zhu [Wed, 29 Jun 2016 23:56:40 +0000 (16:56 -0700)]
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.

b/29870392

Change-Id: I7a5ef91091e547a930368286defc7ab96aeb9471

7 years agoExclude children from excess space distribution when using largest child
Alan Viverette [Thu, 30 Jun 2016 15:15:36 +0000 (11:15 -0400)]
Exclude children from excess space distribution when using largest child

Preserves API 23 behavior.

Bug: 29872769
Change-Id: I514cde81dcca4d78238f407251805cced4c0bea1

7 years agoMerge changes I65784f35,Ib6937335 into nyc-mr1-dev
TreeHugger Robot [Thu, 30 Jun 2016 14:28:37 +0000 (14:28 +0000)]
Merge changes I65784f35,Ib6937335 into nyc-mr1-dev

* changes:
  Add detailed test coverage for lingering.
  Add more test coverage for requests and callbacks.

7 years agoMerge changes Ia28652e0,Id2eaafdc,I9c4c8286 into nyc-mr1-dev
TreeHugger Robot [Thu, 30 Jun 2016 14:03:20 +0000 (14:03 +0000)]
Merge changes Ia28652e0,Id2eaafdc,I9c4c8286 into nyc-mr1-dev

* changes:
  Record events for RA option lifetimes
  Log RA listening statistics
  Log events at APF program generation