OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Delay starting the webview_zygote until first use."
Robert Sesek [Wed, 28 Feb 2018 18:07:09 +0000 (18:07 +0000)]
Merge "Delay starting the webview_zygote until first use."
am: 6d9d717ab7

Change-Id: I7a2c485fcf04a5728081f99610435a970dc4bb1b

6 years agoMerge "Delay starting the webview_zygote until first use."
Treehugger Robot [Wed, 28 Feb 2018 16:02:58 +0000 (16:02 +0000)]
Merge "Delay starting the webview_zygote until first use."

6 years agoMerge "Don't use cutils/Atomic.h"
Steven Moreland [Wed, 28 Feb 2018 13:51:44 +0000 (13:51 +0000)]
Merge "Don't use cutils/Atomic.h"
am: 07735797a2

Change-Id: Ie56fadea498f35c7e820f9fadac1b64697565a78

6 years agoMerge "Don't use cutils/Atomic.h"
Treehugger Robot [Wed, 28 Feb 2018 12:37:50 +0000 (12:37 +0000)]
Merge "Don't use cutils/Atomic.h"

6 years agoMerge "Notify the user and turn off tethering when the service is disallowed."
Alexandru-Andrei Rotaru [Wed, 28 Feb 2018 11:11:39 +0000 (11:11 +0000)]
Merge "Notify the user and turn off tethering when the service is disallowed."
am: e8b557bc08  -s ours

Change-Id: I2a1805375252b56209ac9d18da0f1771f5b6187b

6 years agoMerge "Notify the user and turn off tethering when the service is disallowed."
Treehugger Robot [Wed, 28 Feb 2018 10:03:02 +0000 (10:03 +0000)]
Merge "Notify the user and turn off tethering when the service is disallowed."

6 years agoNotify the user and turn off tethering when the service is disallowed.
Alexandru-Andrei Rotaru [Tue, 18 Jul 2017 15:49:22 +0000 (16:49 +0100)]
Notify the user and turn off tethering when the service is disallowed.

Added UserRestrinctionListener for turning the service off one the
DISALLOW_CONFIG_TETHERING is on into Tethering.  Added notification
about
tethering being turned off. Also added Unit Tests to test the
functionality
of the UserRestrictionListener added.

Bug: 27936525
Test: Turn the tehering service on (either wifi, usb or bluetooth).
Automatically the system should send a notification about the service
being active.Close settings from recents. From TestDPC User Restrictions
switch on DISALLOW_CONFIG_TETHERING. The tethering should be turned off
and a notification should appear informing that the service is inactive.

Merged-In: Ib7ea8885cedc2a842ebd4487c8b366a6666996bc
Change-Id: I4a57137a7ad592ca186d9508d5cc2fad3f1bc985

6 years agoMerge "Add OEM_PAID network capability"
Pavel Maltsev [Wed, 28 Feb 2018 08:14:48 +0000 (08:14 +0000)]
Merge "Add OEM_PAID network capability"
am: 4c00edd361

Change-Id: I2fb8825bc1038783ef45907846b52192b6fe5d18

6 years agoMerge "Add OEM_PAID network capability"
Treehugger Robot [Wed, 28 Feb 2018 07:06:00 +0000 (07:06 +0000)]
Merge "Add OEM_PAID network capability"

6 years agoMerge "Don't throw exception if phone process is dead for carrier ID APIs"
fionaxu [Wed, 28 Feb 2018 04:45:25 +0000 (04:45 +0000)]
Merge "Don't throw exception if phone process is dead for carrier ID APIs"
am: 8c32954906

Change-Id: Ia770310f6135df041bc1d84b09cfbdcda1debd2f

6 years agoMerge "Modify shouldProcessCall API to remove redundancy"
Brad Ebinger [Wed, 28 Feb 2018 04:33:28 +0000 (04:33 +0000)]
Merge "Modify shouldProcessCall API to remove redundancy"
am: 59391aa4a0

Change-Id: Iaf27b98f03c363ca23989c251f9e5d66bae394ba

6 years agoMerge "Add documentation for SECRET_CODE_ACTION according to API review process."
Cassie [Wed, 28 Feb 2018 04:25:25 +0000 (04:25 +0000)]
Merge "Add documentation for SECRET_CODE_ACTION according to API review process."
am: e6691d8e89

Change-Id: I0832ce666883a9054a9252ef93d50e615a64bc79

6 years agoMerge "Don't throw exception if phone process is dead for carrier ID APIs"
Treehugger Robot [Wed, 28 Feb 2018 03:14:45 +0000 (03:14 +0000)]
Merge "Don't throw exception if phone process is dead for carrier ID APIs"

