OSDN Git Service

android-x86/frameworks-base.git
7 years agoDO NOT MERGE -- Only use saved surface if started by launcher or moved to front
Chong Zhang [Thu, 25 Aug 2016 19:12:33 +0000 (12:12 -0700)]
DO NOT MERGE -- Only use saved surface if started by launcher or moved to front

Restrict saved surface to launcher start (ACTION_MAIN&CATEGORY_
LAUNCHER), or there is no intent at all (eg. task being brought to
front). If the intent is something else, likely the app is going
to show some specific page or view, instead of what's left last time.

This solves problems like the launcher shortcuts on DeckClock,
each of them is a different intent and will show one specific
view regardless of last states. Another example is Chrome tab
opened directly by action VIEW to open some URL.

(Note that this doesn't solve the problem with Chrome homescreen
shortcuts, it will still start with saved surface (if Chrome
is already open). This is because the shortcut is a trampoline
activity that starts the real chrome tab activity, but when
the trampoline is started, the whole task is already brought
to front, and ChromeTab could become visible with the task
before we actually start it.)

bug: 31055479
bug: 27747315

Change-Id: Id3e61c61ef516b0edc1f174320f02661222f226b
(cherry picked from commit ad24f96def42016049de05220593aa049b136def)

7 years agoDocs: Fixed the Bluetooth guide link am: 65813dff14
Hemal Patel [Thu, 25 Aug 2016 21:37:59 +0000 (21:37 +0000)]
Docs: Fixed the Bluetooth guide link am: 65813dff14
am: a544221abd

Change-Id: I0cbd8fa416f4d0b00d7cb3c65eef9748439abe48

7 years agodocs: Removing non-English /preview/ directories
Andrew Solovay [Thu, 25 Aug 2016 21:37:57 +0000 (21:37 +0000)]
docs: Removing non-English /preview/ directories
am: 2d629c3e5b

Change-Id: I499a0148d7ece41b30f83baa34a0efc5c0ec1c82

7 years agoDocs: Fixed the Bluetooth guide link
Hemal Patel [Thu, 25 Aug 2016 21:31:56 +0000 (21:31 +0000)]
Docs: Fixed the Bluetooth guide link
am: 65813dff14

Change-Id: I4502828940c4f2e33363e10728e97f484bc15651

7 years agoMerge "Properly configure live wallpaper selection following restore" into nyc-dr1-dev
Chris Tate [Thu, 25 Aug 2016 20:58:07 +0000 (20:58 +0000)]
Merge "Properly configure live wallpaper selection following restore" into nyc-dr1-dev

7 years agodocs: Removing non-English /preview/ directories
Andrew Solovay [Thu, 25 Aug 2016 19:36:36 +0000 (12:36 -0700)]
docs: Removing non-English /preview/ directories

The remaining docs in the [language]/preview directories were
causing devsite publish to fail (they refer to files that no longer
exist). Removing all those directories; redirects are already set up.

See first comment for doc stage location.

Change-Id: Ic22652d44696ec2647586e19aa61627d40232239

7 years agoMerge "DirectReply: Fix bugs when replying from HUNs" into nyc-dr1-dev
Selim Cinek [Thu, 25 Aug 2016 17:10:43 +0000 (17:10 +0000)]
Merge "DirectReply: Fix bugs when replying from HUNs" into nyc-dr1-dev

7 years agoMerge "Adding flags to allow package names to be sent to support." into nyc-dr1-dev
Matthew Fritze [Thu, 25 Aug 2016 16:10:22 +0000 (16:10 +0000)]
Merge "Adding flags to allow package names to be sent to support." into nyc-dr1-dev

7 years agoSupport notifying network switches via notifications and toasts.
Lorenzo Colitti [Mon, 22 Aug 2016 07:46:40 +0000 (16:46 +0900)]
Support notifying network switches via notifications and toasts.

Bug: 31025214
Change-Id: If1578f422f38a1dcfaec529882aed01ae5e8d53c

7 years agoAdding flags to allow package names to be sent to support.
Matthew Fritze [Wed, 24 Aug 2016 23:53:50 +0000 (16:53 -0700)]
Adding flags to allow package names to be sent to support.

Bug: 30924073
Change-Id: I9ec0a90a178adb72da3d4a426e75a79315832bf6
Tests: Manual.

7 years agoProcess: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f...
Narayan Kamath [Thu, 25 Aug 2016 01:32:22 +0000 (01:32 +0000)]
Process: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f am: c11e8fcc04 am: c01db7dca3 am: 8e168116d0 am: dd496ec8b0 am: 472a7792f3
am: 77a9ef952c

Change-Id: I4e3b2bcddde4e7441585931c4c595769ee22eea5

7 years agoFix vulnerability where large GPS XTRA data can be injected. -Can potentially crash...
David Christie [Thu, 25 Aug 2016 01:32:17 +0000 (01:32 +0000)]
Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a am: 655361b2b1 am: 62783bde30 am: 8788a2413c am: c6ab92e93b am: 3970ee98f7 am: 735699f3ef am: 551e6c786f am: 80b8f38224
am: 9c4d02fb3f

