- 20 Sep, 2016 1 commit
-
-
Jorge E. Moreira authored
Test: make test-vendor Change-Id: I6eefd385ecb992f854544ca92c5a8559b6f281f0
-
- 19 Sep, 2016 1 commit
-
-
Jakub Pawlowski authored
Bug: 31274906 Change-Id: Ifb4ee2a5f1ebcc14e2e1b60caa2fe6536d20946b
-
- 16 Sep, 2016 1 commit
-
-
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
-
- 15 Sep, 2016 9 commits
-
-
Treehugger Robot authored
-
Andre Eisenbach authored
Change-Id: I3750edd23be239d1b19aa1b7d949cfa3d074cb2f
-
Jakub Pawlowski authored
Accessing p_lcb must be guarded with NULL check. Bug: 31442085 Change-Id: I0f6e3f8e0247c5e8946c4d098f8a3ba442f5fb28
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Jakub Pawlowski authored
Cancelling discovery was not handled properly in btif_dm_search_services_evt and was causing crashes due to assert in default case. Bug: 31442085 Change-Id: If9a2c203730c9b06df5ff8d8e251f0c35addcb82
-
Myles Watson authored
Add a pointer to the C++ style guide. Add a HOWTO for those who have outstanding patches that they'd like to reformat. Change-Id: Ia749c6498424cfbdf0bb759a1736978f91a34289
-
Jakub Pawlowski authored
FOR_EACH_* macros are resolved to for loop. Using std::move inside it will cause already moved object to be used when more than one observer is registered. This patch fixes that. This issue was already fixed in commit e84c4bdb, but was reintroduced in a641b6fa. Change-Id: I14b72371d369e4bdcaf3a6e30045bf8a1e8c3e1b
-
Pavlin Radoslavov authored
If the received HCI type is unknown, then log an event and abort. The most likely reason for that to happen is if the UART stream is corrupted. We cannot recover from that, and there is not much else we can do. Also, fixed a bug in an HCI-related unit test that was exposed by the above change. Bug: 31432127 Change-Id: Ia888c485f177af4962268bf8f593b27fd7a4b080
-
- 14 Sep, 2016 4 commits
-
-
Treehugger Robot authored
-
Andre Eisenbach authored
Currently, starting an LE batch scan are not added to the stack internal device database, which means that the address type and device type needed for a connection are not available. This patch ensures that devices found during an LE scan are added to the device database to ensure connection attempts will succeed. Bug: 31309376 Change-Id: Ic52d7eaa03d17dcbbd848af9140038bc84ea3bd0
-
Myles Watson authored
Change-Id: I6502e3e78f139722bb887640dcc00ee79f1b0044
-
Pavlin Radoslavov authored
Change-Id: Iee7a951351448f07c5e4c92d3b034e5a8377cf5f
-
- 13 Sep, 2016 7 commits
-
-
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
-
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
-
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
-
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
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
- 12 Sep, 2016 5 commits
-
-
Myles Watson authored
Change-Id: I00f2e40ba29a84fd3733b99abafc8e5b9961de7d
-
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
-
Myles Watson authored
Only log if Events report the wrong size. Change-Id: I3c06e94298f7341a940bb6d5106c869746bdaa78
-
Jorge E. Moreira authored
Only some vendor operations use vendor_manager_. Move the checks into the operations that use it. Change-Id: I8bb23d740c94df7e2081c29b1d9e062c5c012714
-
Jack He authored
Change-Id: I79ac76e64e836551cfd555a7b9786d254fcbc07a
-
- 09 Sep, 2016 2 commits
-
-
Myles Watson authored
Change-Id: I83358cbb68b10e80e4e553a6657fcb38cfcb928f Signed-off-by:
Myles Watson <mylesgw@google.com>
-
Myles Watson authored
Change-Id: I229f2a4f93a9219a502960e6d91f514738f3b3c8 Signed-off-by:
Myles Watson <mylesgw@google.com>
-
- 08 Sep, 2016 2 commits
-
-
Myles Watson authored
It should be safe to include C header files without using extern. Change-Id: I2b562ef3f76df9f9dac69323345ed3d3610e8bc2 Signed-off-by:
Myles Watson <mylesgw@google.com>
-
Jakub Pawlowski authored
This patch moves btm_ble_adv_raddr_timer_timeout into same file that use it. It also moves all structures related to multi-advertising into only source file that uses them, to make sure noone uses them externally while they undergo further refactoring. Bug: 30622771 Change-Id: I721d222aa8f5317620c616cc59ee04b7b28a68b3
-
- 07 Sep, 2016 3 commits
-
-
Myles Watson authored
Use AsyncManager to implement a timer tick and an event queue. Change-Id: Iec2a0ef06f17ecce0652ecc52f5ef732fc4af026 Signed-off-by:
Myles Watson <mylesgw@google.com>
-
Jakub Pawlowski authored
Change-Id: I429ea832f32cb4c67525dda71f9e05ba60110e1e
-
Treehugger Robot authored
-
- 06 Sep, 2016 2 commits
-
-
Myles Watson authored
The test channel can always be enabled when using the AsyncManager. - Remove enabled_ and port_ - Allow multiple connections - Pass file descriptors as parameters instead of private variables - Add a clean up function to the Test Channel - Add a static class in bt_vendor.cc and always EXPORT the entry point - Move the vendor callbacks and the global pointer to the vendor manager object from vendor_manager to bt_vendor Change-Id: I3e0dee846eb89f434893603a705c2b13219272be Signed-off-by:
Myles Watson <mylesgw@google.com> Signed-off-by:
Jorge E. Moreira <jemoreira@google.com>
- 03 Sep, 2016 3 commits
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Greg Kaiser authored
A typo in a conditional had us treating LEN_UUID_32 as an unknown length in this function. Change-Id: Iec0190fd70859d9b72295e91798af5fdc4dfae93
-