6 years agoMerge "Modify shouldProcessCall API to remove redundancy"
Treehugger Robot [Wed, 28 Feb 2018 03:02:27 +0000 (03:02 +0000)]
Merge "Modify shouldProcessCall API to remove redundancy"

6 years agoMerge "Add documentation for SECRET_CODE_ACTION according to API review process."
Treehugger Robot [Wed, 28 Feb 2018 02:30:44 +0000 (02:30 +0000)]
Merge "Add documentation for SECRET_CODE_ACTION according to API review process."

6 years agoDon't throw exception if phone process is dead for carrier ID APIs
fionaxu [Tue, 27 Feb 2018 05:11:40 +0000 (21:11 -0800)]
Don't throw exception if phone process is dead for carrier ID APIs

Bug: 73772776
Test: Build
Change-Id: I81638f52d5d8ccf1005878ba4f3967e07169284b
(cherry picked from commit 331965e5d6f753cd061303607cdfbe9dff4be896)
Merged-in: I81638f52d5d8ccf1005878ba4f3967e07169284b

6 years agoMerge "Use 4 thresholds instead of 6"
Jordan Liu [Wed, 28 Feb 2018 01:39:58 +0000 (01:39 +0000)]
Merge "Use 4 thresholds instead of 6"
am: fdebcf1ae2

Change-Id: Ie2d1ab2e79d0d3cc79815da7af4022e58838e5cd

6 years agoMerge "Fix: Double-free error on RemoteFillService"
Tetsutoki Shiozawa [Wed, 28 Feb 2018 00:00:01 +0000 (00:00 +0000)]
Merge "Fix: Double-free error on RemoteFillService"
am: 5b04f89343

Change-Id: I7e8872a28ee01f29710945ac692236fa94f3c13a

6 years agoMerge "Use 4 thresholds instead of 6"
Jordan Liu [Tue, 27 Feb 2018 23:44:03 +0000 (23:44 +0000)]
Merge "Use 4 thresholds instead of 6"

6 years agoMerge "Fix: Double-free error on RemoteFillService"
Treehugger Robot [Tue, 27 Feb 2018 22:51:21 +0000 (22:51 +0000)]
Merge "Fix: Double-free error on RemoteFillService"

6 years agoUse 4 thresholds instead of 6
Jordan Liu [Sat, 24 Feb 2018 01:05:13 +0000 (17:05 -0800)]
Use 4 thresholds instead of 6

Min and max thresholds are fixed.

Bug: 73775507
Bug: 70698348
Test: manual and ServiceStateTrackerTest
Change-Id: Ie7fbda0627615f49b6205142c22ad48e88735f80
Merged-In: Ie7fbda0627615f49b6205142c22ad48e88735f80

6 years agoMerge "AudioManager: Use setAvrcpAbsoluteVolume in adjustStreamVolume"
Ajay Panicker [Tue, 27 Feb 2018 20:07:49 +0000 (20:07 +0000)]
Merge "AudioManager: Use setAvrcpAbsoluteVolume in adjustStreamVolume"
am: affa54f01c

Change-Id: I48e7236ea475674b9e67defa6814e2d9fbb4cc2b

6 years agoMerge "Frameworks: Annotate JUnit4 test with @Test"
Andreas Gampe [Tue, 27 Feb 2018 19:07:49 +0000 (19:07 +0000)]
Merge "Frameworks: Annotate JUnit4 test with @Test"
am: 4d9bec6b4a

Change-Id: I0c684a434a0f43fcae1a766c6c84a756115d9dcb

6 years agoMerge "AudioManager: Use setAvrcpAbsoluteVolume in adjustStreamVolume"
Treehugger Robot [Tue, 27 Feb 2018 18:44:23 +0000 (18:44 +0000)]
Merge "AudioManager: Use setAvrcpAbsoluteVolume in adjustStreamVolume"

6 years agoMerge "Frameworks: Annotate JUnit4 test with @Test"
Treehugger Robot [Tue, 27 Feb 2018 17:30:23 +0000 (17:30 +0000)]
Merge "Frameworks: Annotate JUnit4 test with @Test"

6 years agoAudioManager: Use setAvrcpAbsoluteVolume in adjustStreamVolume
Ajay Panicker [Tue, 27 Feb 2018 00:04:15 +0000 (16:04 -0800)]
AudioManager: Use setAvrcpAbsoluteVolume in adjustStreamVolume

