Commit Graph

75977 Commits

Author SHA1 Message Date
Mathew Inwood
71ef453a6c Replace ALL_LISTS policy with JUST_WARN.
am: a4ba0e442a

Change-Id: I423212d16d0c453f31ae6e82f8333d5b633ed78b
2018-05-09 02:38:34 -07:00
android-build-prod (mdb)
caa341904a Merge "Bluetooth: Fix HFP SCO logic and documentation"
am: 9c4593243c

Change-Id: I86b54d8d05be040eb2273e83f25201e0f2b005a1
2018-05-08 18:37:29 -07:00
android-build-prod (mdb)
9c4593243c Merge "Bluetooth: Fix HFP SCO logic and documentation" 2018-05-09 00:25:12 +00:00
android-build-prod (mdb)
b6d1fd2a07 Merge "Update the Open Mobile API version"
am: cf54a958db

Change-Id: If5f611b074e3ee855d58878688333d1031e6fa93
2018-05-08 16:27:07 -07:00
android-build-prod (mdb)
cf54a958db Merge "Update the Open Mobile API version" 2018-05-08 22:22:13 +00:00
Mathew Inwood
a4ba0e442a Replace ALL_LISTS policy with JUST_WARN.
It seems pretty unlikely that we'd ever want to disallow access to the
light greylist in P, since doing do would break do many apps. We don't need
this policy here as an opt-in for apps now, since the StrictMode work will
achieve the same thing.

Instead, make a "just warn" policy which allows access to all APIs, but
leaves the detection and logging logic in place. This gives us the option
of disabling enforcement, but still gathering logs to find out which apps
use which APIs.

Bug: 77517571

Test: Boot device
Test: Hardcode policy of HIDDEN_API_ENFORCEMENT_JUST_WARN and verify log
Merged-In: I588f347716a79ac5887b74763c8afc16b3be699b
Change-Id: I588f347716a79ac5887b74763c8afc16b3be699b
(cherry picked from commit a6d02fb104)
2018-05-08 10:29:16 +01:00
Jack He
896e129f5f Bluetooth: Fix HFP SCO logic and documentation
AudioService:
* Call setBtScoActiveDevice and setBluetoothScoOn both in AudioService's
  broadcast receiver so that these two methods must be triggerred in
  the same sequence as ACTIVE_DEVICE_CHANGED and AUDIO_STATE_CHANGED
  intents are sent and we no longer need to handle race condition by
  synchronously checking active device in setBluetoothScoOn
* Default sco audio mode when no headset is active should be virtual
  voice call, as many HFP devices do not accept SCO audio without an
  ongoing call
* Synchronize checkScoAudioState() method with mScoClients
* Add helper functions connectBluetoothScoHelper and
  disconnectBluetoothScoHelper to call various SCO setup and tear down
  methods based on sco audio mode
* Try raw, virtual call, and voice recognition mode when disconnecting
  externally started SCO
* Add new sco state SCO_STATE_DEACTIVATING to allow back to back calling
  of startBluetoothSco and stopBluetoothSco

Audio Manager:
* Modified AudioManager logic so that removed devices callback is called
  before newly added devices

BluetoothHeadset:
* Modified BluetoothHeadset so that start and stop SCO using virtual
  voice call no longer need a parameter and will use active device by
  default
* Modified documentation around various sco mangement APIs to match
  their expected behaviors

Bug: 76114959
Test: VoIP calls sanity test cases
Change-Id: Id50db88f4ff36069b0f392c81dd9d90c24cd2206
(cherry picked from commit 89f979849a)
2018-05-07 12:57:26 -07:00
android-build-prod (mdb)
ea18806cb7 Merge "Fix spelling errors in BluetoothGatt documentation"
am: e7b05b8797

Change-Id: Iec4514c414dbaf7dcc3ff5a7b621ae9a4871c94c
2018-05-03 15:07:44 -07:00
Stanley Tng
505c05839b Fix spelling errors in BluetoothGatt documentation
Correct "paramter" to "parameter". Correct "connectoin" to connection.

Bug: 79198797
Test: Compile
Change-Id: I98646eec66da2aaa6f74ae2db35ea914c6a105a1
2018-05-03 20:43:40 +00:00
android-build-prod (mdb)
badce3de08 Merge "Get/Set IO capability of Bluetooth device"
am: d1ed784438

Change-Id: I54ae0a715b758a0b05a31e89c43207ff59c853a6
2018-04-30 15:06:46 -07:00
Pulkit Bhuwalka
979698bc2c Get/Set IO capability of Bluetooth device
Creates the hidden BluetoothAdapter APIs which can be used to
control IO capability settings on the local Bluetooth device.

Bug: 36015413
Test: Used a test activity to control getting/setting the value and
attempting pairing.

Change-Id: Ibbfdc5ae5a1d56c6e3d003ab3bf5d095dcb583e4
(cherry picked from commit 6043b7b90a27a836241bfc05e71eb46ce04c66cf)
2018-04-28 13:45:44 -07:00
android-build-prod (mdb)
5b68325591 Merge "Add the list of private DNS addresses to LinkProperties"
am: 1100e84175

