- Apr 11, 2017
-
-
Jakub Pawlowski authored
Test: manual Change-Id: I5c86e96b9bb1cee5b535ea1fa6ba0b6d078a9b09 (cherry picked from commit 17f449dab52a6092422a0405e6fe589488661594)
-
Jakub Pawlowski authored
This change configures device privacy mode for each remote device added to the resolving list. Before exercising the privacy command it confirms whether the set privacy HCI command is supported. This patch is based on CAF patch by niarora@codeaurora.org 36fa3c528d2ae58e0b3f969665e3d25986dcdbaa Test: manual Bug: 35935853 Change-Id: I839045ccc3ddb73dc9c0cbe05d87c25dae9b9236 (cherry picked from commit f6db7cb9a30b34493df8658d59b2fe2232bc828a)
-
Jakub Pawlowski authored
This change is required to disable any ongoing classic advertisement or any scan before setting the RPA for the DUT, and reenable them after the Set RPA command. If a direct connection is ongoing, the RPA is not set. A background connection is suspended and resumed for sending the "Set RPA" HCI command. This patch is based on CAF patch by niarora@codeaurora.org 690c2db21f650f74c202fd380cca4ca74cbdf83c Test: manual Bug: 35935853 Change-Id: Ifbc90d0c52c8f1fa627ac80c20a69149e89cb794 (cherry picked from commit 6bd467a004f4416aafc7fbd4da19b1e54578fd18)
-
Jakub Pawlowski authored
This change sets bit 5 of the auth req to 1 to display the support for H7 function, for key derivation. Also, it adds the implementation of the h7 function as defined in the spec (ERRATA E7301] H7 is used if both host and remote devices exhibit their support for H7 function in the auth request, else the key derivation falls back to the H6 implementation. The method is similar for derivation from either transports with the only difference being in the first byte of the SAL used in h7. This patch is based on CAF patch by niarora@codeaurora.org 70668ad34ff15d0a53aea612d3c488fa575176ca Test: manual Bug: 35935853 Change-Id: I2fa29b2f3d2b3ac007b2f5f024871f81220237d8 (cherry picked from commit e7f14a682d57811d9df0d64372f222bcc143ec86)
-
- Apr 10, 2017
-
-
Pavlin Radoslavov authored
Now we print the following information: * Current codec name * Info for each supported codec: - Priority - Encoder interval (ms) - Codec Config: Sampling rate, Bits per sample, Channel mode (MONO/STEREO) - Selectable codec configuration - Codec's local capability - Packet counts (expected/dropped) - PCM read counts (expected/actual) - PCM read bytes (expected/actual) * LDAC codec-specific info: - LDAC quality mode: HIGH/MID/LOW/ABR - LDAC saved transmit queue length [used in ABR mode] * SBC codec-specific info: - Frames counts (expected/dropped) Sample of the new format is below: --- A2DP Codecs State: Current Codec: LDAC A2DP LDAC State: Priority: 1000000 Encoder interval (ms): 20 Config: Rate=96000 Bits=32 Mode=STEREO Selectable: Rate=44100|48000|88200|96000 Bits=16|24|32 Mode=MONO|STEREO Local capability: Rate=44100|48000|88200|96000 Bits=16|24|32 Mode=MONO|STEREO Packet counts (expected/dropped) : 596 / 161 PCM read counts (expected/actual) : 2488 / 2488 PCM read bytes (expected/actual) : 2547712 / 2547712 LDAC quality mode : ABR LDAC saved transmit queue length : 0 A2DP aptX-HD State: Priority: 4001 Encoder interval (ms): 0 Config: Invalid Selectable: Invalid Local capability: Rate=44100|48000 Bits=24 Mode=STEREO Packet counts (expected/dropped) : 0 / 0 PCM read counts (expected/actual) : 0 / 0 PCM read bytes (expected/actual) : 0 / 0 A2DP aptX State: Priority: 3001 Encoder interval (ms): 0 Config: Rate=44100 Bits=16 Mode=STEREO Selectable: Rate=44100|48000 Bits=16 Mode=STEREO Local capability: Rate=44100|48000 Bits=16 Mode=STEREO Packet counts (expected/dropped) : 0 / 0 PCM read counts (expected/actual) : 0 / 0 PCM read bytes (expected/actual) : 0 / 0 A2DP AAC State: Priority: 2001 Encoder interval (ms): 20 Config: Rate=44100 Bits=16 Mode=STEREO Selectable: Rate=44100|48000 Bits=16 Mode=STEREO Local capability: Rate=44100|48000|88200|96000 Bits=16 Mode=STEREO Packet counts (expected/dropped) : 0 / 0 PCM read counts (expected/actual) : 0 / 0 PCM read bytes (expected/actual) : 0 / 0 A2DP SBC State: Priority: 1001 Encoder interval (ms): 20 Config: Rate=44100 Bits=16 Mode=STEREO Selectable: Rate=44100 Bits=16 Mode=STEREO Local capability: Rate=44100 Bits=16 Mode=STEREO Packet counts (expected/dropped) : 580 / 0 PCM read counts (expected/actual) : 2900 / 2900 PCM read bytes (expected/actual) : 1484800 / 1484800 Frames counts (expected/dropped) : 3724 / 0 --- Bug: 36567128 Test: Stream A2DP and "adb shell dumpsys bluetooth_manager" Change-Id: Idd86005b842a4e569b7df91b8bbaf0632ed7f7c9 (cherry picked from commit 302113d4e44f06e90f90a5903e33ae830edb58a3)
-
- Apr 08, 2017
-
-
Pavlin Radoslavov authored
Create unit test framework for audio_a2dp_hw and implement a unit test for function audio_a2dp_hw_stream_compute_buffer_size() Also: * Remove obsolete check for mixer unit size inside out_get_buffer_size() * Reorganize the file structure inside directory audio_a2dp_hw/ : - Moved the source code files *.cc to audio_a2dp_hw/src/ - Moved the header file(s) *.h to audio_a2dp_hw/include/ - The unit test file(s) are stored in audio_a2dp_hw/test/ Bug: 35849921 Test: This is the unit test. Code compilation and unit test succeed Change-Id: I3dcc508cb6799462b7103cb2ee452b4399843899 (cherry picked from commit 304ceeb5202060a9c625a55369cbf28d72f5e2d9)
-
- Apr 07, 2017
-
-
Jacky Cheung authored
DO NOT MERGE ANYWHERE Mark AutoConnParamUpdateAddr on first auto connection param update am: daae184a -s ours am: 49bd3d12 -s ours Change-Id: Ieea4194c4ea69e72f92a21dbd08eff94d390a02d
-
Jacky Cheung authored
am: daae184a -s ours Change-Id: Iae88352c83d7f3b1430c02e2af3a683bebae3bb2
-
Jakub Pawlowski authored
The value is uint16_t, not uint8_t Bug: 30622771 Test: manual Change-Id: I93e8687fa74cb0f5877f9921a860b2ba83106691 (cherry picked from commit 16899e9d1ef49aedba8435ff3a5e4476f036427a)
-
- Apr 05, 2017
-
-
Myles Watson authored
Bug: 35651902, 35672576, 36810308 Test: build, Android Cloud Bluetooth net_test_bluetooth Change-Id: Ie99966d610ea35ab8caf8a084d92c43618e90b94
-
TreeHugger Robot authored
-
Myles Watson authored
Bug: 35672576 Test: Angler Bluetooth starts/stops with test HAL Android Cloud net_test_bluetooth tests pass Change-Id: I104e0dd3946f0efff9709e05c056bee3538394f7
-
Pavlin Radoslavov authored
Use the audio data stream characteristics (sample rate, bits per sample, channel mode) to compute the audio stream output buffer size from the Audio A2DP HAL to the Bluetooth stack. Previously, the buffer size was pre-computed based on the original (44.1kHz, 16 bits per sample, Stereo) PCM audio stream used by SBC. NOTE: We cannot change the buffer size on the receiver side (Bluetooth), because SO_RCVBUF option does not have effect for Domain Sockets. Also, removed uipc_linux.h header file, because it is not used. Test: A2DP streaming and switching the codecs, sample rate, bits per sample Bug: 35849921 Change-Id: Ib6772f7564442ac18a02876a5aa5e3208e5aade1 (cherry picked from commit b32704f424e0ab4cd33ad670173997f8e3a0a31c)
-
- Apr 03, 2017
-
-
Jorge E. Moreira authored
Removes LOCAL_MODULE_PATH which is not supported for 64 bit builds. Uses LOCAL_PROPRIETARY_MODULE to let the build system know it should go in the vendor directory. Test: builds Change-Id: Iba55d497d8cbe97911a41a5623248306a8954ec2 (cherry picked from commit fa965f85)
-
Andy Hung authored
Prevent conflict between closing a stream (adev_close_output_stream) and setting parameters (adev_set_parameters). Test: Manual - Bluetooth A2DP streaming and changing codec parameters Bug: 36723276 Change-Id: Id8b9fcdf594e3d5fde139719d324420468c4c0aa
-
- Apr 01, 2017
-
-
Jakub Pawlowski authored
Expose both duration and maximum extended advertising events to limit advertising time. Test: manual Bug: 30622771 Change-Id: I4475c322347899946b39e65026d8009e02c93759 (cherry picked from commit 5204c62f137de9b6c2834391fd329457d3fdbc84)
-
Jakub Pawlowski authored
According to Bluetooth CSSv7, the flags field shall be included in all connectable packets, not only legacy packets. Test: manal Bug: 30622771 Change-Id: I006f9bd6d31ca0673d78405f320b18623e6e5b16 (cherry picked from commit 13ba6ace)
-
Jakub Pawlowski authored
This patch wires calls/callbacks through stack to prepare for actual implementation. Test: manual Bug: 30622771 Change-Id: Iac8c74a228f34f5ea4231a76848e22ea64f11d06 (cherry picked from commit 6a0dd079)
-
- Mar 30, 2017
-
-
Ajay Panicker authored
This patch will immediatly delete the snoop log if Bluetooth is on. If Bluetooth is off it will delete the log as soon as Bluetooth starts again. Test: Turn off logging while Bluetooth is on and off Bug: 36718948 Change-Id: Ib660cd442c93f1a34c948d51c5cffc38695558d5
-
TreeHugger Robot authored
-
TreeHugger Robot authored
-
TreeHugger Robot authored
-
- Mar 29, 2017
-
-
Myles Watson authored
Test: build Change-Id: I5af34f01c47d8037d56c27e7e3fab3cc2f5fd2bc (cherry picked from commit 5300491d)
-
Myles Watson authored
Test: LE connection Change-Id: I43c170b40b125345b91e1c91a7993f0d138ac1c5 (cherry picked from commit 3e3644b2)
-
Myles Watson authored
Test: builds Change-Id: I33544572122a166523a40dde090f276b102df247 (cherry picked from commit 7cbdb077)
-
Pavlin Radoslavov authored
This API can be used to enable the optional codecs, or disable them and use only the mandatory SBC. Internally, it is implemented by raising the SBC priority to highest (so SBC will be used/selected), or reducing the SBC priority to its default value (lowest). Test: A2DP streaming and enabling/disabling/selecting optional codecs Bug: 35873828 Change-Id: Ia1311d790441b7b5471c9fda7aeee8aa3306b16e (cherry picked from commit 85d55fff)
-
Pavlin Radoslavov authored
Test: Code compilation Bug: 35381097 Change-Id: Ib347319942aef4fef6bfd7edc23a4df004fc19fa (cherry picked from commit c7d2d872)
-
- Mar 28, 2017
-
-
fen wang authored
LDAC ABR controls LDAC encoder bit rate based on A2DP transmit queue length. It can be used if the LDAC ABR library is installed on the device: libldacBT_abr.so Test: manual Bug: 35381097 Change-Id: Idcc2fabe86acaf441f5a71f5d2bb66ad29252cdb
- Mar 27, 2017
-
-
Jakub Pawlowski authored
am: 398974c5 Change-Id: I49a3c0d17f3987cbff52ddbdbbfd7fab4a8ecaea
-
Jakub Pawlowski authored
am: 28959e2d Change-Id: I16eee0c1c46b93e9e0773e906782f17a9c432900
-
Jakub Pawlowski authored
am: 6da94e0c Change-Id: I083e1ef7f4fe6d958fb2f3d4d3faaffd02c2d3be
-
Jakub Pawlowski authored
For whitelist connections we always use all possible PHYs, for direct connection use PHY specified by client. Test: manual Bug: 30622771 Change-Id: I720f134e2800dc3d282135bb7ffbe3882117c680
-
- Mar 24, 2017
-
-
Zach Johnson authored
am: 99c4d8ed Change-Id: Icebcbde0d537c9bc5d37a9d0577ce12114d32b75
-
Zach Johnson authored
am: 8e228a99 Change-Id: Ic2036538f8eb950c01de850411d4017732d80c0d
-
Zach Johnson authored
am: f1607be1 Change-Id: Ia2c574d1a36f840045110d55a6d34fb89776890e
-
Zach Johnson authored
-
Jakub Pawlowski authored
am: 2c45a0ae Change-Id: Iee7714ddedf1a594209657192406ec468be60410
-