Use setAvrcpAbsoluteVolume() instead of adjustAvrcpAbsoluteVolume in
adjust stream volume in order to better sync device volume and remote
Bluetooth device volume. This will allow Bluetooth to avoid calculating
its own volume step size.

Bug: 68812037
Test: Connect to device that supports Absolute Volume and see that
      volume changed occur when changing volume on device.

Change-Id: I26d5812ee1a5953b6527561ce5ad1c5d944c244d

6 years agoMerge "BackgroundDexOptService: skip low battery check if not present"
Todd Poynor [Tue, 27 Feb 2018 16:33:11 +0000 (16:33 +0000)]
Merge "BackgroundDexOptService: skip low battery check if not present"
am: e90cba2115

Change-Id: I451ea71fe64e3c309a8722a3d155453b1a609a8f

6 years agoMerge "BackgroundDexOptService: skip low battery check if not present"
Treehugger Robot [Tue, 27 Feb 2018 15:24:28 +0000 (15:24 +0000)]
Merge "BackgroundDexOptService: skip low battery check if not present"

6 years agoMerge "Remove icu4j dependency."
Neil Fuller [Tue, 27 Feb 2018 12:04:25 +0000 (12:04 +0000)]
Merge "Remove icu4j dependency."
am: 6963081c5b

Change-Id: Ifc8cd0946bd069837fb46f3f8f9d85df715ab4de

6 years agoMerge "Remove icu4j dependency."
Treehugger Robot [Tue, 27 Feb 2018 10:41:12 +0000 (10:41 +0000)]
Merge "Remove icu4j dependency."

6 years agoMerge "Bluetooth: Add config value for max connected audio devices"
Jack He [Tue, 27 Feb 2018 09:54:44 +0000 (09:54 +0000)]
Merge "Bluetooth: Add config value for max connected audio devices"
am: 5a8339c9a5

Change-Id: I87d763899661fa0f4c1eb32ed0c2fac9a88355a3

6 years agoMerge "Bluetooth: Add config value for max connected audio devices"
Treehugger Robot [Tue, 27 Feb 2018 08:41:43 +0000 (08:41 +0000)]
Merge "Bluetooth: Add config value for max connected audio devices"

6 years agoBluetooth: Add config value for max connected audio devices
Jack He [Tue, 27 Feb 2018 05:04:31 +0000 (21:04 -0800)]
Bluetooth: Add config value for max connected audio devices

Bug: 64767509
Test: read config values in Bluetooth app
Change-Id: Ia5dd2fc1c16272082f11ac886e02b838575ceedd

6 years agoMerge "Add more sms error codes"
Mohamed Abdalkader [Tue, 27 Feb 2018 04:03:19 +0000 (04:03 +0000)]
Merge "Add more sms error codes"
am: c16da498d5

Change-Id: Id19bb14ebea3b0124af3a5990613a15d8c2fa44c

6 years agoMerge "Add more sms error codes"
Treehugger Robot [Tue, 27 Feb 2018 02:48:31 +0000 (02:48 +0000)]
Merge "Add more sms error codes"

6 years agoBackgroundDexOptService: skip low battery check if not present
Todd Poynor [Wed, 21 Feb 2018 04:11:43 +0000 (20:11 -0800)]
BackgroundDexOptService: skip low battery check if not present

If no battery is present, assume no need to check for low battery.

Do not interpret battery level values if battery is not present.

Bug: 34507420
Test: manual (temporary log messages with battery forced not present)
Change-Id: Iebc64bc890808d583d0bd95a31f17b6363b7ba40
Merged-In: Iebc64bc890808d583d0bd95a31f17b6363b7ba40

6 years agoMerge "Hide APN, USER and Password from log in SETUP_DATA_CALL"
Naoyuki Konda [Tue, 27 Feb 2018 01:50:43 +0000 (01:50 +0000)]
Merge "Hide APN, USER and Password from log in SETUP_DATA_CALL"
am: d676c5c134

Change-Id: Ie81e3f51647b866fbe1f6b2d0e93d5f3e7696837

6 years agoMerge "Frameworks: Annotate JUnit4 test with @Test"
Andreas Gampe [Tue, 27 Feb 2018 01:45:38 +0000 (01:45 +0000)]
Merge "Frameworks: Annotate JUnit4 test with @Test"
am: 3a12454f9a

Change-Id: I9c6001ca771d3d2dfd1bdda10661cc685ff0d7bd

6 years agoMerge "Add support for sending message with priority, link control and validity perio...
Jayachandran Chinnakkannu [Tue, 27 Feb 2018 00:35:44 +0000 (00:35 +0000)]
Merge "Add support for sending message with priority, link control and validity period options"
am: b103f9309b

