OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Definitely abort reconnecting to native daemon during shutdown" am: 2fd5af1036
Tetsutoki Shiozawa [Mon, 26 Feb 2018 07:50:37 +0000 (07:50 +0000)]
Merge "Definitely abort reconnecting to native daemon during shutdown" am: 2fd5af1036
am: 282c038240

Change-Id: I034072b89d0a8b9362940155ae2e2d173fde1b33

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

Change-Id: I4837a521093dcc41bf7a3597d43c04e5f95c1c81

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" am: cb0714332d
Hugo Benichi [Sat, 24 Feb 2018 19:21:43 +0000 (19:21 +0000)]
Merge "Fix NPE in NetworkMetrics" am: cb0714332d
am: 34d08160bd

Change-Id: I5c182e9cba857d291ea16fb8bd6b0a66d11cf432

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" am: e7d04d728c
tiansiming [田思明] [Sat, 24 Feb 2018 02:56:15 +0000 (02:56 +0000)]
Merge "Let sendShowMessage called from hide to show" am: e7d04d728c
am: f91fddddd1

Change-Id: I8aa277a5448b999496b79f6b5721738d3b5f9af7

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" am: a4bde27012
Ruchi Kandoi [Sat, 24 Feb 2018 02:04:37 +0000 (02:04 +0000)]
Merge "Wrap raw binder interface into public classes" am: a4bde27012
am: 3cd878df0f

Change-Id: I896528596006eb76241e706bb71d958214fb6499

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 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 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 agoMerge "Factor out telephony permission checks into a helper class." am: fc5d8c8f31
Jeff Davidson [Fri, 23 Feb 2018 21:33:07 +0000 (21:33 +0000)]
Merge "Factor out telephony permission checks into a helper class." am: fc5d8c8f31
am: 5275c0b123

Change-Id: Ieedbcc2f40f70beb43cfb4d0e677d72f6b3ff8f5

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" am: c65d52ff78
Andreas Gampe [Fri, 23 Feb 2018 21:15:06 +0000 (21:15 +0000)]
Merge "Frameworks: Remove bogus test method" am: c65d52ff78
am: 8120e8616b

Change-Id: I1dd4cb24ed7c5afdb9185bacabf7b0a3e8f3a7d8

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" am: a6e5165b2c
Jorim Jaggi [Fri, 23 Feb 2018 18:20:35 +0000 (18:20 +0000)]
Merge "Don't wait keyguard drawn if device has no keyguard" am: a6e5165b2c
am: 94ec9e3e4b

Change-Id: I1391b28a04611f4e4445d53d3323fad8fb98528f

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" am: ab5bc3be50
Jack Yu [Fri, 23 Feb 2018 17:27:20 +0000 (17:27 +0000)]
Merge "Fixed service state CTS test failing" am: ab5bc3be50
am: f535f8108d

Change-Id: Ia3e1e58acda7aa3099c93f1f6c2bef9f53828e4d

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" am: 9a7c651196
Pavlin Radoslavov [Fri, 23 Feb 2018 16:35:36 +0000 (16:35 +0000)]
Merge "Removed executable flag for Java source files" am: 9a7c651196
am: 9304dc9f36

Change-Id: I3123d49a045b91be0b1a22531110b069dfcf8890

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." am: e9a215b238
Cassie [Fri, 23 Feb 2018 06:56:56 +0000 (06:56 +0000)]
Merge "Add comments according to the API review process." am: e9a215b238
am: b3b458b9ad

Change-Id: Ie9c3ce9bc67c08d99ea1c1ebfce5fbc78575baea

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" am: 9121322ce7
Erik Kline [Fri, 23 Feb 2018 02:57:42 +0000 (02:57 +0000)]
Merge "Allow callers to synchronously block for shutdown" am: 9121322ce7
am: a49db4d080

Change-Id: Icd7df06784a0ecf14c8b9b35d579179ffce65ffc

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" am: c3e842fde8
Andre Eisenbach [Thu, 22 Feb 2018 23:02:15 +0000 (23:02 +0000)]
Merge "Add AudioManager.setHearingAidDeviceConnectionState" am: c3e842fde8
am: 670ecc2279

Change-Id: I9a7a7712d750581cec4131489bca7071ad64ceee

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" am: de3eeac84d
Hall Liu [Thu, 22 Feb 2018 21:58:59 +0000 (21:58 +0000)]
Merge "RTT bugfixes, part 5" am: de3eeac84d
am: 69b0d8bc97

