OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Actually resolve all IPs for Private DNS hostname"
Erik Kline [Thu, 19 Apr 2018 12:15:13 +0000 (05:15 -0700)]
Merge "Actually resolve all IPs for Private DNS hostname"
am: 5ace372bc2

Change-Id: I83ffc854b60f2beb0a9e4c8a107ce26b656c935e

6 years agoMerge "Actually resolve all IPs for Private DNS hostname"
Treehugger Robot [Thu, 19 Apr 2018 11:02:29 +0000 (11:02 +0000)]
Merge "Actually resolve all IPs for Private DNS hostname"

6 years agoActually resolve all IPs for Private DNS hostname
Erik Kline [Thu, 19 Apr 2018 08:58:15 +0000 (17:58 +0900)]
Actually resolve all IPs for Private DNS hostname

Previously, we reused the OneAddressPerFamilyNetwork which does
what it says on the tin.  For the resolution that will be used
to program netd this is not what we really want.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual testing of Private DNS passes
Bug: 64133961
Change-Id: Ieccc4d208b314b81061dc78d83848f97acefe04b

6 years agoMerge "Migrate android_uiautomator generation to Soong."
Nan Zhang [Wed, 18 Apr 2018 21:51:30 +0000 (14:51 -0700)]
Merge "Migrate android_uiautomator generation to Soong."
am: 0e5b92eea6

Change-Id: I39fb52030ec03bbe2e9be7e296a9291fbd3184e4

6 years agoMerge "Migrate android_uiautomator generation to Soong."
Treehugger Robot [Wed, 18 Apr 2018 20:17:54 +0000 (20:17 +0000)]
Merge "Migrate android_uiautomator generation to Soong."

6 years agoMigrate android_uiautomator generation to Soong.
Nan Zhang [Fri, 13 Apr 2018 22:58:29 +0000 (15:58 -0700)]
Migrate android_uiautomator generation to Soong.

Bug: b/70351683
Test: m clean && m android_uiautomator
and compare the old and new stubs.jar using md5sum.

Change-Id: I01937352ae1a470745f2ab1a9acbb4ea9520e153
Merged-In: I01937352ae1a470745f2ab1a9acbb4ea9520e153

6 years agoMerge "Stop InCall Notification to avoid track leak"
luochaojiang [Wed, 18 Apr 2018 14:05:23 +0000 (07:05 -0700)]
Merge "Stop InCall Notification to avoid track leak"
am: b47c9019b5

Change-Id: I1bf6b52a8a82ddc5880871344a8f5af53ebf8322

6 years agoMerge "Stop InCall Notification to avoid track leak"
Treehugger Robot [Wed, 18 Apr 2018 12:53:30 +0000 (12:53 +0000)]
Merge "Stop InCall Notification to avoid track leak"

6 years agoMerge "Remove duplicated code in IMMS"
tiansiming [田思明] [Wed, 18 Apr 2018 05:20:18 +0000 (22:20 -0700)]
Merge "Remove duplicated code in IMMS"
am: 5ab0fe1f56

Change-Id: I6311c39ee5ea9abfa5b025315968d122f0d3f694

6 years agoMerge "Remove duplicated code in IMMS"
Treehugger Robot [Wed, 18 Apr 2018 04:09:28 +0000 (04:09 +0000)]
Merge "Remove duplicated code in IMMS"

6 years agoMerge "Revert "Remove the OEM hook implementation and usage""
Shuo Qian [Wed, 18 Apr 2018 02:57:45 +0000 (19:57 -0700)]
Merge "Revert "Remove the OEM hook implementation and usage""
am: e7a099149f

Change-Id: Idb6e70da6b33f25d1cdce8ed5ed4b845b6237648

6 years agoMerge "Revert "Remove the OEM hook implementation and usage""
Shuo Qian [Wed, 18 Apr 2018 01:39:43 +0000 (01:39 +0000)]
Merge "Revert "Remove the OEM hook implementation and usage""

6 years agoStop InCall Notification to avoid track leak
luochaojiang [Mon, 16 Apr 2018 08:55:03 +0000 (16:55 +0800)]
Stop InCall Notification to avoid track leak

There is no ringtone when a call is in comming. The audio track is
out of limit, for the notification tone can not be recycled timely.
Here is the steps to reproduce this issue.
1. Call the test device and keep it in communication
2. Send message to test device, more than 15 messages.
3. Stop call on test device, re-call the test device.
4. This is no ringtone now, if not, re try the previous steps.

Test: make, take a photo, record a video and play video

Change-Id: Iba4a41d7b8b601fa500b8a60cadaf04651f37fed
Signed-off-by: luochaojiang <luochaojiang@xiaomi.com>
6 years agoRemove duplicated code in IMMS
tiansiming [田思明] [Tue, 17 Apr 2018 10:15:33 +0000 (18:15 +0800)]
Remove duplicated code in IMMS

