- Dec 02, 2016
-
-
Myles Watson authored
find * | grep "\.[ch]" | xargs clang-format --style=file -i Test: mma -j32 Change-Id: I6fcc9862bb7bc07c2a367ca58fef2b3cd27a6f05
-
Myles Watson authored
Test: mma -j32 Change-Id: I86a2a4af9dcd22d675ca1f764bb2c9623d63edcc
-
Pavlin Radoslavov authored
Previously, the Audio Feeding Parameters between the Media Framework and A2DP were hard-coded: 44.1 KHz sample rate, 16-bits per sample, Stereo. Now the Media Framework queries A2DP, and uses the returned values. Bug: b/30958229 Test: Manual testing: A2DP streaming to headphones. TestTracker/68727 Change-Id: I70b90d2961ceb9efcd7021d2e12c240fe531ee1c
-
Treehugger Robot authored
-
- Dec 01, 2016
-
-
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
-
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
-
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
-
Myles Watson authored
clang-format re-orders #include statements. Fix the includes so that order is less important. Test: mma -j32 Change-Id: Ia548c2c7d5669e0e759b3c5e7fa12a1ec48cc03e
-
Ajay Panicker authored
Bug: 32995283 Test: Sanity tests with a carkit and a headset Change-Id: Ie74ece4814499f771eb1f229558de7df5c726180
-
- Nov 30, 2016
-
-
Treehugger Robot authored
-
Pavlin Radoslavov authored
Bug: 33114181 Test: Code compilation Change-Id: Ic2d432b651ea80af2b0ff40fdb61221b0fc31f82
-
Myles Watson authored
Test: repo upload --cbr . Change-Id: Ib4bea4649320db8890399dda8a285bab69f4b482
-
Treehugger Robot authored
-
Sanket Agarwal authored
-
- Nov 29, 2016
-
-
Sanket Agarwal authored
Bug: 30984220 Test: SL4A tests for HFP Change-Id: I62cb69b4296e1b5bdf951ccfafc55433f1ea0a1a
-
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
-
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
-
- Nov 28, 2016
-
-
Marie Janssen authored
Coccinelle-assisted: @@ variable i; expression E; statement S1, S2; @@ + i = E; if ( ( - (i = E) + i != ... | - (i = E) + i == ... | - (i = E) + i < ... | - (i = E) + i > ... | - (i = E) + i <= ... | - (i = E) + i >= ... | - (i = E) + i ) ) S1 else S2 for file in $(find . -name "*.cc"); do spatch --sp no-if-assigns.cocci --in-place $file done clang-format --style=file -i bta/**/*.cc Test: mma -j37 and basic sanity testing on angler, sailfish Change-Id: I41a2964afac347c24e13869b6c172e321e646091
-
Marie Janssen authored
-
- Nov 24, 2016
-
-
Treehugger Robot authored
-
Treehugger Robot authored
* changes: Fix formatting after removing defines Remove BTA_GATT_INCLUDED
-
Jack He authored
* Add necessary includes in bt_trace.h * Add toolchain specific configs * Add libc++ import for clang * Add libc++abi include for clang * Add ipc_handler_linux.cc in service/BUILD.gn * Use shared_mutex when _LIBCPP_VERSION < 3500 * Updated the build instructions Test: ninja -C out/Default Change-Id: I362ebf33f62910be817339cc6bdc62830f57db30
-
liuchao authored
This fixes a potential NULL-pointer access in case p_remote_cmd is NULL Test: mm -j 8 Change-Id: I06ae9afb9ae161296828e06b2c00d921189bee5c
-
Pavlin Radoslavov authored
The unit test failure was introduced / overlooked by an earlier CL. Test: running "test/run_unit_tests.sh net_test_stack" Change-Id: I40824a903a0dbef3bdab965ef5c390a8939cc5ee
-
- Nov 23, 2016
-
-
Myles Watson authored
clang-format -i --style=file bta/*/* btif/*/* include/* Test: mma -j32 Change-Id: I9ebb32f0cc5bd24a7cb2ae25699999aab5036b13
-
Myles Watson authored
Test: Connect to a BLE Keyboard Change-Id: I785692cb61f4ca5ccccab7424aa03f50c54523c9
-
Myles Watson authored
Test: Connect to a BLE Keyboard Change-Id: I00393e2bf09fb65533e953896563e69aab5a22dc
-
Myles Watson authored
Test: Connect to a BLE Keyboard Change-Id: I5f8f4017c90c3c404004632fd10e6c2b93bd7783
-
Sanket Agarwal authored
-
Treehugger Robot authored
-
Marie Janssen authored
also: clang-format -i --style=file btif/src/btif_rc.cc Test: sl4a AvrcpController tests Change-Id: I95f7e6922c096e2460ecdeafad162515f5600d97
-
- Nov 22, 2016
-
-
Sanket Agarwal authored
Test: (Manual) The stutter after music is resumed is gone Bug: b/32296397 Change-Id: Id188c56a196c2ece13510488e6bcfb717bcc610c
-
Jakub Pawlowski authored
When advertiser is not started because too many advertisers are registered, return proper error code. Bug: 30622771 Test: sl4a ConcurrentBleAdvertisingTest Change-Id: Ie8a94b964170edbbf1c56f39b03ad98f745a4861
-
Ajay Panicker authored
Bug: 32995283 Test: Sanity test with various devices Change-Id: I20a0b1571c044170ba5a8792d8e990a6790cbce2
-
Marie Janssen authored
BT_TRACE_VERBOSE turned on constants-as-strings in logs in many parts of the stack, which is preferable to obscure numbers. Test: m -j37, check logspam is not worse than normal on a device Change-Id: I1d24f1c1337290a8a2bcd9a0d937c9e0f1f1c611
-
- Nov 18, 2016
-
-
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
-
Andre Eisenbach authored
-
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
-
- Nov 17, 2016
-
-
Jakub Pawlowski authored
Change-Id: I82d2bb25470d46516e0ab6114bf85cb93f9023ac
-
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
-