Change-Id: I0a641c9d8d4bf7ce9cf78333f68424cea5c879df

6 years agoMerge "Hide APN, USER and Password from log in SETUP_DATA_CALL"
Treehugger Robot [Tue, 27 Feb 2018 00:02:34 +0000 (00:02 +0000)]
Merge "Hide APN, USER and Password from log in SETUP_DATA_CALL"

6 years agoMerge "Frameworks: Annotate JUnit4 test with @Test"
Andreas Gampe [Mon, 26 Feb 2018 23:55:49 +0000 (23:55 +0000)]
Merge "Frameworks: Annotate JUnit4 test with @Test"

6 years agoMerge "Add support for sending message with priority, link control and validity perio...
Jayachandran Chinnakkannu [Mon, 26 Feb 2018 22:53:22 +0000 (22:53 +0000)]
Merge "Add support for sending message with priority, link control and validity period options"

6 years agoMerge "Add hashCode() in UiccAccessRule."
Holly Jiuyu Sun [Mon, 26 Feb 2018 22:18:57 +0000 (22:18 +0000)]
Merge "Add hashCode() in UiccAccessRule."
am: 0da1f09f9b

Change-Id: I91b9c8e17d4480dbc6a27735e39a90f7c8e59c9d

6 years agoDelay starting the webview_zygote until first use.
Robert Sesek [Mon, 26 Feb 2018 21:54:03 +0000 (16:54 -0500)]
Delay starting the webview_zygote until first use.

During boot, WebViewZygote.setMultiprocessEnabled() is called by the
WebView initialization logic. Starting the WebViewZygote here causes a
slowdown in the system_server boot process, so delay launching the
zygote until it is needed.

Previously the webview_zygote was launched by init, and merely
connecting to it in the boot process didn't have significant overhead.

Bug: 73743583
Bug: 63749735
Test: Boot a device, verify that webview_zygote process is not running.
Test: Launch "Third-party licenses" activity from Settings, and it
      renders correctly via the WebView.

Change-Id: I1352a5df95e4a793ac64862c439ba2573ddd2d18

6 years agoRemove icu4j dependency.
Neil Fuller [Mon, 26 Feb 2018 20:38:26 +0000 (20:38 +0000)]
Remove icu4j dependency.

This dependency is no longer required: it was added
for libcore when libcore was implemented in terms of
com.icu classes. libcore has since moved to android.icu
(in core-libart) and so the droiddoc dependency is no
longer required.

Test: make droid docs
Merged-In: I6e4e79a7df201fdc2cefa60037adf831593eaa0f
Change-Id: I6e4e79a7df201fdc2cefa60037adf831593eaa0f

6 years agoMerge "Add hashCode() in UiccAccessRule."
Holly Jiuyu Sun [Mon, 26 Feb 2018 21:03:23 +0000 (21:03 +0000)]
Merge "Add hashCode() in UiccAccessRule."

6 years agoMerge "Use assigned UUID for Hearing Aid Service"
Jakub Pawlowski [Mon, 26 Feb 2018 19:23:28 +0000 (19:23 +0000)]
Merge "Use assigned UUID for Hearing Aid Service"
am: d310970d36

Change-Id: I6b62de2142ba9957609aeb166574fd75bce83834

6 years agoAdd hashCode() in UiccAccessRule.
Holly Jiuyu Sun [Thu, 22 Feb 2018 23:47:27 +0000 (15:47 -0800)]
Add hashCode() in UiccAccessRule.

hashCode() and equals() should appear together.

Bug: 73785903
Test: test on phone
Merged-In: I7f9d8943f6a0e1039815e21ff6dfe035bd674639
Change-Id: I7f9d8943f6a0e1039815e21ff6dfe035bd674639

6 years agoFix: Double-free error on RemoteFillService
Tetsutoki Shiozawa [Fri, 23 Feb 2018 04:16:56 +0000 (13:16 +0900)]
Fix: Double-free error on RemoteFillService

Symptom:
RemoteFillService was crashed due to IllegalArgumentException
"Service not registered:" at onServiceConnected.

Root cause:
RemoteFillService#onServiceConnected tries to unbind the connection
if mDestroyed is flagged or mBinding is not flagged. It always fails
with IllegalArgumentException.
Both mDestroyed and !mBinding mean the connection was unbound.
You can't unbind the unbound connection. It's not allowed.

Fixes: 73864601
Fixes: 69905688

Change-Id: If5481468ddac7be41accad63e9d5382bc6c029fd