There is no need to judge mIsInteractive again

Bug: N/A
Test: N/A

Change-Id: I887b5fdd16e4c39ff2dcf13902dfed69741635f8
Signed-off-by: tiansiming [田思明] <tiansiming@xiaomi.com>
6 years agoMerge "Correct sendBroadcast test"
Daniel Bonnevier [Tue, 17 Apr 2018 21:03:13 +0000 (14:03 -0700)]
Merge "Correct sendBroadcast test"
am: 1cb379b782

Change-Id: Ic533da3300a2227f8b9b002fe305daed27beea38

6 years agoMerge "Correct sendBroadcast test"
Treehugger Robot [Tue, 17 Apr 2018 19:50:41 +0000 (19:50 +0000)]
Merge "Correct sendBroadcast test"

6 years agoRevert "Remove the OEM hook implementation and usage"
sqian [Tue, 17 Apr 2018 18:54:14 +0000 (11:54 -0700)]
Revert "Remove the OEM hook implementation and usage"

This reverts commit 2635a89c8cb536d487c5a77ea205f787c19dc92e.

Bug: 34344851
Change-Id: I96697165fd75054de42f007c16ca294ed6725708

6 years agoCorrect sendBroadcast test
Daniel Bonnevier [Mon, 16 Apr 2018 11:25:32 +0000 (13:25 +0200)]
Correct sendBroadcast test

Commit 23eb3a19 changed the implementation from sendBroadcast to
sendBroadcastAsUser but didn't change the test.

Test: adb shell am instrument -r -w -e class \
        android.app.timezone.RulesUpdaterContractTest#sendBroadcast \
        com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 78166765
Merged-In: I0a47e096a46fc63d46dd9ff878a4af0d76af82f0
Change-Id: I0a47e096a46fc63d46dd9ff878a4af0d76af82f0

6 years agoMerge "Clarify API doc for BluetoothGattServer::addService"
Stanley Tng [Tue, 17 Apr 2018 02:59:17 +0000 (19:59 -0700)]
Merge "Clarify API doc for BluetoothGattServer::addService"
am: f493c66f39

Change-Id: If988cc85292426c6694732e2158ad698d740c93d

6 years agoMerge "Cleanup documentation for LE CoC in BluetoothAdapter"
Stanley Tng [Tue, 17 Apr 2018 01:58:21 +0000 (18:58 -0700)]
Merge "Cleanup documentation for LE CoC in BluetoothAdapter"
am: 7b25698549

Change-Id: I5e7633c73c7ed7f9257acb4fb891fbaec8202f63

6 years agoMerge "Source of deadlock between PlayerBase.mLock and PlaybackActivityMonitor...
Jean-Michel Trivi [Tue, 17 Apr 2018 01:55:00 +0000 (18:55 -0700)]
Merge "Source of deadlock between PlayerBase.mLock and   PlaybackActivityMonitor.mPlayerLock:"
am: d53bd6b86e

Change-Id: I1408348aa98c9442de544b22cd9cddb9a1eac907

6 years agoMerge "Clarify API doc for BluetoothGattServer::addService"
Treehugger Robot [Tue, 17 Apr 2018 00:07:38 +0000 (00:07 +0000)]
Merge "Clarify API doc for BluetoothGattServer::addService"

6 years agoMerge "Cleanup documentation for LE CoC in BluetoothAdapter"
Treehugger Robot [Tue, 17 Apr 2018 00:02:32 +0000 (00:02 +0000)]
Merge "Cleanup documentation for LE CoC in BluetoothAdapter"

6 years agoMerge "Source of deadlock between PlayerBase.mLock and PlaybackActivityMonitor...
Treehugger Robot [Mon, 16 Apr 2018 23:48:48 +0000 (23:48 +0000)]
Merge "Source of deadlock between PlayerBase.mLock and   PlaybackActivityMonitor.mPlayerLock:"

6 years agoMerge "Migrate android.test.base.stubs generation to Soong."
Nan Zhang [Mon, 16 Apr 2018 22:45:05 +0000 (15:45 -0700)]
Merge "Migrate android.test.base.stubs generation to Soong."
am: c263ce5e25

Change-Id: If7b1aafcee9be34385802315f4fd6ef71459e761

6 years agoCleanup documentation for LE CoC in BluetoothAdapter
Stanley Tng [Thu, 5 Apr 2018 01:33:46 +0000 (18:33 -0700)]
Cleanup documentation for LE CoC in BluetoothAdapter

Test: Compile
Bug: 77631591
Change-Id: Ic3c7f13e560534a048bf5c8b274fe62190c214c7

6 years agoMerge "Migrate android.test.base.stubs generation to Soong."
Treehugger Robot [Mon, 16 Apr 2018 21:24:45 +0000 (21:24 +0000)]
Merge "Migrate android.test.base.stubs generation to Soong."

