OSDN Git Service
Myles Watson [Fri, 11 May 2018 23:20:48 +0000 (16:20 -0700)]
Merge "Return early if vendor-specific command fails" into pi-dev am:
377a95993b
am:
904b2a2b9e
Change-Id: I44b160a2f2aa795ae96522b5c279c75f821e8376
Pavlin Radoslavov [Fri, 11 May 2018 23:04:44 +0000 (16:04 -0700)]
Merge "Explicitly restart audio processing when switching active device" am:
2ffc9901cb am:
acbde8a6a2
am:
3c6e4808c1
Change-Id: I2983472d4cae9e59848cd8f4ba7be5efa0f285a0
Myles Watson [Fri, 11 May 2018 21:54:41 +0000 (14:54 -0700)]
Merge "Return early if vendor-specific command fails" into pi-dev
am:
377a95993b
Change-Id: I53e95f39f6021048a383b286785f00edc9d9b40b
TreeHugger Robot [Fri, 11 May 2018 21:46:20 +0000 (21:46 +0000)]
Merge "Return early if vendor-specific command fails" into pi-dev
Pavlin Radoslavov [Fri, 11 May 2018 21:18:17 +0000 (14:18 -0700)]
Merge "Explicitly restart audio processing when switching active device" am:
2ffc9901cb
am:
acbde8a6a2
Change-Id: I32b7d91a2f7c65895d4823e95ae91e93c24fc1e5
Pavlin Radoslavov [Fri, 11 May 2018 21:14:42 +0000 (14:14 -0700)]
Merge "Explicitly restart audio processing when switching active device"
am:
2ffc9901cb
Change-Id: I41623252ea3f20c8afae1cf34612a3fb0ac32e2b
Treehugger Robot [Fri, 11 May 2018 21:06:43 +0000 (21:06 +0000)]
Merge "Explicitly restart audio processing when switching active device"
Pavlin Radoslavov [Thu, 10 May 2018 16:52:58 +0000 (09:52 -0700)]
Explicitly restart audio processing when switching active device
* Add internal APIs to restart A2DP session and use them
when switching the A2DP active device:
btif_a2dp_source_restart_session() and btif_a2dp_sink_restart_session() .
* Removed internal A2DP Source APIs that shouldn't be APIs
* Call immediately btif_a2dp_on_stopped() when processing
BTIF_AV_STOP_STREAM_REQ_EVT event to stop sooner the audio
datapath processing and report back to the Audio HAL call.
This eliminates the need for waiting for the BTA_AV_STOP_EVT
upcall event from the remote device.
* Added extra log information when processing events in the BtifAv
state machine.
Bug:
78360113
Test: Manual: streaming A2DP, change active device, change codec setup.
Change-Id: Icb356587af9cfaee7aea9f3f9bc95a0fe000fc52
Ajay Panicker [Fri, 11 May 2018 01:25:07 +0000 (18:25 -0700)]
Merge "Add helper classes to auto indent newlines for ostreams" am:
e3c041c4a4 am:
a0376df4af
am:
0ec7e8476a
Change-Id: I4bd3aef6e4964e723e68c3d74ecda4333d0c48d9
Jack He [Fri, 11 May 2018 01:16:58 +0000 (18:16 -0700)]
Merge "A2DP: Add logging when A2DP fails to open" into pi-dev am:
547b1b0a21
am:
7f4892d68b
Change-Id: Ie25a95456499b36b557413098d1cc41a4e2da418
Jakub Pawlowski [Fri, 11 May 2018 01:03:00 +0000 (18:03 -0700)]
Merge "HearingAid RemoveDevice - don't crash when profile not enabled" into pi-dev am:
217f0ee249
am:
d782aa8247
Change-Id: I57e5fd07e6ef9c0b4d8b2f5ccb82e6fa9e33e8fc
Hansong Zhang [Fri, 11 May 2018 00:26:58 +0000 (17:26 -0700)]
Merge "Hearing Aid: Add dumpsys log for audio packet" am:
5ac698c04e am:
1fcee73890
am:
a1d810024b
Change-Id: Icca9ad7e524a82eae8f0af053d4947103f0a6d4e
Ajay Panicker [Thu, 10 May 2018 23:54:42 +0000 (16:54 -0700)]
Use weak pointers for device.cc callbacks to prevent use after delete am:
497e2833c9
am:
450d4b5bae
Change-Id: I91e5f576960cf9e785be183acf8e542466412c5f
Myles Watson [Thu, 3 May 2018 18:15:50 +0000 (11:15 -0700)]
Return early if vendor-specific command fails
Add CHECK() statements to crash if the callback is passed the incorrect
opcode or if there are no parameters.
Bug:
76192234
Bug:
77495521
Test: Start Bluetooth with a BT 3.0 chip (or a simulated one)
Change-Id: Iddd9a8503b2cfd52b16fb1c59f40e108b478e7b6
(cherry picked from commit
aa10181425bc2fa3141d98f954abdb2b5aa641c9)
Ajay Panicker [Thu, 10 May 2018 22:54:54 +0000 (15:54 -0700)]
Merge "Add helper classes to auto indent newlines for ostreams" am:
e3c041c4a4
am:
a0376df4af
Change-Id: Ie5591642f7266881961463f3db957e0749698be6
Ajay Panicker [Thu, 10 May 2018 22:51:31 +0000 (15:51 -0700)]
Merge "Add helper classes to auto indent newlines for ostreams"
am:
e3c041c4a4
Change-Id: Ifbcafaa32c70a3400b609772e0ec55bf1136abef
Jack He [Thu, 10 May 2018 22:47:13 +0000 (15:47 -0700)]
Merge "A2DP: Add logging when A2DP fails to open" into pi-dev
am:
547b1b0a21
Change-Id: Ifaa334e3e445fbf38238a4823c56640f5aa41ac1
TreeHugger Robot [Thu, 10 May 2018 22:38:39 +0000 (22:38 +0000)]
Merge "A2DP: Add logging when A2DP fails to open" into pi-dev
Treehugger Robot [Thu, 10 May 2018 22:35:02 +0000 (22:35 +0000)]
Merge "Add helper classes to auto indent newlines for ostreams"
Jakub Pawlowski [Thu, 10 May 2018 22:20:38 +0000 (15:20 -0700)]
Merge "HearingAid RemoveDevice - don't crash when profile not enabled" into pi-dev
am:
217f0ee249
Change-Id: I4b78406a2ef6d91d5826d71fc5910bc87b83e077
TreeHugger Robot [Thu, 10 May 2018 22:10:49 +0000 (22:10 +0000)]
Merge "HearingAid RemoveDevice - don't crash when profile not enabled" into pi-dev
Hansong Zhang [Thu, 10 May 2018 22:10:42 +0000 (15:10 -0700)]
Merge "Hearing Aid: Add dumpsys log for audio packet" am:
5ac698c04e
am:
1fcee73890
Change-Id: I2ce1e0e9c63895813a7abad9093cf31906f3ec0b
Hansong Zhang [Thu, 10 May 2018 22:01:45 +0000 (15:01 -0700)]
Merge "Hearing Aid: Add dumpsys log for audio packet"
am:
5ac698c04e
Change-Id: Id4a1078b2197eb60b321dcffbe76095ad0aee4b7
Ajay Panicker [Thu, 10 May 2018 21:56:40 +0000 (14:56 -0700)]
Use weak pointers for device.cc callbacks to prevent use after delete
am:
497e2833c9
Change-Id: Ib4db15ff876c75c247b814a7a1d0c9edeb40ba1c
Treehugger Robot [Thu, 10 May 2018 21:23:46 +0000 (21:23 +0000)]
Merge "Hearing Aid: Add dumpsys log for audio packet"
Jakub Pawlowski [Thu, 10 May 2018 20:51:05 +0000 (13:51 -0700)]
HearingAid RemoveDevice - don't crash when profile not enabled am:
f7c7cd2120 am:
c805b9c5ae
am:
38db174610
Change-Id: Ifee446e6cb225a920484e9b343081327ada04ad4
Jakub Pawlowski [Thu, 10 May 2018 20:27:05 +0000 (13:27 -0700)]
HearingAid RemoveDevice - don't crash when profile not enabled am:
f7c7cd2120
am:
c805b9c5ae
Change-Id: Iaf257691d9247c5eff0b17e813e21efcf0cbc204
Jakub Pawlowski [Thu, 10 May 2018 20:20:25 +0000 (13:20 -0700)]
HearingAid RemoveDevice - don't crash when profile not enabled
am:
f7c7cd2120
Change-Id: If3b9cbe1c96ac890c40726c034e71a4314138036
Jakub Pawlowski [Thu, 10 May 2018 13:42:43 +0000 (06:42 -0700)]
HearingAid RemoveDevice - don't crash when profile not enabled
Bug:
79468820
Test: Unbond non-hearing aid device when profile not enabled
Change-Id: I2a87f8725447045e7bc5b2a33facf1ce14b47c54
(cherry picked from commit
f7c7cd2120f9d407aab849fb553e57427bf3233e)
Ajay Panicker [Thu, 10 May 2018 19:39:32 +0000 (12:39 -0700)]
Use weak pointers for device.cc callbacks to prevent use after delete
Bug:
79400706
Test: Turn bluetooth off then on while connected to a device and playing
music
Change-Id: I2132bb01796a724fba6a36f4eca4f4795b919864
Jakub Pawlowski [Thu, 10 May 2018 13:42:43 +0000 (06:42 -0700)]
HearingAid RemoveDevice - don't crash when profile not enabled
Bug:
79468820
Test: Unbond non-hearing aid device when profile not enabled
Change-Id: I2a87f8725447045e7bc5b2a33facf1ce14b47c54
Hansong Zhang [Wed, 9 May 2018 21:39:56 +0000 (14:39 -0700)]
Hearing Aid: Add dumpsys log for audio packet
Add log for audio drops from audio HAL and buffer overflow
Add log for device capabilities and HiSyncId
Sample output:
Hearing Aid Manager:
<device1> connected
binaural right 0x...
Packet counts (enqueued/flushed) : 73557 / 773
Frame counts (enqueued/flushed) : 73557 / 773
<device2> connected
binaural left 0x...
Packet counts (enqueued/flushed) : 74172 / 886
Frame counts (enqueued/flushed) : 74172 / 886
Hearing Aid Audio HAL:
Counts (underflow) : 0
Bytes (underflow) : 0
Last update time ago in ms (underflow) : 0
Test: manual
Bug:
69623109
Change-Id: I5021b9214828b1846506638000f29af7343a3354
Jack He [Thu, 10 May 2018 01:18:37 +0000 (18:18 -0700)]
Merge "A2DP: Add logging when A2DP fails to open" am:
9f5ab2434e am:
4a10ff8265
am:
2bc233c261
Change-Id: I442057fc1833047edb8afac8aefc6f1fee26c34d
Jack He [Thu, 10 May 2018 01:13:23 +0000 (18:13 -0700)]
Merge "A2DP: Add logging when A2DP fails to open" am:
9f5ab2434e
am:
4a10ff8265
Change-Id: Ib6caac62411e5b6ea83dabbc4e3d3090cd35e2ff
Jack He [Thu, 10 May 2018 01:08:49 +0000 (18:08 -0700)]
Merge "A2DP: Add logging when A2DP fails to open"
am:
9f5ab2434e
Change-Id: I825570e840f65192e4746eef762e1f8c36f6c135
Treehugger Robot [Thu, 10 May 2018 00:58:48 +0000 (00:58 +0000)]
Merge "A2DP: Add logging when A2DP fails to open"
Vinit Deshpande [Thu, 10 May 2018 00:35:04 +0000 (17:35 -0700)]
Merge "Fix LE cancel open when physical connection is established but not ready" am:
cd40bfb8d7 am:
7823085053
am:
c50ee4dac8
Change-Id: Id98af131d39e3ea9fcc04897f9f86778c6d547f0
Vinit Deshpande [Thu, 10 May 2018 00:27:43 +0000 (17:27 -0700)]
Merge "Fix LE cancel open when physical connection is established but not ready" am:
cd40bfb8d7
am:
7823085053
Change-Id: I84f51dba9fa344da4422e0265243b25d41b5e7f7
Vinit Deshpande [Thu, 10 May 2018 00:18:59 +0000 (17:18 -0700)]
Merge "Fix LE cancel open when physical connection is established but not ready"
am:
cd40bfb8d7
Change-Id: I3e27ee66923fbc5eb6bd0357c6913ea82b904857
Vinit Deshpande [Wed, 9 May 2018 23:58:48 +0000 (23:58 +0000)]
Merge "Fix LE cancel open when physical connection is established but not ready"
Stanley Tng [Wed, 9 May 2018 23:54:09 +0000 (16:54 -0700)]
Merge "Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode" into pi-dev am:
78101d70ba
am:
7abd63971c
Change-Id: Ib927e9a5e5843dea9264d013dc93cc8fb445b53d
Stanley Tng [Wed, 9 May 2018 23:42:55 +0000 (16:42 -0700)]
Merge "Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode" into pi-dev
am:
78101d70ba
Change-Id: I2a7e9a2c212e8a1f83a3112bc177561a9440160f
TreeHugger Robot [Wed, 9 May 2018 23:29:36 +0000 (23:29 +0000)]
Merge "Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode" into pi-dev
Jack He [Wed, 9 May 2018 22:44:09 +0000 (15:44 -0700)]
A2DP: Add logging when A2DP fails to open
* Make sure we output a log line whenever A2DP start request returns a
failure state, namingly:
- A2DP_CTRL_ACK_FAILURE
- A2DP_CTRL_ACK_INCALL_FAILURE
- A2DP_CTRL_ACK_DISCONNECT_IN_PROGRESS
Bug:
74988740
Test: make, logging only change
Change-Id: I63280d6280bf9c3d3ee6c578c1be332f8a9a3be0
(cherry picked from commit
b67d5fc97c0a0db33173792b6781a0345ee75cf2)
Jack He [Wed, 9 May 2018 22:44:09 +0000 (15:44 -0700)]
A2DP: Add logging when A2DP fails to open
* Make sure we output a log line whenever A2DP start request returns a
failure state, namingly:
- A2DP_CTRL_ACK_FAILURE
- A2DP_CTRL_ACK_INCALL_FAILURE
- A2DP_CTRL_ACK_DISCONNECT_IN_PROGRESS
Bug:
74988740
Test: make, logging only change
Change-Id: I63280d6280bf9c3d3ee6c578c1be332f8a9a3be0
WENTAO WANG [Mon, 20 Nov 2017 21:10:07 +0000 (13:10 -0800)]
Fix LE cancel open when physical connection is established but not ready
Issue:
Cancel open does not work when the physical connection is established
but negotiation is not finished.
Fix:
Close the physical connection and release resources when fitting in this
situation.
Bug:
64230040
Test: test_cancel_open_ble_process
Change-Id: Ia23b5f3aab427b333d9d484b97e4cd4ff49f5319
Stanley Tng [Wed, 9 May 2018 20:41:26 +0000 (13:41 -0700)]
Merge "Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode" am:
11e1274a05 am:
a4f3348864
am:
de0ccd7b05
Change-Id: I1f9dc0d86708106ea904d774543143df5c2bcf32
Stanley Tng [Wed, 9 May 2018 20:33:17 +0000 (13:33 -0700)]
Merge "Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode" am:
11e1274a05
am:
a4f3348864
Change-Id: Ic4ef782c6550411bc4f6f6b892936188fb3a93a4
Stanley Tng [Wed, 9 May 2018 20:29:13 +0000 (13:29 -0700)]
Merge "Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode"
am:
11e1274a05
Change-Id: I7e48817c7b29522b2912d48ef1282282e7e833a9
Treehugger Robot [Wed, 9 May 2018 20:23:34 +0000 (20:23 +0000)]
Merge "Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode"
Ajay Panicker [Thu, 3 May 2018 19:58:53 +0000 (12:58 -0700)]
Add helper classes to auto indent newlines for ostreams
Bug:
79167906
Test: adb shell dumpsys bluetooth_manager
Change-Id: I54484181abc438e90ade771fca6943c2b303e4db
Stanley Tng [Wed, 9 May 2018 17:39:37 +0000 (10:39 -0700)]
Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode
In this PTS test, add code to send back an unsupported error response
when an unsupported OpCode is received.
Bug:
79347869
Test: Rerun and pass PTS test
Change-Id: Ibf95dbc18dabbe201850da675c7a1b2739624de9
(cherry picked from commit
12fbcb60c60540a7fb968466ccb90e9cdf08861f)
Stanley Tng [Wed, 9 May 2018 17:39:37 +0000 (10:39 -0700)]
Fix PTS: TC_GATT_SR_UNS_BI_01_C sends unsupported opcode
In this PTS test, add code to send back an unsupported error response
when an unsupported OpCode is received.
Bug:
79347869
Test: Rerun and pass PTS test
Change-Id: Ibf95dbc18dabbe201850da675c7a1b2739624de9
Pavlin Radoslavov [Wed, 9 May 2018 17:55:25 +0000 (10:55 -0700)]
[automerger skipped] Fetch the presentation position only if the audio state is STARTED am:
81d5b69913 -s ours
am:
83c671871c -s ours
Change-Id: If7ac39a5be0c056d84742f3c4a3356c4b8f53da2
Pavlin Radoslavov [Wed, 9 May 2018 17:36:06 +0000 (10:36 -0700)]
[automerger skipped] Fetch the presentation position only if the audio state is STARTED
am:
81d5b69913 -s ours
Change-Id: I6e56fc41058133cd7a671d1fd33c9c02cc55fea8
Pavlin Radoslavov [Wed, 9 May 2018 01:00:24 +0000 (18:00 -0700)]
Fetch the presentation position only if the audio state is STARTED
The audio HAL will fetch the audio presentation position (for the
purpose of delay reporting if the Headset supports it) only if the
audio state is STARTED.
Otherwise, it will use the default value (e.g., the one used
when the Headset does not support delay reporting).
This avoids unnecessary transient re-opening of the HAL control path
between the Audio framework and Bluetooth native stack (e.g., during
shutdown).
Bug:
78360113
Test: Manual - A2DP streaming with Headsets that support delay reporting
Change-Id: I56f7e9373ba27606913c74fa818da40305df85d4
Merged-In: I56f7e9373ba27606913c74fa818da40305df85d4
(cherry picked from commit
61d1e86c5b4beb3bf4dabba3de0490cad637afb3)
Jakub Pawlowski [Wed, 9 May 2018 08:21:55 +0000 (01:21 -0700)]
Merge "Handle unbonding in Hearing Aid profile" am:
ab22148a79 am:
65750f6d60
am:
8eca2e5d83
Change-Id: I1fbf38b529b4954bd2e94f47cef205eabb3f4282
Jakub Pawlowski [Wed, 9 May 2018 08:17:23 +0000 (01:17 -0700)]
Merge "Handle unbonding in Hearing Aid profile" am:
ab22148a79
am:
65750f6d60
Change-Id: I52bf6d5e02eb372f815a8e34295be36eab148fa7
Jakub Pawlowski [Wed, 9 May 2018 08:12:24 +0000 (01:12 -0700)]
Merge "Handle unbonding in Hearing Aid profile"
am:
ab22148a79
Change-Id: Icaee7201a4e47b471c60dcbc54eb2984d0cfa19f
Jakub Pawlowski [Wed, 9 May 2018 08:06:15 +0000 (08:06 +0000)]
Merge "Handle unbonding in Hearing Aid profile"
Dan Willemsen [Wed, 9 May 2018 06:19:11 +0000 (23:19 -0700)]
Merge "Remove unused `tags` property from Android.bp files" am:
2b737b856d am:
b74153a2b4
am:
14a7d52cc6
Change-Id: I480178187cb0088d701ec68c542950f07e59dcbb
Dan Willemsen [Wed, 9 May 2018 06:14:49 +0000 (23:14 -0700)]
Merge "Remove unused `tags` property from Android.bp files" am:
2b737b856d
am:
b74153a2b4
Change-Id: I4a2c519333cbe0e4b5c9a039f82ed0d0e787e8a2
Dan Willemsen [Wed, 9 May 2018 06:06:07 +0000 (23:06 -0700)]
Merge "Remove unused `tags` property from Android.bp files"
am:
2b737b856d
Change-Id: Ie67b2d049583b8c9b25d4b0e8d1c26a25f700309
Dan Willemsen [Wed, 9 May 2018 05:59:03 +0000 (05:59 +0000)]
Merge "Remove unused `tags` property from Android.bp files"
Pavlin Radoslavov [Wed, 9 May 2018 03:50:27 +0000 (20:50 -0700)]
Fetch the presentation position only if the audio state is STARTED am:
61d1e86c5b am:
0812131e47
am:
0ec6cfd920
Change-Id: I158668d680d8f1e9eef5f189a7a81a202c7a6602
Pavlin Radoslavov [Wed, 9 May 2018 03:37:37 +0000 (20:37 -0700)]
Fetch the presentation position only if the audio state is STARTED am:
61d1e86c5b
am:
0812131e47
Change-Id: Ife27d044bf78bf87b440b0d4331e129705149ee5
Pavlin Radoslavov [Wed, 9 May 2018 03:27:34 +0000 (20:27 -0700)]
Fetch the presentation position only if the audio state is STARTED
am:
61d1e86c5b
Change-Id: I693595f6bf4c5a95c08d5859887f9f5ef41242bd
android-build-prod (mdb) [Wed, 9 May 2018 01:58:10 +0000 (18:58 -0700)]
Merge "HFP: Remove parameter to start/stopScoUsingVirtualVoiceCall" am:
6e938867c3 am:
7a090fce6e
am:
9f33b523bb
Change-Id: I99477f6546529a2768b103264a233915628f035a
android-build-prod (mdb) [Wed, 9 May 2018 01:45:21 +0000 (18:45 -0700)]
Merge "HFP: Remove parameter to start/stopScoUsingVirtualVoiceCall" am:
6e938867c3
am:
7a090fce6e
Change-Id: I9ad7920d770f36c68767d6d9b62a6d349c561cbe
android-build-prod (mdb) [Wed, 9 May 2018 01:37:58 +0000 (18:37 -0700)]
Merge "HFP: Remove parameter to start/stopScoUsingVirtualVoiceCall"
am:
6e938867c3
Change-Id: I04318b2d604645b7aa566a4d3422df14ff0f50dc
Pavlin Radoslavov [Wed, 9 May 2018 01:00:24 +0000 (18:00 -0700)]
Fetch the presentation position only if the audio state is STARTED
The audio HAL will fetch the audio presentation position (for the
purpose of delay reporting if the Headset supports it) only if the
audio state is STARTED.
Otherwise, it will use the default value (e.g., the one used
when the Headset does not support delay reporting).
This avoids unnecessary transient re-opening of the HAL control path
between the Audio framework and Bluetooth native stack (e.g., during
shutdown).
Bug:
78360113
Test: Manual - A2DP streaming with Headsets that support delay reporting
Change-Id: I56f7e9373ba27606913c74fa818da40305df85d4
android-build-prod (mdb) [Wed, 9 May 2018 00:25:12 +0000 (00:25 +0000)]
Merge "HFP: Remove parameter to start/stopScoUsingVirtualVoiceCall"
Dan Willemsen [Wed, 9 May 2018 00:08:54 +0000 (17:08 -0700)]
Remove unused `tags` property from Android.bp files
The tags property is (and has always been) unused by Soong. The property has
been defined as a list of strings, and the `androidmk` converted any
LOCAL_MODULE_TAGS entries over to it, but we've never done anything with it.
In preparation for removing the definition from Soong, I'm removing it from all
Android.bp files in the tree.
Since this has never done anything, this is a no-op, but if you really did want
the Android.mk behavior, the proper way to define a module to be installed in
userdebug / eng builds is to use PRODUCT_PACKAGES_DEBUG or PRODUCT_PACKAGES_ENG
in the appropriate product makefile.
Change-Id: I48cba711acbc030a98aea674016a0d53f8b5e4aa
Exempt-From-Owner-Approval: global no-op build change
Test: remove `tags` from Soong, see errors go away.
android-build-team Robot [Tue, 8 May 2018 22:15:05 +0000 (15:15 -0700)]
Merge "Handle unbonding in Hearing Aid profile" into pi-dev am:
33e0f37763
am:
764e1ae3b9
Change-Id: Ida754402240eabb7e25797ccf835f0d0ab92c8df
android-build-team Robot [Tue, 8 May 2018 22:08:01 +0000 (15:08 -0700)]
Merge "Handle unbonding in Hearing Aid profile" into pi-dev
am:
33e0f37763
Change-Id: I435b6ce8f048cf39c081ebf4d4a4ee12aebdbf78
android-build-team Robot [Tue, 8 May 2018 21:56:29 +0000 (21:56 +0000)]
Merge "Handle unbonding in Hearing Aid profile" into pi-dev
Jakub Pawlowski [Tue, 8 May 2018 14:44:43 +0000 (07:44 -0700)]
Handle unbonding in Hearing Aid profile
Bug:
69623109
Change-Id: I3b1f778e414511a3748cebd2b0e233d638cd4d43
Fixes:
79207134
Test: unbond from Hearing Aid when connected or disconnected from it
(cherry picked from commit
30599617d20674634c75ad16de6ef74ae9b7cfa0)
Jakub Pawlowski [Tue, 8 May 2018 14:44:43 +0000 (07:44 -0700)]
Handle unbonding in Hearing Aid profile
Bug:
69623109
Change-Id: I3b1f778e414511a3748cebd2b0e233d638cd4d43
Fixes:
79207134
Test: unbond from Hearing Aid when connected or disconnected from it
android-build-team Robot [Tue, 8 May 2018 19:20:53 +0000 (12:20 -0700)]
Merge "Send correct key state and ignore keys from inactive device (1/2)" into pi-dev am:
2afa988bb1
am:
23acf50ea8
Change-Id: Ica2851d05f75f97fa69d3578404a0e1f80b56dd1
android-build-team Robot [Tue, 8 May 2018 19:16:42 +0000 (12:16 -0700)]
Merge "Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure" into pi-dev am:
f38ead07d9
am:
0c477bc8c2
Change-Id: Ia3a4b05adfc7594c00b36c72d4aaeb1b5e46395f
android-build-team Robot [Tue, 8 May 2018 19:08:42 +0000 (12:08 -0700)]
Merge "Send correct key state and ignore keys from inactive device (1/2)" into pi-dev
am:
2afa988bb1
Change-Id: Ib95b4b36ca2a800445a1a32351813121d5774259
android-build-team Robot [Tue, 8 May 2018 19:03:15 +0000 (12:03 -0700)]
Merge "Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure" into pi-dev
am:
f38ead07d9
Change-Id: Id3c7c72aa96e40baa0143d76274fdefa0bd4be1b
android-build-team Robot [Tue, 8 May 2018 18:57:29 +0000 (18:57 +0000)]
Merge "Send correct key state and ignore keys from inactive device (1/2)" into pi-dev
android-build-team Robot [Tue, 8 May 2018 18:53:41 +0000 (18:53 +0000)]
Merge "Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure" into pi-dev
android-build-prod (mdb) [Tue, 8 May 2018 18:15:22 +0000 (11:15 -0700)]
Merge "Return early if vendor-specific command fails" am:
c2e46139c9 am:
d3dde1f02e
am:
d486f6b819
Change-Id: I31e528eee891117120c00e853a754f56f42b0d06
android-build-prod (mdb) [Tue, 8 May 2018 17:49:06 +0000 (10:49 -0700)]
Merge "Return early if vendor-specific command fails" am:
c2e46139c9
am:
d3dde1f02e
Change-Id: I1aba4ce2fc8e5b523ee2f75fb45e01dda3dc3634
android-build-prod (mdb) [Tue, 8 May 2018 17:46:03 +0000 (10:46 -0700)]
Merge "Return early if vendor-specific command fails"
am:
c2e46139c9
Change-Id: I277503a4a8c5b86536a77c97c6dec3417b56fe9a
Ajay Panicker [Tue, 8 May 2018 17:43:06 +0000 (10:43 -0700)]
Merge "Send correct key state and ignore keys from inactive device (1/2)" am:
a7b6d3a8e1 am:
947fa3a605
am:
9da096c09d
Change-Id: Ic25b85ddf8389b2ccd3933cc6064a1719eae45f5
android-build-prod (mdb) [Tue, 8 May 2018 17:37:04 +0000 (17:37 +0000)]
Merge "Return early if vendor-specific command fails"
Ajay Panicker [Tue, 8 May 2018 16:51:35 +0000 (09:51 -0700)]
Merge "Send correct key state and ignore keys from inactive device (1/2)" am:
a7b6d3a8e1
am:
947fa3a605
Change-Id: I63adee2bbea130e7d4b6c6e54034e7b03bffca15
Ajay Panicker [Tue, 8 May 2018 16:45:33 +0000 (09:45 -0700)]
Merge "Send correct key state and ignore keys from inactive device (1/2)"
am:
a7b6d3a8e1
Change-Id: Ie47e3adbafaa6c7a15bd5fc241324a16f07b2aaf
Ajay Panicker [Tue, 8 May 2018 16:37:15 +0000 (16:37 +0000)]
Merge "Send correct key state and ignore keys from inactive device (1/2)"
Myles Watson [Thu, 3 May 2018 18:15:50 +0000 (11:15 -0700)]
Return early if vendor-specific command fails
Add CHECK() statements to crash if the callback is passed the incorrect
opcode or if there are no parameters.
Bug:
76192234
Bug:
77495521
Test: Start Bluetooth with a BT 3.0 chip (or a simulated one)
Change-Id: Iddd9a8503b2cfd52b16fb1c59f40e108b478e7b6
android-build-prod (mdb) [Tue, 8 May 2018 02:01:42 +0000 (19:01 -0700)]
Merge "Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure" am:
2ff331f615 am:
0287e27322
am:
83289e9cc4
Change-Id: I8d0a6920d213bdb72bb16d327f06c7870dba400d
android-build-prod (mdb) [Tue, 8 May 2018 01:27:01 +0000 (18:27 -0700)]
Merge "Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure" am:
2ff331f615
am:
0287e27322
Change-Id: I7e848631042c4bfbb9a41af7b42d4f115b2388cf
android-build-prod (mdb) [Tue, 8 May 2018 01:16:19 +0000 (18:16 -0700)]
Merge "Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure"
am:
2ff331f615
Change-Id: I0e6828ab55776941bd1e6315ebf83322b29b72f2
Stanley Tng [Mon, 7 May 2018 21:58:36 +0000 (14:58 -0700)]
Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure
When the GATT Read Request has bad handle parameters, returns the
GATT_INVALID_HANDLE error code instead of GATT_INVALID_PDU.
Bug:
79340029
Test: Rerun PTS
Change-Id: I9de576076d7f7aece0831ef57b01c07a24209010
(cherry picked from commit
be70112570a0a2d3b02818ee81ab0e6bdb8583b4)
android-build-prod (mdb) [Tue, 8 May 2018 01:03:03 +0000 (01:03 +0000)]
Merge "Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure"
Ajay Panicker [Fri, 4 May 2018 21:30:45 +0000 (14:30 -0700)]
Send correct key state and ignore keys from inactive device (1/2)
Also make it clearer whether the key state is pushed or released.
Bug:
79178216
Test: Run host native test net_test_avrcp
Change-Id: I8595ac97718bcb2af8f33643df4b9c8059a1b30b
(cherry picked from commit
c4546f592b943463337a260ccbbe92546832200d)
Stanley Tng [Mon, 7 May 2018 21:58:36 +0000 (14:58 -0700)]
Fixed PTS: TC_GATT_SR_GAR_BI_01_C failure
When the GATT Read Request has bad handle parameters, returns the
GATT_INVALID_HANDLE error code instead of GATT_INVALID_PDU.
Bug:
79340029
Test: Rerun PTS
Change-Id: I9de576076d7f7aece0831ef57b01c07a24209010