OSDN Git Service

android-x86/system-bt.git
4 years ago[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr...
Myles Watson [Wed, 18 Sep 2019 19:16:05 +0000 (12:16 -0700)]
[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr am: 4291c84baa -s ours am: 2b28faafa0 -s ours am: a03b3585db -s ours am: 44ec263e5c -s ours
am: fe9eb186ac -s ours
am skip reason: change_id Ib642f79ed22b65ede5ff786cb1e163d172480f11 with SHA1 d4f012bc80 is in history

Change-Id: I5d5e8ff324fe454c49380d1cbb4f8453bee26aac

4 years ago[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr...
Myles Watson [Wed, 18 Sep 2019 19:09:24 +0000 (12:09 -0700)]
[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr am: 4291c84baa -s ours am: 2b28faafa0 -s ours am: a03b3585db -s ours
am: 44ec263e5c -s ours
am skip reason: change_id Ib642f79ed22b65ede5ff786cb1e163d172480f11 with SHA1 d4f012bc80 is in history

Change-Id: Icb2adee4a9d3b21908181dd5ad323ec415b0010f

4 years ago[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr...
Myles Watson [Wed, 18 Sep 2019 19:05:38 +0000 (12:05 -0700)]
[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr am: 4291c84baa -s ours am: 2b28faafa0 -s ours
am: a03b3585db -s ours
am skip reason: subject contains skip directive

Change-Id: I4544f77006664ae0bdef00369f01fea77ca02761

4 years ago[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr...
Myles Watson [Wed, 18 Sep 2019 18:56:34 +0000 (11:56 -0700)]
[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr am: 4291c84baa -s ours
am: 2b28faafa0 -s ours
am skip reason: subject contains skip directive

Change-Id: I78f9c36cbf4c97a252e06b4e2b1862799f93f48d

4 years ago[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr
Myles Watson [Wed, 18 Sep 2019 18:50:21 +0000 (11:50 -0700)]
[automerger skipped] DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr
am: 4291c84baa -s ours
am skip reason: change_id Ib642f79ed22b65ede5ff786cb1e163d172480f11 with SHA1 d4f012bc80 is in history

Change-Id: I73d7f92b5dc4ab723c721edbc53131e8be6c3d79

4 years agoMerge "Add the package name to setBluetoothTethering" into qt-qpr1-dev
TreeHugger Robot [Wed, 18 Sep 2019 00:56:12 +0000 (00:56 +0000)]
Merge "Add the package name to setBluetoothTethering" into qt-qpr1-dev

4 years agoDO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr
Myles Watson [Thu, 25 Oct 2018 00:05:12 +0000 (17:05 -0700)]
DO NOT MERGE: SDP: Check p_end in save_attr_seq and add_attr

(This CL is missed between oc-dev and oc-mr1-dev)

Bug: 115900043
Test: Sanity pairing and SDP PTS
Change-Id: Ib642f79ed22b65ede5ff786cb1e163d172480f11
Merged-In: Ib642f79ed22b65ede5ff786cb1e163d172480f11
(cherry picked from commit d4f012bc80bc68be1cab967958d4cf7e9c1ee442)

4 years agoMerge "BLE: Updating the WL if addr_type is not matched for same BDaddr" into qt...
Jakub Pawlowski [Wed, 11 Sep 2019 21:20:40 +0000 (21:20 +0000)]
Merge "BLE: Updating the WL if addr_type is not matched for same BDaddr" into qt-qpr1-dev

4 years ago[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc3...
Ugo Yu [Wed, 11 Sep 2019 17:29:24 +0000 (10:29 -0700)]
[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc32de to oc-dr1-dev am: 9bc574c618 -s ours am: db61bc8978 -s ours am: 40ac062848 -s ours am: ee56071b66 -s ours
am: 5c3e64afe7 -s ours
am skip reason: change_id I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff with SHA1 a65f859b17 is in history

Change-Id: I8cb0925a5a44e504051ee0970013dc1fc8bf7ae1

4 years ago[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc3...
Ugo Yu [Wed, 11 Sep 2019 17:22:19 +0000 (10:22 -0700)]
[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc32de to oc-dr1-dev am: 9bc574c618 -s ours am: db61bc8978 -s ours am: 40ac062848 -s ours
am: ee56071b66 -s ours
am skip reason: change_id I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff with SHA1 a65f859b17 is in history

Change-Id: I3c511fd11e78acc9a8ba928ddd0d8a006d2aa20f

4 years ago[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc3...
Ugo Yu [Wed, 11 Sep 2019 17:15:16 +0000 (10:15 -0700)]
[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc32de to oc-dr1-dev am: 9bc574c618 -s ours am: db61bc8978 -s ours
am: 40ac062848 -s ours
am skip reason: change_id I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff with SHA1 a65f859b17 is in history

Change-Id: Ie70ddf9c2a82f51eaca9704974fd734b846553bb

4 years ago[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc3...
Ugo Yu [Wed, 11 Sep 2019 17:08:15 +0000 (10:08 -0700)]
[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc32de to oc-dr1-dev am: 9bc574c618 -s ours
am: db61bc8978 -s ours
am skip reason: change_id I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff with SHA1 a65f859b17 is in history

Change-Id: I2f3f74f49288ff10fbb570f94a5a6eac6b1d421e

4 years ago[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc3...
Ugo Yu [Wed, 11 Sep 2019 17:01:13 +0000 (10:01 -0700)]
[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc32de to oc-dr1-dev
am: 9bc574c618 -s ours
am skip reason: change_id I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff with SHA1 a65f859b17 is in history

Change-Id: Iffd5b655457623e328f3cce1a5894d8a611cd417

4 years agoresolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc32de to oc-dr1-dev
Ugo Yu [Wed, 11 Sep 2019 05:52:45 +0000 (13:52 +0800)]
resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc32de to oc-dr1-dev

Bug: 79703832
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Id582a274929f10d65e22d71f61de4b8953fed18e
Merged-In: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff

4 years agoBLE: Updating the WL if addr_type is not matched for same BDaddr
Janardhana Rao Bokka [Tue, 10 Sep 2019 04:31:16 +0000 (10:01 +0530)]
BLE: Updating the WL if addr_type is not matched for same BDaddr

Issue:
Connection is not happening with same remote device after BT
reset.

Steps to Repro:
1. Scan and connect to remote device with "Random" address
2. Toggle BT OFF and ON
3. Without scanning, App tries to connect to remote device and
device gets added as default "Public" addr_type in WL
4. Connection doesn't go through (as expected) since remote device
has "Random" address
5. App cancels the attempt or 30 sec direct connection timeout
happens. The device is marked for removal
6. App scans for the device and the correct addr_type (Random)
is now in the inquiry database in stack
7. App initiates connection for the device but the connection
attempt still goes with "Public" address type and hence never
succeeds.

RootCause:
At step 5, stack just marks the device to be removed from whitelist
(pending_removal) but doesn't actually remove it from Controller
until the next WL connection is needed. Later in step 7, when the
WL connection is needed from the App, stack attempts to add the
device to the whitelist, but realizes that the device is already in
the Controller whitelist and hence doesn't do remove and add.
There is no check to see if the device in Controller's WL is with
correct addr_type.

Fix:
When checking for remote addr that needs to be added/removed
from WL, also take into the account the remote addr_type.

Test:
Tested with the fix multiple times. Issue not seen with this fix.

Bug: 140085561
Change-Id: I415b5fa29800b975c2ebcbf95b36cf8879841b3e

4 years ago[automerger skipped] Merge "Store BLE keys using the address from the ble_auth_cmpl_e...
Ugo Yu [Wed, 11 Sep 2019 03:36:45 +0000 (20:36 -0700)]
[automerger skipped] Merge "Store BLE keys using the address from the ble_auth_cmpl_evt" into qt-dev am: a9b50ae838 -s ours
am: f77868ab3c -s ours
am skip reason: change_id I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff with SHA1 a65f859b17 is in history

Change-Id: I8be4946ae5a23fae8a2da71b68e41a8f427b0bca

4 years ago[automerger skipped] Merge "Store BLE keys using the address from the ble_auth_cmpl_e...
Ugo Yu [Wed, 11 Sep 2019 03:29:44 +0000 (20:29 -0700)]
[automerger skipped] Merge "Store BLE keys using the address from the ble_auth_cmpl_evt" into qt-dev
am: a9b50ae838 -s ours
am skip reason: change_id I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff with SHA1 a65f859b17 is in history

Change-Id: I5b647f66f187e1bee38a89cb15ccd13eab6cfa7e

4 years agoMerge "AVRCP: Keep the device in the map on disconnect" into qt-qpr1-dev
TreeHugger Robot [Wed, 11 Sep 2019 03:14:43 +0000 (03:14 +0000)]
Merge "AVRCP: Keep the device in the map on disconnect" into qt-qpr1-dev

4 years agoMerge "Store BLE keys using the address from the ble_auth_cmpl_evt" into qt-dev
TreeHugger Robot [Wed, 11 Sep 2019 03:10:15 +0000 (03:10 +0000)]
Merge "Store BLE keys using the address from the ble_auth_cmpl_evt" into qt-dev

4 years ago[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_...
Ugo Yu [Wed, 11 Sep 2019 01:39:56 +0000 (18:39 -0700)]
[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt am: a65f859b17 -s ours am: 441b011410 -s ours am: b1f32a5867
am: 623c1f0965

Change-Id: Ie40ba59c57628ef89e8951225551a08140e7402f

4 years ago[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_...
Ugo Yu [Wed, 11 Sep 2019 01:37:00 +0000 (18:37 -0700)]
[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt am: b2334f0589 -s ours am: 10a884f61f
am: 61fcafaec8

Change-Id: Id02291491be0b55e44b73cb1d7620f5ef39854da

4 years ago[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_...
Ugo Yu [Wed, 11 Sep 2019 01:29:07 +0000 (18:29 -0700)]
[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt am: a65f859b17 -s ours am: 441b011410 -s ours
am: b1f32a5867

Change-Id: I4d4b8817a909fe33fd213029b19fd45ec0b37c80

4 years ago[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_...
Ugo Yu [Wed, 11 Sep 2019 01:24:34 +0000 (18:24 -0700)]
[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt am: a65f859b17 -s ours
am: 441b011410 -s ours
am skip reason: subject contains skip directive

Change-Id: I1854ec89e994337d44522ddbf9da2366991d17a4

4 years ago[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_...
Ugo Yu [Wed, 11 Sep 2019 01:19:07 +0000 (18:19 -0700)]
[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt am: b2334f0589 -s ours
am: 10a884f61f

Change-Id: I77eb3ddf1f8a06c4a88435660f82aab23e301738

4 years ago[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_...
Ugo Yu [Wed, 11 Sep 2019 01:08:13 +0000 (18:08 -0700)]
[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt
am: a65f859b17 -s ours
am skip reason: subject contains skip directive

Change-Id: I33793fde2925c0a87cb043238b22862cdd7d40b3

4 years ago[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_...
Ugo Yu [Wed, 11 Sep 2019 01:08:13 +0000 (18:08 -0700)]
[automerger skipped] DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt
am: b2334f0589 -s ours
am skip reason: subject contains skip directive

Change-Id: I86a56a7c0b4676005b8b39eb6c800f834b68ef41

4 years agoAVRCP: Keep the device in the map on disconnect
Joonghong Park [Sun, 21 Apr 2019 23:26:58 +0000 (08:26 +0900)]
AVRCP: Keep the device in the map on disconnect

Fixes a stack crash when disconnecting AVRCP

If an AVRCP connection, established by AVRC_OPEN_IND_EVT, is disconnected
by calling DisconnectDevice() in Connection Handler, there is a corner
case that does not clear Connection Control Block (CCB) entirely of a
opened handle.
So when there is re-connection trials, partially cleared CCBs causes
a critical stack crash.

When calling DisconnectDevice() in Connection Handler, there are issues.
-Keeping removed CCB info partially, such as member variable "allocated",
even though receiving AVRC_CLOSE_IND_EVT followed by clearing
Link Control Block (LCB).
-Keeping remote device address in feature_map_

This commit fixes the issue of above scenario, by keeping handle in
device_map_ and removing to send disconnected notification
when calling DisconnectDevice().
So when receiving AVRC_CLOSE_IND_EVT, normal procedure is conducted.

Note that AVRC_CLOSE_IND_EVT is occurred by both
AVCT_DISCONNECT_IND_EVT and AVCT_DISCONNECT_CFM_EVT.
And when calling avrc_->Close() in DisconnectDevice(), it just requests
to unbind LCB instead of dealloc CCB.
And when receiving AVRC_CLOSE_IND_EVT avrc_->Close() dealloc CCB.

Bug:139642151
Test: Test on phone with some products which has A/V Remote Control
such as Britz(BE-ME350) and airpod
Change-Id: Ic8bc3459afd4518447d6d52b1f8afb7b3e09a8b5
Signed-off-by: Joonghong Park <joonghong.park@samsung.com>
4 years agoMerge "Remove direct connection after notifying the connection up" into qt-qpr1-dev
TreeHugger Robot [Fri, 30 Aug 2019 03:08:26 +0000 (03:08 +0000)]
Merge "Remove direct connection after notifying the connection up" into qt-qpr1-dev

4 years agoAdd the package name to setBluetoothTethering
Chalard Jean [Mon, 19 Aug 2019 09:57:55 +0000 (18:57 +0900)]
Add the package name to setBluetoothTethering

This lets Appops check for permissions correctly.

Bug: 134649258
Test: atest PanServiceTest
      manual test that apps without the requisite permissions
      can't turn on bluetooth tethering

Change-Id: Ibd077bfdd071b9db68064052ecf77b8dfaf8878a
Merged-In: Ibd077bfdd071b9db68064052ecf77b8dfaf8878a

4 years agoStore BLE keys using the address from the ble_auth_cmpl_evt
Ugo Yu [Thu, 11 Jul 2019 12:12:42 +0000 (20:12 +0800)]
Store BLE keys using the address from the ble_auth_cmpl_evt

Reading the peer address from btif_dm_ble_auth_cmpl_evt, instead
of using the value from the pairing control block in
btif_dm_save_ble_bonding_keys, ensures that BLE keys are stored with
the correct address.

Bug: 133234174
Bug: 79703832
Test: 1. Initiate crosskey pairing from BLE
      2. Check whether BLE keys are stored correctly
Change-Id: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff
Merged-In: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff

4 years agoRemove direct connection after notifying the connection up
weichinweng [Thu, 8 Aug 2019 09:30:07 +0000 (17:30 +0800)]
Remove direct connection after notifying the connection up

After notifying the connection up, remove direct connection related with
this device to make sure no client is directly connecting the device in
connection_manager.

Bug: 138819537
Test: 1. Repair BLE device 2. Reconnect BLE deivce
3. reboot DUT, make sure Hearing Aid can be connected.

Change-Id: I30ff7c47445ec2a3dbd9702ca79873063210e6df
Merged-In: I30ff7c47445ec2a3dbd9702ca79873063210e6df

4 years agoDistribute ACL buffer only for not BLE device
weichinweng [Fri, 2 Aug 2019 08:43:09 +0000 (16:43 +0800)]
Distribute ACL buffer only for not BLE device

If LE ACL buffer is not zero from controller, will distribute ACL buffer
only for not BLE device to avoid assigning wrong quota to each device.
For BLE device, will be distribute BLE ACL buffer via l2cap ble layer.
If LE ACL buffe is zero from controller, will keep existing logic.

Bug: 136799551
Test: 1. Pair BLE and BREDR device, check whether Quota is correct.

Change-Id: Idd7079e8da3390fa9f4e42b07774df8928f2bf20
Merged-In: Idd7079e8da3390fa9f4e42b07774df8928f2bf20

5 years agoStore BLE keys using the address from the ble_auth_cmpl_evt
Ugo Yu [Thu, 25 Jul 2019 02:03:16 +0000 (19:03 -0700)]
Store BLE keys using the address from the ble_auth_cmpl_evt
am: 311ebcedb3

Change-Id: Id473a3eac5719cf890148dc43f29becd16584fe6

5 years agoStore BLE keys using the address from the ble_auth_cmpl_evt
Ugo Yu [Thu, 11 Jul 2019 12:12:42 +0000 (20:12 +0800)]
Store BLE keys using the address from the ble_auth_cmpl_evt

Reading the peer address from btif_dm_ble_auth_cmpl_evt, instead
of using the value from the pairing control block in
btif_dm_save_ble_bonding_keys, ensures that BLE keys are stored with
the correct address.

Bug: 133234174
Bug: 79703832
Test: 1. Initiate crosskey pairing from BLE
      2. Check whether BLE keys are stored correctly
Change-Id: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff

5 years agoDO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt
Ugo Yu [Thu, 11 Jul 2019 12:12:42 +0000 (20:12 +0800)]
DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt

Reading the peer address from btif_dm_ble_auth_cmpl_evt, instead
of using the value from the pairing control block in
btif_dm_save_ble_bonding_keys, ensures that BLE keys are stored with
the correct address.

Bug: 133234174
Bug: 79703832
Test: 1. Initiate crosskey pairing from BLE
      2. Check whether BLE keys are stored correctly
Change-Id: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff
Merged-In: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff
(cherry picked from commit 0d95651e8b22b1012f1ee103e4a0b8665a0c17d4)

5 years agoDO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt
Ugo Yu [Thu, 11 Jul 2019 12:12:42 +0000 (20:12 +0800)]
DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt

Reading the peer address from btif_dm_ble_auth_cmpl_evt, instead
of using the value from the pairing control block in
btif_dm_save_ble_bonding_keys, ensures that BLE keys are stored with
the correct address.

Bug: 133234174
Bug: 79703832
Test: 1. Initiate crosskey pairing from BLE
      2. Check whether BLE keys are stored correctly
Change-Id: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff
(cherry picked from commit 0d95651e8b22b1012f1ee103e4a0b8665a0c17d4)

5 years agoDO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt
Ugo Yu [Thu, 11 Jul 2019 12:12:42 +0000 (20:12 +0800)]
DO NOT MERGE Store BLE keys using the address from the ble_auth_cmpl_evt

Reading the peer address from btif_dm_ble_auth_cmpl_evt, instead
of using the value from the pairing control block in
btif_dm_save_ble_bonding_keys, ensures that BLE keys are stored with
the correct address.

Bug: 133234174
Bug: 79703832
Test: 1. Initiate crosskey pairing from BLE
      2. Check whether BLE keys are stored correctly
Change-Id: I18b4a1d8e2cdcd6dd4a300f1dc9e6d3892a3baff
(cherry picked from commit 0d95651e8b22b1012f1ee103e4a0b8665a0c17d4)

5 years agoSwitch Nintendo workaround to match by name
Andre Eisenbach [Wed, 10 Jul 2019 20:30:43 +0000 (13:30 -0700)]
Switch Nintendo workaround to match by name
am: c14c14fbc4

Change-Id: I89b558a9b3e87b58e15a8358fa66258fc03a882f

5 years agoMatch Nintento Pro Controller by name for interop
Andre Eisenbach [Wed, 10 Jul 2019 20:30:00 +0000 (13:30 -0700)]
Match Nintento Pro Controller by name for interop
am: b71ebf2d82

Change-Id: I683d6dabefeeed51e1a1e9919d3c1b1d28a47647

5 years agoHearing Aid: set BLE phy to 2M if local and peer indicate PHY 2M support
weichinweng [Wed, 3 Jul 2019 09:52:19 +0000 (17:52 +0800)]
Hearing Aid: set BLE phy to 2M if local and peer indicate PHY 2M support

Set the BLE phy to 2M if the BT controller and peer Hearing Aid device
indicate phy 2M support, otherwise, use default phy channel.

Bug: 135769508
Test: 1.Forget/Repair Hearing Aid device check whether phy is expected.
2.Disconnect/Reconnect Hearing Aid device check whether phy is expected.
3.HearingAid device power off/on, check whether phy is expected.

Change-Id: Ib410a8885f3a68c361bb97d5c9a3833f2a1be528
Merged-In: Ib410a8885f3a68c361bb97d5c9a3833f2a1be528
(cherry picked from commit 554c3598db5661ac0166eb12006d248a38723db1)

5 years agoSwitch Nintendo workaround to match by name
Andre Eisenbach [Mon, 8 Jul 2019 21:49:06 +0000 (14:49 -0700)]
Switch Nintendo workaround to match by name

Bug: 136478524
Test: manual
Change-Id: Ib60cd5adfc4db3ba93fe5ed8c15353225b6cf165

5 years agoMatch Nintento Pro Controller by name for interop
Andre Eisenbach [Mon, 1 Jul 2019 17:48:10 +0000 (10:48 -0700)]
Match Nintento Pro Controller by name for interop

The Nintento Pro Controller uses an unknown number of
BDA ranges (at least 3 found internally). Switching
to name matching...

Bug: 136478524
Test: manual
Change-Id: Ie2dfb700c9550af0c314759ec496a04a8e1aa062

5 years agoRootCanal: Set the timer period to 1 second
Myles Watson [Wed, 3 Jul 2019 23:08:24 +0000 (16:08 -0700)]
RootCanal: Set the timer period to 1 second
am: eb9a775086

Change-Id: Iaf7e4e6bab48fd9f882c2d0e0c53b1cd71e7ff65

5 years agoRootCanal: Set the timer period to 1 second
Myles Watson [Mon, 1 Jul 2019 22:22:26 +0000 (15:22 -0700)]
RootCanal: Set the timer period to 1 second

Reduce the CPU overhead of simulating the Bluetooth chip.

Bug: 136503363
Test: enable Bluetooth with RootCanal
Change-Id: I3a783a4d8a46d4eef43ddbace23c672ef9f6d7f9
Merged-In: I609f917061e5d83e011edfeb61de281ff45b13e4

5 years agoMerge "RootCanal: Make beacons less verbose" into qt-dev
Myles Watson [Mon, 1 Jul 2019 22:31:26 +0000 (15:31 -0700)]
Merge "RootCanal: Make beacons less verbose" into qt-dev
am: 155a2373f3

Change-Id: I45556790bd687e82aa2bd2effc084a5aab1160e0

5 years agoMerge "RootCanal: Make beacons less verbose" into qt-dev
TreeHugger Robot [Mon, 1 Jul 2019 22:11:59 +0000 (22:11 +0000)]
Merge "RootCanal: Make beacons less verbose" into qt-dev

5 years agoRootCanal: Make beacons less verbose
Myles Watson [Wed, 26 Jun 2019 17:27:19 +0000 (10:27 -0700)]
RootCanal: Make beacons less verbose

Fixes: 136287879
Test: scan for Bluetooth devices, watch logcat
Change-Id: I971a7e56359adc39d006a1b10b5333c2f31ebaff
(cherry picked from commit 0d5adc6fac590dc14f46790b3962c40712303aea)

5 years agoDO NOT MERGE RootCanal: Always add default devices
Myles Watson [Thu, 27 Jun 2019 20:53:01 +0000 (13:53 -0700)]
DO NOT MERGE RootCanal: Always add default devices
am: 6160b51adc

Change-Id: I11a3328b78eb69c85ab98038aa2558c442d659cb

5 years agoDO NOT MERGE RootCanal: Always add default devices
Myles Watson [Fri, 21 Jun 2019 13:04:08 +0000 (06:04 -0700)]
DO NOT MERGE RootCanal: Always add default devices

Fixes: 129546852
Test: android.bluetooth.cts.BluetoothLeScanTest#testBasicBleScan
Change-Id: I9912dc7a98155972483e1e1dca812ebbae806bdd
(cherry picked from commit 38767e7f973616ecd020e90572d6ddc73e24c5e3)
Merged-In: I9912dc7a98155972483e1e1dca812ebbae806bdd

5 years agoRevert "libprocessgroup users use libcutils"
Zhijun He [Wed, 19 Jun 2019 05:50:52 +0000 (22:50 -0700)]
Revert "libprocessgroup users use libcutils"
am: 0c4d5997a4

Change-Id: I6f8a2df19c34ad55ee692d33404b988658c62294

5 years agoRevert "libprocessgroup users use libcutils"
Zhijun He [Wed, 19 Jun 2019 04:44:18 +0000 (04:44 +0000)]
Revert "libprocessgroup users use libcutils"

This reverts commit 93e1622ba65005d5611fc315503e4ed2f8a09658.

Reason for revert: breaks all camera use cases

Bug: 135568875

Exempt-From-Owner-Approval: revert, no build cop

Change-Id: I0b75d516e10a3432c71efd70ff100bf51e0e6d43

5 years agoLimit sniff mode for Nintendo Pro Controller to 11.25ms
Andre Eisenbach [Wed, 19 Jun 2019 03:30:12 +0000 (20:30 -0700)]
Limit sniff mode for Nintendo Pro Controller to 11.25ms
am: 85d56a8d38

Change-Id: Ic6398eb054f7bc20c7ab4dc2ee1e603c683c9044

5 years agoMerge "Revert "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP"" into...
Martin Brabham [Wed, 19 Jun 2019 03:24:50 +0000 (20:24 -0700)]
Merge "Revert "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP"" into qt-dev
am: 1d0646a396

Change-Id: Id2b5882b6c198e56f3c1dcd633fe970c3df3abf1

5 years agoRevert "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP"
Martin Brabham [Wed, 19 Jun 2019 03:24:46 +0000 (20:24 -0700)]
Revert "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP"
am: 19d8c6e7c9

Change-Id: I382332aab1abdc37bd90db1ef7821b6df3a6cb91

5 years agoLimit sniff mode for Nintendo Pro Controller to 11.25ms
Andre Eisenbach [Thu, 13 Jun 2019 18:50:57 +0000 (11:50 -0700)]
Limit sniff mode for Nintendo Pro Controller to 11.25ms

Bug: 133410149
Test: manual
Change-Id: I4bffb759323bedd36e754cf758ac1d61cffc886e
(cherry picked from commit b62d0a17ec545fb477a5155790e9e96d1472659b)

5 years agoMerge "Revert "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP"" into...
TreeHugger Robot [Wed, 19 Jun 2019 01:30:38 +0000 (01:30 +0000)]
Merge "Revert "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP"" into qt-dev

5 years agoRevert "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP"
Martin Brabham [Fri, 14 Jun 2019 16:27:42 +0000 (16:27 +0000)]
Revert "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP"

This reverts commit 9437cbc24014799738c85da8f416a647f8cbf3e2.

Reason for revert: Waiting for QT first SMR due to b/134461862
Bug: 134461862
Change-Id: I3fea0f2d10658d6e154a946eaaa9fbdeb4b49159

5 years agolibprocessgroup users use libcutils
Steven Moreland [Tue, 18 Jun 2019 23:48:59 +0000 (16:48 -0700)]
libprocessgroup users use libcutils
am: 93e1622ba6

Change-Id: Ia39a50ffff1c8d9011df0f1fb9f399940c8e4b88

5 years agolibprocessgroup users use libcutils
Steven Moreland [Thu, 13 Jun 2019 00:18:46 +0000 (17:18 -0700)]
libprocessgroup users use libcutils

libprocessgroup symbols are being moved into libcutils in order to
optimize linking/memory usage. libprocessgroup will no longer be
required in the future (however removing references to it will come
separately).

Bug: 135145426
Test: boot
Change-Id: I46710da29212572068f6e96967f42523455f1446

5 years agoFix for BluetoothGattCallback.onConnectionStateChange being called more than once
Jakub Pawlowski [Thu, 13 Jun 2019 22:44:03 +0000 (15:44 -0700)]
Fix for BluetoothGattCallback.onConnectionStateChange being called more than once
am: 981864174e

Change-Id: Id83a8fa757cd2b2017ec373d96f83cba7a4abb99

5 years agoFix for BluetoothGattCallback.onConnectionStateChange being called more than once
Jakub Pawlowski [Thu, 13 Jun 2019 14:31:53 +0000 (16:31 +0200)]
Fix for BluetoothGattCallback.onConnectionStateChange being called more than once

This patch fixes the issue, where the onConenctionStateCallback is being
called twice when device is connected. This happens only if device was
connected before, and the physical connection was kept alive.

This issue was introduced during white list refactor.

Test: GattConnectTest:test_gatt_connect_in_quick_succession
Bug: 117182283
Merged-In: Id94db9429e31224ef35eb2c99c0f9a65e7c27d32
Change-Id: Id94db9429e31224ef35eb2c99c0f9a65e7c27d32

5 years agoLoad gatt_database if it is empty in bta_gattc_process_indicate
weichinweng [Wed, 12 Jun 2019 16:24:44 +0000 (09:24 -0700)]
Load gatt_database if it is empty in bta_gattc_process_indicate
am: d8cdc6c2b8

Change-Id: Ic21850a535194b85aa558fe97b8118e0e089581e

5 years agoLoad gatt_database if it is empty in bta_gattc_process_indicate
weichinweng [Tue, 11 Jun 2019 14:02:46 +0000 (22:02 +0800)]
Load gatt_database if it is empty in bta_gattc_process_indicate

If Service Changed indication is received but gatt_database is empty,
will try to load database from storage.

Bug: 131814072
Bug: 134994428
Test: 1.CTS Bluetooth LE Secure Test. 2.Unit test.
3. Pair BLE device via APP. 4. Pair device via Bluetooth Setting

Change-Id: Id3f3f0f33d5e0469a6f2ac6612fa9f5ea0b24142
Merged-In: Id3f3f0f33d5e0469a6f2ac6612fa9f5ea0b24142

5 years agoRevert "Open connection if it doesn't exsist in bta_gattc_process_indicate"
Jakub Pawlowski [Tue, 11 Jun 2019 22:01:23 +0000 (15:01 -0700)]
Revert "Open connection if it doesn't exsist in bta_gattc_process_indicate"
am: 1ae89b7db2

Change-Id: I7dd5e73de79498e378d24140a3ff4790a4138dac

5 years agoRevert "Open connection if it doesn't exsist in bta_gattc_process_indicate"
Jakub Pawlowski [Tue, 11 Jun 2019 11:30:04 +0000 (11:30 +0000)]
Revert "Open connection if it doesn't exsist in bta_gattc_process_indicate"

This reverts commit ffc95919835bbf89d635516955bff1b3b8a17641.

Reason for revert: breaks HA bonding from within app.

Bug: 134942525
Change-Id: I824391b1c84b535d7f251e176a5169eb79921c7f

5 years agoConfirm the presence of BT key when BT ON
Martin Brabham [Sat, 8 Jun 2019 05:01:14 +0000 (22:01 -0700)]
Confirm the presence of BT key when BT ON
am: bd8c5865c9

Change-Id: If3b988395c9b09d4b8809edb944a5d5830a3821c

5 years agoConfirm the presence of BT key when BT ON
Martin Brabham [Fri, 31 May 2019 19:53:07 +0000 (12:53 -0700)]
Confirm the presence of BT key when BT ON

After clearing Bluetooth data, the Bluetooth key will be cleared in the
same time. When turn on Bluetooth, NE happened at the step of checking
Bluetooth key.

Bug: 133214365
Test: ahost --host test net_test_bluetooth
Change-Id: I88f5dfae07352a794b304da60e09253c004fb3d4

5 years ago[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee3...
Jakub Pawlowski [Fri, 7 Jun 2019 10:28:34 +0000 (03:28 -0700)]
[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee32" into oc-dev am: 38535adcd0 -s ours am: 28a8e8b848 -s ours am: c5837d3d81 -s ours am: 5b7daae369 -s ours
am: 4ea1ac1105 -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 461f0b4739 is in history

Change-Id: I71b353a5efbc64b10ff787c98157107e30b9b4c0

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Fri, 7 Jun 2019 10:28:13 +0000 (03:28 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: 461f0b4739 -s ours am: 35f2cb15f1 -s ours am: 75384547fb -s ours am: dd59bd4400 -s ours
am: 82398ca371 -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 c887dd6ed1 is in history

Change-Id: I52a7a78da40b378f0b20112f759830f75c834813

5 years ago[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee3...
Jakub Pawlowski [Fri, 7 Jun 2019 10:23:30 +0000 (03:23 -0700)]
[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee32" into oc-dev am: 38535adcd0 -s ours am: 28a8e8b848 -s ours am: c5837d3d81 -s ours
am: 5b7daae369 -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 461f0b4739 is in history

Change-Id: I1dba0b8ab2cdb0363f6a53939385d2d6a45d18f7

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Fri, 7 Jun 2019 10:23:04 +0000 (03:23 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: 461f0b4739 -s ours am: 35f2cb15f1 -s ours am: 75384547fb -s ours
am: dd59bd4400 -s ours
am skip reason: subject contains skip directive

Change-Id: Ifbda31c8076491dcf7c583ae6b7a12cf4c82a4f0

5 years ago[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee3...
Jakub Pawlowski [Fri, 7 Jun 2019 10:18:27 +0000 (03:18 -0700)]
[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee32" into oc-dev am: 38535adcd0 -s ours am: 28a8e8b848 -s ours
am: c5837d3d81 -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 461f0b4739 is in history

Change-Id: Ia742ff3db6e10ecdcfae893a44ed3e766c40cbe6

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Fri, 7 Jun 2019 10:18:03 +0000 (03:18 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: 461f0b4739 -s ours am: 35f2cb15f1 -s ours
am: 75384547fb -s ours
am skip reason: subject contains skip directive

Change-Id: I952f4abe93c3f75e9de141727606886ed234b8ad

5 years ago[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee3...
Jakub Pawlowski [Fri, 7 Jun 2019 10:12:23 +0000 (03:12 -0700)]
[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee32" into oc-dev am: 38535adcd0 -s ours
am: 28a8e8b848 -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 461f0b4739 is in history

Change-Id: I128d6b1fbeccea202ddaaa73e4a1c9032afdfda1

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Fri, 7 Jun 2019 10:12:08 +0000 (03:12 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: 461f0b4739 -s ours
am: 35f2cb15f1 -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 bdac7b911f is in history

Change-Id: Idd9e3a1ffa28ca0de51f37b043c452b0cde9fcfe

5 years ago[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee3...
Jakub Pawlowski [Fri, 7 Jun 2019 10:08:32 +0000 (03:08 -0700)]
[automerger skipped] Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee32" into oc-dev
am: 38535adcd0 -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 461f0b4739 is in history

Change-Id: I14e6e0212fd40a7a74cc9f4672cd8ce611763761

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Fri, 7 Jun 2019 10:08:09 +0000 (03:08 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size
am: 461f0b4739 -s ours
am skip reason: SHA1 461f0b4739 skipped by user jpawlowski

Change-Id: If029a012222cb9a45a593282524518f30f9f0dc6

5 years agoMerge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee32" into oc-dev
Jakub Pawlowski [Thu, 6 Jun 2019 19:47:12 +0000 (19:47 +0000)]
Merge changes from topic "am-e3f94184-0df3-403b-b2dc-4ebd50beee32" into oc-dev

* changes:
  [automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf am: 0a76ef0245 am: 20649305ba am: 20f1cf2b81 skipped: cb880ad379
  [automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf am: 0a76ef0245 am: 20649305ba am: 20f1cf2b81
  [automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf am: 0a76ef0245 am: 20649305ba
  [automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf am: 0a76ef0245
  [automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf
  DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Thu, 6 Jun 2019 19:01:55 +0000 (12:01 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: bdac7b911f -s ours am: 35f034bb61 -s ours
am: 04d073cb2d -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 c978f86b50 is in history

Change-Id: I15822e529aac0cb7c92f105680bd4f92e80803a5

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Thu, 6 Jun 2019 19:01:36 +0000 (12:01 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c978f86b50 -s ours
am: 332964b0ad -s ours
am skip reason: change_id Iab0fd9f357d18a6b048b971d0393fbb47fd4d793 with SHA1 c887dd6ed1 is in history

Change-Id: I793f3ff6b902aaedf590ea9c3c7f7060cbf5b8e9

5 years agoFix for Bluetooth connection being dropped after HCI Read Encryption Key Size
Jakub Pawlowski [Thu, 6 Jun 2019 19:01:13 +0000 (12:01 -0700)]
Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size
am: c887dd6ed1

Change-Id: I391cfa47c88580d6a18510f2186d8560d023287e

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Thu, 6 Jun 2019 18:56:11 +0000 (11:56 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: bdac7b911f -s ours
am: 35f034bb61 -s ours
am skip reason: subject contains skip directive

Change-Id: Icfbb46e23894cdf4baf3ded483a169ab5ea225ff

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Thu, 6 Jun 2019 18:55:49 +0000 (11:55 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size
am: c978f86b50 -s ours
am skip reason: subject contains skip directive

Change-Id: I3bed57af388e87495b43a36ae51b3460a0829e99

5 years ago[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after...
Jakub Pawlowski [Thu, 6 Jun 2019 18:54:46 +0000 (11:54 -0700)]
[automerger skipped] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size
am: bdac7b911f -s ours
am skip reason: subject contains skip directive

Change-Id: Ibddb04bcbe2ff0c0197071492e58abee2037d7dc

5 years ago[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read...
Android Build Merger (Role) [Thu, 6 Jun 2019 14:32:33 +0000 (14:32 +0000)]
[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf am: 0a76ef0245 am: 20649305ba am: 20f1cf2b81 skipped: cb880ad379

Change-Id: I0ce92d6832d71961c2774d523ccaff25aae6ee75

5 years ago[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read...
Android Build Merger (Role) [Thu, 6 Jun 2019 14:32:29 +0000 (14:32 +0000)]
[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf am: 0a76ef0245 am: 20649305ba am: 20f1cf2b81

Change-Id: I462281e1e328875bff50defc951aa436245740da

5 years ago[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read...
Android Build Merger (Role) [Thu, 6 Jun 2019 14:32:26 +0000 (14:32 +0000)]
[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf am: 0a76ef0245 am: 20649305ba

Change-Id: Idcdaee2b8091c775df14722a28b56589957833f2

5 years ago[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read...
Android Build Merger (Role) [Thu, 6 Jun 2019 14:32:23 +0000 (14:32 +0000)]
[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf am: 0a76ef0245

Change-Id: I570033782572166e69cd1edd65260c499473a661

5 years ago[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read...
Android Build Merger (Role) [Thu, 6 Jun 2019 14:32:19 +0000 (14:32 +0000)]
[automerger] DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size am: c5aa5feebf

Change-Id: Id7ceb1b67894931e9c0ce188dff19177afd4a7ee

5 years agoDO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption...
Jakub Pawlowski [Thu, 6 Jun 2019 11:54:55 +0000 (13:54 +0200)]
DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size

If remote device stop the encryption before we call "Read Encryption Key Size",
we might receive Insufficient Security, which means that link is no longer
encrypted.

In such cases we should stay connected, rather than disconnecting the
link.

Test: Connect to device that stop encryption right after encryption is
complete, i.e. to change roles.
Bug: 124301137
Bug: 132626699

Change-Id: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793
Merged-In: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793

5 years agoDO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption...
Jakub Pawlowski [Thu, 6 Jun 2019 11:54:55 +0000 (13:54 +0200)]
DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size

If remote device stop the encryption before we call "Read Encryption Key Size",
we might receive Insufficient Security, which means that link is no longer
encrypted.

In such cases we should stay connected, rather than disconnecting the
link.

Test: Connect to device that stop encryption right after encryption is
complete, i.e. to change roles.
Bug: 124301137
Bug: 132626699

Change-Id: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793
Merged-In: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793

5 years agoDO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption...
Jakub Pawlowski [Thu, 6 Jun 2019 11:54:55 +0000 (13:54 +0200)]
DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size

If remote device stop the encryption before we call "Read Encryption Key Size",
we might receive Insufficient Security, which means that link is no longer
encrypted.

In such cases we should stay connected, rather than disconnecting the
link.

Test: Connect to device that stop encryption right after encryption is
complete, i.e. to change roles.
Bug: 124301137
Bug: 132626699

Change-Id: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793
Merged-In: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793

5 years agoDO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption...
Jakub Pawlowski [Thu, 6 Jun 2019 11:54:55 +0000 (13:54 +0200)]
DO NOT MERGE Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size

If remote device stop the encryption before we call "Read Encryption Key Size",
we might receive Insufficient Security, which means that link is no longer
encrypted.

In such cases we should stay connected, rather than disconnecting the
link.

Test: Connect to device that stop encryption right after encryption is
complete, i.e. to change roles.
Bug: 124301137
Bug: 132626699

Change-Id: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793
Merged-In: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793

5 years agoFix for Bluetooth connection being dropped after HCI Read Encryption Key Size
Jakub Pawlowski [Thu, 6 Jun 2019 11:54:55 +0000 (13:54 +0200)]
Fix for Bluetooth connection being dropped after HCI Read Encryption Key Size

If remote device stop the encryption before we call "Read Encryption Key Size",
we might receive Insufficient Security, which means that link is no longer
encrypted.

In such cases we should stay connected, rather than disconnecting the
link.

Test: Connect to device that stop encryption right after encryption is
complete, i.e. to change roles.
Bug: 124301137
Bug: 132626699

Change-Id: Iab0fd9f357d18a6b048b971d0393fbb47fd4d793

5 years agoRename and reset the proirity of HID host thread
Ugo Yu [Wed, 5 Jun 2019 19:56:04 +0000 (12:56 -0700)]
Rename and reset the proirity of HID host thread
am: eb2a389a9e

Change-Id: Id5519e905054ab98f8c37537e9c4dc522cad4680

5 years agoRename and reset the proirity of HID host thread
Ugo Yu [Wed, 5 Jun 2019 12:08:29 +0000 (20:08 +0800)]
Rename and reset the proirity of HID host thread

* Rename the HH event polling thread to bt_hh_thread
* HH event polling thread is created by bt_main_thread
  with RT priority. Lower the thread priority since the
  tasks in this thread is not timing critical

Bug: 131787936
Test: Connect to a HID device
      Run "adb shell ps -A -T -Z -O rtprio"
Change-Id: Ibd983e96bc339393842d4c2e2aa226534095e225
Merged-In: Ibd983e96bc339393842d4c2e2aa226534095e225

5 years ago[automerger skipped] Merge "DO NOT MERGE Separate SDP procedure from bonding state...
Ugo Yu [Wed, 5 Jun 2019 04:09:42 +0000 (21:09 -0700)]
[automerger skipped] Merge "DO NOT MERGE Separate SDP procedure from bonding state (1/2)" into oc-dev am: b751ea3a90 am: 2b3330a139 -s ours am: d9997755f9 -s ours am: 0f3b13b40e -s ours
am: a2185db6d3 -s ours
am skip reason: change_id I8a98ba2178039e25c65fc701855066a8788312e6 with SHA1 9d5a28a536 is in history

Change-Id: I3eec2a4f9bf59500f160eab2aa673f434f7b551b

5 years ago[automerger skipped] DO NOT MERGE Separate SDP procedure from bonding state (1/2...
Ugo Yu [Wed, 5 Jun 2019 04:09:29 +0000 (21:09 -0700)]
[automerger skipped] DO NOT MERGE Separate SDP procedure from bonding state (1/2) am: 5240e71881 am: 5f8f0c8b74 -s ours am: 1d7523417e -s ours am: 1c2cf08476 -s ours
am: 28c62892b6 -s ours
am skip reason: change_id I8a98ba2178039e25c65fc701855066a8788312e6 with SHA1 9d5a28a536 is in history

Change-Id: Iebb4af47eb8651bdb6c3192743c710e02668b070

5 years agoMerge "Hearing Aid: properly track audio Suspend/Resume" into qt-dev
Jakub Pawlowski [Wed, 5 Jun 2019 04:09:07 +0000 (21:09 -0700)]
Merge "Hearing Aid: properly track audio Suspend/Resume" into qt-dev
am: 24e8293439

Change-Id: I944dc3d531dfa8217810acc8862094e9fd41a1de

5 years ago[automerger skipped] Merge "DO NOT MERGE Separate SDP procedure from bonding state...
Ugo Yu [Wed, 5 Jun 2019 04:07:13 +0000 (21:07 -0700)]
[automerger skipped] Merge "DO NOT MERGE Separate SDP procedure from bonding state (1/2)" into oc-dev am: b751ea3a90 am: 2b3330a139 -s ours am: d9997755f9 -s ours
am: 0f3b13b40e -s ours
am skip reason: subject contains skip directive

Change-Id: I55f9c0499721b51ba077b8743835fbead8edc775