6 years agoClarify API doc for BluetoothGattServer::addService
Stanley Tng [Fri, 13 Apr 2018 21:54:10 +0000 (14:54 -0700)]
Clarify API doc for BluetoothGattServer::addService

Clarify that the caller has to wait for onServiceAdded callback before
calling BluetoothGattServer::addService again.

Bug: 72717069
Test: Compile
Change-Id: I20b031c724ba64bfd71cf10e58e587f69e4a2555

6 years agoMerge "Move RTT system setting to Settings.Secure"
Hall Liu [Mon, 16 Apr 2018 20:08:16 +0000 (13:08 -0700)]
Merge "Move RTT system setting to Settings.Secure"
am: 9a51f07117

Change-Id: I226e9a91725f7755595c3530162829f8bf61b135

6 years agoMerge "Move RTT system setting to Settings.Secure"
Hall Liu [Mon, 16 Apr 2018 18:40:28 +0000 (18:40 +0000)]
Merge "Move RTT system setting to Settings.Secure"

6 years agoMerge "Revert "Frameworks/base: Compiled-classes support""
Andreas Gampe [Mon, 16 Apr 2018 18:10:20 +0000 (11:10 -0700)]
Merge "Revert "Frameworks/base: Compiled-classes support""
am: 087bae3ffe

Change-Id: I32cba3d29b54827ee3d40ea022a1d9eae27cfb0f

6 years agoMerge "Revert "Frameworks/base: Compiled-classes support""
Treehugger Robot [Mon, 16 Apr 2018 16:33:24 +0000 (16:33 +0000)]
Merge "Revert "Frameworks/base: Compiled-classes support""

6 years agoMerge "Teach ApfGenerator about the new opcodes for accessing data memory"
Bernie Innocenti [Mon, 16 Apr 2018 07:12:04 +0000 (00:12 -0700)]
Merge "Teach ApfGenerator about the new opcodes for accessing data memory"
am: 5a533ae460

Change-Id: I904d482c71aa8e1b8859d2d27643592cff49ffb9

6 years agoMerge "Add permission whitelist for EmergencyInfo app."
Tyler Gunn [Mon, 16 Apr 2018 05:26:00 +0000 (22:26 -0700)]
Merge "Add permission whitelist for EmergencyInfo app."
am: 3fb7c4740e

Change-Id: I69727fb3f6854c190b570ada33560c2dbf2d76c5

6 years agoMerge "Teach ApfGenerator about the new opcodes for accessing data memory"
Bernie Innocenti [Mon, 16 Apr 2018 05:24:29 +0000 (05:24 +0000)]
Merge "Teach ApfGenerator about the new opcodes for accessing data memory"

6 years agoMerge "Add permission whitelist for EmergencyInfo app."
Tyler Gunn [Mon, 16 Apr 2018 04:18:00 +0000 (04:18 +0000)]
Merge "Add permission whitelist for EmergencyInfo app."

6 years agoMigrate android.test.base.stubs generation to Soong.
Nan Zhang [Fri, 13 Apr 2018 21:48:32 +0000 (14:48 -0700)]
Migrate android.test.base.stubs generation to Soong.

Bug: b/70351683
Test: m clean && m check-android-test-base-api
and compare the old and new stubs.jar using md5sum.

Change-Id: Ia9273016c4d3472888f970cbddf0ed85c0501eb3

6 years agoRevert "Frameworks/base: Compiled-classes support"
Andreas Gampe [Fri, 13 Apr 2018 18:30:09 +0000 (11:30 -0700)]
Revert "Frameworks/base: Compiled-classes support"

This reverts commit ca775941f3b7981aabf3a6a3b84d6c94f4f76aff.

Bug: 76145463
Test: m
Change-Id: I5a368cd01812e16869352ec219eae095df4919c4

6 years agoMerge "Add filegroup for supporting apache-http stubs generation."
Nan Zhang [Fri, 13 Apr 2018 18:39:54 +0000 (11:39 -0700)]
Merge "Add filegroup for supporting apache-http stubs generation."
am: 828f14d58a

Change-Id: I89b6c648aa9136219c949607ff704486f429457c

6 years agoMerge "Add filegroup for supporting apache-http stubs generation."
Treehugger Robot [Fri, 13 Apr 2018 17:28:22 +0000 (17:28 +0000)]
Merge "Add filegroup for supporting apache-http stubs generation."

6 years agoMerge "Make android.test.mock.stubs in Android.bp"
Jiyong Park [Fri, 13 Apr 2018 12:16:01 +0000 (05:16 -0700)]
Merge "Make android.test.mock.stubs in Android.bp"
am: 5f29cbb53b

Change-Id: I8859b904e6413a6bf1055fdb9f21e100d9e68d6a

6 years agoMerge "Make android.test.mock.stubs in Android.bp"
Treehugger Robot [Fri, 13 Apr 2018 10:55:05 +0000 (10:55 +0000)]
Merge "Make android.test.mock.stubs in Android.bp"