Change-Id: I76ec108862edfb557496ddcd8b5c73202cd674de
2018-04-27 00:56:10 -07:00
Chalard Jean
03dbf6bd5e Add the list of private DNS addresses to LinkProperties
(clean cherry-pick from ag/3874803)

Test: atest android.net.LinkPropertiesTest, also new tests pass
Bug: 73641539
Change-Id: If33a35b1354a67db09411ff098f20064797296ad
Merged-In: I4b739c56e658690532ae9deb0b9a3bc9b2adf8b0
Merged-In: I6bdbef78d078d68534c8e07e9af031ce374560ef
2018-04-27 13:32:10 +09:00
Mika Raento
ae359622a6 Merge "Systrace support for NNAPI"
am: ecb0302ae9

Change-Id: I16dbb15a6139105b7e04761cdbcffff32b8b1706
2018-04-26 11:12:53 -07:00
Ruchi Kandoi
c46670ddbd Update the Open Mobile API version
The current implementation is inline with OMAPI version 3.3

Test: None
Bug: 64994044
Change-Id: I22f969e99f4dfc677931adf3494b47d6972d026d
2018-04-26 02:34:27 -07:00
Mika Raento
6a30ff8326 Systrace support for NNAPI
Change-Id: Ie73d28937eba33e2d90f1447f17fd6d8e5719a65
Bug: 78137932
Test: mm
2018-04-26 09:34:12 +01:00
Pavlin Radoslavov
493dbf789f Merge "Fix the implementation of BluetoothCodecStatus.equals()"
am: 3a1ca762c9

Change-Id: I159c2128068021b5ca5e0a7bf3eae218de0bdf1b
2018-04-19 17:59:36 -07:00
Pavlin Radoslavov
9d36e6babc Fix the implementation of BluetoothCodecStatus.equals()
Previously, the BluetoothCodecStatus.equals() implementation
was incorrect when comparing arrays of capabilities.
In the new implementation, the arrays are compared correctly,
and also the ordering of the capabilities in each array is ignored.

Also, added unit tests for class BluetoothCodecConfig and class
BluetoothCodecStatus.

Bug: 73404858
Bug: 73379307
Test: Unit tests (in frameworks/base)
  runtest --path core/tests/bluetoothtests/src/android/bluetooth/BluetoothCodecConfigTest.java
  runtest --path core/tests/bluetoothtests/src/android/bluetooth/BluetoothCodecStatusTest.java

Change-Id: If22087465397b7c4175c33f7d1909a15d957fb24
2018-04-19 14:36:18 -07:00
Stanley Tng
478b35a2fd Merge "Clarify API doc for BluetoothGattServer::addService"
am: f493c66f39

Change-Id: If988cc85292426c6694732e2158ad698d740c93d
2018-04-16 19:59:17 -07:00
Stanley Tng
e93a622275 Merge "Cleanup documentation for LE CoC in BluetoothAdapter"
am: 7b25698549

Change-Id: I5e7633c73c7ed7f9257acb4fb891fbaec8202f63
2018-04-16 18:58:21 -07:00
Treehugger Robot
f493c66f39 Merge "Clarify API doc for BluetoothGattServer::addService" 2018-04-17 00:07:38 +00:00
Stanley Tng
dac8e14018 Cleanup documentation for LE CoC in BluetoothAdapter
Test: Compile
Bug: 77631591
Change-Id: Ic3c7f13e560534a048bf5c8b274fe62190c214c7
2018-04-16 22:33:31 +00:00
Stanley Tng
4b5cf48560 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
2018-04-16 13:12:52 -07:00
Hall Liu
5f0cbc215d Merge "Move RTT system setting to Settings.Secure"
am: 9a51f07117

Change-Id: I226e9a91725f7755595c3530162829f8bf61b135
2018-04-16 13:08:16 -07:00
Hall Liu
9a51f07117 Merge "Move RTT system setting to Settings.Secure" 2018-04-16 18:40:28 +00:00
Hall Liu
60fd195a0a Move RTT system setting to Settings.Secure
Bug: 76449217
Test: manual
Change-Id: Id198aab697e9e37c941b0d99255e4c6a0e1f91a9
Merged-In: I85620d5b834aa7e04579212f3fd5cf6c0498b570
2018-04-12 13:39:58 -07:00
Stanley Tng
cb3222d662 Merge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()"
am: 0980006a2a

Change-Id: I3aec5bce2861518d79ae80dd32562d83bc0c7ef4
2018-04-12 08:50:35 -07:00
Stanley Tng
0980006a2a Merge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()" 2018-04-12 14:36:12 +00:00
Colin Cross
09d3aef926 Merge changes from topic "hidl-system-api"
am: 88a2b68252

Change-Id: I862274d2d6a258f252370a9ae3843a31c038d684
2018-04-10 10:43:52 -07:00
Steven Moreland
22795d2008 Update HIDL-related documentation.
am: 9efa13f38c

