Skip to content
Snippets Groups Projects
  1. Apr 11, 2017
    • Jakub Pawlowski's avatar
      Linux build fix · 16a05435
      Jakub Pawlowski authored
      Test: manual
      Change-Id: I5c86e96b9bb1cee5b535ea1fa6ba0b6d078a9b09
      (cherry picked from commit 17f449dab52a6092422a0405e6fe589488661594)
      16a05435
    • Jakub Pawlowski's avatar
      Use device privacy mode as default · 9ab6c8d1
      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)
      9ab6c8d1
    • Jakub Pawlowski's avatar
      ESR11-E7716: Disable scans while setting local RPA · ae8e8f1e
      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)
      ae8e8f1e
    • Jakub Pawlowski's avatar
      Support for H7 function for key derivation · 13a99999
      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)
      13a99999
  2. Apr 10, 2017
    • Pavlin Radoslavov's avatar
      Add A2DP codec-specific information to dumpsys output · eae17b88
      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)
      eae17b88
  3. Apr 08, 2017
    • Pavlin Radoslavov's avatar
      Create unit test framework for audio_a2dp_hw · 402b3327
      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)
      402b3327
  4. Apr 07, 2017
  5. Apr 05, 2017
    • Myles Watson's avatar
      Finish conversion to Android.bp · 617c9ebc
      Myles Watson authored
      Bug: 35651902, 35672576, 36810308
      Test: build, Android Cloud Bluetooth net_test_bluetooth
      Change-Id: Ie99966d610ea35ab8caf8a084d92c43618e90b94
      617c9ebc
    • TreeHugger Robot's avatar
    • Myles Watson's avatar
      test: Add a simulated Bluetooth HAL implementation · be847db8
      Myles Watson authored
      Bug: 35672576
      Test: Angler Bluetooth starts/stops with test HAL
            Android Cloud net_test_bluetooth tests pass
      Change-Id: I104e0dd3946f0efff9709e05c056bee3538394f7
      be847db8
    • Pavlin Radoslavov's avatar
      Compute the audio data buffer size based on stream characteristics · c7ed52fc
      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)
      c7ed52fc
  6. Apr 03, 2017
    • Jorge E. Moreira's avatar
      test-vendor-lib: Enable building for 64 bits · 4de795fa
      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)
      4de795fa
    • Andy Hung's avatar
      audio_a2dp_hw: add device lock · d60edbb1
      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
      d60edbb1
  7. Apr 01, 2017
    • Jakub Pawlowski's avatar
      Bluetooth 5 advertising duration refactoring (1/4) · 0cdb403c
      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)
      0cdb403c
    • Jakub Pawlowski's avatar
      Include flags in all connectable packets · abfa24e0
      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)
      abfa24e0
    • Jakub Pawlowski's avatar
      Bluetooth 5 periodic scan (2/3) · 32e46a2b
      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)
      32e46a2b
  8. Mar 30, 2017
  9. Mar 29, 2017
  10. Mar 28, 2017
  11. Mar 27, 2017
  12. Mar 24, 2017
Loading