6 years agoTeach ApfGenerator about the new opcodes for accessing data memory
Bernie Innocenti [Thu, 22 Mar 2018 14:07:47 +0000 (23:07 +0900)]
Teach ApfGenerator about the new opcodes for accessing data memory

Bug: 73804303
Bug: 36221302
Test: runtest -x tests/net/java/android/net/apf/ApfTest.java
Change-Id: Iaf92ca0bbebaaf66d0f2f7adc1a9014607f3ecf6

6 years agoMake android.test.mock.stubs in Android.bp
Jiyong Park [Tue, 13 Mar 2018 07:06:03 +0000 (16:06 +0900)]
Make android.test.mock.stubs in Android.bp

Stubs libraries android.test.mock.stubs and
android.test.mock.stubs-system are now built in Android.bp.
(Note that API check and update are still done in Android.mk)

As a good side effect, this allows android.test.runner[-minus-junit]
libraries (that are defined in Android.bp) to be built with the
android.test.mock.stubs instead of the runtime library
android.test.mock. This in turn allows us to prevent java:sdk ->
java:platform dependency also in Soong, because the runner libraries
were the only violators.

Bug: 73829976
Test: m -j android.test.mock.stubs android.test.mock.stubs-system
Test: m -j checkapi
Test: m -j update-api
Merged-In: I830a8eb13aa43b9aa4c8394f3c2fd91ee18b1f85
Change-Id: I830a8eb13aa43b9aa4c8394f3c2fd91ee18b1f85
(cherry picked from commit e649b8066c3385ba0b667a79d378402b15ef3127)

6 years agoMerge "A test api to override carrier information"
Chen Xu [Fri, 13 Apr 2018 01:09:55 +0000 (18:09 -0700)]
Merge "A test api to override carrier information"
am: 420ab92b0b

Change-Id: I4dd105740b4c4954a387d46a76157c9d24b602e8

6 years agoSource of deadlock between PlayerBase.mLock and
Jean-Michel Trivi [Fri, 13 Apr 2018 00:23:22 +0000 (17:23 -0700)]
Source of deadlock between PlayerBase.mLock and
  PlaybackActivityMonitor.mPlayerLock:

android.media.MediaPlayer.release()
> android.media.PlayerBase.baseRelease()
  > synchronized (mLock)
    > com.android.server.audio.PlaybackActivityMonitor.releasePlayer()
       > synchronized(mPlayerLock)
and:

com.android.server.audio.PlaybackActivityMonitor.unmutePlayersForCall()
> synchronized (mPlayerLock)
  > android.media.PlayerProxy.setVolume()
    > android.media.PlayerBase$IPlayerWrapper.setVolume()
      > android.media.PlayerBase.baseSetVolume()
        > synchronized (mLock)
          playerSetVolume()

Since system_server can have its own players, the calls to
 AudioService from PlayerBase can be synchronous, hence the
 deadlock.
The fix consists in never holding the lock in PlayerBase
 while calling into AudioService.
Refactor the playstate update into a method used for
 start / stop / pause.

Bug: 72294559
Test: see bug
Change-Id: Ib41045de124683a7484184cf63577bd2412d1362

6 years agoMerge "A test api to override carrier information"
Chen Xu [Thu, 12 Apr 2018 22:58:37 +0000 (22:58 +0000)]
Merge "A test api to override carrier information"

6 years agoA test api to override carrier information
fionaxu [Mon, 19 Mar 2018 07:41:14 +0000 (00:41 -0700)]
A test api to override carrier information

This API should only be used for testing purpose e.g., CTS/GTS/SL4A
By overriding carrier information, we could force a particular carrier id,
carrier's config, but also any country or carrier overlays to be loaded
when using a test SIM with a call box.

Bug: 72332597
Test: atest CtsTelephonyTestCases:CarrierIdentificationTest

Change-Id: Icd5804375ef9334c9f6c382cc6a774b9c9c15213
(cherry picked from commit 5b509b81a0d5b14148745368b153dc6b8d4482ac)
Merged-in: 5b509b81a0d5b14148745368b153dc6b8d4482ac

6 years agoMerge "Make setServiceId a TestApi"
Hall Liu [Thu, 12 Apr 2018 22:02:50 +0000 (15:02 -0700)]
Merge "Make setServiceId a TestApi"
am: bd6bf7cbe8

Change-Id: I5d95289427ea76d1011c6ba4365e55b312a89be5

6 years agoMerge "Make setServiceId a TestApi"
Hall Liu [Thu, 12 Apr 2018 20:41:44 +0000 (20:41 +0000)]
Merge "Make setServiceId a TestApi"

6 years agoMove RTT system setting to Settings.Secure
Hall Liu [Mon, 2 Apr 2018 22:41:07 +0000 (15:41 -0700)]
Move RTT system setting to Settings.Secure

