Skip to content
Snippets Groups Projects
  1. Dec 02, 2016
  2. Dec 01, 2016
    • Pavlin Radoslavov's avatar
      A2DP Codec related cleanup · 18f31b45
      Pavlin Radoslavov authored
      * Add new A2DP API and the corresponding unit tests:
        - A2DP_InitSource2SinkCodec()
        - A2DP_SourceCodecSepIndex()
        - A2DP_GetTrackBitsPerSample()
      * Use the new API to simplify the codec selection and setup
      * Rename A2DP_BldSbcMplHdr() to A2DP_BuildMediaPayloadHeaderSbc()
      * Remove the following APIs, because they are not needed anymore:
        - A2DP_BuildSinkConfig()
        - A2DP_CodecConfigMatchesCapabilities()
        - A2DP_SetSourceCodec()
        - A2DP_CodecRequiresReconfig()
        - A2DP_IsSourceCodecSupported()
      * Remove the following generic APIs, and keep only the SBC-specific APIs.
        The information returned by those functions is SBC-specific, and doesn't
        apply to other codecs:
        - A2DP_GetNumberOfSubbands()
        - A2DP_GetNumberOfBlocks()
        - A2DP_GetAllocationMethodCode()
        - A2DP_GetChannelModeCode()
        - A2DP_GetSamplingFrequencyCode()
        - A2DP_GetMinBitpool()
        - A2DP_GetMaxBitpool()
      * Rename:
        A2DP_GetTrackFrequency() -> A2DP_GetTrackSampleRate()
        tA2DP_FEEDING_PARAMS.sampling_freq -> sample_rate
        tA2DP_FEEDING_PARAMS.num_channel -> channel_count
        tA2DP_FEEDING_PARAMS.bit_per_sample -> bits_per_sample
      * Remove btif_a2dp_source_encoder_update(), tA2DP_ENCODER_UPDATE_PARAMS
        and associated events and processing mechanism, because they are not
        needed anymore.
      * Remove tA2DP_ENCODER_INTERFACE.encoder_update, because it is not
        used anymore.
        Now it is superceded by tA2DP_ENCODER_INTERFACE.encoder_init.
      * Fix a bug inside bta_av_api_register() when initializing
        the stream control block.
      * Refactor bta_av_co_audio_getconfig() and bta_av_co_audio_setconfig()
      * Remove tBTA_AV_CO_CB.codec_config_setconfig field, because it is not
        needed anymore.
      * Remove unused arguments when opening/closing audio stream
      * Remove #ifdef BTA_AV_DEBUG guards: BTA_AV_DEBUG is always TRUE
      * Remove SBC Mono -> Stereo hack
      
      Test: Manual testing: A2DP streaming to headphones. TestTracker/68727
      Change-Id: Ie0b209f7ad6c21c2c6d8d2e6277b86dfa63388c6
      18f31b45
    • Jack He's avatar
      Add dependency installation files for x86_64 · 1399ab99
      Jack He authored
      * The installation script installs the necessary dependencies based on
        host OS version on Ubuntu OS
      * clang toolchain BUILD.gn will only use clang-3.5 or above
      * Update documentation
      
      Test: gn gen out/Default; ninja -C out/Default
      Change-Id: Ibc732ebc68009af25e9a911a724a888e008d45ac
      1399ab99
    • Myles Watson's avatar
      Fix asterisks in block quotes · fbfa1a55
      Myles Watson authored
      Remove double asterisks from block quotes.
      
      git grep -lP '^[*][*]'  | xargs  sed 's/^[*][*]/ \*/' -i
      
      Fix asterisk line lengths
      
       git grep -l '^[ /][*]\{79,\}[*/]' | \
         xargs sed -i s,"^\([ /]\)[*]\([*]\{78\}\)[*]*\([*/]\)","\1\2\3",
      
      Test: mma -j32
      Change-Id: Ie3fd375ac2f804cb0f53bf1314a005e85973b3d7
      fbfa1a55
    • Myles Watson's avatar
      embdrv: Fix include ordering before clang-format · 29e54406
      Myles Watson authored
      clang-format re-orders #include statements.  Fix the includes
      so that order is less important.
      
      Test: mma -j32
      
      Change-Id: Ia548c2c7d5669e0e759b3c5e7fa12a1ec48cc03e
      29e54406
    • Ajay Panicker's avatar
      Remove more usages of UINT_TO_PTR macro · a2356a4b
      Ajay Panicker authored
      Bug: 32995283
      Test: Sanity tests with a carkit and a headset
      Change-Id: Ie74ece4814499f771eb1f229558de7df5c726180
      a2356a4b
  3. Nov 30, 2016
  4. Nov 29, 2016
    • Sanket Agarwal's avatar
      Add Bluetooth device address parameter to HF Client APIs · 14168af8
      Sanket Agarwal authored
      Bug: 30984220
      Test: SL4A tests for HFP
      
      Change-Id: I62cb69b4296e1b5bdf951ccfafc55433f1ea0a1a
      14168af8
    • Jakub Pawlowski's avatar
      Cleanup GATT cache when remote device is disconnected · d19485ec
      Jakub Pawlowski authored
      According to Bluetooth spec, GATT cache should not be persisted between
      reconnections for unbonded devices. Bonded devices store the cache on
      the disk and will read it on reconnection.
      
      Bug: 33123476
      Test: sl4a GattReadTest
      Change-Id: If2ca53c7b22a346e7236514ea7b461695c923f74
      d19485ec
    • Jack He's avatar
      AVRCP: Fix get metadata attribute responses · ea429616
      Jack He authored
      * Add checks for remaining buffer capacity to handle long metadata
      * Change the attribute number max to AVRC_MAX_NUM_MEDIA_ATTR_ID
      * Consolidate attribute value filling code between GetElementAttributes
        and GetItemAttributes
      * Check requested media attribute IDs before building response
      
      Bug: 32407250, 33001066
      Test: manual - connect to carkit and play music, see metadata and hear audio
      Change-Id: I8f0c47148be35100202398c754861abb1fb9def1
      ea429616
  5. Nov 28, 2016
  6. Nov 24, 2016
  7. Nov 23, 2016
  8. Nov 22, 2016
  9. Nov 18, 2016
    • Jakub Pawlowski's avatar
      Move startAdvertising() logic into native code (2/3) · fdb8af19
      Jakub Pawlowski authored
      AdvertiseManager.startAdvertising() was implemented in Java layer for
      historical reasons. Now that we have nice native callbacks and tests,
      it can be moved into native code, where it will be shared between
      Android daemon and bluetoothtbd.
      
      Bug: 30622771
      Test: native tests added to cover startAdvertising
      Change-Id: Idf5d3c53b6ad21d8c7e239b5b150b88e073bb709
      fdb8af19
    • Andre Eisenbach's avatar
      03bd9638
    • Andre Eisenbach's avatar
      Do not reject valid SBC codec parameters · 52462362
      Andre Eisenbach authored
      Fixes logic in A2DP_CodecInfoMatchesCapabilitySbc that could otherwise
      reject valid SBC codec parameters, leading to A2DP being disconnected.
      
      Example:
      Tesla Model S - min bitpool = 2; max bitpool = 60
      Android - min bitpool = 2; max bitpool = 53
      
      Bug: 32688022
      Test: Added test to test_a2dp_is_source_codec_supported to cover this bug
      Change-Id: If02bab1c47f926f82a636184cf3cbd1edbbe223a
      52462362
  10. Nov 17, 2016
    • Jakub Pawlowski's avatar
      Add BUILD.gn for tinyxml · e18bf10b
      Jakub Pawlowski authored
      Change-Id: I82d2bb25470d46516e0ab6114bf85cb93f9023ac
      e18bf10b
    • Andre Eisenbach's avatar
      Revert "Bluetooth: Fix the issue that peer A2DP SNK device can not auto-reconnect." · ecefb405
      Andre Eisenbach authored
      This reverts commit 5db07990.
      
      Despite the original patch intention, it actually causes various remote
      devices (tested Android Auto, Logitech Speakerphone, Tesla Model S and
      many more) to no connect A2DP (only HFP) in various re-connect
      scenarios.
      
      This is due to the fact that the stream end point type is not correctly
      determined yet in some of these scenarios causing the AVDT stream to be
      closed prematurely and thus the A2DP connection to fail.
      
      Test: manual; various devices
      Fixes: 32688022
      ecefb405
Loading