Change-Id: Ie9163487b07aaf888b94781fbb281deccaccf0a5

7 years agoresolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0d...
David Christie [Thu, 25 Aug 2016 01:32:10 +0000 (01:32 +0000)]
resolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0dd41f1 am: af369f6e66 am: d610363a48 am: 0777ad8253 am: 187d841b75 am: 7f2aaf204d
am: 0ae74a8ccd

Change-Id: I01778e8f2a71521a931b49508fc1f88353a10cc8

7 years agoresolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d am: dd1016c619...
David Christie [Thu, 25 Aug 2016 01:32:05 +0000 (01:32 +0000)]
resolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d am: dd1016c619 am: 3aaac55e70 am: a6de8f20c7 am: 00e1e39ae2
am: 4f1d1fc92d

Change-Id: Idf472158bd5f9ea71b2de4b0a782a92736ca7d64

7 years agoMerge "Add the Moves setting values to the backup list." into nyc-dr1-dev
TreeHugger Robot [Thu, 25 Aug 2016 01:26:10 +0000 (01:26 +0000)]
Merge "Add the Moves setting values to the backup list." into nyc-dr1-dev

7 years agoProcess: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f...
Narayan Kamath [Thu, 25 Aug 2016 01:25:55 +0000 (01:25 +0000)]
Process: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f am: c11e8fcc04 am: c01db7dca3 am: 8e168116d0 am: dd496ec8b0
am: 472a7792f3

Change-Id: I065968bf2bd6166eae33c7eec347e371a5edf447

7 years agoFix vulnerability where large GPS XTRA data can be injected. -Can potentially crash...
David Christie [Thu, 25 Aug 2016 01:25:46 +0000 (01:25 +0000)]
Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a am: 655361b2b1 am: 62783bde30 am: 8788a2413c am: c6ab92e93b am: 3970ee98f7 am: 735699f3ef am: 551e6c786f
am: 80b8f38224

Change-Id: I43da972f73a86a305d2b20db6cb2d30180e7287c

7 years agoresolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0d...
David Christie [Thu, 25 Aug 2016 01:25:38 +0000 (01:25 +0000)]
resolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0dd41f1 am: af369f6e66 am: d610363a48 am: 0777ad8253 am: 187d841b75
am: 7f2aaf204d

Change-Id: I64ff311815620d7e26ef91d33afc8499abf63c83

7 years agoresolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d am: dd1016c619...
David Christie [Thu, 25 Aug 2016 01:25:30 +0000 (01:25 +0000)]
resolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d am: dd1016c619 am: 3aaac55e70 am: a6de8f20c7
am: 00e1e39ae2

Change-Id: I23587e80ea85f66e872e8bf0a9b1f83399c3b6fc

7 years agoresolve merge conflicts of 8aaffd9 to nyc-dev
David Christie [Thu, 25 Aug 2016 01:25:30 +0000 (01:25 +0000)]
resolve merge conflicts of 8aaffd9 to nyc-dev
am: 36246a43e5

Change-Id: Ic91baff73ef9e5ffe304d10a5a55e8476dfcfecb

7 years agoAdd the Moves setting values to the backup list.
Doris Ling [Wed, 24 Aug 2016 22:05:43 +0000 (15:05 -0700)]
Add the Moves setting values to the backup list.

Add Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, and
Secure.SYSTEM_NAVIGATION_KEYS_ENABLED (used by Settings->Moves)
to Secure.SETTINGS_TO_BACKUP, so that they will be backed up and
restored automatically.

Fixes: 31023788

Test: Manual - Setup device using "Copy your data", verify that
Settings->Moves toggles are set to previous selected values.

Change-Id: I509c997641bb693009bec703e5272b5aad517f0f

7 years agoMerge "Update services info before returning authenticators" into nyc-dr1-dev
Fyodor Kupolov [Thu, 25 Aug 2016 00:02:50 +0000 (00:02 +0000)]
Merge "Update services info before returning authenticators" into nyc-dr1-dev

7 years agoresolve merge conflicts of 8aaffd9 to nyc-dev
David Christie [Wed, 24 Aug 2016 23:45:01 +0000 (16:45 -0700)]
resolve merge conflicts of 8aaffd9 to nyc-dev

Change-Id: I4b1603b4cb1cdfc01f4842b2facf8c31a687bbe5

7 years agoMerge "Fix alarm Bounce: remove DC offset at beginning" into nyc-dr1-dev
Jean-Michel Trivi [Wed, 24 Aug 2016 23:34:16 +0000 (23:34 +0000)]
Merge "Fix alarm Bounce: remove DC offset at beginning" into nyc-dr1-dev

7 years agoProperly configure live wallpaper selection following restore
Christopher Tate [Wed, 24 Aug 2016 23:23:20 +0000 (16:23 -0700)]
Properly configure live wallpaper selection following restore

Bug 31023198