Bug: 76449217
Test: manual
Change-Id: Id198aab697e9e37c941b0d99255e4c6a0e1f91a9
Merged-In: I85620d5b834aa7e04579212f3fd5cf6c0498b570

6 years agoMerge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()"
Stanley Tng [Thu, 12 Apr 2018 15:50:35 +0000 (08:50 -0700)]
Merge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()"
am: 0980006a2a

Change-Id: I3aec5bce2861518d79ae80dd32562d83bc0c7ef4

6 years agoMerge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()"
Stanley Tng [Thu, 12 Apr 2018 14:36:12 +0000 (14:36 +0000)]
Merge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()"

6 years agoMerge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance"
Chen Xu [Thu, 12 Apr 2018 05:33:12 +0000 (22:33 -0700)]
Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance"
am: 18fe1cb2e1

Change-Id: Ia69e1183fbc9b115c0514c33afe0d235eafd9c32

6 years agoMerge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance"
Chen Xu [Thu, 12 Apr 2018 04:30:18 +0000 (04:30 +0000)]
Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance"

6 years agoMake setServiceId a TestApi
Hall Liu [Tue, 10 Apr 2018 21:04:12 +0000 (14:04 -0700)]
Make setServiceId a TestApi

Bug: 77152869
Test: CTS
Change-Id: I26f60b48865953971de02c50db48e0ff66f4e2a0
Merged-In: I26f60b48865953971de02c50db48e0ff66f4e2a0

6 years agoChange getGroupIdLevel1() to use subId from TelephonyManager Instance
fionaxu [Wed, 11 Apr 2018 19:47:46 +0000 (12:47 -0700)]
Change getGroupIdLevel1() to use subId from TelephonyManager Instance

Bug: 77905912
Test: Build
Change-Id: I720971ce115147b994e27611a0dcf052989180ec
(cherry picked from commit 272e8cf87e3aa780d7b83c021b859fdfc396f9d8)
Merged-in: 272e8cf87e3aa780d7b83c021b859fdfc396f9d8

6 years agoMerge "Don't unnecessarily reevaluate tethering provisioning"
Erik Kline [Wed, 11 Apr 2018 22:57:24 +0000 (15:57 -0700)]
Merge "Don't unnecessarily reevaluate tethering provisioning"
am: f0e598b550

Change-Id: Iba76e0fea962ca738160f6cbbaa31b66465bdfcc

6 years agoAdd filegroup for supporting apache-http stubs generation.
Nan Zhang [Tue, 10 Apr 2018 00:41:51 +0000 (17:41 -0700)]
Add filegroup for supporting apache-http stubs generation.

Bug: b/70351683
Test: m clean && m check-apache-http-legacy-api,
and compare the old and new stubs.jar using md5sum.

Change-Id: I0035837aef48a76e40a2c723c2adce3ff129ad28
Merged-In: I0035837aef48a76e40a2c723c2adce3ff129ad28

6 years agoMerge "Don't unnecessarily reevaluate tethering provisioning"
Treehugger Robot [Wed, 11 Apr 2018 21:47:53 +0000 (21:47 +0000)]
Merge "Don't unnecessarily reevaluate tethering provisioning"

6 years agoDon't unnecessarily reevaluate tethering provisioning
Erik Kline [Wed, 28 Feb 2018 06:01:35 +0000 (15:01 +0900)]
Don't unnecessarily reevaluate tethering provisioning

Registering for carrier config changes can deliver a sticky broadcast
and can cause Tethering to think something has changed and reevaluate
provisioning status, even though this has been checked before it
entered tethering mode alive state.

Additionally, move the provisioning_app{,no_ui} resources into the
TetheringConfiguration, if for no other reason than now we can log
it in .toString().

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual USB tethering toward WiFi works
Bug: 69565814
Merged-In: If254326e892b78ef9daf620f829c1def136d695c
Merged-In: I288093a1d76566e72d4889d92c7aedafc318c8b6
Merged-Id: I01c71fd971a4683bb2b6d14825d36f24a04d88a8

Change-Id: I01c71fd971a4683bb2b6d14825d36f24a04d88a8
(cherry picked from commit 1b450e3eb9106a9cc73dfc144d275141dd5017ef)

6 years agoDon't unnecessarily reevaluate tethering provisioning
Erik Kline [Wed, 28 Feb 2018 06:01:35 +0000 (15:01 +0900)]
Don't unnecessarily reevaluate tethering provisioning

Registering for carrier config changes can deliver a sticky broadcast
and can cause Tethering to think something has changed and reevaluate
provisioning status, even though this has been checked before it
entered tethering mode alive state.

Additionally, move the provisioning_app{,no_ui} resources into the
TetheringConfiguration, if for no other reason than now we can log
it in .toString().

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual USB tethering toward WiFi works
Bug: 69565814
Merged-In: If254326e892b78ef9daf620f829c1def136d695c
Merged-In: I288093a1d76566e72d4889d92c7aedafc318c8b6