6 years agoMerge "Use assigned UUID for Hearing Aid Service"
Jakub Pawlowski [Mon, 26 Feb 2018 18:12:26 +0000 (18:12 +0000)]
Merge "Use assigned UUID for Hearing Aid Service"

6 years agoUse assigned UUID for Hearing Aid Service
Jakub Pawlowski [Thu, 22 Feb 2018 23:10:08 +0000 (15:10 -0800)]
Use assigned UUID for Hearing Aid Service

Test: manual
Bug: 64038649
Change-Id: Iab748db944df3bba8927973d0a55d95514b9f8ed

6 years agoFrameworks: Annotate JUnit4 test with @Test
Andreas Gampe [Mon, 26 Feb 2018 16:06:30 +0000 (08:06 -0800)]
Frameworks: Annotate JUnit4 test with @Test

Mollify Errorprone.

Bug: 72076216
Test: m javac-check RUN_ERROR_PRONE=true
Test: atest IpSecServiceParameterizedTest
Change-Id: Ia3a253c4c5994937efc0f498ac047c5fb4eee3e9

6 years agoFrameworks: Annotate JUnit4 test with @Test
Andreas Gampe [Fri, 23 Feb 2018 02:06:44 +0000 (18:06 -0800)]
Frameworks: Annotate JUnit4 test with @Test

Mollify Errorprone.

Bug: 72076216
Test: m javac-check RUN_ERROR_PRONE=true
Test: atest CredentialTest
Change-Id: I07635124a306f82e5442a45a1fd61edc63c015a2

6 years agoMerge "Slightly refactor IPv4 default router interface selection"
Erik Kline [Mon, 26 Feb 2018 13:06:33 +0000 (13:06 +0000)]
Merge "Slightly refactor IPv4 default router interface selection"
am: 701421c6c9

Change-Id: I1c8b9f95c8711c191e0e95cf72a5f4e5a3c3fc53

6 years agoMerge "Slightly refactor IPv4 default router interface selection"
Treehugger Robot [Mon, 26 Feb 2018 10:54:28 +0000 (10:54 +0000)]
Merge "Slightly refactor IPv4 default router interface selection"

6 years agoMerge "Definitely abort reconnecting to native daemon during shutdown"
Tetsutoki Shiozawa [Mon, 26 Feb 2018 07:43:18 +0000 (07:43 +0000)]
Merge "Definitely abort reconnecting to native daemon during shutdown"
am: 2fd5af1036

Change-Id: I42d34accd9b56d1090a76632751447653cc8dd61

6 years agoMerge "Add device capabilities."
Holly Jiuyu Sun [Mon, 26 Feb 2018 07:35:22 +0000 (07:35 +0000)]
Merge "Add device capabilities."
am: 86316a4b42

Change-Id: I9aa51ecb8f3784e449b29358307646848ef3a309

6 years agoMerge "Definitely abort reconnecting to native daemon during shutdown"
Treehugger Robot [Mon, 26 Feb 2018 06:49:52 +0000 (06:49 +0000)]
Merge "Definitely abort reconnecting to native daemon during shutdown"

6 years agoMerge "Add device capabilities."
Holly Jiuyu Sun [Mon, 26 Feb 2018 05:49:29 +0000 (05:49 +0000)]
Merge "Add device capabilities."

6 years agoMerge "Fix NPE in NetworkMetrics"
Hugo Benichi [Sat, 24 Feb 2018 19:13:03 +0000 (19:13 +0000)]
Merge "Fix NPE in NetworkMetrics"
am: cb0714332d

Change-Id: Icd844e6f04d93e9092b7fbf109ece537dfff4116

6 years agoMerge "Fix NPE in NetworkMetrics"
Hugo Benichi [Sat, 24 Feb 2018 17:54:01 +0000 (17:54 +0000)]
Merge "Fix NPE in NetworkMetrics"

6 years agoMerge "Let sendShowMessage called from hide to show"
tiansiming [田思明] [Sat, 24 Feb 2018 02:43:03 +0000 (02:43 +0000)]
Merge "Let sendShowMessage called from hide to show"
am: e7d04d728c

Change-Id: If406d79d0489a9c61322c0937fce2c9a9a5c4dc1

6 years agoMerge "Wrap raw binder interface into public classes"
Ruchi Kandoi [Sat, 24 Feb 2018 01:51:26 +0000 (01:51 +0000)]
Merge "Wrap raw binder interface into public classes"
am: a4bde27012

Change-Id: Idd3b7a5563b2432654af1a331a6f040c1e98832a