Change-Id: I79d766f201684e109b6322cc36f9e7bcc1b21483

7 years agoFix alarm Bounce: remove DC offset at beginning
Jean-Michel Trivi [Wed, 24 Aug 2016 23:00:11 +0000 (16:00 -0700)]
Fix alarm Bounce: remove DC offset at beginning

Bug 31047718

Change-Id: I8abc8c6d90be172fe2797b1e89d34fafa690e21c

7 years agoAlways report visibility to new ImageView drawables
Adam Powell [Wed, 24 Aug 2016 16:49:51 +0000 (09:49 -0700)]
Always report visibility to new ImageView drawables

Fix a regression where some drawables would not be correctly updated
with their visibility state if set while an ImageView was not attached
to a window.

Bug 30216207

Change-Id: Ia30326a78168141c8f85bad9c782710f965623b7

7 years agoUpdate services info before returning authenticators
Fyodor Kupolov [Wed, 24 Aug 2016 18:27:49 +0000 (11:27 -0700)]
Update services info before returning authenticators

Added RegisteredServicesCache.updateServices method which allows callers
to request an update to services for which package has been updated.

Added a call to updateServices in getAuthenticatorTypesInternal

Test: Manually tested update flow on test authenticator with an artificial
      delay in broadcast handling
Bug: 30979262
Change-Id: I499b2ee0be53fed01201c56068d929b6d621a78e

7 years agoProcess: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f...
Narayan Kamath [Wed, 24 Aug 2016 22:43:15 +0000 (22:43 +0000)]
Process: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f am: c11e8fcc04 am: c01db7dca3 am: 8e168116d0
am: dd496ec8b0

Change-Id: Ibd47e114558f0fc8ce64cd006a79e6ead7445f1d

7 years agoFix vulnerability where large GPS XTRA data can be injected. -Can potentially crash...
David Christie [Wed, 24 Aug 2016 22:43:12 +0000 (22:43 +0000)]
Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a am: 655361b2b1 am: 62783bde30 am: 8788a2413c am: c6ab92e93b am: 3970ee98f7 am: 735699f3ef
am: 551e6c786f

Change-Id: I9e0e082d0638795f191a188d3caad85f5fb992e5

7 years agoresolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0d...
David Christie [Wed, 24 Aug 2016 22:43:09 +0000 (22:43 +0000)]
resolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0dd41f1 am: af369f6e66 am: d610363a48 am: 0777ad8253
am: 187d841b75

Change-Id: I063f0cd3f53be4d58d123d05da7171a47014929d

7 years agoresolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d am: dd1016c619...
David Christie [Wed, 24 Aug 2016 22:39:52 +0000 (22:39 +0000)]
resolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d am: dd1016c619 am: 3aaac55e70
am: a6de8f20c7

Change-Id: I119a274dd1050c6d26b70c7fbfb5ea95662e2a83

7 years agoProcess: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f...
Narayan Kamath [Wed, 24 Aug 2016 22:33:43 +0000 (22:33 +0000)]
Process: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f am: c11e8fcc04 am: c01db7dca3
am: 8e168116d0

Change-Id: Iffa2e8ae4f02adaf4c031d8b5d50362ee9efb1d1

7 years agoFix vulnerability where large GPS XTRA data can be injected. -Can potentially crash...
David Christie [Wed, 24 Aug 2016 22:33:41 +0000 (22:33 +0000)]
Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a am: 655361b2b1 am: 62783bde30 am: 8788a2413c am: c6ab92e93b am: 3970ee98f7
am: 735699f3ef

Change-Id: I80e68cde7a673cfb269ecad9114dbb14850287b4

7 years agoresolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0d...
David Christie [Wed, 24 Aug 2016 22:33:39 +0000 (22:33 +0000)]
resolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0dd41f1 am: af369f6e66 am: d610363a48
am: 0777ad8253

Change-Id: I9403ca33c0b87ca1ca01f2ce5209c12332b01e51

7 years agoresolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d am: dd1016c619
David Christie [Wed, 24 Aug 2016 22:33:37 +0000 (22:33 +0000)]
resolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d am: dd1016c619
am: 3aaac55e70

Change-Id: I01b09466d9993f28de5c95a7d21555b3be112891

7 years agoresolve merge conflicts of a2399b4 to mnc-dev am: 6195acc2b5 am: e24eb2dbb5
David Christie [Wed, 24 Aug 2016 22:30:20 +0000 (22:30 +0000)]
resolve merge conflicts of a2399b4 to mnc-dev am: 6195acc2b5 am: e24eb2dbb5
am: 362668b6f7

Change-Id: I019f76b45de78171ef888d2175dc9140be172784

7 years agoProcess: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f...
Narayan Kamath [Wed, 24 Aug 2016 22:23:54 +0000 (22:23 +0000)]
Process: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f am: c11e8fcc04
am: c01db7dca3

Change-Id: I056c33c5925a625b539df250af0fa7d48258b0f2

