OSDN Git Service
android-build-team Robot [Mon, 19 Mar 2018 19:58:35 +0000 (19:58 +0000)]
Merge cherrypicks of [
3761525,
3761526,
3762421,
3761280,
3761527,
3761325] into pi-release
Change-Id: I128f168bd80036c363e65aa131053efc0def489e
Pavlin Radoslavov [Sat, 17 Mar 2018 00:01:36 +0000 (17:01 -0700)]
Don't skip SDP discovery prior to AVDTP connection
This fixes an issue where the default AVDT_VERSION could be incorrectly
assigned to a remote device.
Bug:
74002223
Test: Manual: connect to Kinivo BTC450; power off/on the device to reconnect
Change-Id: I53817e942638d6e962aa5b8b87b7b31998270857
(cherry picked from commit
243661fe202b00b56a34dbdd2d80d9eff4951485)
Pavlin Radoslavov [Fri, 16 Mar 2018 18:56:37 +0000 (11:56 -0700)]
Add missing codec initialization for A2DP Sink
Also:
* Added missing assert to check when local codecs are not initialized
* Removed unnecessary local copy: BtifAvSource::codec_priorities_
Bug:
74079615
Test: Manual: Enable A2DP Sink profile and initiate the connection from
Remote A2DP Source
Change-Id: I40ea1aa2164612bbe108ac06be7f6cae8be30a72
(cherry picked from commit
b27aa7ebbf373fe2ddc4d75a19d02c7b3ea5359e)
android-build-team Robot [Sun, 18 Mar 2018 07:23:58 +0000 (07:23 +0000)]
Snap for
4662252 from
89f8a7f384d99d9aab776399371730d8e6b812e2 to pi-release
Change-Id: Id57f081ada1552338f092de064fa567d1b53b211
TreeHugger Robot [Fri, 16 Mar 2018 22:23:16 +0000 (22:23 +0000)]
Merge "Utilize setting for AVRCP Target" into pi-dev
Joseph Pirozzo [Wed, 14 Mar 2018 23:41:49 +0000 (16:41 -0700)]
Utilize setting for AVRCP Target
There is a setting that controls which AVRCP Target
version is enabled, use the same setting for both
source and sink devices.
Bug:
62397951
Test: Observe SDP record on sink device.
Change-Id: I65b307d011048ec88b3af8c542ce70601294cca8
(cherry picked from commit
a39e5bfe6eec9571105ec8ce90c705f4281de7fd)
Jakub Pawlowski [Thu, 15 Mar 2018 20:09:33 +0000 (13:09 -0700)]
Remove unnecessary CHECK in BleAdvertisingManager::Get()
It is causing race conditions. Weak pointer is already taking care of
making sure the instance is valid, even if it was not yet initialized.
Bug:
74863151
Test: compilation
Change-Id: Iddb69f8a38d80044d1bdd7699fad020f710914be
(cherry picked from commit
68ef745a3af2fcdee03db4441016e5b5e0039c74)
Jakub Pawlowski [Mon, 5 Mar 2018 22:22:34 +0000 (14:22 -0800)]
Hearing Aid Audio Source 24000 sample rate support
Bug:
69623109
Test: compile, connect to hearing aid
Change-Id: I8751be8b92d2a902407726b6ec7fc1c8ecbcaebb
(cherry picked from commit
c454fe706457048777bb4eb36089e3989964fe5a)
Jakub Pawlowski [Fri, 24 Nov 2017 23:20:37 +0000 (15:20 -0800)]
Hearing Aid Manager implementation
Test: connect to Hearing Aid, play some music, make phone call
Bug:
69623109
Change-Id: I924ce288f1aa28c0d59edffa7a00f90271a808ab
(cherry picked from commit
2c2c78944081b7bedd9fdd06f0dc7e8b4b86bf5e)
android-build-team Robot [Thu, 15 Mar 2018 07:24:39 +0000 (07:24 +0000)]
Snap for
4656203 from
72072a06c3305867c597cb41024a4b90812b01f7 to pi-release
Change-Id: Ie49df88d2cc302260d5c3750ef8d6f4e44bd329f
Nitin Shivpure [Tue, 13 Mar 2018 06:31:48 +0000 (12:01 +0530)]
SMP: Update device type as BLE while deriving LTK from LK
Usecase:
1) Install the same system version and CtsVerifier.apk on 2 DUT's
2) Pair both DUT's using BT Settings Menu.
3) On DUT execute Bluetooth Test -> Bluetooth LE Secure Server Test ->
Bluetooth LE Sever Test.
4) On remote device execute Bluetooth Test-> Bluetooth LE Secure Client
Test -> Bluetooth LE Client Test
Expected Result:
All test cases can be passed.
Observed Result:
All test cases cannot be passed.
Root Cause:
DUT supports secure connection & LE privacy and during BR/EDR pairing LTK is
derived from LK, but device type is not updated and is still BR/EDR instead of LE.
Later when Gatt server starts advertisement with random address so while creating
LE connection from gatt client to gatt server, gatt client is not able to resolve
random address due to incorrect device type, It re-initiate LE paring with
gatt server.
Fix:
Updating device type as BLE while deriving LTK from LK.
Test: CTS test case can pass with above steps.
Fixes:
74728232
Change-Id: I1f2c5b54d17a58615f7c2ceb954e54619b165489
Jakub Pawlowski [Wed, 14 Mar 2018 18:41:08 +0000 (11:41 -0700)]
Eliminate error on quallcom debug logs from controller
Bug:
74858307
Change-Id: If975a5d76d42e6142534e87fd63b30f9ce8894d8
(cherry-picked from
9ed8697aaf24891b27951a7cb260ca3aceea2db8)
TreeHugger Robot [Wed, 14 Mar 2018 17:50:34 +0000 (17:50 +0000)]
Merge "Suppress AVDTP delay reporting logs per data packet" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 16:58:54 +0000 (16:58 +0000)]
Merge "BLE: Don't access freed buffer in log message" into pi-dev
Pavlin Radoslavov [Wed, 14 Mar 2018 07:54:08 +0000 (00:54 -0700)]
Suppress AVDTP delay reporting logs per data packet
If AVDTP delay reporting is enabled, then several log messages
will be printed by default practically for each audio data packet.
Change the log level for those messages to DEBUG.
Also:
* Add missing event decoding for A2DP_CTRL_GET_PRESENTATION_POSITION
* Remove "default" switch statement inside audio_a2dp_hw_dump_ctrl_event()
to catch missing "case" statements if a new tA2DP_CTRL_CMD event is
added in the future.
Bug:
32755225
Test: Manual - A2DP streaming, check the logcat output
Change-Id: I3d1b1c2f6532c72af0e1e7aa5566572e13ed1684
(cherry picked from commit
3d60c4b14ba1e89719b09da3f2c4208c553a6f3c)
Nitin Shivpure [Tue, 6 Feb 2018 12:48:37 +0000 (18:18 +0530)]
BLE: Don't access freed buffer in log message
When GATT fail to write data on L2CAP, buffer is freed by L2CAP.
Accessing the buffer leads to fatal failure while printing the message info.
Test: BLE discover services and BT off test cases
Fixes:
73018520
Change-Id: I661398fd1321f6e68026b3720db4965fd6584d70
(cherry picked from commit
109b4980daca07798f6290b0d2bff20e7590b8c0)
android-build-team Robot [Wed, 14 Mar 2018 07:24:38 +0000 (07:24 +0000)]
Snap for
4653471 from
0b268b4695afb0d0b48012c52f3742646d565e08 to pi-release
Change-Id: Ic73f830877802a8e04583c6d373736fa0c9c4a93
Stanley Tng [Tue, 6 Mar 2018 18:56:12 +0000 (10:56 -0800)]
Fix crash in l2c_rcv_acl_data during LE CoC SL4A Test
When the incoming ACL messages is not setup yet, we should not further
processed it after we queue it. Otherwise, we will get be accessing the
null data structure for the connection.
Bug:
74240858
Test: Run SL4A test: act.py -c $MY_SL4A_CONFIG -tc BleCocTest:test_coc_secured_connection_throughput
Change-Id: I12e6d5dd30f05a74807afe6b4af1b9599c59886a
(cherry picked from commit
38d25bb3e41ac90ceab8052a3829f46d2925ee6a)
android-build-team Robot [Tue, 13 Mar 2018 09:42:04 +0000 (09:42 +0000)]
Snap for
4651078 from
81fa60df9b6f12b5dc5004d68ac3fa68a99687a1 to pi-release
Change-Id: Iffd31cfbe751ce82c795b235337bcaa25bf2e941
Petri Gynther [Tue, 13 Mar 2018 02:00:33 +0000 (02:00 +0000)]
Merge "A2DP Offload support" into pi-dev
TreeHugger Robot [Mon, 12 Mar 2018 21:08:59 +0000 (21:08 +0000)]
Merge "Enable AVDTP Delay reports by default." into pi-dev
Sunny Kapdi [Tue, 13 Feb 2018 05:52:50 +0000 (21:52 -0800)]
A2DP Offload support
The encoding of the A2DP data packets if offloaded
to platform specific HAL. The communication with the
HAL is enabled by IBluetoothAudioOffload and
IBluetoothAudioHost interfaces. Bluetooth stack is
still responsible for A2DP control path.
Bug:
63932139
Bug:
72242910
Test: Manual; TestTracker/148125
Change-Id: Ie6e9c233ca431d0ab8cf15d10c30836e41bbdcb7
(cherry picked from commit
c013d10798f674fd4a73f03b9178952928294b1e)
android-build-team Robot [Sun, 11 Mar 2018 08:23:08 +0000 (08:23 +0000)]
Snap for
4647811 from
ff422052887f51cb68a0c24a41625ea953c409e3 to pi-release
Change-Id: I546e5895309950f2812bc7995a6539e889424832
TreeHugger Robot [Sat, 10 Mar 2018 01:48:22 +0000 (01:48 +0000)]
Merge "Get rid of BTM_IS_PUBLIC_BDA" into pi-dev
Jakub Pawlowski [Fri, 9 Mar 2018 04:11:41 +0000 (20:11 -0800)]
Get rid of BTM_IS_PUBLIC_BDA
One can't really guess address type based on last bits.
Instead, for new devices always assume public address.
Test: scan, toggle bluetooth, try connecting to device with public
address
Bug:
74413120
Change-Id: Id558260798e717c214a5a817cea0c204c5f4858e
(cherry-picked from
8c2e78b44727789d641492beeef873b230c7e568)
Ajay Panicker [Wed, 7 Mar 2018 23:22:29 +0000 (15:22 -0800)]
Enable AVDTP Delay reports by default.
Bug:
32755225
Test: See that delay reports are enabled when connecting to device
Change-Id: I03bd216eb1725ee3e2e5da4e0baae61007ba2dcf
(cherry picked from commit
621fc6c06ed3804285901668ee678acd65e0a5fb)
android-build-team Robot [Thu, 8 Mar 2018 08:22:52 +0000 (08:22 +0000)]
Snap for
4641295 from
ebe1ad4f2632e9e2ccfe7796849ba17794a9b8ed to pi-release
Change-Id: I8589b92ba231cf87a158a9db26c23d85c085b371
Jakub Pawlowski [Wed, 7 Mar 2018 00:31:41 +0000 (16:31 -0800)]
Add missing audio_hearing_aid_hw in Android.bp
Bug:
69623109
Test: compile, verify audio.hearing_aid.default is built
Change-Id: Ia246a6b7b026d1e6d698e9a7832ead0e584b621d
(cherry-picked from
c1d4b29d58e4944002baeeff4cf19233592df638)
TreeHugger Robot [Wed, 7 Mar 2018 17:47:27 +0000 (17:47 +0000)]
Merge "Use proper sockets for A2DP and Hearing Aid HAL" into pi-dev
android-build-team Robot [Wed, 7 Mar 2018 08:24:09 +0000 (08:24 +0000)]
Snap for
4638586 from
682561e5db8210bc80456485b75b03a97cb51e60 to pi-release
Change-Id: I380b23527dc042715062a3a7a554305612e2c4ef
Pavlin Radoslavov [Tue, 6 Mar 2018 22:44:27 +0000 (14:44 -0800)]
Precompute the RTP Header marker bit only for A2DP Source encoder
The RTP Header marker bit is used only by the A2DP Source encoder,
and should be computed only when the local device is A2DP Source.
Test: Manual - disconnect, reconnect A2DP headset, play Audio
Bug:
74250013
Change-Id: I6510eeb9a34397e6623e5bc36675fc833b96ad7d
(cherry picked from commit
97390c0ea9eff71c3959989142c3eaeb243837a0)
Jack He [Sat, 3 Mar 2018 08:03:25 +0000 (00:03 -0800)]
Metrics: Move bluetooth.proto to one place
* Move bluetooth.proto to proto/ and compile it for both Java LITE
runtime and C++ LITE runtime so that it can be shared between Java
and native code
* Remove redundant comments in bluetooth.proto
Bug:
33693818
Test: make, toggle Bluetooth, clearcut server-client E2E test
adb shell dumpsys bluetooth_manager --proto-bin
ACTS tests: BtMetricsTest, BtFunhausMetricsTest
Change-Id: I7cd5e1b4fb8fcc197272ef8161ff384e53022424
(cherry picked from commit
8948b090088330d4ad12cd550986465228d20965)
Jakub Pawlowski [Fri, 2 Mar 2018 10:22:33 +0000 (02:22 -0800)]
Use proper sockets for A2DP and Hearing Aid HAL
Test: bond both Hearing Aid and Headset, try to stream to devices separately
Bug:
69623109
Change-Id: I81c9baa65d2ef114d4e964db29beb85def2629ae
(cherry picked from commit
16a63404814c4b1bcf2de6e1a624b5bd8b6b1cf6)
android-build-team Robot [Sun, 4 Mar 2018 08:27:56 +0000 (08:27 +0000)]
Snap for
4632767 from
1f690ba9cd747868eed434d4cb691ddfd13fa774 to pi-release
Change-Id: Idb62707621bc95b350eb0854df356100756878c7
TreeHugger Robot [Sun, 4 Mar 2018 04:32:13 +0000 (04:32 +0000)]
Merge "SMP: Validate remote elliptic curve points"
Ajay Panicker [Sat, 3 Mar 2018 03:28:16 +0000 (03:28 +0000)]
Merge "Add the AVRCP Device class for the AVRCP Refactor" am:
d96facb53f am:
0ac07842dd
am:
81c4e9c7ad
Change-Id: I0355b01e47ae00eab39635327da3027307cb4908
Ajay Panicker [Sat, 3 Mar 2018 03:18:50 +0000 (03:18 +0000)]
Merge "Add the AVRCP Device class for the AVRCP Refactor" am:
d96facb53f
am:
0ac07842dd
Change-Id: Id2ed7bcdd84698ec07673dc911903077fe4ed479
Ajay Panicker [Sat, 3 Mar 2018 03:15:21 +0000 (03:15 +0000)]
Merge "Add the AVRCP Device class for the AVRCP Refactor"
am:
d96facb53f
Change-Id: I30e6a4eb6b1fa305bfc02df71022ca0d8f9565b2
Treehugger Robot [Sat, 3 Mar 2018 02:32:56 +0000 (02:32 +0000)]
Merge "Add the AVRCP Device class for the AVRCP Refactor"
Hansong Zhang [Sat, 3 Mar 2018 00:53:59 +0000 (00:53 +0000)]
HearingAidAudioSource implementation am:
be754da679 am:
e9dcaa3d80
am:
eb3aeaaa5a
Change-Id: Ic35d9539de5cbf8e9fecacc08610afeaef46ad73
Jakub Pawlowski [Sat, 3 Mar 2018 00:46:21 +0000 (00:46 +0000)]
Merge "Keep UIPC in local variable, rather than global struct." am:
80086efc10 am:
57b9b3da98
am:
c8d395a371
Change-Id: Id99ea80a12ecf223865bd6081ec28c2a3d4ad6af
Hansong Zhang [Sat, 3 Mar 2018 00:38:48 +0000 (00:38 +0000)]
HearingAidAudioSource implementation am:
be754da679
am:
e9dcaa3d80
Change-Id: I305f5dd1175fcb68f1f76f9932ac4791615a48fe
Jakub Pawlowski [Sat, 3 Mar 2018 00:33:56 +0000 (00:33 +0000)]
Merge "Keep UIPC in local variable, rather than global struct." am:
80086efc10
am:
57b9b3da98
Change-Id: I3f276195258d503072a4b3d7876e95fa349e782e
Hansong Zhang [Sat, 3 Mar 2018 00:24:10 +0000 (00:24 +0000)]
HearingAidAudioSource implementation
am:
be754da679
Change-Id: Ib20c46f34578b77f6541963714080aa115fb9775
Jakub Pawlowski [Sat, 3 Mar 2018 00:09:02 +0000 (00:09 +0000)]
Merge "Keep UIPC in local variable, rather than global struct."
am:
80086efc10
Change-Id: I61c460adbdf6fc653599894f1a11469647d7467d
Hansong Zhang [Fri, 19 Jan 2018 20:23:57 +0000 (12:23 -0800)]
HearingAidAudioSource implementation
Test: none
Bug:
69623109
Change-Id: Iaadd337ed5a8152db54b7515d55e0358f413f937
Andre Eisenbach [Thu, 1 Mar 2018 21:27:01 +0000 (13:27 -0800)]
SMP: Validate remote elliptic curve points
Fixes:
72377774
Test: net_test_stack_smp
Change-Id: Iefcf97364493467075fadefd77d12716f71cd4f6
Treehugger Robot [Fri, 2 Mar 2018 19:05:58 +0000 (19:05 +0000)]
Merge "Keep UIPC in local variable, rather than global struct."
Jakub Pawlowski [Fri, 2 Mar 2018 17:26:27 +0000 (17:26 +0000)]
Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_24000 am:
bd39c6ee08 am:
26ff71d81c
am:
1d615f337a
Change-Id: I0b7fbf4917c0ff32c7bbbf0f00d80b355d6fb7bf
Jakub Pawlowski [Fri, 2 Mar 2018 17:20:23 +0000 (17:20 +0000)]
Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_24000 am:
bd39c6ee08
am:
26ff71d81c
Change-Id: I74ebdd66a1ea995acdab7ac877f44d3fb324a5ff
Jakub Pawlowski [Fri, 2 Mar 2018 17:14:20 +0000 (17:14 +0000)]
Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_24000
am:
bd39c6ee08
Change-Id: I0637185dd3175f307f50cca156d99d4543d8d97b
Jakub Pawlowski [Fri, 2 Mar 2018 00:23:58 +0000 (16:23 -0800)]
Keep UIPC in local variable, rather than global struct.
We will need multiple instances of UIPC.
Bug:
69623109
Test: play music using A2DP
Change-Id: Ie95f5272c92b5540034ebd166dbe10ea5b2b86a1
Jakub Pawlowski [Fri, 2 Mar 2018 09:56:09 +0000 (01:56 -0800)]
Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_24000
Test: compilation
Bug:
69623109
Change-Id: Ieffdd6e27ada8cbf221cfa7d1c0648aeb1c89be1
Jakub Pawlowski [Fri, 2 Mar 2018 01:11:30 +0000 (01:11 +0000)]
Hearing Aid BTIF interface implementation am:
89b0ccb034 am:
4739eb2604
am:
dc5cef4570
Change-Id: If109b8d6c4be7f23d5e64e0671434c48ae4f0e41
Jakub Pawlowski [Fri, 2 Mar 2018 01:05:55 +0000 (01:05 +0000)]
Hearing Aid BTIF interface implementation am:
89b0ccb034
am:
4739eb2604
Change-Id: I74ef2c07346e3a36559da08df605c71d6dbf3ac0
Jakub Pawlowski [Fri, 2 Mar 2018 01:00:21 +0000 (01:00 +0000)]
Hearing Aid BTIF interface implementation
am:
89b0ccb034
Change-Id: I93c072bbf8c774c7380e01558bbe6226eca6a431
Jakub Pawlowski [Thu, 1 Mar 2018 06:44:42 +0000 (22:44 -0800)]
Hearing Aid BTIF interface implementation
Boilerplate code - thread switching, logging and attaching to BTIF
infrastructure.
Test: manual with hearing aid
Bug:
69623109
Change-Id: I34a6542827a581a2fbe0b53e7220b7ff7ecbf540
Pavlin Radoslavov [Thu, 1 Mar 2018 23:47:25 +0000 (23:47 +0000)]
Merge "Multi-A2DP: stop or flush the A2DP queue only for Active peer" am:
a41496e745 am:
75a3b04686
am:
4fbed8edc9
Change-Id: I00296cb65bb3651c4837efa19cf8629482672942
Pavlin Radoslavov [Thu, 1 Mar 2018 23:41:50 +0000 (23:41 +0000)]
Merge "Multi-A2DP: stop or flush the A2DP queue only for Active peer" am:
a41496e745
am:
75a3b04686
Change-Id: Id9ee9b100e927806a70ae23ab4a9abc88c858fb7
Pavlin Radoslavov [Thu, 1 Mar 2018 23:36:51 +0000 (23:36 +0000)]
Merge "Multi-A2DP: stop or flush the A2DP queue only for Active peer"
am:
a41496e745
Change-Id: Ib1116eb7258d4cb74b2276290b574398c6a213b6
Treehugger Robot [Thu, 1 Mar 2018 23:27:53 +0000 (23:27 +0000)]
Merge "Multi-A2DP: stop or flush the A2DP queue only for Active peer"
Jakub Pawlowski [Thu, 1 Mar 2018 23:25:50 +0000 (23:25 +0000)]
Merge "Hearing Aid BTA interface" am:
14e1e30fac am:
9ebb9daaff
am:
b8102df401
Change-Id: Ic3ce9229e6ccf5eafcc00f46e4765f0cab87a350
Jakub Pawlowski [Thu, 1 Mar 2018 23:20:09 +0000 (23:20 +0000)]
Merge "Hearing Aid BTA interface" am:
14e1e30fac
am:
9ebb9daaff
Change-Id: Ib09383f8d822f247e33b2daa38f2721cfb784968
Jakub Pawlowski [Thu, 1 Mar 2018 23:15:05 +0000 (23:15 +0000)]
Merge "Hearing Aid BTA interface"
am:
14e1e30fac
Change-Id: I170b4bda5887f7153c23846fadabab96ba0df4f9
Treehugger Robot [Thu, 1 Mar 2018 23:06:08 +0000 (23:06 +0000)]
Merge "Hearing Aid BTA interface"
Jakub Pawlowski [Thu, 1 Mar 2018 22:44:48 +0000 (22:44 +0000)]
Merge "Call BTA_VendorCleanup on proper thread" am:
1184ac335f am:
443d139e6d
am:
4f4cac2fc5
Change-Id: Ia8fd705c19c01302cfca190371bc966f2380fc85
Jakub Pawlowski [Thu, 1 Mar 2018 22:39:13 +0000 (22:39 +0000)]
Merge "Call BTA_VendorCleanup on proper thread" am:
1184ac335f
am:
443d139e6d
Change-Id: I2b888dfab03d4ef0e76d7a45bbcb27bca06937d6
Jakub Pawlowski [Thu, 1 Mar 2018 22:34:31 +0000 (22:34 +0000)]
Merge "Call BTA_VendorCleanup on proper thread"
am:
1184ac335f
Change-Id: Ifca440266846548be8a99ec5ab68c07f16e9e8be
Treehugger Robot [Thu, 1 Mar 2018 22:21:29 +0000 (22:21 +0000)]
Merge "Call BTA_VendorCleanup on proper thread"
Pavlin Radoslavov [Thu, 1 Mar 2018 21:59:57 +0000 (21:59 +0000)]
Merge "Pre-compute the RTP Header Marker Bit by using the correct peer address" am:
60828d0b79 am:
c4fd2f56f3
am:
dd2a46767d
Change-Id: I619f1d8cd1bde7f8262c90170ca74aaf9604e4d5
Pavlin Radoslavov [Thu, 1 Mar 2018 21:41:15 +0000 (21:41 +0000)]
Merge "Pre-compute the RTP Header Marker Bit by using the correct peer address" am:
60828d0b79
am:
c4fd2f56f3
Change-Id: I951a47389fbd77c11e18ab1bf1a69a3e826b3a0a
Pavlin Radoslavov [Thu, 1 Mar 2018 21:36:20 +0000 (21:36 +0000)]
Merge "Pre-compute the RTP Header Marker Bit by using the correct peer address"
am:
60828d0b79
Change-Id: I98cff1eabab01255ec3137c7636df23aa6dcb7fd
Ajay Panicker [Thu, 1 Mar 2018 21:36:02 +0000 (21:36 +0000)]
Remove unused adjustAvrcpAbsoluteVolume am:
ce268fc86f am:
1b9a56c06e
am:
b7c1d96ed9
Change-Id: I29ffe4a3d5160583e9d0db0d8384425004d04443
Ajay Panicker [Thu, 1 Mar 2018 21:27:40 +0000 (21:27 +0000)]
Remove unused adjustAvrcpAbsoluteVolume am:
ce268fc86f
am:
1b9a56c06e
Change-Id: Ieffa12079ae84434d51b2fc02fb1e74c5d4c12a4
Ajay Panicker [Thu, 1 Mar 2018 21:15:48 +0000 (21:15 +0000)]
Remove unused adjustAvrcpAbsoluteVolume
am:
ce268fc86f
Change-Id: I9a3df5c69021d252469bab429557fdfcd8be6756
Pavlin Radoslavov [Thu, 1 Mar 2018 16:26:43 +0000 (08:26 -0800)]
Multi-A2DP: stop or flush the A2DP queue only for Active peer
The A2DP queue should be flushed or the A2DP Tx/Rx operations
should be stopped only for the Active peer.
Otherwise, disconnecting a non-active A2DP Peer stops audio
output for the Active peer.
Bug:
73956686
Test: Manual: Connect two A2DP Sink devices, play music on the
Active device, disconnect the non-Active device
Change-Id: I32a624c012ef2cd9ef0057f7289a6ed713f88039
Jakub Pawlowski [Thu, 1 Mar 2018 06:59:32 +0000 (22:59 -0800)]
Hearing Aid BTA interface
This is the interface between the btif and bta layer, and also between
the profile implementation and audio source.
Submitting it in separate CL allows us to split the work on those
submodules.
Bug:
64038649
Test: compilation
Change-Id: I40663df4e3d8cfb401f9da6084b7212b7bdbcc8c
Jakub Pawlowski [Thu, 1 Mar 2018 19:54:16 +0000 (11:54 -0800)]
Call BTA_VendorCleanup on proper thread
Right now this function is running on any thread that call it, i.e. one
of Binder threads. This is introducing race condition during shutdown.
Test: restart bluetooth 10 times
Fix:
74075027
Change-Id: I426284792901e6a9540cb6420a7e27a340a3fe1d
Treehugger Robot [Thu, 1 Mar 2018 20:01:02 +0000 (20:01 +0000)]
Merge "Pre-compute the RTP Header Marker Bit by using the correct peer address"
Ajay Panicker [Wed, 28 Feb 2018 19:38:26 +0000 (11:38 -0800)]
Remove unused adjustAvrcpAbsoluteVolume
The AudioManager now handles all calculations for volume stepping now
and no longer uses adjustAvrcpAbsoluteVolume.
Bug:
68812037
Test: Compile and test Absolute Volume on a device that supports it
Change-Id: I34f27d27b4c5c3959a84a6dc438edfed45a0b3e3
Jakub Pawlowski [Thu, 1 Mar 2018 19:04:59 +0000 (19:04 +0000)]
Hearing Aid Audio HAL am:
e470502f78 am:
4f2cd4ab14
am:
b1b1592839
Change-Id: I51804748391ebd8ef093d25f67c7188998c032be
Jakub Pawlowski [Thu, 1 Mar 2018 18:58:58 +0000 (18:58 +0000)]
Hearing Aid Audio HAL am:
e470502f78
am:
4f2cd4ab14
Change-Id: Iafd0efe54cda8f45d0ffcf4c1354909ef20720e5
Jakub Pawlowski [Thu, 1 Mar 2018 18:53:23 +0000 (18:53 +0000)]
Hearing Aid Audio HAL
am:
e470502f78
Change-Id: I72fa69c741e41e5ada66366bf74c56d510b503c4
Jakub Pawlowski [Fri, 23 Feb 2018 21:55:48 +0000 (13:55 -0800)]
Hearing Aid Audio HAL
The code is cloned from the existing A2DP Audio HAL.
In the future it will expand to include hearing-aid specific
mechanism.
Test: code compilation
Bug:
64038649
Change-Id: I976aa189929c3051b83615d1536315a099f31a67
Jakub Pawlowski [Thu, 1 Mar 2018 10:48:53 +0000 (10:48 +0000)]
Merge "Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_16000" am:
25e8404e41 am:
574521702c
am:
cd18915868
Change-Id: I98af33e39e090367bec0374feefb8efcf1410059
Jakub Pawlowski [Thu, 1 Mar 2018 10:42:17 +0000 (10:42 +0000)]
Merge "Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_16000" am:
25e8404e41
am:
574521702c
Change-Id: I0c36ce7b5e23021815b50e78f6cf57579d68e4fc
Jakub Pawlowski [Thu, 1 Mar 2018 10:36:14 +0000 (10:36 +0000)]
Merge "Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_16000"
am:
25e8404e41
Change-Id: Ib80ac8807087f9521e8ae50e42bfee41f0fca75e
Treehugger Robot [Thu, 1 Mar 2018 10:25:39 +0000 (10:25 +0000)]
Merge "Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_16000"
Pavlin Radoslavov [Thu, 1 Mar 2018 07:34:28 +0000 (23:34 -0800)]
Pre-compute the RTP Header Marker Bit by using the correct peer address
The RTP Header Marker Bit is computed by using the peer address
to lookup the corresponding codec instead of using the codec
for the current active peer.
Also, the pre-computed result is stored in the SCB for the peer instead
of storing a pointer to the current codec config.
Bug:
73897470
Test: Manual - disconnect, reconnect A2DP headsets
Change-Id: Id015de7be2a297b86ac945c7b7c64e6bc13ffc42
android-build-team Robot [Thu, 1 Mar 2018 08:20:54 +0000 (08:20 +0000)]
Snap for
4628106 from
2a6787de36221652dc0778d44e6a54cd29887550 to pi-release
Change-Id: I1f73b91f03e1a2d64e950c50803f6fe1f36a850a
Jakub Pawlowski [Thu, 1 Mar 2018 06:16:37 +0000 (06:16 +0000)]
Hearing Aid BTIF interface am:
e893179687 am:
98c4f3dc93
am:
64b217e747
Change-Id: Ib3fa2b2167f624f37aacb3b8c60d3c81f0e12691
Jakub Pawlowski [Thu, 1 Mar 2018 06:06:51 +0000 (06:06 +0000)]
Hearing Aid BTIF interface am:
e893179687
am:
98c4f3dc93
Change-Id: Ia4012cb831b8375341248f70dca6c130e035c275
Jakub Pawlowski [Thu, 1 Mar 2018 06:01:49 +0000 (06:01 +0000)]
Hearing Aid BTIF interface
am:
e893179687
Change-Id: Ie7b1229491ce78d8ebe286efee7ca2d87369ec50
Jakub Pawlowski [Thu, 1 Mar 2018 02:40:33 +0000 (18:40 -0800)]
Add new sample rate BTAV_A2DP_CODEC_SAMPLE_RATE_16000
Test: compilation
Bug:
69623109
Change-Id: Ib7c94c538d8636719658814d2a73bc997ab6dddc
Ajay Panicker [Thu, 22 Feb 2018 05:04:24 +0000 (21:04 -0800)]
Add the AVRCP Device class for the AVRCP Refactor
The AVRCP Device class handles all the state tracking for each connected
device as well as handling all the different message responses.
Bug:
68854188
Test: run_host_unit_tests.py && run_unit_tests.sh net_test_avrcp
Change-Id: Ic39337eff3e404ca3c2d96f48e79948fac83d7cb
Jakub Pawlowski [Wed, 22 Nov 2017 00:35:49 +0000 (16:35 -0800)]
Hearing Aid BTIF interface
This is first version of Hearing Aid interface.
Test: compilation
Bug:
69623109
Change-Id: I157dc8d1481c1f034c15aac7dd33a5103cf5ea14
android-build-team Robot [Wed, 28 Feb 2018 08:28:09 +0000 (08:28 +0000)]
Snap for
4625912 from
f3adecb013c74a30c7edf05b9b0cb3f5468ccae5 to pi-release
Change-Id: I5da690149c0b1a8eb7602ea052ba7e6a6d590954
Pavlin Radoslavov [Tue, 27 Feb 2018 08:56:53 +0000 (08:56 +0000)]
Merge changes from topics "bt-a2dp-remove-redundant-alarm-free", "bt-a2dp-codec-init-same-thread" am:
51a906ba83 am:
c42440e9fd
am:
558f91732b
Change-Id: I69f764eaeb2fe1ecbdd6f485bc52d9112441beab
Pavlin Radoslavov [Tue, 27 Feb 2018 08:50:55 +0000 (08:50 +0000)]
Merge changes from topics "bt-a2dp-remove-redundant-alarm-free", "bt-a2dp-codec-init-same-thread" am:
51a906ba83
am:
c42440e9fd
Change-Id: I96720bd109901351ab4b7818746ce34a8488f259
Pavlin Radoslavov [Tue, 27 Feb 2018 08:44:34 +0000 (08:44 +0000)]
Clear the A2DP active device within the native stack during cleanup am:
2b13eb7b2a am:
a706aab6c9
am:
771177dcb0
Change-Id: I1d646069ed402e9555ca94b718e9d128a9a7954a