Change-Id: I766c0dab4e6b234f14d46193a84b1b970bb8473a

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." am: 2519de11c3
Mathew Inwood [Thu, 22 Feb 2018 19:05:33 +0000 (19:05 +0000)]
Merge "Populate hiddenapi whitelist." am: 2519de11c3
am: 37d670a083

Change-Id: Ic859a5b988ad88430c95590e10439f24f2dfecea

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 am: 919ff2268b
Paul Duffin [Thu, 22 Feb 2018 15:26:08 +0000 (15:26 +0000)]
Merge changes I8e432950,Id325b8cf am: 919ff2268b
am: 9eec0a5c0e

Change-Id: Ie067d44d602ecaf13fd5ea1101b87807193733e9

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." am: 9a50d75795
Mathew Inwood [Thu, 22 Feb 2018 14:29:23 +0000 (14:29 +0000)]
Merge "Package whitelist for hiddenapi checks." am: 9a50d75795
am: 3d2a3e25d3

Change-Id: I8e0120c77965a3d5784e61c7eabe5a8c4f88b1ea

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

6 years agoMerge changes I8e432950,Id325b8cf
Treehugger Robot [Thu, 22 Feb 2018 13:39:10 +0000 (13:39 +0000)]
Merge changes I8e432950,Id325b8cf

* changes:
  Build android.test.base/legacy against SDK
  Fix visibility issues with android.test.mock.stubs

6 years agoMerge "Package whitelist for hiddenapi checks."
Mathew Inwood [Thu, 22 Feb 2018 12:57:48 +0000 (12:57 +0000)]
Merge "Package whitelist for hiddenapi checks."

6 years agoPopulate hiddenapi whitelist.
Mathew Inwood [Fri, 16 Feb 2018 13:32:19 +0000 (13:32 +0000)]
Populate hiddenapi whitelist.

This list of packages is derived from all packages in the tree that do not
specify LOCAL_SDK_VERSION in their Android.mk. It was done by:

1.  Modifying biuld/core/package_internal.mk to output a warning for all
    packages that do not specify LOCAL_SDK_VERSION, including some
    metadata about the target.

2.  Parsing the output fom the build, then filtering out those that specify
    a test certificate, or with LOCAL_MODULE_TAGS := tests, that depend
    on android.test.runner or whose name includes "Test"

3.  Look up the java package name of each & build the list from these.

Test: N/A, this change is a no-op while all system apps are excluded
from the checks.

BUG: 73244707

Change-Id: Ie3dcb1b4b83c32e93609bc58dc7a1cd513eeea64

6 years agoPackage whitelist for hiddenapi checks.
Mathew Inwood [Fri, 16 Feb 2018 11:49:20 +0000 (11:49 +0000)]
Package whitelist for hiddenapi checks.

Some packages in the system image are not built against the SDK, so
enforcing hiddenapi checks for these will break them. Add a whitelist
for such packages.

For now, just add the contacts provider to the whitelist. The list will be
further populated later.

Test: Added test app package name to whitelist to verify.

Bug: 73244707

Merged-In: I94746b7f12dd9371d5068bb235eb853f63ee4d97
Change-Id: I1cbbd220c61b1b4b767c301f97096607ee902a7b

6 years agoDon't wait keyguard drawn if device has no keyguard
eddy-sh.chen [Thu, 22 Feb 2018 10:10:21 +0000 (18:10 +0800)]
Don't wait keyguard drawn if device has no keyguard

Instead, call finishKeyguardDrawn() if device has
no keyguard to avoid redundant waiting times.

Bug: 72972510
Change-Id: Id756de05691be2593fa06d3b55e5e24ad1ea7b19

6 years agoMerge "Cleanup TelephonyManager's log" am: 033de4676b
Pengquan Meng [Thu, 22 Feb 2018 07:14:43 +0000 (07:14 +0000)]
Merge "Cleanup TelephonyManager's log" am: 033de4676b
am: 22f61111bd

Change-Id: Icaff0e2cc4ebeb1f36b8597ee11457779aeca06f

6 years agoMerge "Cleanup TelephonyManager's log"
Pengquan Meng [Thu, 22 Feb 2018 07:02:54 +0000 (07:02 +0000)]
Merge "Cleanup TelephonyManager's log"
am: 033de4676b

Change-Id: I808ab4b142afcbf6c752b7f4f24d60500ab1cb51

6 years agoMerge "Cleanup TelephonyManager's log"
Pengquan Meng [Thu, 22 Feb 2018 05:19:11 +0000 (05:19 +0000)]
Merge "Cleanup TelephonyManager's log"