7 years agoFix vulnerability where large GPS XTRA data can be injected. -Can potentially crash...
David Christie [Wed, 24 Aug 2016 22:23:52 +0000 (22:23 +0000)]
Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a am: 655361b2b1 am: 62783bde30 am: 8788a2413c am: c6ab92e93b
am: 3970ee98f7

Change-Id: I68f89fabe5603941e009f48f3277a2c40221ce74

7 years agoresolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0d...
David Christie [Wed, 24 Aug 2016 22:23:49 +0000 (22:23 +0000)]
resolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0dd41f1 am: af369f6e66
am: d610363a48

Change-Id: I186b4bedcf057489deca1e161a052619ce594e56

7 years agoresolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d
David Christie [Wed, 24 Aug 2016 22:23:46 +0000 (22:23 +0000)]
resolve merge conflicts of 1081a15 to lmp-mr1-ub-dev am: 975879a18d
am: dd1016c619

Change-Id: I54910f6c22b69b029be80007cdbf06b203886398

7 years agoresolve merge conflicts of a2399b4 to mnc-dev am: 6195acc2b5
David Christie [Wed, 24 Aug 2016 22:23:42 +0000 (22:23 +0000)]
resolve merge conflicts of a2399b4 to mnc-dev am: 6195acc2b5
am: e24eb2dbb5

Change-Id: Idb6cbe8c16877301aed50faed41fa0390db3cf10

7 years agoresolve merge conflicts of a2399b4 to mnc-dev
David Christie [Wed, 24 Aug 2016 22:16:07 +0000 (22:16 +0000)]
resolve merge conflicts of a2399b4 to mnc-dev
am: 6195acc2b5

Change-Id: I34c3133924af9906b88ebd5faf78e0c000aa05be

7 years agoProcess: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f
Narayan Kamath [Wed, 24 Aug 2016 22:14:36 +0000 (22:14 +0000)]
Process: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f am: 3c63bb367f
am: c11e8fcc04

Change-Id: Idd314c1e12919d8cbaf9e71d72519d34d18e6f01

7 years agoFix vulnerability where large GPS XTRA data can be injected. -Can potentially crash...
David Christie [Wed, 24 Aug 2016 22:14:32 +0000 (22:14 +0000)]
Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a am: 655361b2b1 am: 62783bde30 am: 8788a2413c
am: c6ab92e93b

Change-Id: I0d17aacc1d83b2bceb9abcfa3da1f1ff3dc74e09

7 years agoresolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0d...
David Christie [Wed, 24 Aug 2016 22:14:28 +0000 (22:14 +0000)]
resolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24 am: 41a0dd41f1
am: af369f6e66

Change-Id: I6973f8f1053644548062b94c1696c123f47f0ad4

7 years agoresolve merge conflicts of 1081a15 to lmp-mr1-ub-dev
David Christie [Wed, 24 Aug 2016 22:14:24 +0000 (22:14 +0000)]
resolve merge conflicts of 1081a15 to lmp-mr1-ub-dev
am: 975879a18d

Change-Id: Icf81e5ce2bc02750d66b13feedfc098dd9374167

7 years agoresolve merge conflicts of a2399b4 to mnc-dev
David Christie [Wed, 24 Aug 2016 20:47:57 +0000 (13:47 -0700)]
resolve merge conflicts of a2399b4 to mnc-dev

Change-Id: Ifc9e13cdb047ef70799ba8b1b9e91357ef5f2d2a

7 years agoDirectReply: Fix bugs when replying from HUNs
Adrian Roos [Tue, 23 Aug 2016 16:23:01 +0000 (18:23 +0200)]
DirectReply: Fix bugs when replying from HUNs

Fixes a bug that would re-open the remote input when
it was sent while HUN'd. Also fixes a bug that would
not properly clear a notification if swiped away and
at the same time HUN'd and having a reply active.

Change-Id: I3e8b5f81eaffd8e4b8602f3dbdd025229ba201fa
Fixes: 30454772

7 years agoProcess: Fix communication with zygote. am: 8e69dd2284 am: b85e9e9108 am: b56f4f53e1...
Narayan Kamath [Wed, 24 Aug 2016 20:30:13 +0000 (20:30 +0000)]
Process: Fix communication with zygote. am: 8e69dd2284 am: b85e9e9108 am: b56f4f53e1  -s ours am: 2984748753 am: b9fae65605
am: c6c7ca0cde

Change-Id: Ifca9f825dac758c653560c41b81a13bd13c9fd4c

7 years agoProcess: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f
Narayan Kamath [Wed, 24 Aug 2016 20:30:09 +0000 (20:30 +0000)]
Process: Fix communication with zygote. am: e29c6493c0 am: 1bd43c162f
am: 3c63bb367f

Change-Id: Iaa5ba9f3fcc28da14b60dc489e49bd177d2bfcb3

7 years agoFix vulnerability where large GPS XTRA data can be injected. -Can potentially crash...
David Christie [Wed, 24 Aug 2016 20:30:06 +0000 (20:30 +0000)]
Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864 am: dde12c6923 am: 3462e52676 am: 5a6b11114a am: 655361b2b1 am: 62783bde30
am: 8788a2413c