Change-Id: I01c71fd971a4683bb2b6d14825d36f24a04d88a8

6 years agoAdd permission whitelist for EmergencyInfo app.
Tyler Gunn [Wed, 11 Apr 2018 18:05:32 +0000 (11:05 -0700)]
Add permission whitelist for EmergencyInfo app.

This is the "Emergency Info" screen available from the lock screen.
It requires the CALL_PRIVILEGED permission in order for it to be able to
place emergency calls.  This can occur if a user adds an emergency number
to their emergency contacts.

Test: make checkbuild
Bug: 76086838
Change-Id: I76e8318c5c05bbbbdf02d2c6951f742c3bd67ea6

6 years agoMerge "Add a droiddoc generator for hwbinder.stubs"
Colin Cross [Tue, 10 Apr 2018 18:24:45 +0000 (11:24 -0700)]
Merge "Add a droiddoc generator for hwbinder.stubs"
am: 1142ffcc9b

Change-Id: Ic4b67c00479fe21f6aa2dd41109d9da5514870ca

6 years agoMerge changes from topic "hidl-system-api"
Colin Cross [Tue, 10 Apr 2018 17:43:52 +0000 (10:43 -0700)]
Merge changes from topic "hidl-system-api"
am: 88a2b68252

Change-Id: I862274d2d6a258f252370a9ae3843a31c038d684

6 years agoUpdate HIDL-related documentation.
Steven Moreland [Tue, 10 Apr 2018 17:39:10 +0000 (10:39 -0700)]
Update HIDL-related documentation.
am: 9efa13f38c

Change-Id: I8a053ee95610272f97f0031936ac3d3fe50766d2

6 years agoAdd remaining missing HIDL SystemApi methods.
Steven Moreland [Tue, 10 Apr 2018 17:34:34 +0000 (10:34 -0700)]
Add remaining missing HIDL SystemApi methods.
am: ff0a3642e4

Change-Id: Iafa60151da6c8b994911ff077cfcfdf53bc61b81

6 years agoHIDL: reportSyspropMethod -> enableInstrumentation
Steven Moreland [Tue, 10 Apr 2018 17:29:11 +0000 (10:29 -0700)]
HIDL: reportSyspropMethod -> enableInstrumentation
am: 9312938842

Change-Id: Ia533c7ad33066b8c20610f8ea5fea6255d778d1b

6 years agoAllow HIDL to be used in priv-apps.
Steven Moreland [Tue, 10 Apr 2018 17:22:25 +0000 (10:22 -0700)]
Allow HIDL to be used in priv-apps.
am: 4dde8a113b

Change-Id: Ib255c6b6603cdb51fa1c4c5a11d3c1dc8a0c24a9

6 years agoMerge "Add a droiddoc generator for hwbinder.stubs"
Colin Cross [Tue, 10 Apr 2018 17:15:28 +0000 (17:15 +0000)]
Merge "Add a droiddoc generator for hwbinder.stubs"

6 years agoMerge changes from topic "hidl-system-api"
Colin Cross [Tue, 10 Apr 2018 16:06:28 +0000 (16:06 +0000)]
Merge changes from topic "hidl-system-api"

* changes:
  HIDL: add APIs used by subclasses to SystemApi
  Update HIDL-related documentation.
  Add remaining missing HIDL SystemApi methods.
  HIDL: reportSyspropMethod -> enableInstrumentation
  Allow HIDL to be used in priv-apps.

6 years ago[automerger skipped] Merge "Revert "Don't unnecessarily reevaluate tethering provisio...
Erik Kline [Tue, 10 Apr 2018 11:37:13 +0000 (04:37 -0700)]
[automerger skipped] Merge "Revert "Don't unnecessarily reevaluate tethering provisioning""
am: abb1562ca1  -s ours

Change-Id: I6dfb0ca5342ad1a0cad6cc02b6f96f83ae897392

6 years agoMerge "Revert "Don't unnecessarily reevaluate tethering provisioning""
Treehugger Robot [Tue, 10 Apr 2018 08:35:31 +0000 (08:35 +0000)]
Merge "Revert "Don't unnecessarily reevaluate tethering provisioning""

6 years ago[automerger skipped] Merge "Don't unnecessarily reevaluate tethering provisioning"
Erik Kline [Tue, 10 Apr 2018 07:05:08 +0000 (00:05 -0700)]
[automerger skipped] Merge "Don't unnecessarily reevaluate tethering provisioning"
am: 081014ac55  -s ours

Change-Id: Ia4e02d723ae3d2305433f7f1e55f13d018e0ab89

6 years agoRevert "Don't unnecessarily reevaluate tethering provisioning"
Erik Kline [Tue, 10 Apr 2018 07:01:16 +0000 (07:01 +0000)]
Revert "Don't unnecessarily reevaluate tethering provisioning"