6 years agoMerge "EMBMS API tweaks" am: 47e1d11b47
Hall Liu [Thu, 22 Feb 2018 03:54:18 +0000 (03:54 +0000)]
Merge "EMBMS API tweaks" am: 47e1d11b47
am: 3b40c709a3

Change-Id: I8b281f717d3862a9f7a5de3d834dcded4ac436dc

6 years agoMerge "EMBMS API tweaks"
Hall Liu [Thu, 22 Feb 2018 03:36:12 +0000 (03:36 +0000)]
Merge "EMBMS API tweaks"
am: 47e1d11b47

Change-Id: Ie058b45f2dd09b80a51cb9702155e45f49005173

6 years agoRTT bugfixes, part 5
Hall Liu [Sat, 10 Feb 2018 00:40:03 +0000 (16:40 -0800)]
RTT bugfixes, part 5

* Add a new API to allow Telecom to inform ConnectionServices when the
RTT text stream changes
* No longer set the RTT property from ConnectionService. Client apps
should be setting properties themselves.
* Add Dialer-side RTT property in order to remove the dependence on
checking the RTT streams, which have a complex lifecycle

Bug: 72951201
Bug: 72648661
Test: manual, with real RTT calls and Dialer's SimulatorConnection, also
cts
Change-Id: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e
Merged-In: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e

6 years agoFactor out telephony permission checks into a helper class.
Jeff Davidson [Wed, 14 Feb 2018 02:11:37 +0000 (18:11 -0800)]
Factor out telephony permission checks into a helper class.

The aim is to cut down on duplicate code (for a particularly high-risk
area) and make it easier to expand READ_PHONE_STATE access to
carrier-privileged apps in a follow-up CL.

No major functional changes are intended, although some logging will
change slightly (different tag / less verbose carrier privilege
logging without DBG flag).

Bug: 70041899
Test: bit FrameworksTelephonyTests:*, nothing visibly broken on boot
Merged-In: I3b2aa9b8d6177a25d532060009508ef31baea69c
Change-Id: I3b2aa9b8d6177a25d532060009508ef31baea69c

6 years agoMerge "EMBMS API tweaks"
Hall Liu [Thu, 22 Feb 2018 00:35:51 +0000 (00:35 +0000)]
Merge "EMBMS API tweaks"

6 years agoMerge "Check for location access on TelephonyRegistry" am: 31230bb193
Hall Liu [Thu, 22 Feb 2018 00:34:03 +0000 (00:34 +0000)]
Merge "Check for location access on TelephonyRegistry" am: 31230bb193
am: f581580fdb

Change-Id: Ic13eacf7dafc96359bd607cb4e2a5c024f9bb607

6 years agoMerge "Explicitly restart the killed wallpaper service" am: 0780b18a9f
Chris Tate [Thu, 22 Feb 2018 00:16:40 +0000 (00:16 +0000)]
Merge "Explicitly restart the killed wallpaper service" am: 0780b18a9f
am: 9298af376a

Change-Id: If3cd3217c2d9f42772e0f276c1bc3c1380ac149f

6 years agoMerge "Check for location access on TelephonyRegistry"
Hall Liu [Thu, 22 Feb 2018 00:11:04 +0000 (00:11 +0000)]
Merge "Check for location access on TelephonyRegistry"
am: 31230bb193

Change-Id: I6827b337d9bcc2c634d873e03895c5997cca374c

6 years agoMerge "Explicitly restart the killed wallpaper service"
Chris Tate [Thu, 22 Feb 2018 00:06:25 +0000 (00:06 +0000)]
Merge "Explicitly restart the killed wallpaper service"
am: 0780b18a9f

Change-Id: I7759fc380ef9555cb58f9ab593248e69cd798c70

6 years agoMerge "Fix low probability deadlock" am: bb5cbc539f
Xiangyu/Malcolm Chen [Wed, 21 Feb 2018 23:15:30 +0000 (23:15 +0000)]
Merge "Fix low probability deadlock" am: bb5cbc539f
am: e05aa02d59

Change-Id: I3560bd28b67fee381f6c2d9e8bc8864efe63090d

6 years agoMerge "Fix low probability deadlock"
Xiangyu/Malcolm Chen [Wed, 21 Feb 2018 23:01:42 +0000 (23:01 +0000)]
Merge "Fix low probability deadlock"
am: bb5cbc539f

Change-Id: Ife7dd96618b75fd492aaf0397870653d63cf0d5e

6 years agoMerge "Check for location access on TelephonyRegistry"
Hall Liu [Wed, 21 Feb 2018 22:42:08 +0000 (22:42 +0000)]
Merge "Check for location access on TelephonyRegistry"