Change-Id: If9d5385d7d949e85932e5586d4884ffe84d51d47

7 years agoresolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24
David Christie [Wed, 24 Aug 2016 20:30:01 +0000 (20:30 +0000)]
resolve merge conflicts of b4a5615 to lmp-dev am: 288166cbb2 am: b7f8b59e24
am: 41a0dd41f1

Change-Id: Ib74b0efa9b9345257d2b3ba59911baa324ec5801

7 years agoMerge "Added error handling to settings suggestions list" into nyc-dev
Salvador Martinez [Wed, 24 Aug 2016 18:28:00 +0000 (18:28 +0000)]
Merge "Added error handling to settings suggestions list" into nyc-dev
am: ed004e2958

Change-Id: I674216ef4471444c86b202896b8ce055c54eb584

7 years agoAdded error handling to settings suggestions list
Salvador Martinez [Wed, 24 Aug 2016 18:27:56 +0000 (18:27 +0000)]
Added error handling to settings suggestions list
am: 18bf581c77

Change-Id: Id946b2b75b9adc4c70fa4537da4ac509a6ab5c66

7 years agoMerge "Added error handling to settings suggestions list" into nyc-dev
Salvador Martinez [Wed, 24 Aug 2016 18:17:38 +0000 (18:17 +0000)]
Merge "Added error handling to settings suggestions list" into nyc-dev

7 years agoMerge "Avoid potential re-entry as a result of child mutation" into nyc-dev
Alan Viverette [Wed, 24 Aug 2016 17:37:53 +0000 (17:37 +0000)]
Merge "Avoid potential re-entry as a result of child mutation" into nyc-dev
am: 462f29f77f

Change-Id: Iefb3d33a407aa719c988217b136187378617da8f

7 years agoAvoid potential re-entry as a result of child mutation
Alan Viverette [Wed, 24 Aug 2016 17:37:50 +0000 (17:37 +0000)]
Avoid potential re-entry as a result of child mutation
am: 66b3a0d1aa

Change-Id: I1fa6619145a6aaceb4c743d378fbc5b198da6cdd

7 years agoMerge "Avoid potential re-entry as a result of child mutation" into nyc-dev
TreeHugger Robot [Wed, 24 Aug 2016 17:27:07 +0000 (17:27 +0000)]
Merge "Avoid potential re-entry as a result of child mutation" into nyc-dev

7 years agoAdded error handling to settings suggestions list
Salvador Martinez [Thu, 4 Aug 2016 20:37:52 +0000 (13:37 -0700)]
Added error handling to settings suggestions list

The suggestions list in the summary page of the
settings app could sometimes cause a crash due to
an uncaught exception. Tis fixed now.

Bug: 30656840
Change-Id: If79f53e6a8c17a81653228d613797e94c473d410
(cherry picked from commit 60d92b3b8390e33e069f343d6a425ab07c498d3d)

7 years agoresolve merge conflicts of 1081a15 to lmp-mr1-ub-dev
David Christie [Tue, 23 Aug 2016 23:19:51 +0000 (16:19 -0700)]
resolve merge conflicts of 1081a15 to lmp-mr1-ub-dev

Change-Id: Ic44c577ef364bf81dd1e30b50c71718d4910eb10

7 years agoMerge "DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when...
Adam Seaton [Tue, 23 Aug 2016 20:07:26 +0000 (20:07 +0000)]
Merge "DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held." into nyc-dr1-dev

7 years agoMerge "Ambient: Pulse for every noisy notification exactly once" into nyc-dr1-dev
TreeHugger Robot [Tue, 23 Aug 2016 20:07:10 +0000 (20:07 +0000)]
Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-dr1-dev

7 years agoDO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connec...
Tyler Gunn [Wed, 17 Aug 2016 20:48:27 +0000 (13:48 -0700)]
DO NOT MERGE ANYWHERE (nyc-dr1-dev) Add connection events for indicated when a connection is remotely held.

Note: This is different than the existing EVENT_ON_HOLD_TONE_START
and EVENT_ON_HOLD_TONE_END events, which trigger playing a hold tone for
remotely held calls.  Those events also take into account whether the call
is foreground/background; it is left as a future exercise to clean that
up.

Bug: 30349182
Change-Id: I919365d243ae3b9fe56454c7a2b9d5805b2c03a2
(cherry picked from commit b5ed860de71fe165af63b4255da25d0295abaa69)

7 years agoOnly allow focused window to select seamless rotation.
Robert Carr [Mon, 22 Aug 2016 20:32:34 +0000 (13:32 -0700)]
Only allow focused window to select seamless rotation.

We require apps to opt in to seamless rotation. If a dialog or some such
has popped up above them, the dialog may not be prepared to rotate
seamlessly and we should just fall back to the old behavior for now.

Bug: 30968345
Change-Id: Ib9a7352ed84d41076bdd162bf38d151b053a307e
(cherry picked from commit 828ec3dc518bfeff9cb9205e40652419e9c59443)