This reverts commit 8067d78c32f545db6d35c660279ab3f2326ba41d.

Change-Id: I9098f98cb134c35692c1384339f9407b94ce6f28

6 years agoMerge "Trigger NetworkCallback events when private DNS usage has changed."
Erik Kline [Tue, 10 Apr 2018 04:17:46 +0000 (21:17 -0700)]
Merge "Trigger NetworkCallback events when private DNS usage has changed."
am: ec4ded5222

Change-Id: Ibf97fa6dce68a59f69480f668a34a40cecba2a38

6 years agoMerge "Don't unnecessarily reevaluate tethering provisioning"
Treehugger Robot [Tue, 10 Apr 2018 03:22:10 +0000 (03:22 +0000)]
Merge "Don't unnecessarily reevaluate tethering provisioning"

6 years agoMerge "Trigger NetworkCallback events when private DNS usage has changed."
Erik Kline [Tue, 10 Apr 2018 03:16:07 +0000 (03:16 +0000)]
Merge "Trigger NetworkCallback events when private DNS usage has changed."

6 years agoTrigger NetworkCallback events when private DNS usage has changed.
dalyk [Mon, 5 Mar 2018 17:42:22 +0000 (12:42 -0500)]
Trigger NetworkCallback events when private DNS usage has changed.

Relies on events sent from netd in aosp/578162.

Test: Added tests to ConnectivityServiceTest. Added a new test
class DnsManagerTest. Built a simple app that appears to
receive onLinkProperties events correctly upon manual changes
to the private DNS settings on a Pixel.
Bug: 71828272
Change-Id: I68665aaf74b7d59182cc6f9586b80b55b0dfe427

6 years agoMerge "Support bluetooth not using MultinetworkPolicyTracker"
Erik Kline [Mon, 9 Apr 2018 08:51:34 +0000 (01:51 -0700)]
Merge "Support bluetooth not using MultinetworkPolicyTracker"
am: ed631bf5aa

Change-Id: I889e58c1e102f6b0cddebed4454f30fad701b025

6 years agoMerge "Support bluetooth not using MultinetworkPolicyTracker"
Treehugger Robot [Mon, 9 Apr 2018 07:55:50 +0000 (07:55 +0000)]
Merge "Support bluetooth not using MultinetworkPolicyTracker"

6 years agoSupport bluetooth not using MultinetworkPolicyTracker
Erik Kline [Mon, 12 Mar 2018 14:18:58 +0000 (23:18 +0900)]
Support bluetooth not using MultinetworkPolicyTracker

This required advancing the IpManager to IpClient refactoring
(Bluetooth used IpManager and friends). Most importantly, the
Bluetooth code used WaitForProvisioningCallback, so this is
moved into IpClient proper now. Also: some more renaming
cleanup.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 62476366
Bug: 72663849

Change-Id: I9eee2a9d5c31cdd48a054a7edc3403584efb1864

6 years agoDon't unnecessarily reevaluate tethering provisioning
Erik Kline [Wed, 28 Feb 2018 06:01:35 +0000 (15:01 +0900)]
Don't unnecessarily reevaluate tethering provisioning

Registering for carrier config changes can deliver a sticky broadcast
and can cause Tethering to think something has changed and reevaluate
provisioning status, even though this has been checked before it
entered tethering mode alive state.

Additionally, move the provisioning_app{,no_ui} resources into the
TetheringConfiguration, if for no other reason than now we can log
it in .toString().

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - manual USB tethering toward WiFi works
Bug: 69565814
Change-Id: Ib8b2620ce44c55e5eb0afd3f00f3f5aa4fc8a593

6 years agoMerge "Bluetooth: Add hidden API to get current user of HID Device (1/3)"
Hansong Zhang [Sat, 7 Apr 2018 00:00:59 +0000 (17:00 -0700)]
Merge "Bluetooth: Add hidden API to get current user of HID Device (1/3)"
am: d61e87ad08

Change-Id: I919f0be242b532207d31cd32511da86ebbbc9fe3

6 years agoMerge "Bluetooth: Add hidden API to get current user of HID Device (1/3)"
Treehugger Robot [Fri, 6 Apr 2018 21:54:06 +0000 (21:54 +0000)]
Merge "Bluetooth: Add hidden API to get current user of HID Device (1/3)"

6 years agoMerge "Clarify doc comment for android.os.Build.VERSION.RELEASE"
Daniel Colascione [Fri, 6 Apr 2018 18:40:13 +0000 (11:40 -0700)]
Merge "Clarify doc comment for android.os.Build.VERSION.RELEASE"
am: fe79660d1e

Change-Id: I907c8d585bd4fcea3240b27a9c58343daeb4044a