6 years agoMerge "Explicitly restart the killed wallpaper service"
Chris Tate [Wed, 21 Feb 2018 21:49:31 +0000 (21:49 +0000)]
Merge "Explicitly restart the killed wallpaper service"

6 years agoMerge "Fix low probability deadlock"
Xiangyu/Malcolm Chen [Wed, 21 Feb 2018 21:16:44 +0000 (21:16 +0000)]
Merge "Fix low probability deadlock"

6 years agoBuild android.test.base/legacy against SDK
Paul Duffin [Wed, 14 Feb 2018 10:36:16 +0000 (10:36 +0000)]
Build android.test.base/legacy against SDK

android.test.legacy is now build against SDK, thus available to apps
build with SDK.

In doing so, android.test.mock.stubs had to be built with SDK (because
it is used by android.test.legacy). However, this wasn't trivial.

The problem was that some classes in test-mock implemented abstract
methods of platform classes. Even though they are marked as @hide,
doclava automatically emit them to the stub file because otherwise the
class in the stub file does not implement some abstract methods from its
parent class, which in turn makes the stub file non-compilable.

This CL solves the problem by introducing an adapter class in between
the class in test-mock and the class in the framework. The adapter class
implements abstract methods which are @hide and having reference to
types that aren't available to SDK. The abstract methods are removed
from the original class. Then doclava does not emit the abstract
methods.

Also by @hide'ing the adapter classes, they are not compiled when
building the stub library.

Bug: 30188076
Bug: 73339598
Test: m -j android.test.base
Test: m -j android.test.legacy
Test: m -j android.test.mock.stubs
are successful and do not show link-check warning
Merged-In: I8e432950e693ee3c6f0240852e62da6133d31571
Change-Id: I8e432950e693ee3c6f0240852e62da6133d31571

6 years agoCleanup TelephonyManager's log
Pengquan Meng [Wed, 21 Feb 2018 03:09:10 +0000 (19:09 -0800)]
Cleanup TelephonyManager's log

Don't log success calls to TelephonyManager.setTelephonyProperty.

Bug: 71514398
Test: manual test
Change-Id: I2383f1e2925bff959c3d925d7fdc8be891630c61

6 years agoFix low probability deadlock
yifan.bai [Fri, 22 Dec 2017 06:59:57 +0000 (14:59 +0800)]
Fix low probability deadlock

Low probability deadlock in com.android.phone and system_server.
Bug: 70865607

Test: Build pass

6 years agoMerge "Reparent the webview_zygote to be a child of the main app_process zygote....
Robert Sesek [Wed, 21 Feb 2018 02:33:14 +0000 (02:33 +0000)]
Merge "Reparent the webview_zygote to be a child of the main app_process zygote." am: 1c81aa6375
am: 486190f87b

Change-Id: I683dbbf730bfd02e43cb67bfcaa0df56d69c9796

6 years agoMerge "Reparent the webview_zygote to be a child of the main app_process zygote."
Robert Sesek [Wed, 21 Feb 2018 02:16:22 +0000 (02:16 +0000)]
Merge "Reparent the webview_zygote to be a child of the main app_process zygote."
am: 1c81aa6375

Change-Id: I2af77c52ea7aca058ab1a1fc224968760e6c3ac5

6 years agoEMBMS API tweaks
Hall Liu [Tue, 6 Feb 2018 19:36:17 +0000 (11:36 -0800)]
EMBMS API tweaks

Make changes per API council recommendations
Also clean up the download flow -- provide option for app to specify a
destination as long as it's on the same filesystem.

Bug: 72837388
Fixes: 72231372
Test: CTS and testapp

Change-Id: Ia2a68a73e6d61f426b55068542a66995afc20407

6 years agoMerge "Reparent the webview_zygote to be a child of the main app_process zygote."
Treehugger Robot [Wed, 21 Feb 2018 00:43:56 +0000 (00:43 +0000)]
Merge "Reparent the webview_zygote to be a child of the main app_process zygote."

6 years agoMerge "Consider shared libs when precreating WebView classloader." am: f9fd8dfcc0
Torne (Richard Coles) [Wed, 21 Feb 2018 00:17:22 +0000 (00:17 +0000)]
Merge "Consider shared libs when precreating WebView classloader." am: f9fd8dfcc0
am: 424f3ab432

Change-Id: I21f031e97f750b8837eb9c698005fd3f112631ca

