OSDN Git Service

android-x86/frameworks-base.git
7 years agoDocs: Developer written case studies batch 3 (proj 31) am: 26ab4135ab
George French [Tue, 11 Oct 2016 16:03:57 +0000 (16:03 +0000)]
Docs:  Developer written case studies batch 3 (proj 31) am: 26ab4135ab
am: 8e38f5a2a1

Change-Id: I7557e70a102097c9c415627a478cb1af8aa4d229

7 years agoDocs: Developer written case studies batch 3 (proj 31)
George French [Tue, 11 Oct 2016 15:53:00 +0000 (15:53 +0000)]
Docs:  Developer written case studies batch 3 (proj 31)
am: 26ab4135ab

Change-Id: Ie0e54e132538ec4c763fb979947ddfe6df810433

7 years agoMerge "docs: Revised Espresso code snippets" into nyc-dev am: aa78ed5b0a
Kevin Hufnagle [Tue, 11 Oct 2016 07:41:44 +0000 (07:41 +0000)]
Merge "docs: Revised Espresso code snippets" into nyc-dev am: aa78ed5b0a
am: 884c243e5c

Change-Id: I2d6776ecbf524f6abfb2636697ac7847ebe1e85d

7 years agodocs: Revised Espresso code snippets am: d3c3c34134
Kevin Hufnagle [Tue, 11 Oct 2016 07:40:54 +0000 (07:40 +0000)]
docs: Revised Espresso code snippets am: d3c3c34134
am: da9289f562

Change-Id: Ida43998a2f387bf25f19407bdc5b6569f0b189f5

7 years agoMerge "docs: Revised Espresso code snippets" into nyc-dev
Kevin Hufnagle [Tue, 11 Oct 2016 07:35:29 +0000 (07:35 +0000)]
Merge "docs: Revised Espresso code snippets" into nyc-dev
am: aa78ed5b0a

Change-Id: Ia6c2a1b6c61ffd2530f950afd15b5d8314a38ffc

7 years agodocs: Revised Espresso code snippets
Kevin Hufnagle [Tue, 11 Oct 2016 07:35:26 +0000 (07:35 +0000)]
docs: Revised Espresso code snippets
am: d3c3c34134

Change-Id: I8c82e05a90dcdfb206e50130932b225d0765a3fb