Change-Id: I8a053ee95610272f97f0031936ac3d3fe50766d2
2018-04-10 10:39:10 -07:00
Steven Moreland
35d09a0d29 Add remaining missing HIDL SystemApi methods.
am: ff0a3642e4

Change-Id: Iafa60151da6c8b994911ff077cfcfdf53bc61b81
2018-04-10 10:34:34 -07:00
Steven Moreland
12071e63e8 HIDL: reportSyspropMethod -> enableInstrumentation
am: 9312938842

Change-Id: Ia533c7ad33066b8c20610f8ea5fea6255d778d1b
2018-04-10 10:29:11 -07:00
Steven Moreland
d6b11ec69f Allow HIDL to be used in priv-apps.
am: 4dde8a113b

Change-Id: Ib255c6b6603cdb51fa1c4c5a11d3c1dc8a0c24a9
2018-04-10 10:22:25 -07:00
Colin Cross
88a2b68252 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.
2018-04-10 16:06:28 +00:00
Erik Kline
bfcbe96fd0 Merge "Support bluetooth not using MultinetworkPolicyTracker"
am: ed631bf5aa

Change-Id: I889e58c1e102f6b0cddebed4454f30fad701b025
2018-04-09 01:51:34 -07:00
Erik Kline
8d1fe54be1 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
2018-04-08 23:09:36 -07:00
Hansong Zhang
1ef9b9979b Merge "Bluetooth: Add hidden API to get current user of HID Device (1/3)"
am: d61e87ad08

Change-Id: I919f0be242b532207d31cd32511da86ebbbc9fe3
2018-04-06 17:00:59 -07:00
Treehugger Robot
d61e87ad08 Merge "Bluetooth: Add hidden API to get current user of HID Device (1/3)" 2018-04-06 21:54:06 +00:00
Daniel Colascione
7c4bcfc298 Merge "Clarify doc comment for android.os.Build.VERSION.RELEASE"
am: fe79660d1e

Change-Id: I907c8d585bd4fcea3240b27a9c58343daeb4044a
2018-04-06 11:40:13 -07:00
Daniel Colascione
d1520aa11b 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
2018-04-06 08:36:18 -07:00
Hansong Zhang
29e1c0e494 Merge "Hearing Aid: change get/set active device (3/3)"
am: a23007dd54

Change-Id: I0760912dd11edf7f3db443d663644b0ceb415f0e
2018-04-04 16:50:40 -07:00
Treehugger Robot
a23007dd54 Merge "Hearing Aid: change get/set active device (3/3)" 2018-04-04 21:42:17 +00:00
tiansiming [田思明]
4b38e9587d Merge "Modify isShowing method in Dialog"
am: 46be1f15af

Change-Id: I9d1cd55d51c37571d199ebbb5975f490e0969a92
2018-04-04 12:47:13 -07:00
Benedict Wong
abcf07af81 Merge "Force creation of Socket upon Transform application"
am: 119cf2bc61

Change-Id: Ia19da86a3fa40e309ff7a079307a8a63de8ba796
2018-04-04 12:43:36 -07:00
Treehugger Robot
46be1f15af Merge "Modify isShowing method in Dialog" 2018-04-04 18:39:38 +00:00
Benedict Wong
119cf2bc61 Merge "Force creation of Socket upon Transform application" 2018-04-04 17:14:46 +00:00
tiansiming [田思明]
ca1c4d2755 Modify isShowing method in Dialog
The method isShowing in Dialog.java is to judge whether
the dialog is currently showing, but it will return true
when the dialog is hidden.

Bug: 74416088
Test: modify testShow in DialogTest.java (see 639879)
run cts -m CtsAppTestCases -t android.app.cts.DialogTest#testShow

Change-Id: Ibf15e080678f414f8a66ff0841be17a2f9d2d652
Signed-off-by: tiansiming [田思明] <tiansiming@xiaomi.com>
2018-04-04 10:54:24 +08:00
Benedict Wong
d175a3d3a0 Force creation of Socket upon Transform application
This change forces Socket and DatagramSocket to populate the
SocketImpl, ensuring that the socket file descriptor can be
retrieved when applying Transport mode Transforms

This is done by calling getSoLinger(), triggering a getImpl(), which
triggers setImpl() if needed.

Bug: 77491294
Test: Added tests in IpSecManagerTest, ran on walleye
Change-Id: I40da08b031357710eb794e0f866aec5660c79594
2018-04-03 17:04:55 -07:00
Ruchi Kandoi
a6c7187242 Merge "Add an Executor for the onConnectedListener"
am: 0d1f7933a3

Change-Id: Ie1075238c6339c7964c14ef82f6db2d499ca03a3
2018-04-03 12:17:37 -07:00
Hansong Zhang
347ef4099e Bluetooth: Add hidden API to get current user of HID Device (1/3)
Bug: 69136526
Test: test with apps using HID Device profile
Change-Id: If0e49840257c877c975c2da176a08e613668cbc3
2018-04-03 12:12:53 -07:00