7 years agoNo need to check package name
Todd Kennedy [Mon, 22 Aug 2016 22:44:00 +0000 (15:44 -0700)]
No need to check package name

Change-Id: I8c403ca2bc38f2c7191b6e9a709286ac7e450ac4
Fixes: 30958291
(cherry picked from commit afb5269ad6a507a3230b519b3156ac0bcc5fc3a0)

7 years agoDO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5...
Julius D'souza [Tue, 23 Aug 2016 17:08:33 +0000 (17:08 +0000)]
DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5  -s ours am: d5bf4039a9  -s ours
am: b2507eb7b7  -s ours

Change-Id: I73d049d6855b9cd9420a194bda7079adc2283bb0

7 years agoMerge "Add carrier regex config values for VisualVoicemailSmsFilter" into nyc-dr1-dev
Sailesh Nepal [Tue, 23 Aug 2016 17:00:30 +0000 (17:00 +0000)]
Merge "Add carrier regex config values for VisualVoicemailSmsFilter" into nyc-dr1-dev

7 years agoDO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5...
Julius D'souza [Tue, 23 Aug 2016 16:52:24 +0000 (16:52 +0000)]
DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support am: 3275a3a5a5  -s ours
am: d5bf4039a9  -s ours

Change-Id: I4f1a0acabe5d5385af086791b906ff6f45424e59

7 years agoDO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support
Julius D'souza [Tue, 23 Aug 2016 16:45:41 +0000 (16:45 +0000)]
DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support
am: 3275a3a5a5  -s ours

Change-Id: Iaae7763a4d744ad8a63538750c5ed3efe38161d5

7 years agoAmbient: Pulse for every noisy notification exactly once
Adrian Roos [Mon, 22 Aug 2016 13:31:38 +0000 (15:31 +0200)]
Ambient: Pulse for every noisy notification exactly once

Also increases the pulse duration and switches timing to
elapsed realtime instead of wall time for robustness. Also
remove triggering for notification light for simplifying code.
Only noisy notifications are able to trigger the light anyway and
noisy notifications already trigger ambient on their own.

Change-Id: I4efbe530bb1a60cabaa46c2b04bcd5e12cdef680
Fixes: 31004875

7 years agoMerge "add workaround for annotations dependency conflict with espresso" into nyc-dev
Scott Main [Tue, 23 Aug 2016 15:47:18 +0000 (15:47 +0000)]
Merge "add workaround for annotations dependency conflict with espresso" into nyc-dev
am: 77917a835f

Change-Id: Ibc54a5b58aad47a49bf5cb5a69ae3ddf461ccd15

7 years agoadd workaround for annotations dependency conflict with espresso
smain@google.com [Tue, 23 Aug 2016 15:47:15 +0000 (15:47 +0000)]
add workaround for annotations dependency conflict with espresso
am: eee3518d11

Change-Id: I05f1b9063433e060427f627c46aab64972fe45cf

7 years agoAdd carrier regex config values for VisualVoicemailSmsFilter
Ta-wei Yen [Fri, 19 Aug 2016 18:43:15 +0000 (11:43 -0700)]
Add carrier regex config values for VisualVoicemailSmsFilter

Verizon requires all SMS that starts with "//VZWVVM" to be treated
as a VVM SMS.

EXTRA_VOICEMAIL_SMS_MESSAGE_BODY is also added to VociemailContract
to send the message body of a SMS that matches the carrier regex but
is not parsable.

Bug: 30954955
Change-Id: Ib5449164a5290b132648cc28b1e1d3d9ddd5fea0
(cherry picked from commit ad31603b80e13e914ff4c3a41b5c04558d04d3ca)

7 years agoMerge "add workaround for annotations dependency conflict with espresso" into nyc-dev
Scott Main [Tue, 23 Aug 2016 15:42:01 +0000 (15:42 +0000)]
Merge "add workaround for annotations dependency conflict with espresso" into nyc-dev

7 years agoMerge "HIC: Improve AccelerationClassifier" into nyc-dr1-dev
Adrian Roos [Tue, 23 Aug 2016 10:22:22 +0000 (10:22 +0000)]
Merge "HIC: Improve AccelerationClassifier" into nyc-dr1-dev

7 years agoRefactor NetworkNotificationManager.
Lorenzo Colitti [Mon, 22 Aug 2016 13:36:19 +0000 (22:36 +0900)]
Refactor NetworkNotificationManager.

1. Move from deprecated network types to transport types.
2. Rename and simplify (by passing in a NetworkAgentInfo object)
   the call signature of the method that displays notifications.
3. Add a method to clear notification, and unindent lots of code.
4. Move the legacy DcTracker-issued notification code to
   NetworkNotificationManager.

Bug: 31025214
Change-Id: Ie49c60126d0ed5bac620bc47e84fe038791b2d6c

7 years agoMove notification code out of ConnectivityService.
Lorenzo Colitti [Mon, 22 Aug 2016 07:30:00 +0000 (16:30 +0900)]
Move notification code out of ConnectivityService.