6 years agoMerge "Correct the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED"
Jayachandran Chinnakkannu [Fri, 6 Apr 2018 17:42:07 +0000 (10:42 -0700)]
Merge "Correct the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED"
am: 0222c2cac1

Change-Id: Ie8e1c31b5afadf9d33e179474f4d810e8cf6c74f

6 years agoMerge "Clarify doc comment for android.os.Build.VERSION.RELEASE"
Treehugger Robot [Fri, 6 Apr 2018 17:17:25 +0000 (17:17 +0000)]
Merge "Clarify doc comment for android.os.Build.VERSION.RELEASE"

6 years agoMerge "Correct the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED"
Jayachandran Chinnakkannu [Fri, 6 Apr 2018 16:31:15 +0000 (16:31 +0000)]
Merge "Correct the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED"

6 years agoClarify doc comment for android.os.Build.VERSION.RELEASE
Daniel Colascione [Fri, 6 Apr 2018 15:12:05 +0000 (08:12 -0700)]
Clarify doc comment for android.os.Build.VERSION.RELEASE

The RELEASE field has no guaranteed internal structure and developers
should not attempt to parse it.

Test: no code changes
Change-Id: I0ea3ab5ba5dd4cc733feb62725cf7c62c00c857b

6 years agoCorrect the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED
Jayachandran C [Fri, 6 Apr 2018 08:10:38 +0000 (01:10 -0700)]
Correct the value of RESOURCES_UNAVAILABLE_OR_UNSPECIFIED

Test: Build
Bug: 77657541
Change-Id: Ia6b576c222776cbc7e54e15cb54e39775e76ea56

6 years agoMerge "Remove an API that doesn't exist."
Dan Albert [Fri, 6 Apr 2018 02:32:06 +0000 (19:32 -0700)]
Merge "Remove an API that doesn't exist."
am: 454b1e37eb

Change-Id: I8ef8a0dabb8840faee9d601bae49794126fa40ee

6 years agoMerge "Move the logic of (re)evaluation of Private DNS"
Erik Kline [Fri, 6 Apr 2018 01:38:08 +0000 (18:38 -0700)]
Merge "Move the logic of (re)evaluation of Private DNS"
am: 04233ef175

Change-Id: Ic510dabd6a2d40cd6d33a21e0128d85a0126127f

6 years agoMerge "Remove an API that doesn't exist."
Treehugger Robot [Fri, 6 Apr 2018 00:31:20 +0000 (00:31 +0000)]
Merge "Remove an API that doesn't exist."

6 years agoMerge "Move the logic of (re)evaluation of Private DNS"
Treehugger Robot [Thu, 5 Apr 2018 23:52:55 +0000 (23:52 +0000)]
Merge "Move the logic of (re)evaluation of Private DNS"

6 years agoMove the logic of (re)evaluation of Private DNS
Erik Kline [Wed, 21 Mar 2018 14:18:33 +0000 (07:18 -0700)]
Move the logic of (re)evaluation of Private DNS

Moves this out of ConnectivityService and into each NetworkMonitor
(where it's more self-contained).

Test: as follows
    - builds, flashes, boots
    - runtest frameworks-net passes
    - manual testing with working and non-working hostnames behaves
      somewhat (but not entirely) as expected, and not always quickly
Bug: 64133961
Bug: 72345192
Bug: 73872000
Bug: 77140445
Change-Id: Ic4322af3cb49149f2d975cb31f54b2ac7927f907

6 years agoRemove an API that doesn't exist.
Dan Albert [Thu, 5 Apr 2018 22:00:00 +0000 (15:00 -0700)]
Remove an API that doesn't exist.

Apparently this was removed in Jelly Bean:
https://stackoverflow.com/q/24312632/632035. Keeping the decl in the
NDK just confuses people: https://stackoverflow.com/q/49646596/632035.

Test: make checkbuild
Bug: None
Change-Id: If549fcd8f4052e633646c4ce8a054a0bbcd8b2bf

6 years agoMerge "Remove duplicate definitions of utility variables"
Dan Willemsen [Thu, 5 Apr 2018 00:46:12 +0000 (17:46 -0700)]
Merge "Remove duplicate definitions of utility variables"
am: 8d5a39ac62

Change-Id: I38a6dff84d3ccad0a1b895a4416b14e59c406953

6 years agoMerge "Add Polish keycharactermap"
Siarhei Vishniakou [Wed, 4 Apr 2018 23:56:02 +0000 (16:56 -0700)]
Merge "Add Polish keycharactermap"
am: 3b5016598d

Change-Id: I554316c67876f27c8a55c351d7192eea4bb1c524

6 years agoMerge "Hearing Aid: change get/set active device (3/3)"
Hansong Zhang [Wed, 4 Apr 2018 23:50:40 +0000 (16:50 -0700)]
Merge "Hearing Aid: change get/set active device (3/3)"
am: a23007dd54

Change-Id: I0760912dd11edf7f3db443d663644b0ceb415f0e