OSDN Git Service
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
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: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: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: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: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: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: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: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: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: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: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: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: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 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
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 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
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
Jack He [Thu, 3 May 2018 23:37:09 +0000 (16:37 -0700)]
HFP: Remove parameter to start/stopScoUsingVirtualVoiceCall
* Since HFP SCO routing is managed by setActiveDevice, there is no need
for an input parameter to start/stopScoUsingVirtualVoiceCall
Bug:
76114959
Test: build
Change-Id: I2a3f9f7cb1191e2831d30630b2e0c3bee4a0acdb
(cherry picked from commit
426e87e3bada2116580e74815c4e03db78b8105a)
Jack He [Mon, 7 May 2018 19:56:25 +0000 (12:56 -0700)]
HFP: Remove parameter to start/stopScoUsingVirtualVoiceCall
am:
426e87e3ba
Change-Id: I597920eacc90479618ac9647ac63b7403c116bd5
android-build-prod (mdb) [Mon, 7 May 2018 06:56:47 +0000 (23:56 -0700)]
Merge "BTM_BleClearBgConnDev: Return if there is no BLE" am:
1799f2fd0c
am:
5ee8d99d5f
Change-Id: Ib90dc3a75f8ed08169a9c8cd3ed0ee5a1eef30e9
android-build-prod (mdb) [Mon, 7 May 2018 06:52:14 +0000 (23:52 -0700)]
Merge "BTM_BleClearBgConnDev: Return if there is no BLE"
am:
1799f2fd0c
Change-Id: I59fd33764c7255fc5081ae7312764a36ea213dbe
android-build-prod (mdb) [Mon, 7 May 2018 06:43:54 +0000 (06:43 +0000)]
Merge "BTM_BleClearBgConnDev: Return if there is no BLE"
Jack He [Thu, 3 May 2018 23:37:09 +0000 (16:37 -0700)]
HFP: Remove parameter to start/stopScoUsingVirtualVoiceCall
* Since HFP SCO routing is managed by setActiveDevice, there is no need
for an input parameter to start/stopScoUsingVirtualVoiceCall
Bug:
76114959
Test: build
Change-Id: I2a3f9f7cb1191e2831d30630b2e0c3bee4a0acdb
Ajay Panicker [Sat, 5 May 2018 00:13:58 +0000 (17:13 -0700)]
[automerger skipped] Implement GetTotalNumberOfItems response for AVRCP Browsing am:
0128c377b9
am:
fcf30e1c3a -s ours
Change-Id: I9f2bf4706917bcf14f6c4fc3514775a691a9e218
Ajay Panicker [Sat, 5 May 2018 00:10:21 +0000 (17:10 -0700)]
Implement GetTotalNumberOfItems response for AVRCP Browsing
am:
0128c377b9
Change-Id: Ide66d983cb695d264c36229ff7f238e92e080d35
android-build-team Robot [Fri, 4 May 2018 23:13:34 +0000 (16:13 -0700)]
Merge "Fix memory leak for BTRC_ITEM_MEDIA." into pi-dev
am:
c195b66563
Change-Id: I069266c6b5c854620b767e50c9cd569866abd9d5
android-build-team Robot [Fri, 4 May 2018 23:00:59 +0000 (23:00 +0000)]
Merge "Fix memory leak for BTRC_ITEM_MEDIA." into pi-dev
Ajay Panicker [Fri, 27 Apr 2018 13:59:22 +0000 (06:59 -0700)]
Implement GetTotalNumberOfItems response for AVRCP Browsing
Bug:
78636552
Test: run host test net_test_avrcp
Change-Id: Ie05d23874317978eb619d0e56a89f2c880166a52
Merged-In: Ie05d23874317978eb619d0e56a89f2c880166a52
(cherry picked from commit
16aa6a075e5cbb7c97bbc639b876221038212b62)
Pavlin Radoslavov [Fri, 4 May 2018 18:51:54 +0000 (11:51 -0700)]
Increase the A2DP version from 1.2 to 1.3 am:
c35f912d29
am:
bd0b0ba998
Change-Id: I0a1339714ca6288677cb55aeab5f4a596d3b4287
Pavlin Radoslavov [Fri, 4 May 2018 18:39:43 +0000 (11:39 -0700)]
Increase the A2DP version from 1.2 to 1.3
am:
c35f912d29
Change-Id: Ic022543294f5c46e129fcbc1b7d73daf56ac42fe
Myles Watson [Fri, 4 May 2018 17:15:46 +0000 (10:15 -0700)]
BTM_BleClearBgConnDev: Return if there is no BLE
Bug:
77495521
Bug:
76192234
Test: Start Bluetooth with a BT 3.0 chip (or a simulated one)
Change-Id: I718b7532bbba6100dd51c0677a44d41a2db0ce26
Pavlin Radoslavov [Fri, 4 May 2018 04:10:22 +0000 (21:10 -0700)]
Increase the A2DP version from 1.2 to 1.3
am:
1eecda9377
Change-Id: Ibeb371b244ab6c2087305e7cffaa5a02a319f5fb
Pavlin Radoslavov [Wed, 2 May 2018 22:09:42 +0000 (15:09 -0700)]
Increase the A2DP version from 1.2 to 1.3
Some headsets do not support properly the AVDTP 1.3 Delay Reporting
if the A2DP version is 1.2 .
Bug:
78409461
Test: Manual with Headsets that support AVDTP 1.3 Delay Reporting
TestTracker/161070
Change-Id: Ia1e3afb3b5159101bc65b036ca5bd9f55ed4c431
Merged-In: Ia1e3afb3b5159101bc65b036ca5bd9f55ed4c431
(cherry picked from commit
c35f912d2936db5e1bb77cc44f62f8361af049e3)
Pavlin Radoslavov [Wed, 2 May 2018 22:09:42 +0000 (15:09 -0700)]
Increase the A2DP version from 1.2 to 1.3
Some headsets do not support properly the AVDTP 1.3 Delay Reporting
if the A2DP version is 1.2 .
Bug:
78409461
Test: Manual with Headsets that support AVDTP 1.3 Delay Reporting
TestTracker/161070
Change-Id: Ia1e3afb3b5159101bc65b036ca5bd9f55ed4c431
android-build-team Robot [Fri, 4 May 2018 02:03:23 +0000 (19:03 -0700)]
[automerger skipped] Merge "DO NOT MERGE Prevent stack overflow in btif_storage" into oc-dev am:
40f5f56d1c am:
6f06fa36e8 am:
0f6afc97b1 -s ours
am:
a9c536ce6a
Change-Id: Id5c8c2c4dc7de3874af6ad64a5f04fd10d2f8589
android-build-team Robot [Fri, 4 May 2018 01:59:08 +0000 (18:59 -0700)]
[automerger skipped] Merge "DO NOT MERGE Prevent stack overflow in btif_storage" into oc-dev am:
40f5f56d1c am:
6f06fa36e8
am:
0f6afc97b1 -s ours
Change-Id: I4356da74ab30f9818d895897457699b4f98fb709
android-build-team Robot [Fri, 4 May 2018 01:54:41 +0000 (18:54 -0700)]
Merge "DO NOT MERGE Prevent stack overflow in btif_storage" into oc-dev am:
40f5f56d1c
am:
6f06fa36e8
Change-Id: Ibaa5c02e34c2337458d27b76c6b60f8da47feab5
android-build-team Robot [Fri, 4 May 2018 01:51:10 +0000 (18:51 -0700)]
Merge "DO NOT MERGE Prevent stack overflow in btif_storage" into oc-dev
am:
40f5f56d1c
Change-Id: Ia414bb14da02c1b01c8fc1cb3473657d6b6cdf1d
android-build-team Robot [Fri, 4 May 2018 01:41:26 +0000 (01:41 +0000)]
Merge "DO NOT MERGE Prevent stack overflow in btif_storage" into oc-dev