Bug: 31025214
Change-Id: I4190be6b57f92298b79bea8868f1876ecbfd2d75

7 years agoUpdated user document for Single-Source RenderScript
Yang Ni [Tue, 23 Aug 2016 01:43:23 +0000 (01:43 +0000)]
Updated user document for Single-Source RenderScript
am: c069ed7f8c

Change-Id: I432fe39e8fa7fd2c33920021341a245e2ec9c72d

7 years agoMerge "Added getDataPreloadsMediaDirectory" into nyc-dr1-dev
Fyodor Kupolov [Tue, 23 Aug 2016 00:16:54 +0000 (00:16 +0000)]
Merge "Added getDataPreloadsMediaDirectory" into nyc-dr1-dev

7 years agoUpdated user document for Single-Source RenderScript
Yang Ni [Wed, 29 Jun 2016 19:44:06 +0000 (12:44 -0700)]
Updated user document for Single-Source RenderScript

Bug: 29875503
Bug: 29879448

Added a section introducing the new single-source feature.

Local staging:
http://yangni.mtv.corp.google.com/guide/topics/renderscript/compute.html

This updates
https://developer.android.com/guide/topics/renderscript/compute.html

Change-Id: I62dda3ab60b1678a9580fd2873f64f33d9696e13

7 years agoMerge "Change retail mode wallpaper (1/2)" into nyc-dr1-dev
TreeHugger Robot [Mon, 22 Aug 2016 22:55:12 +0000 (22:55 +0000)]
Merge "Change retail mode wallpaper (1/2)" into nyc-dr1-dev

7 years agoAdded getDataPreloadsMediaDirectory
Fyodor Kupolov [Mon, 22 Aug 2016 21:46:08 +0000 (14:46 -0700)]
Added getDataPreloadsMediaDirectory

Bug: 31015966
Change-Id: I8b4117daae2b1f7a59d6a192b34a105f91cbac55

7 years agoMerge "Only dispatch window visibility aggregation for targetSdk >= N" into nyc-dr1-dev
TreeHugger Robot [Mon, 22 Aug 2016 21:40:14 +0000 (21:40 +0000)]
Merge "Only dispatch window visibility aggregation for targetSdk >= N" into nyc-dr1-dev

7 years agoAvoid potential re-entry as a result of child mutation
Alan Viverette [Wed, 27 Jul 2016 14:23:35 +0000 (10:23 -0400)]
Avoid potential re-entry as a result of child mutation

Don't set the callback until we're all done making changes.

Bug: 30902893
Change-Id: Ia1560692a83ecb2c50f5e77fa4d1e8155a78a204
(cherry picked from commit b46ba3b2b0268688852cdf3d1fb4afe4873d63be)

7 years agoDoc change: intl page updates for final n release.
Dirk Dougherty [Mon, 22 Aug 2016 18:57:53 +0000 (18:57 +0000)]
Doc change: intl page updates for final n release.
am: e816f1f542

Change-Id: I15a51ee5bdb78d6d2394a95e27cc6ddca5034960

7 years agoDO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support
Julius D'souza [Mon, 8 Aug 2016 02:08:30 +0000 (19:08 -0700)]
DO NOT MERGE ANYWHERE: Add dynamic illuminance hysteresis support

Bug: 18572096

Change-Id: Ie0ff1990b8f4a3d435328834871f04a6e2bd5e97

7 years agoMerge "Fix wallpaper backup eligibility test" into nyc-dr1-dev
Chris Tate [Mon, 22 Aug 2016 18:28:04 +0000 (18:28 +0000)]
Merge "Fix wallpaper backup eligibility test" into nyc-dr1-dev

7 years agoOnly dispatch window visibility aggregation for targetSdk >= N
Adam Powell [Mon, 22 Aug 2016 16:09:44 +0000 (09:09 -0700)]
Only dispatch window visibility aggregation for targetSdk >= N

Some existing apps treat drawable visibility notifications as a signal
to crossfade from a placeholder to the new image for the purposes of
scrolling onscreen via a recycling collection view or similar. Since
dispatchVisibilityAggregated is now called for window visibility
changes and ImageView informs its drawable of the visiblity change,
the extra call triggers a repeat fade-in in some existing apps when
you return them to visibility.

These apps should pay attention to the second parameter of
Drawable#setVisible, which signals that animations should not restart
in response to a visibility change. Updating to targetSdkVersion=24+
will enable the new behavior.

Bug 30216207

Change-Id: I27ce9f09bc7544863f7f7980c273650949db21cc

7 years agoHIC: Improve AccelerationClassifier
Adrian Roos [Wed, 17 Aug 2016 20:26:33 +0000 (13:26 -0700)]
HIC: Improve AccelerationClassifier

Apply a bunch of improvements to the acceleration classifier:

- When dragging from the edges, we get some delay without
  movement between the DOWN and MOVE, which confounds the
  classifier. Now discounts data segments where the delay
  does not match the expected 16ms.