6 years agoMerge "Consider shared libs when precreating WebView classloader."
Torne (Richard Coles) [Wed, 21 Feb 2018 00:03:58 +0000 (00:03 +0000)]
Merge "Consider shared libs when precreating WebView classloader."
am: f9fd8dfcc0

Change-Id: I2e326ffb47a95c01bf5e67320bbf8aa8193916af

6 years agoMerge "Add new reason code for call failed by unobtainable number" am: 4122fd23dc
Brad Ebinger [Tue, 20 Feb 2018 23:20:48 +0000 (23:20 +0000)]
Merge "Add new reason code for call failed by unobtainable number" am: 4122fd23dc
am: ffe0e51f47

Change-Id: I9b706c18b2d184b303adb526ee7adf86dd7e9ee9

6 years agoMerge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false" am: 8343a47035
Pankaj Kanwar [Tue, 20 Feb 2018 23:13:33 +0000 (23:13 +0000)]
Merge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false" am: 8343a47035
am: de9585fe28

Change-Id: I11bcc2948e8efeea731299c5b8d642e155c1a2d5

6 years agoMerge "Fix ConnectivityServiceTest for NATT Keepalive" am: 6d5aea8811
nharold [Tue, 20 Feb 2018 23:07:53 +0000 (23:07 +0000)]
Merge "Fix ConnectivityServiceTest for NATT Keepalive" am: 6d5aea8811
am: ad96984eb5

Change-Id: I3c28cbb55f8226776792df9cacf1b5e527389157

6 years agoMerge "Add new reason code for call failed by unobtainable number"
Brad Ebinger [Tue, 20 Feb 2018 23:02:55 +0000 (23:02 +0000)]
Merge "Add new reason code for call failed by unobtainable number"
am: 4122fd23dc

Change-Id: Ib390ec02187fd27687dddc334bf2fcc791012c8e

6 years agoMerge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"
Pankaj Kanwar [Tue, 20 Feb 2018 22:57:52 +0000 (22:57 +0000)]
Merge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"
am: 8343a47035

Change-Id: I4940e0ba4e86db861c75e910329aaf8fadd0e7e1

6 years agoMerge "Fix ConnectivityServiceTest for NATT Keepalive"
nharold [Tue, 20 Feb 2018 22:55:38 +0000 (22:55 +0000)]
Merge "Fix ConnectivityServiceTest for NATT Keepalive"
am: 6d5aea8811

Change-Id: Idbdffc7bbd2d9a96f6e6052810722df04a20a65c

6 years agoReparent the webview_zygote to be a child of the main app_process zygote.
Robert Sesek [Wed, 17 Jan 2018 23:48:18 +0000 (18:48 -0500)]
Reparent the webview_zygote to be a child of the main app_process zygote.

This uses the new ZygoteProcess.startChildZygote() method to launch the
webview_zygote, rather than having init start it. This will share more
memory between the app_process and the webview_zygote, reducing the
overall system footprint.

Bug: 63749735
Test: m
Test: Launch "Third-party licenses" activity from Settings, and it
      renders correctly via the WebView.
Change-Id: I3e39cd8adb9c099c92ee34640428916d90cb2b8f

6 years agoMerge "Consider shared libs when precreating WebView classloader."
Treehugger Robot [Tue, 20 Feb 2018 21:59:54 +0000 (21:59 +0000)]
Merge "Consider shared libs when precreating WebView classloader."

6 years agoMerge "Add new reason code for call failed by unobtainable number"
Brad Ebinger [Tue, 20 Feb 2018 21:00:08 +0000 (21:00 +0000)]
Merge "Add new reason code for call failed by unobtainable number"

6 years agoMerge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"
Pankaj Kanwar [Tue, 20 Feb 2018 20:48:12 +0000 (20:48 +0000)]
Merge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"

6 years agoConsider shared libs when precreating WebView classloader.
Torne (Richard Coles) [Tue, 19 Sep 2017 19:21:29 +0000 (15:21 -0400)]
Consider shared libs when precreating WebView classloader.

The change to handling of the deprecated Apache HTTP library means that
the WebView implementation package might have a non-empty shared library
list. Make sure to fetch shared libraries when querying WebView
implementations, and take them into account when constructing both the
actual classpath to be used to precreate the classloader, and when
deciding what the cache key for the precreated classloader should be.

Change-Id: I5e1409358d935e1c9f325db434bc6d4ef8ead759
Merged-In: I5e1409358d935e1c9f325db434bc6d4ef8ead759
Fixes: 65574359
Test: launch anything that uses WebView
(cherry picked from commit 4fd8aa51e4de5a7c93841571e30ff10077d1b125)