6 years agoMerge "Let sendShowMessage called from hide to show"
Treehugger Robot [Sat, 24 Feb 2018 01:27:13 +0000 (01:27 +0000)]
Merge "Let sendShowMessage called from hide to show"

6 years agoAdd support for sending message with priority, link control and validity period options
Mengjun Leng [Mon, 13 Mar 2017 09:08:26 +0000 (17:08 +0800)]
Add support for sending message with priority, link control and validity period options

1. Added support for message priority(indicates the priority of a
   SMS to the network in the PDU) in 3gpp2
2. Added support for link control(indicates whether network can
   expect more messages or not so it can decide whether to retain
   the radio link or not) while sending multiple messages
3. Added support for validity period(indicates how much time the
   SMS is valid at the SMSC) support in 3gpp
4. Amended UT test cases for API changes and add UT validity period
   test case

Test: Verfied sending short SMS, long SMS, MMS, SMS with emoji on
      live network

Bug: 34962629

6 years agoMerge "Wrap raw binder interface into public classes"
Treehugger Robot [Sat, 24 Feb 2018 00:19:29 +0000 (00:19 +0000)]
Merge "Wrap raw binder interface into public classes"

6 years agoAdd device capabilities.
Holly Jiuyu Sun [Wed, 7 Feb 2018 04:33:00 +0000 (20:33 -0800)]
Add device capabilities.

Bug: 72223709
Test: Unit test
Merged-In: I35a74e88767f772f764734d1f535848ba43629b9
Change-Id: I35a74e88767f772f764734d1f535848ba43629b9

6 years agoDon't use cutils/Atomic.h
Steven Moreland [Fri, 23 Feb 2018 22:58:50 +0000 (14:58 -0800)]
Don't use cutils/Atomic.h

Test: builds
Change-Id: I74485a5cbecb8710714f7bf3e54da61dd787838f

6 years agoFix NPE in NetworkMetrics
Hugo Benichi [Fri, 23 Feb 2018 23:01:30 +0000 (08:01 +0900)]
Fix NPE in NetworkMetrics

addTcpStatsResult() in NetworkMetrics was not checking for the nullness
of the pendingSummary object and trying to add stats regardless.

This patch fixes addTcpStatsResult() so that it populates pendingSummary
if necessary, similarly to addConnectResult() and addDnsResult()

Bug: 73825228
Test: runtest frameworks-net
Change-Id: I616a4be0e6e5920bd2f5c58292fea769bd516df7

6 years agoSlightly refactor IPv4 default router interface selection
Erik Kline [Fri, 23 Feb 2018 22:16:06 +0000 (14:16 -0800)]
Slightly refactor IPv4 default router interface selection