7 years agoMerge "docs: Revised Espresso code snippets" into nyc-dev
Kevin Hufnagle [Tue, 11 Oct 2016 07:24:45 +0000 (07:24 +0000)]
Merge "docs: Revised Espresso code snippets" into nyc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Tue, 11 Oct 2016 07:22:19 +0000 (07:22 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Tue, 11 Oct 2016 07:14:19 +0000 (07:14 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Tue, 11 Oct 2016 07:13:30 +0000 (07:13 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoMerge "cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings...
Kevin Hufnagle [Tue, 11 Oct 2016 06:16:04 +0000 (06:16 +0000)]
Merge "cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings within IAB." into nyc-dev am: 8e4ea67fa7
am: 2b07befcd6

Change-Id: I74401c545aae96a156a26ce5f6002db9dc5feab5

7 years agocherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings within...
Kevin Hufnagle [Tue, 11 Oct 2016 06:15:21 +0000 (06:15 +0000)]
cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings within IAB. am: 197226e4a5
am: 87ac4d8691

Change-Id: I0c195850b0382246c17aca39564bd9ecdd5c9ebd

7 years agoMerge "cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings...
Kevin Hufnagle [Tue, 11 Oct 2016 06:03:58 +0000 (06:03 +0000)]
Merge "cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings within IAB." into nyc-dev
am: 8e4ea67fa7

Change-Id: I9a31d23808839857eeb3346667a45059c4d49f7d

7 years agocherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings within...
Kevin Hufnagle [Tue, 11 Oct 2016 06:03:54 +0000 (06:03 +0000)]
cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings within IAB.
am: 197226e4a5

Change-Id: I443179f1118dd6115a8b61827d3c9a4b3250d028

7 years agoMerge "cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings...
Kevin Hufnagle [Tue, 11 Oct 2016 05:54:10 +0000 (05:54 +0000)]
Merge "cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file settings within IAB." into nyc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 11 Oct 2016 04:46:14 +0000 (21:46 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iece12c05142abba693f3be0c218d45ceeadceabe
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 11 Oct 2016 04:32:53 +0000 (21:32 -0700)]
Import translations. DO NOT MERGE

Change-Id: I2cd0be069a4961074e96a8f433e1e270764ccf3d
Auto-generated-cl: translation import

7 years agoMerge "List HF_INDICATORS_VALUE_CHANGED broadcast as protected" into nyc-mr1-dev
TreeHugger Robot [Tue, 11 Oct 2016 03:17:52 +0000 (03:17 +0000)]
Merge "List HF_INDICATORS_VALUE_CHANGED broadcast as protected" into nyc-mr1-dev

7 years agoList HF_INDICATORS_VALUE_CHANGED broadcast as protected
Jack He [Mon, 10 Oct 2016 19:37:40 +0000 (12:37 -0700)]
List HF_INDICATORS_VALUE_CHANGED broadcast as protected

android.bluetooth.headset.action.HF_INDICATORS_VALUE_CHANGED
notification should be protected.

Bug: 32059227
Test: manual
Change-Id: I06d4a7e3aa3a5586eb09d2538b4b526a5d073f9a
(cherry picked from commit b798f79ba26e057531fb51e65824e0deee445f26)

7 years agoIgnore wallpaper relaunch timeout during shutdown
Christopher Tate [Tue, 11 Oct 2016 00:44:48 +0000 (17:44 -0700)]
Ignore wallpaper relaunch timeout during shutdown

Because of course during system shutdown, the wallpaper service
won't actually get relaunched.  Sometimes shutdown can take long
enough that this timeout kicks, so we need to avoid clearing the
live wallpaper state spuriously.

For simplicity we just check at "would have timed out now" time
rather than try to distinguish between the shutdown case and a
genuine crash that raced with the shutdown broadcast.

Bug 32020355

Change-Id: I9335b2c0214b4c750ef950fed157d186aa670176

7 years agoMerge "Turn off additional logging in text rendering" into nyc-mr1-dev
TreeHugger Robot [Tue, 11 Oct 2016 00:30:32 +0000 (00:30 +0000)]
Merge "Turn off additional logging in text rendering" into nyc-mr1-dev

7 years agoMerge "Set MIME type when building BROWSE intents." into nyc-mr1-dev
TreeHugger Robot [Mon, 10 Oct 2016 23:21:32 +0000 (23:21 +0000)]
Merge "Set MIME type when building BROWSE intents." into nyc-mr1-dev

7 years agoDocs: Developer written case studies batch 3 (proj 31)
George French [Thu, 6 Oct 2016 22:04:33 +0000 (15:04 -0700)]
Docs:  Developer written case studies batch 3 (proj 31)

bug: b/31739418
Change-Id: Iec92348aca9c4753a7a54b48c75d80dd5062dff0

7 years agoDocs: Remove a reference to a deprecated sample am: 3e01ab2b0e
Bert McMeen [Mon, 10 Oct 2016 22:10:20 +0000 (22:10 +0000)]
Docs: Remove a reference to a deprecated sample am: 3e01ab2b0e
am: c48ad2580a

Change-Id: Ic7f79fddf6696346b171e2bb2601e813dc82aa06

7 years agoDocs: Remove a reference to a deprecated sample
Bert McMeen [Mon, 10 Oct 2016 22:05:20 +0000 (22:05 +0000)]
Docs: Remove a reference to a deprecated sample
am: 3e01ab2b0e

Change-Id: Idd2ac6b2c6aa056c88033aa10cd7732d2b343b75

7 years agoMerge "Remove incorrect non-roaming list for Telus." into nyc-mr1-dev
Junda Liu [Mon, 10 Oct 2016 21:58:26 +0000 (21:58 +0000)]
Merge "Remove incorrect non-roaming list for Telus." into nyc-mr1-dev

7 years agoSet MIME type when building BROWSE intents.
Jeff Sharkey [Mon, 10 Oct 2016 21:26:14 +0000 (15:26 -0600)]
Set MIME type when building BROWSE intents.

If we created a BROWSE PendingIntent early during boot (while the
device was still locked), we would resolve the MIME type as "null"
meaning the intent would fail to launch.

Since we always know what the MIME type will be, set it explicitly.

Test: boot device while USB device attached
Bug: 30742481
Change-Id: I23c523cbe2660ca63a3b7df1f41300ab803b314c

7 years agoDocs: Remove a reference to a deprecated sample
Bert McMeen [Mon, 10 Oct 2016 21:21:00 +0000 (14:21 -0700)]
Docs: Remove a reference to a deprecated sample

Bug: 31709180
Change-Id: Ieec19820b1154628236495541a28b50089c4e0cd

7 years agoTurn off additional logging in text rendering
sergeyv [Mon, 10 Oct 2016 19:25:06 +0000 (12:25 -0700)]
Turn off additional logging in text rendering

Change-Id: If5f11489c05e320e4436fb57680857b29228a755
b:30427106

7 years agoMerge "Fixed the memory leak when receiving Nav messages" into nyc-mr1-dev
Lifu Tang [Mon, 10 Oct 2016 19:00:07 +0000 (19:00 +0000)]
Merge "Fixed the memory leak when receiving Nav messages" into nyc-mr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 10 Oct 2016 18:30:39 +0000 (11:30 -0700)]
Import translations. DO NOT MERGE

Change-Id: I00d5ccf364c1b124e586148a139779a94cfafbf4
Auto-generated-cl: translation import

7 years agoMerge "Fix dismissing window showing" into nyc-mr1-dev
Jorim Jaggi [Mon, 10 Oct 2016 11:46:58 +0000 (11:46 +0000)]
Merge "Fix dismissing window showing" into nyc-mr1-dev

7 years agoFixed the memory leak when receiving Nav messages
Lifu Tang [Sat, 8 Oct 2016 09:57:53 +0000 (02:57 -0700)]
Fixed the memory leak when receiving Nav messages

Bug: 32038182

Change-Id: Ie659dc945d6efc7feaf9285d3e7375c90cba7234

7 years agoSupport calling start() in onAnimationFinished(...) in AVD
Doris Liu [Fri, 7 Oct 2016 18:09:21 +0000 (11:09 -0700)]
Support calling start() in onAnimationFinished(...) in AVD

This CL fixed an issue where calling start() from onAnimationFinished()
caused AnimationListenerBridge::onAnimationFinished(...) to be unsafely
re-entered and the new start listener was (incorrectly) reset to null.

BUG: 31971397
Test: test apk in the bug linked above
Change-Id: Ica809ef2dab884950b93b54f2d0cb4b81e9830f1

7 years agodocs: Revised Espresso code snippets
Kevin Hufnagle [Fri, 9 Sep 2016 04:22:37 +0000 (21:22 -0700)]
docs: Revised Espresso code snippets

The code snippet showing how to migrate subclasses of
ActivityInstrumentationTestCase2 to Espresso didn't compile. These
changes allow it to run successfully. Also removed obsolete section
describing using Espresso with ActivityInstrumentationTestCase2.

Bug: 27453733
Change-Id: Ib7c7e85d3299337f14be1482f7eb574c9a30dc22

7 years agodocs: add collections for Distribute Stories, Games and Apps am: d366709268
Joe Fernandez [Fri, 7 Oct 2016 22:48:01 +0000 (22:48 +0000)]
docs: add collections for Distribute Stories, Games and Apps am: d366709268
am: a424ec21cb

Change-Id: Iaebda3b697804c384c9df039ab104d49f0b5ddec

7 years agodocs: add collections for Distribute Stories, Games and Apps
Joe Fernandez [Fri, 7 Oct 2016 22:40:02 +0000 (22:40 +0000)]
docs: add collections for Distribute Stories, Games and Apps
am: d366709268

Change-Id: I13ac71c0e908a0a7ffd76babe7fcb4e39ff1352e

7 years agodocs: add collections for Distribute Stories, Games and Apps
Joe Fernandez [Fri, 7 Oct 2016 21:11:49 +0000 (14:11 -0700)]
docs: add collections for Distribute Stories, Games and Apps

b/31741249

Change-Id: I873ce82f18c5edbdeb85fb2fdb25ba322760a2dc

7 years agoMerge "Removing over-active NTP & XTRA assistance downloads" into nyc-mr1-dev
Wyatt Riley [Fri, 7 Oct 2016 21:05:55 +0000 (21:05 +0000)]
Merge "Removing over-active NTP & XTRA assistance downloads" into nyc-mr1-dev

7 years agoMerge "Correctly pass number of input allocations for BLAS" into nyc-mr1-dev
TreeHugger Robot [Fri, 7 Oct 2016 20:46:17 +0000 (20:46 +0000)]
Merge "Correctly pass number of input allocations for BLAS" into nyc-mr1-dev

7 years agoMerge "Updates documentation for MessagingStyle constructor" into nyc-mr1-dev
TreeHugger Robot [Fri, 7 Oct 2016 20:34:48 +0000 (20:34 +0000)]
Merge "Updates documentation for MessagingStyle constructor" into nyc-mr1-dev

7 years agoMerge "Scale bitmap shaders for target density" into nyc-mr1-dev
TreeHugger Robot [Fri, 7 Oct 2016 20:30:59 +0000 (20:30 +0000)]
Merge "Scale bitmap shaders for target density" into nyc-mr1-dev

7 years agoScale bitmap shaders for target density
Alan Viverette [Fri, 7 Oct 2016 20:23:32 +0000 (16:23 -0400)]
Scale bitmap shaders for target density

Also fixes progress bar sample tile to reflect density and ensures
that ProgressBar.tileify() clones inner drawables into the correct
density.

Bug: 31841123
Test: BitmapDrawableTest#testPreloadDensity()
Test: ThemeHostTest
Test: Visual inspection of ApiDemos
Change-Id: I9dcb9817d8d91d61ff0215987247e9e7fb089c46

7 years agoCorrectly pass number of input allocations for BLAS
Miao Wang [Thu, 6 Oct 2016 17:45:42 +0000 (10:45 -0700)]
Correctly pass number of input allocations for BLAS

Bug: 31992305

Test: Build and CTS RsBlas test pass on Angler.
Change-Id: If49c0be003d9c2a2175924dc3303703b9ab49357
(cherry picked from commit b742fcc808165fbeeb1a48761e7d629f60207de2)

7 years agoMerge "When adding dialog window but not creating update the configuration." into...
Rob Carr [Fri, 7 Oct 2016 19:16:00 +0000 (19:16 +0000)]
Merge "When adding dialog window but not creating update the configuration." into nyc-mr1-dev

7 years agoMerge "Allow sysui navigation to work when application occludes keyguard" into nyc...
Jim Miller [Fri, 7 Oct 2016 18:43:58 +0000 (18:43 +0000)]
Merge "Allow sysui navigation to work when application occludes keyguard" into nyc-mr1-dev

7 years agoMerge "Revert "Revert "Change bang to x for indication of no internet""" into nyc...
TreeHugger Robot [Fri, 7 Oct 2016 17:11:58 +0000 (17:11 +0000)]
Merge "Revert "Revert "Change bang to x for indication of no internet""" into nyc-mr1-dev

7 years agoUpdates documentation for MessagingStyle constructor
Alex Hills [Fri, 7 Oct 2016 13:52:44 +0000 (09:52 -0400)]
Updates documentation for MessagingStyle constructor

MessagingStyle expects the field userReplyName to be non-null, but the
documentation doesn't describe it as such. This updates the documentation
to say the field is required, and adds a NonNull annotation.

This has no behavior changes.

BUG:31747744
Change-Id: If832d059c276e856fba366dabfa8a5821bb63054

7 years agoFix dismissing window showing
Jorim Jaggi [Mon, 3 Oct 2016 14:33:56 +0000 (16:33 +0200)]
Fix dismissing window showing

Only show dismissing window if we are about to unlock, and not just
in all cases. For that, set a flag to true during the process, and
reset the flag after the Keyguard has unlocked.

Test: Have a FLAG_SHOW_WHEN_LOCKED activity that starts a
FLAG_DISMISS_KEYGUARD_ACTIVITY. Check whether window is hidden
when toggling the power button. Make sure that the device is
in a trusted state during the whole test.

Change-Id: I9346dd869d1cf50a42c64a5f7c69f8e24f1e1f9b
Fixes: 31810884

7 years agoMerge "Force APKs to be streamed" into nyc-dev am: dd100f4298
Todd Kennedy [Fri, 7 Oct 2016 14:37:17 +0000 (14:37 +0000)]
Merge "Force APKs to be streamed" into nyc-dev am: dd100f4298
am: bafabbe4b9

Change-Id: I0ff901eb1b123a21a425072439c8be9dcd66ae6a

7 years agoForce APKs to be streamed am: d220683d33
Todd Kennedy [Fri, 7 Oct 2016 14:36:31 +0000 (14:36 +0000)]
Force APKs to be streamed am: d220683d33
am: e119cccce0

Change-Id: I196c12c3b6ebf33f6ff72abde72f67dd864c1eaf

7 years agoMerge "Force APKs to be streamed" into nyc-dev
Todd Kennedy [Fri, 7 Oct 2016 14:29:06 +0000 (14:29 +0000)]
Merge "Force APKs to be streamed" into nyc-dev
am: dd100f4298

Change-Id: Ic1904dab79ee0cccdc1aace7eca89d9a6cb48f4f

7 years agoForce APKs to be streamed
Todd Kennedy [Fri, 7 Oct 2016 14:29:03 +0000 (14:29 +0000)]
Force APKs to be streamed
am: d220683d33

Change-Id: I617a4854f406dbdacf3b150df0bd72793112d95c

7 years agoMerge "Force APKs to be streamed" into nyc-dev
TreeHugger Robot [Fri, 7 Oct 2016 14:21:26 +0000 (14:21 +0000)]
Merge "Force APKs to be streamed" into nyc-dev

7 years agoRevert "Revert "Change bang to x for indication of no internet""
Jason Monk [Fri, 7 Oct 2016 13:15:24 +0000 (13:15 +0000)]
Revert "Revert "Change bang to x for indication of no internet""

This reverts commit ed29365c9e169dbf05857bf9ca5125175a6dbe44.

Fixes: 31978991
Change-Id: I7554efc6877b100e4238178fd2029909518be3bb

7 years agoMerge "Reject DHCP packets with no magic cookie" into nyc-mr1-dev
Hugo Benichi [Fri, 7 Oct 2016 02:22:32 +0000 (02:22 +0000)]
Merge "Reject DHCP packets with no magic cookie" into nyc-mr1-dev

7 years agoAllow sysui navigation to work when application occludes keyguard
Jim Miller [Fri, 7 Oct 2016 02:11:03 +0000 (19:11 -0700)]
Allow sysui navigation to work when application occludes keyguard

Fixes bug 30650150

Change-Id: Ie4a858dcfd259c733cd32c3c2b1dec2ff437f1ab

7 years agocherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file
Kevin Hufnagle [Wed, 25 May 2016 20:01:30 +0000 (13:01 -0700)]
cherry-pick from mnc-io-docs: docs: Updated descriptions for CSV file
settings within IAB.

The section titled "Adding a batch of items to a product list," found
within the "Administering In-app Billing" page on the DAC site, now
contains up-to-date descriptions of the different settings within the
CSV files used with product lists within the Google Play Developer
Console.

Bug: 28767053
Change-Id: I578aaacdaa866d9fbac8a087f22eb1c3617437ba

7 years agoMerge "Add logging to CallerInfoAsyncQuery" into nyc-mr1-dev
Hall Liu [Thu, 6 Oct 2016 21:39:03 +0000 (21:39 +0000)]
Merge "Add logging to CallerInfoAsyncQuery" into nyc-mr1-dev

7 years agoMerge "Recents TV: Do not allow negative delay" into nyc-mr1-dev
Sid Soundararajan [Thu, 6 Oct 2016 20:23:13 +0000 (20:23 +0000)]
Merge "Recents TV: Do not allow negative delay" into nyc-mr1-dev

7 years agoMerge "Fix job scheduler crash due to uninstall race" into nyc-mr1-dev
Chris Tate [Thu, 6 Oct 2016 18:10:35 +0000 (18:10 +0000)]
Merge "Fix job scheduler crash due to uninstall race" into nyc-mr1-dev

7 years agoMerge "Catch runtime exceptions when parsing DHCP packets" into nyc-mr1-dev
TreeHugger Robot [Thu, 6 Oct 2016 17:10:43 +0000 (17:10 +0000)]
Merge "Catch runtime exceptions when parsing DHCP packets" into nyc-mr1-dev

7 years agoRemove incorrect non-roaming list for Telus.
Junda Liu [Thu, 6 Oct 2016 16:35:40 +0000 (09:35 -0700)]
Remove incorrect non-roaming list for Telus.

Bug: b/30964320
Change-Id: I5a605339fd82b41b02616a706fe9ab5774c550a7

7 years agoRemoving over-active NTP & XTRA assistance downloads
Wyatt Riley [Wed, 5 Oct 2016 19:03:03 +0000 (12:03 -0700)]
Removing over-active NTP & XTRA assistance downloads

Restoring pre-Connectivity-Manager intended behavior of only
pending-network NTP & XTRA downloads restarting when
network connectivity returns

Bug: 31864876
Fixes: 31864876

Change-Id: I5b967e75c610277988e8e9cfa1e938c999333edb

7 years agoWear Preview, auto, tv, versions project metadata. b/31771704 b/31903798 b/31773716...
Amanda Kassay [Thu, 6 Oct 2016 13:51:05 +0000 (13:51 +0000)]
Wear Preview, auto, tv, versions project metadata. b/31771704 b/31903798 b/31773716 am: fd6846e116
am: a7e9861112

Change-Id: I0a4e46c44bc3c54141700ce39404cd26eb1f9719

7 years agoWear Preview, auto, tv, versions project metadata. b/31771704 b/31903798 b/31773716
Amanda Kassay [Thu, 6 Oct 2016 13:44:33 +0000 (13:44 +0000)]
Wear Preview, auto, tv, versions project metadata. b/31771704 b/31903798 b/31773716
am: fd6846e116

Change-Id: I1664b69e5d3195d2ecebbb7b6bd9ec323ad42a3e

7 years agoReject DHCP packets with no magic cookie
Hugo Benichi [Wed, 5 Oct 2016 12:07:19 +0000 (21:07 +0900)]
Reject DHCP packets with no magic cookie

This patch adds an explicit check in the DHCP packet parser for
rejecting packets without a magic cookie, instead of relying on the
top-level try-catch-all in the parser.

This allows to add to DHCP error metrics this specific error.

It also allows to add two poor man's fuzzing tests that tries to find
additional gaps in the DHCP packet parser by
 - trying to parse all subslices of a valid offer packet.
 - trying to parse random byte arrays.

Test: covered by previously introduced malformed DHCP packet unit tests
      + additional fuzzing tests.
Bug: 31850211
Change-Id: If53c9ba9df78d7604ec018c9d67c237ae59c4833

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Thu, 6 Oct 2016 09:32:16 +0000 (09:32 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Thu, 6 Oct 2016 09:31:23 +0000 (09:31 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 6 Oct 2016 06:41:54 +0000 (23:41 -0700)]
Import translations. DO NOT MERGE

Change-Id: Id0aff581c209fd43aa0daebbb1e7941652e1222c
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 6 Oct 2016 06:28:53 +0000 (23:28 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ica9bf5e820c6edad7236034a72b3e3f659727ac5
Auto-generated-cl: translation import

7 years agoAdd logging to CallerInfoAsyncQuery
Hall Liu [Wed, 5 Oct 2016 23:56:17 +0000 (16:56 -0700)]
Add logging to CallerInfoAsyncQuery

Add logging to CallerInfoAsyncQuery to help diagnose timeout errors

Bug: 31755827
Change-Id: If7cf34baf084ca8916952842585a32b3e93eba73

7 years agoChange DEFAULT_BG_LOW_JOB_COUNT to 1 in JobSchedulerService.
Nancy Zheng [Wed, 5 Oct 2016 23:27:14 +0000 (16:27 -0700)]
Change DEFAULT_BG_LOW_JOB_COUNT to 1 in JobSchedulerService.

Bug: 31601136
Change-Id: I595f192698b97dc6472a67dc1a1eebd60533efa7

7 years agoWear Preview, auto, tv, versions project metadata.
Amanda Kassay [Wed, 5 Oct 2016 21:28:53 +0000 (17:28 -0400)]
Wear Preview, auto, tv, versions project metadata.
b/31771704 b/31903798 b/31773716

Staged:
https://android-dot-devsite.googleplex.com/about/versions/nougat/index.html
https://android-dot-devsite.googleplex.com/index.html
https://android-dot-devsite.googleplex.com/wear/preview/index.html

Change-Id: I639b3d168b839745669787c56b44c28fa85252d9

7 years agoFix job scheduler crash due to uninstall race
Christopher Tate [Wed, 5 Oct 2016 21:45:46 +0000 (14:45 -0700)]
Fix job scheduler crash due to uninstall race

It's possible to get a PACKAGE_CHANGED broadcast well after the
package has actually been uninstalled outright because of broadcast
delivery latencies.  Understand the exception that might be thrown
when asking for package info in such cases, so we don't crash the
Android runtime.

Bug 31865735

Change-Id: I69b2678f0f724fc731aa48fed7af58ce60d3c21c

7 years agoMerge "Make umbra lighter when the blocker is too high and has no real umbra area...
Tenghui Zhu [Wed, 5 Oct 2016 21:34:14 +0000 (21:34 +0000)]
Merge "Make umbra lighter when the blocker is too high and has no real umbra area." into nyc-mr1-dev

7 years agoWhen adding dialog window but not creating update the configuration.
Robert Carr [Wed, 5 Oct 2016 20:13:21 +0000 (13:13 -0700)]
When adding dialog window but not creating update the configuration.

When we dismiss the dialog as opposed to hide it, it is removed
from the local WindowManagerGlobal's list of ViewRoots. Thus it stops
receiving configuration changes. When first adding a ViewRoot it will
pull the configuration from the context, but in this case
we are reusing one which has already been added and removed
and no such action will occur.

Bug: 31004614
Change-Id: Ie247bcf1a14caf4a42413c6813e337aa4c88e3e4

7 years agoMerge "Revert "Bump up preloading recents on boot up to user unlocked."" into nyc...
Winson Chung [Wed, 5 Oct 2016 19:52:55 +0000 (19:52 +0000)]
Merge "Revert "Bump up preloading recents on boot up to user unlocked."" into nyc-mr1-dev

7 years agoMerge "Ambient: Re-register all trigger sensors if one fires" into nyc-mr1-dev
TreeHugger Robot [Wed, 5 Oct 2016 19:51:03 +0000 (19:51 +0000)]
Merge "Ambient: Re-register all trigger sensors if one fires" into nyc-mr1-dev

7 years agoRevert "Bump up preloading recents on boot up to user unlocked."
Winson Chung [Wed, 5 Oct 2016 17:49:09 +0000 (17:49 +0000)]
Revert "Bump up preloading recents on boot up to user unlocked."

This reverts commit c3eedd972dbd4f7c12428de0dc1bc86e55e13dc5.

Bug: 31823698

Change-Id: I575c64ff19463e84ebdb2950a798a371de4cfa13

7 years agoMerge "Doc change: remove intl/nn from collections paths." into nyc-dev am: 794e0d3578
Dirk Dougherty [Wed, 5 Oct 2016 18:53:14 +0000 (18:53 +0000)]
Merge "Doc change: remove intl/nn from collections paths." into nyc-dev am: 794e0d3578
am: fc7475c5b3

Change-Id: Id3e3b71ed89d2b46cf7f7c0df1e69a1b8c986000

7 years agoDoc change: remove intl/nn from collections paths. am: 240ddd735c
Dirk Dougherty [Wed, 5 Oct 2016 18:52:23 +0000 (18:52 +0000)]
Doc change: remove intl/nn from collections paths. am: 240ddd735c
am: 016f01ebfe

Change-Id: I069f07c183489c07d7010b8bb0fd85ac36216671

7 years agoMerge "Doc change: remove intl/nn from collections paths." into nyc-dev
Dirk Dougherty [Wed, 5 Oct 2016 18:47:52 +0000 (18:47 +0000)]
Merge "Doc change: remove intl/nn from collections paths." into nyc-dev
am: 794e0d3578

Change-Id: Iba00fba1609011852b4b80b589859421a0933ca2

7 years agoDoc change: remove intl/nn from collections paths.
Dirk Dougherty [Wed, 5 Oct 2016 18:47:48 +0000 (18:47 +0000)]
Doc change: remove intl/nn from collections paths.
am: 240ddd735c

Change-Id: I9a8a5643b68675353f7a1b10453cddd51fcebcf8

7 years agoMerge "Doc change: remove intl/nn from collections paths." into nyc-dev
Dirk Dougherty [Wed, 5 Oct 2016 18:40:47 +0000 (18:40 +0000)]
Merge "Doc change: remove intl/nn from collections paths." into nyc-dev

7 years agoRecents TV: Do not allow negative delay
Sid Soundararajan [Wed, 5 Oct 2016 17:30:32 +0000 (10:30 -0700)]
Recents TV: Do not allow negative delay

In rare cases, the getChildCount() has a delayed update. It enters the
for loop, and then changes to return 0. This can potentially allow
a negative delay, causing a crash.

BUG: 31933255
Change-Id: Ia245edc9fca0e1712c2af5c301bac632caed1568

7 years agoMerge "Update preview-community redirect to point at +AD." into nyc-dev am: 61d3faa52c
Dirk Dougherty [Wed, 5 Oct 2016 17:08:33 +0000 (17:08 +0000)]
Merge "Update preview-community redirect to point at +AD." into nyc-dev am: 61d3faa52c
am: 8f8fe7df92

Change-Id: I3522d25f4259106707076d6bb8fb731d612cb372

7 years agoUpdate preview-community redirect to point at +AD. am: 559013e711
Dirk Dougherty [Wed, 5 Oct 2016 17:07:44 +0000 (17:07 +0000)]
Update preview-community redirect to point at +AD. am: 559013e711
am: 1241838fb4

Change-Id: I721f56da659031ca0ba1c96af8413b6dae97f12f

7 years agoMerge "Update preview-community redirect to point at +AD." into nyc-dev
Dirk Dougherty [Wed, 5 Oct 2016 17:02:25 +0000 (17:02 +0000)]
Merge "Update preview-community redirect to point at +AD." into nyc-dev
am: 61d3faa52c

Change-Id: Ie2ae8a3d691c6b00a6d40ee98982ba8806d52047

7 years agoUpdate preview-community redirect to point at +AD.
Dirk Dougherty [Wed, 5 Oct 2016 17:02:21 +0000 (17:02 +0000)]
Update preview-community redirect to point at +AD.
am: 559013e711

Change-Id: I410968b7137d6378cd57cf7a4ce66aa8e3c2d7e6

7 years agoMerge "Update preview-community redirect to point at +AD." into nyc-dev
Dirk Dougherty [Wed, 5 Oct 2016 16:52:36 +0000 (16:52 +0000)]
Merge "Update preview-community redirect to point at +AD." into nyc-dev

7 years agoDoc change: remove intl/nn from collections paths.
Dirk Dougherty [Wed, 5 Oct 2016 16:40:02 +0000 (09:40 -0700)]
Doc change: remove intl/nn from collections paths.

Change-Id: I45c0322d39a54e2565401d11bdc56d7e8e555cd2

Bug-Id: 31940660

7 years agoCatch runtime exceptions when parsing DHCP packets
Hugo Benichi [Wed, 5 Oct 2016 09:33:21 +0000 (18:33 +0900)]
Catch runtime exceptions when parsing DHCP packets

This patch adds a try catch all to DHCP packet parsing so that
DhcpClient does not choke on malformed packets, brinding down with it
the whole framework.

Test: added new unit tests catching the issue fixed in this patch.
Bug: 31850211
Change-Id: I3c50a149fed6b2cbc4f40bb4f0e5bb2b56859b44

7 years agoMerge "Fix issue #31305336: File corrupt: too many wake locks 101" into nyc-mr1-dev
TreeHugger Robot [Wed, 5 Oct 2016 03:54:11 +0000 (03:54 +0000)]
Merge "Fix issue #31305336: File corrupt: too many wake locks 101" into nyc-mr1-dev

7 years agoMerge "Allow shell to acquire wakelock. DO NOT MERGE." into nyc-mr1-dev
TreeHugger Robot [Wed, 5 Oct 2016 03:49:24 +0000 (03:49 +0000)]
Merge "Allow shell to acquire wakelock. DO NOT MERGE." into nyc-mr1-dev

7 years agoMake umbra lighter when the blocker is too high and has no real umbra area.
Teng-Hui Zhu [Mon, 3 Oct 2016 21:26:21 +0000 (14:26 -0700)]
Make umbra lighter when the blocker is too high and has no real umbra area.

b/31939390
Test: CTS testShadowLayout && Manual FrameworkShadow test

Change-Id: Ib0b6c4239ac8a521a827be246e912daf2ad3b885

7 years agoEliminate unnecessary object churn in job scheduler updating
Christopher Tate [Tue, 4 Oct 2016 23:34:48 +0000 (16:34 -0700)]
Eliminate unnecessary object churn in job scheduler updating

The arbitrary-caller "what job is currently running?" state inspector
returns a clone of the JobStatus record for it, not a live reference
to the scheduler's active state.  That's appropriate for most cases
but when doing its own internal bookkeeping, the object churn in cloning
(especially, an unneeded clone just for purposes of comparing to some
other job!) is merely a huge waste of CPU and GC load.

So now we don't do that unnecessarily, and everything is much leaner.

Bug 31751985

Change-Id: Idacb52e9e5ca17b9e12b7ccd2fc2e1ec8b3547f6

7 years agoAmbient: Re-register all trigger sensors if one fires
Adrian Roos [Tue, 4 Oct 2016 20:35:10 +0000 (16:35 -0400)]
Ambient: Re-register all trigger sensors if one fires

Works around an issue where triggering one trigger sensor can
affect other trigger sensors. To be sure, re-register them all.

Change-Id: I4a0999275638e8a78c3c604fda6527aff0d9365a
Fixes: 31933894

7 years agoMerge "Tethering: check if configManager is null" into nyc-mr1-dev
Paul Stewart [Tue, 4 Oct 2016 23:17:09 +0000 (23:17 +0000)]
Merge "Tethering: check if configManager is null" into nyc-mr1-dev

7 years agoTethering: check if configManager is null
Rebecca Silberstein [Tue, 4 Oct 2016 20:53:33 +0000 (13:53 -0700)]
Tethering: check if configManager is null

Before attempting to retrieve a carrier entitlement setting, first make
sure we have a carrier config manager and if we do have a carrier config
manager, the config it holds is not null.

Bug: 31929638
Change-Id: Iee476c476cb3de109cdccbd955b7fb986dd4267b