- The distance ratio did not compensate for differences
  in sampling. If it does it's equivalent to the speed
  ratio however. The distance ratio was removed and the
  impact of the speed ratio score doubled.
- If we cannot calculate the ratio, no longer penalize
  the traces for this.

Bug: 27405075
Change-Id: I067eb4d478593afbb20354e5c85a05353e2b4184
(cherry picked from commit 6b312a09fcea77651680f63a876ccd4ea378393f)

7 years agoDoc change: intl page updates for final n release.
Dirk Dougherty [Mon, 22 Aug 2016 06:41:37 +0000 (23:41 -0700)]
Doc change: intl page updates for final n release.

Change-Id: I11445717cf49438ba5a04b50245209161740d4b0

7 years agoMerge "DO NOT MERGE ANYWHERE (nyc-dr1-dev) Prevent FIFO threads from creating more...
Adam Seaton [Mon, 22 Aug 2016 04:38:59 +0000 (04:38 +0000)]
Merge "DO NOT MERGE ANYWHERE (nyc-dr1-dev)  Prevent FIFO threads from creating more FIFO threads." into nyc-dr1-dev

7 years agoMerge "DO NOT MERGE ANYWHERE:AudioSystem: Verify audio port array information" into...
Adam Seaton [Mon, 22 Aug 2016 04:29:16 +0000 (04:29 +0000)]
Merge "DO NOT MERGE ANYWHERE:AudioSystem: Verify audio port array information" into nyc-dr1-dev

7 years agoMerge "DO NOT MERGE ANYWHERE:Fix NPE during Activity transition using wrong Activity...
Adam Seaton [Sun, 21 Aug 2016 21:18:03 +0000 (21:18 +0000)]
Merge "DO NOT MERGE ANYWHERE:Fix NPE during Activity transition using wrong Activity." into nyc-dr1-dev

7 years agoDO NOT MERGE ANYWHERE (nyc-dr1-dev) Prevent FIFO threads from creating more FIFO...
Tim Murray [Thu, 18 Aug 2016 18:13:26 +0000 (11:13 -0700)]
DO NOT MERGE ANYWHERE (nyc-dr1-dev)  Prevent FIFO threads from creating more FIFO threads.

SCHED_FIFO threads shouldn't be able to arbitrarily create more
SCHED_FIFO threads.

bug 30898724

Change-Id: I3704b47b88b573313e9b1610556648c8595d4108
(cherry picked from commit 38ee337f45953cb3ecfc4ab170c639afe01606d1)

7 years agoDO NOT MERGE ANYWHERE:AudioSystem: Verify audio port array information
Andy Hung [Wed, 17 Aug 2016 01:38:49 +0000 (18:38 -0700)]
DO NOT MERGE ANYWHERE:AudioSystem: Verify audio port array information

Bug: 30737845
Change-Id: Id092086862bc527fccc5e9f34c8a3ab16167ae92
(cherry picked from commit 737d9fb181ec12a23934f7de4e3f8ded79486b1e)

7 years agoDO NOT MERGE ANYWHERE:Fix NPE during Activity transition using wrong Activity.
George Mount [Tue, 16 Aug 2016 20:10:19 +0000 (13:10 -0700)]
DO NOT MERGE ANYWHERE:Fix NPE during Activity transition using wrong Activity.

Bug 30786309

If the Activity used in makeSceneTransitionAnimation isn't
the same one used in the startActivity call, a NullPointerException
could be thrown.

Change-Id: Id21c54fcf99b353feab62f7fc160997ed06e7d23
(cherry picked from commit 3289bfa289f560d60611dddef9441c9614fd883a)
(cherry picked from commit a3edbf6a5d4698570f2b5610390b5c70251f52d7)

7 years agoDO NOT MERGE ANYWHERE: Release mPackages lock earlier
Todd Kennedy [Thu, 18 Aug 2016 18:22:52 +0000 (11:22 -0700)]
DO NOT MERGE ANYWHERE: Release mPackages lock earlier

We cannot hold mPackages when calling into generatePackageDexopts().
This method takes Package Manager's mInstallLock. By holding mPackages,
we have lock inversion and hilarity ensues.

Change-Id: Ia11a158677051e3511702f38cde6780e75b256fb
Fixes: 30927731
(cherry picked from commit a8d4f489974f3ea8f73990cbabbce205343fb926)

7 years agoDoc change: updates for final N landing page and related resources.
Dirk Dougherty [Sat, 20 Aug 2016 06:02:10 +0000 (06:02 +0000)]
Doc change: updates for final N landing page and related resources.
am: b0ca00431f

Change-Id: Ie9aee46ce91c20c520ff6e96431e3fb7dcb6bbf1

7 years agoDoc change: updates for final N landing page and related resources.
Dirk Dougherty [Thu, 18 Aug 2016 02:09:14 +0000 (19:09 -0700)]
Doc change: updates for final N landing page and related resources.

Change-Id: Ieeb3dd74a889d6c0118e4ca8575abdaddcde7e73