Test: as follows
    - built
    - flashed
    - booted
    - USB tethering to dualstack wifi yields log lines like:

        14:33:31.970 - Looking for default routes on: {InterfaceName: wlan0 ...
        14:33:31.970 - IPv4/IPv6 upstream interface(s): wlan0/null

      and working tethering
    - runtest frameworks-net passes
Bug: 64380515
Bug: 64382985
Bug: 64976379
Change-Id: Iac94d870653ae1b71df00e8179cc4ecdb7ac412f

6 years agoAdd documentation for SECRET_CODE_ACTION according to API review
Cassie [Thu, 22 Feb 2018 17:58:33 +0000 (09:58 -0800)]
Add documentation for SECRET_CODE_ACTION according to API review
process.

 * Document who can send and who can receive the broadcast. What are the security restrictions?
   The implication here is that there should be some. What are the wake-up semantics?
 * Document who can receive SECRET_CODE action and under what circumstances,
   and what permissions are needed to receive and send it.

Bug: 7375126773392896
Test: Basic telephony sanity
Change-Id: I1b6138c9ddf4cb3d84d8b652e18d4e57f410ee4d

6 years agoMerge "Factor out telephony permission checks into a helper class."
Jeff Davidson [Fri, 23 Feb 2018 21:24:36 +0000 (21:24 +0000)]
Merge "Factor out telephony permission checks into a helper class."
am: fc5d8c8f31

Change-Id: I25cda3c74bb15d5a50414ecb5dbf788ce2d32828

6 years agoMerge "Frameworks: Remove bogus test method"
Andreas Gampe [Fri, 23 Feb 2018 21:08:46 +0000 (21:08 +0000)]
Merge "Frameworks: Remove bogus test method"
am: c65d52ff78

Change-Id: Iee4a75368b1f8d0cc9cc0594126f29acb0b5a5b7

6 years agoMerge "Factor out telephony permission checks into a helper class."
Jeff Davidson [Fri, 23 Feb 2018 20:00:15 +0000 (20:00 +0000)]
Merge "Factor out telephony permission checks into a helper class."

6 years agoMerge "Frameworks: Remove bogus test method"
Treehugger Robot [Fri, 23 Feb 2018 19:28:55 +0000 (19:28 +0000)]
Merge "Frameworks: Remove bogus test method"

6 years agoMerge "Don't wait keyguard drawn if device has no keyguard"
Jorim Jaggi [Fri, 23 Feb 2018 18:08:13 +0000 (18:08 +0000)]
Merge "Don't wait keyguard drawn if device has no keyguard"
am: a6e5165b2c

Change-Id: I8e198596eaec74fb022530544adad8efa0aadf52

6 years agoMerge "Fixed service state CTS test failing"
Jack Yu [Fri, 23 Feb 2018 17:18:49 +0000 (17:18 +0000)]
Merge "Fixed service state CTS test failing"
am: ab5bc3be50

Change-Id: I38fc94d366a16acee810fd9336750044508cf766

6 years agoMerge "Removed executable flag for Java source files"
Pavlin Radoslavov [Fri, 23 Feb 2018 16:23:45 +0000 (16:23 +0000)]
Merge "Removed executable flag for Java source files"
am: 9a7c651196

Change-Id: Ia14ec1352400d603e51a3eaadd6d3910a10b6dc2

6 years agoMerge "Don't wait keyguard drawn if device has no keyguard"
Jorim Jaggi [Fri, 23 Feb 2018 16:06:59 +0000 (16:06 +0000)]
Merge "Don't wait keyguard drawn if device has no keyguard"

6 years agoMerge "Fixed service state CTS test failing"
Treehugger Robot [Fri, 23 Feb 2018 15:41:32 +0000 (15:41 +0000)]
Merge "Fixed service state CTS test failing"

6 years agoMerge "Removed executable flag for Java source files"
Treehugger Robot [Fri, 23 Feb 2018 13:38:29 +0000 (13:38 +0000)]
Merge "Removed executable flag for Java source files"

6 years agoRemoved executable flag for Java source files
Pavlin Radoslavov [Mon, 18 Dec 2017 20:56:18 +0000 (12:56 -0800)]
Removed executable flag for Java source files

Test: Code compilation
Change-Id: Ibfb57c6af54ace94eb9f9915471738f2f09ca70a

6 years agoMerge "Add comments according to the API review process."
Cassie [Fri, 23 Feb 2018 06:45:24 +0000 (06:45 +0000)]
Merge "Add comments according to the API review process."
am: e9a215b238

Change-Id: I3c079d96e4f8469b3e40eb7e5a9230544c752d57

6 years agoMerge "Add comments according to the API review process."
Treehugger Robot [Fri, 23 Feb 2018 05:32:35 +0000 (05:32 +0000)]
Merge "Add comments according to the API review process."

6 years agoFrameworks: Remove bogus test method
Andreas Gampe [Fri, 23 Feb 2018 05:25:25 +0000 (21:25 -0800)]
Frameworks: Remove bogus test method

It's tripping Errorprone's JUnit3 test pattern.

Bug: 73797534
Test: m javac-check RUN_ERROR_PRONE=true
Change-Id: Ib0b9b342e085ba640d60e82ebd9a1bbb4fc4e916

6 years agoMerge "Allow callers to synchronously block for shutdown"
Erik Kline [Fri, 23 Feb 2018 02:46:11 +0000 (02:46 +0000)]
Merge "Allow callers to synchronously block for shutdown"
am: 9121322ce7

Change-Id: Ic0293bf12688e785f4942f0985a8470155fe062b

6 years agoWrap raw binder interface into public classes
Ruchi Kandoi [Thu, 22 Feb 2018 20:47:47 +0000 (12:47 -0800)]
Wrap raw binder interface into public classes

Test: Dummy application using the API
Bug: 73751309
Change-Id: If697100ed28b6b5217367d9988ed45f8baa14c34

6 years agoMerge "Add AudioManager.setHearingAidDeviceConnectionState"
Andre Eisenbach [Thu, 22 Feb 2018 22:44:11 +0000 (22:44 +0000)]
Merge "Add AudioManager.setHearingAidDeviceConnectionState"
am: c3e842fde8

Change-Id: I22a01bb4170b126c59593f938f95bf382beb3dd6

6 years agoFixed service state CTS test failing
Jack Yu [Thu, 22 Feb 2018 22:24:16 +0000 (14:24 -0800)]
Fixed service state CTS test failing

Added missing member variables in copyFrom().

Bug: 73298491
Test: atest CtsTelephonyTestCases:ServiceStateTest#testServiceState CtsTelephonyTestCases:TelephonyManagerTest#testGetServiceState
Change-Id: I750816a13801a911d68e0a774fd59602c81c5687

6 years agoMerge "Allow callers to synchronously block for shutdown"
Erik Kline [Thu, 22 Feb 2018 22:05:31 +0000 (22:05 +0000)]
Merge "Allow callers to synchronously block for shutdown"

6 years agoMerge "RTT bugfixes, part 5"
Hall Liu [Thu, 22 Feb 2018 21:37:09 +0000 (21:37 +0000)]
Merge "RTT bugfixes, part 5"
am: de3eeac84d

Change-Id: I2e8db964b551f7ab1cc7c286b8fedc553f1e1b8f

6 years agoMerge "Add AudioManager.setHearingAidDeviceConnectionState"
Andre Eisenbach [Thu, 22 Feb 2018 20:49:03 +0000 (20:49 +0000)]
Merge "Add AudioManager.setHearingAidDeviceConnectionState"

6 years agoAdd AudioManager.setHearingAidDeviceConnectionState
Jakub Pawlowski [Wed, 21 Feb 2018 21:28:46 +0000 (13:28 -0800)]
Add AudioManager.setHearingAidDeviceConnectionState

This will be used by Bluetooth to notify audio framework when Hearing
Aid is connected or disconnected.

Bug: 69623109
Test: mm
Change-Id: I5664d8bd20e36601eea815c0d6e55c3b1d49e4ea

6 years agoMerge "RTT bugfixes, part 5"
Hall Liu [Thu, 22 Feb 2018 19:16:41 +0000 (19:16 +0000)]
Merge "RTT bugfixes, part 5"

6 years agoAllow callers to synchronously block for shutdown
Erik Kline [Wed, 21 Feb 2018 22:47:09 +0000 (14:47 -0800)]
Allow callers to synchronously block for shutdown

Add a simple CountDownLatch and a public method that callers can use
to block until IpClient has cleanly shutdown the state machine.

In cases where IpClients are created and destroyed dynamically for
the same interface name, this can be used to make sure only one
IpClient at a time is touching the given interface.

Test: as follows
    - built
    - flashed
    - booted
    - OTG ethernet works (i.e. client mode)
    - removing and reinserting the ethernet dongle continues
      to show the <-> Ethernet sysui icon and basic network
      connectivity works
    - removing and reinserting the cable (link up/down events)
      also shows the <-> Ethernet sysui icon and basic network
      connectivity works
Bug: 62476366

Change-Id: If4bffd54b7ebc088ec07cac10251e451f8161b6c

6 years agoMerge "Populate hiddenapi whitelist."
Mathew Inwood [Thu, 22 Feb 2018 18:56:44 +0000 (18:56 +0000)]
Merge "Populate hiddenapi whitelist."
am: 2519de11c3

Change-Id: I0b6139661f07352acdbd62a83cff2bba2b667b9b

6 years agoMerge "Populate hiddenapi whitelist."
Mathew Inwood [Thu, 22 Feb 2018 17:36:20 +0000 (17:36 +0000)]
Merge "Populate hiddenapi whitelist."

6 years agoAdd comments according to the API review process.
Cassie [Thu, 22 Feb 2018 16:51:03 +0000 (08:51 -0800)]
Add comments according to the API review process.

 * Explain what developers should use instead in the @deprecated note for Telephony#BEARER
 * Please add more documentation for network type bitmask - reference to just TelephonyManager is not sufficient because it has so much stuff in it.
 * Also remove the @hide tag for private constants in ServiceState.

Bug: 73751228
Test: Basic telephony sanity
Change-Id: Ie7405a961db4494104750bf406f20b1b4fb8191a

6 years agoMerge changes I8e432950,Id325b8cf
Paul Duffin [Thu, 22 Feb 2018 15:16:30 +0000 (15:16 +0000)]
Merge changes I8e432950,Id325b8cf
am: 919ff2268b

Change-Id: I0912e9a426a5cc72e67b3ec55e2bbe195079eaf6

6 years agoMerge "Package whitelist for hiddenapi checks."
Mathew Inwood [Thu, 22 Feb 2018 14:11:57 +0000 (14:11 +0000)]
Merge "Package whitelist for hiddenapi checks."
am: 9a50d75795

Change-Id: Iad8ccab4d46677320c9d39f73e6bbc67262c18b2