1. 20 Sep, 2016 1 commit
  2. 19 Sep, 2016 1 commit
  3. 16 Sep, 2016 1 commit
    • Jakub Pawlowski's avatar
      Fix bad address type assumption · f5566938
      Jakub Pawlowski authored
      LE related code should not use BTM_ACL_IS_CONNECTED, because it assumes
      classic transport.
      
      In this particular case, connection created event, which was result of
      advertising, caused cancellation of "LE Create Connection".
      Attempt to send "LE Create Connection Cancel" was checking if connection
      is already established, but was failing to do so becuase
      BTM_ACL_IS_CONNECTED was used instead of btm_bda_to_acl with proper
      transport. This caused just created connection to be dropped.
      
      Bug: 31442085
      Change-Id: Ia345a3d00e8567160f4abb2a31c4130ee69d67a3
      f5566938
  4. 15 Sep, 2016 9 commits
  5. 14 Sep, 2016 4 commits
  6. 13 Sep, 2016 7 commits
    • Greg Kaiser's avatar
      avrc: Fix AVRC_MsgReq() msg_mask bug · ebfeca0a
      Greg Kaiser authored
      msg_mask is intended to be a bit field.  But by declaring it a
      bool, we end up turning all bit values into 1, and losing the
      other bit values.  We fix this by properly declaring this as
      a uint8_t.
      
      Bug:31273148
      Change-Id: Id95e1853ea1ad4fbebc35fdc24708765f1fd9e07
      ebfeca0a
    • Pavlin Radoslavov's avatar
      A2DP related API update and cleanup · d7ff47cc
      Pavlin Radoslavov authored
      * Added new A2DP API and use it as appropriate
        - A2D_GetTrackFrequency()
        - A2D_GetTrackChannelCount()
        - A2D_GetNumberOfSubbands()
        - A2D_GetNumberOfBlocks()
        - A2D_GetAllocationMethodCode()
        - A2D_GetChannelModeCode()
        - A2D_GetSamplingFrequencyCode()
        - A2D_GetSinkTrackChannelType()
        - A2D_GetSinkFramesCountToProcess()
      
      * Added corresponding unit tests for the new API
      
      Also, A2DP related cleanup:
       - Renamed A2D_sbc_dump_codec_info to A2D_DumpCodecInfoSbc()
       - Changed the order of tA2D_SBC_CIE.min_bitpool and
         tA2D_SBC_CIE.max_bitpool to reflect the order of the corresponding
         fields in the Bluetooth spec (A2DP spec v1.3, page 21).
       - Added new API A2D_GetMediaType() and the corresponding unit test
       - Renamed AVDT_MEDIA_AUDIO to AVDT_MEDIA_TYPE_AUDIO
       - Renamed tA2D_SBC_CIE.alloc_mthd to alloc_method
       - Renamed A2D_BAD_ALLOC_MTHD to A2D_BAD_ALLOC_METHOD
       - Renamed A2D_NS_ALLOC_MTHD to A2D_NS_ALLOC_METHOD
       - Eliminated usage of A2D_MEDIA_TYPE_AUDIO and replace it with
         AVDT_MEDIA_TYPE_AUDIO.
          Now the media_type value everywhere is the AVDT_MEDIA_TYPE_* value
          without the reserved 4 bits (LSBs).
       - Fixed macro defines in file "stack/avdt/avdt_defs.h"
      
      Bug: 30958229
      Change-Id: Id82653e9c9460aeb92d942a9179bb5abdb4bfdec
      d7ff47cc
    • Jakub Pawlowski's avatar
      Fix advertising timers · a8fcd684
      Jakub Pawlowski authored
      Right now, timers that rotate advertising address are started when stack
      is starting and keep running all the time even when advertising is not
      used. This patch fix that by starting the timer when advertising
      instance is registered, and stopping it when it's unregistered.
      
      Bug: 30622771
      Change-Id: I638176bdc2f26c62d5ec3a56f6e81cd9c016df0b
      a8fcd684
    • Jakub Pawlowski's avatar
      Bluetooth: split setting params and enabling advertising (3/3) · 73679d01
      Jakub Pawlowski authored
      Proper order of commands when starting advertising:
      * set parameters
      * set data
      * enable advertising
      
      This cannot be achieved when setting advertising parameters and enabling
      advertising is put together in one function. Enabling before setting
      data might cause first advertisements to be empty. If a device with
      hardware filter pick up such advertisement, it might fail to properly
      recognize our device.
      
      Bug: 30622771
      Bug: 19372779
      Change-Id: I3a2c1171e301ecfd7cbf1cb8b86cfda0e5fc2382
      73679d01
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
      85dba1c4
    • Treehugger Robot's avatar
      b4eb6434
  7. 12 Sep, 2016 5 commits
    • Myles Watson's avatar
      test_vendor: White space fix in vendor manager · 52498170
      Myles Watson authored
      Change-Id: I00f2e40ba29a84fd3733b99abafc8e5b9961de7d
      52498170
    • Pavlin Radoslavov's avatar
      Extended the A2DP codec abstraction API · 79506e8f
      Pavlin Radoslavov authored
       * Added new A2DP codec-independent API and updated/renamed existing API.
         - A2D_InitCodecConfig()
         - A2D_InitDefaultCodec()
         - A2D_SetCodec()
         - A2D_IsCodecSupported() -> A2D_IsSourceCodecSupported()
         - A2D_IsSinkCodecSupported()
         - A2D_BuildSrc2SinkConfig() - previously bta_av_build_src_cfg()
         - A2D_IsSinkCodecSupported() - previously
             bta_av_co_audio_sink_supports_config()
         - A2D_IsSourceCodecSupported() - previously
             bta_av_co_audio_media_supports_config()
         - A2D_IsPeerSourceCodecSupported()
         - A2D_GetDefaultConfigSbc() - to be deleted
         - A2D_CodecSepIndexStr()
      
       * Added the corresponding SBC-specific implementation and a placeholder
         for vendor implementation.
      
       * Added the corresponding unit tests
      
      Also:
       * Added type tA2D_CODEC_SEP_INDEX and list each known codec (Source or Sink):
         A2D_CODEC_SEP_INDEX_*
       * Renamed BTIF_SV_AV_AA_SBC_INDEX -> A2D_CODEC_SEP_INDEX_SBC
       * Renamed BTIF_SV_AV_AA_SBC_SINK_INDEX -> A2D_CODEC_SEP_INDEX_SBC_SINK
       * Renamed BTA_AV_MAX_SEPS -> A2D_CODEC_SEP_INDEX_MAX
       * Renamed tA2D_CODEC -> tA2D_CODEC_TYPE
       * Renamed tBTIF_AV_MEDIA_FEEDINGS -> tA2D_AV_MEDIA_FEEDINGS
       * Renamed tBTIF_AV_CODEC_ID -> tA2D_AV_CODEC_ID (to be deleted)
       * Renamed BTIF_AV_CODEC_PCM -> tA2D_AV_CODEC_PCM (to be deleted)
       * Renamed BTIF_AV_CODEC_NONE -> tA2D_AV_CODEC_NONE (to be deleted)
       * tBTIF_AV_MEDIA_FEED_CFG_PCM -> tA2D_AV_MEDIA_FEED_CFG_PCM (to be
         deleted)
       * tBTIF_AV_MEDIA_FEED_CFG -> tA2D_AV_MEDIA_FEED_CFG (to be deleted)
       * Moved SBC codec-related configuration and capabilities from
         btif/co/bta_av_co.cc to stack/a2dp/a2d_sbc.c :
         - bta_av_co_sbc_caps -> a2d_sbc_caps
         - bta_av_co_sbc_sink_caps -> a2d_sbc_sink_caps
         - btif_av_sbc_default_config -> a2d_sbc_default_config
       * Replaced usage of BTIF_AV_SBC_DEFAULT_SAMP_FREQ with
         A2D_SBC_IE_SAMP_FREQ_44
       * Merged bta_av_sbc_cfg_matches_cap() and bta_av_sbc_cfg_in_cap()
         into A2D_CodecInfoMatchesCapabilitySbc()
       * Misc other fixes and cleanup: use tA2D_STATUS as appropriate, remove
         FUNC_TRACE(), etc.
      
      Bug: 30958229
      Change-Id: I35e224754041cdce479c87e57d8e2c8b3adc8edd
      79506e8f
    • Myles Watson's avatar
      test_vendor: Silence packet_stream.cc · d4ff4bb2
      Myles Watson authored
      Only log if Events report the wrong size.
      
      Change-Id: I3c06e94298f7341a940bb6d5106c869746bdaa78
      d4ff4bb2
    • Jorge E. Moreira's avatar
      test_vendor: Move checks for vendor_manager_ · 9cd5cd28
      Jorge E. Moreira authored
      Only some vendor operations use vendor_manager_.  Move the checks into
      the operations that use it.
      
      Change-Id: I8bb23d740c94df7e2081c29b1d9e062c5c012714
      9cd5cd28
    • Jack He's avatar
      Added void keyword to function declaration and definition · 2c8ddc67
      Jack He authored
      Change-Id: I79ac76e64e836551cfd555a7b9786d254fcbc07a
      2c8ddc67
  8. 09 Sep, 2016 2 commits
  9. 08 Sep, 2016 2 commits
  10. 07 Sep, 2016 3 commits
  11. 06 Sep, 2016 2 commits
  12. 03 Sep, 2016 3 commits