47616530ceea2ea6432ffb35cd8a3fc0a56365b5 |
|
08-Sep-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Fix alarms being posted on wrong thread Alarms from btu_bta_alarm_queue and btu_generic_alarm_queue should be processed on the main MessageLoop thread. Replaced obsoleted alarm_set_on_queue() alarm API with the new alarm_set_on_mloop() API Test: manual Bug: 65078753 Change-Id: I54b472b39b44a6c541dbdcdad7414056d0dd4163 Merged-In: I54b472b39b44a6c541dbdcdad7414056d0dd4163 (cherry picked from commit be8bbd7a83ec8bc900fac58a03010fbcb74956c9)
/system/bt/stack/btm/btm_devctl.cc
|
aa4322821bc8cca05e7810451971ccc6a17acbf3 |
|
02-Sep-2017 |
Pavlin Radoslavov <pavlin@google.com> |
Read the Tx Power level when flushing the A2DP Tx queue Also, minor renaming and cleanup (for consistency). Test: Streaming A2DP headset and trigger audio stutter Bug: 64038257 Change-Id: Id722342b596e0bf3c9c7664272b6d3e311bb82e9 (cherry picked from commit c7bf47cefc5446e99ff12b6cae45a0984e0b9999)
/system/bt/stack/btm/btm_devctl.cc
|
ecb6c72a1d06dbcbd0e5c07628b572c5f22a5f1d |
|
02-Sep-2017 |
Pavlin Radoslavov <pavlin@google.com> |
Implement HCI_Read_Automatic_Flush_Timeout mechanism Also, read the Automatic Flush Timeout when flushing the A2DP Tx queue Test: Streaming A2DP headset and trigger audio stutter Bug: 64038257 Change-Id: Ic49b5236328ddacde1d7f2aee131e35e317a14ef (cherry picked from commit b8568ae0e198a84225c9fdef1e715dc4d45565c9)
/system/bt/stack/btm/btm_devctl.cc
|
4820b2a6e69a8c13a2d57c8b7d41ba3b6d6471d2 |
|
01-Sep-2017 |
Pavlin Radoslavov <pavlin@google.com> |
Implement HCI_Read_Failed_Contact_Counter mechanism Also, read the Failed Contact Counter when flushing the A2DP Tx queue Test: Streaming A2DP headset and trigger audio stutter Bug: 64038257 Change-Id: I8ff72560e3840c5c22cfac9613c4be670b8a4cf1 (cherry picked from commit 6ab749f3cfd9c7660bb245764fcd01dcff51dbe9)
/system/bt/stack/btm/btm_devctl.cc
|
aaa50649b95c0ab2cd84e67fab77596bbb24d095 |
|
04-Jul-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Make RawAddress into a class (1/3) * Add libbluetooth-types - library containing types implementation, that is common between stystem/bt and packages/apps/Bluetooth. It must be included in every project using btif interface. * Put Raw Address implementation into libbluetooth-types * Unify all "to/from string" helper methods into ToString and FromString * bd_addr_empty -> RawAddress::kEmpty * bd_addr_any -> RawAddress::kAny Also fix leaks in jni str2addr by adding ReleaseStringUTFChars Test: types_unittest Change-Id: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043
/system/bt/stack/btm/btm_devctl.cc
|
9e030fde05352ec4385d7baf6cc2af89e95e039c |
|
25-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Rename bt_bdaddr_t into RawAddress (3/3) Test: compilation test Change-Id: I4571721a0c6165a66450ee157a53d8d15bfc45d0
/system/bt/stack/btm/btm_devctl.cc
|
b7b747369200c0c6588e3099cedc6cfc454e14e0 |
|
19-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Unify the empty and any address usage Test: compilation test Change-Id: Ic7fae4aa6c6c32e08fbca257dd3629f4f8df92f0
/system/bt/stack/btm/btm_devctl.cc
|
c2276b06572ab6fc1f900fbb1f41087e77d47e2a |
|
10-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Use bt_bdaddr_t instead of BD_ADDR Test: compilation test, sl4a GattReadTest Change-Id: I8d1bd6914aec55bb53495b1d0d5e3d37b86865e6
/system/bt/stack/btm/btm_devctl.cc
|
57f6508cf7b22788fa2e7a739cec241b785718fb |
|
09-Feb-2017 |
Mudumba Ananth <ananthm%broadcom.com@gtempaccount.com> |
eSCO: BT 4.1 Enhanced SCO command (1/5) Added support for BT 4.1 enhanced SCO feature on the stack. This feature allows the stack to create a SCO connection with remote device by using Hci_Enhanced_Setup_Synchronous_Connection command after checking the controller (4.1) support for enhanced SCO command. Added the command parameters to use the command in both wide band speech(WBS) and narrow band speech(NBS) scenarios. Number of Broadcom vendor specific commands(VSCs)that are needed to be sent to Broadcom controllers along with this command have also been updated accordingly NOTE: This change would also need a firmware patch for the feature to work on Broadcom contollers which will be delivered to Google in a separate change set. Bug: 19540029 Test: make, HFP PTS test, testplans/86884, testplans/87103 Change-Id: I1014d81be5cbe91078a4484dd072ac3957bfdfe4
/system/bt/stack/btm/btm_devctl.cc
|
f6ac424a81bad038bbf9a90c7c569dba81978f51 |
|
09-Nov-2016 |
Venkata Jagadeesh Garaga <vgaraga@codeaurora.org> |
Increase max remote ext feature pages to 3 Use Case: DUT unable to pair with Xbox HID device Steps: 1. Turn on BT 2. Start Inquiry 3. Pair with device with three extended feature pages Failure: Unable to pair with HID device Root Cause: DUT not responding for btm_read_remote_ext_features_complete as we are not supporting three extended pages. So Security procedure also not getting started. Fix: Increase max remote ext feature pages to three from 2 as some latest remotes supporting three extended pages. As per spec we can support 255 extended pages. Test: Pair with device with three extended feature pages Bug: 32999575 Change-Id: I061c78a7aaa1ab58a2fc554d026305a0124eee77
/system/bt/stack/btm/btm_devctl.cc
|
f2af1c42ccb2f642b241c2261b42d0be61d45438 |
|
13-Dec-2016 |
Jack He <siyuanh@google.com> |
Replace assert with CHECK from base/logging.h * Replace assert with CHECK * Remove all NDEBUG definitions * Remove hacks for BT_LIBCHROME_NDEBUG * Removed some removed directories from Makefile such as hcis, brcm, rpc Coccinelle-assisted: @@ @@ - #include "base/logging.h" + #include <base/logging.h> @ assert_included @ @@ @ base_logging_included @ @@ @ depends on (assert_included && !(base_logging_included)) @ @@ - #include <assert.h> + #include <base/logging.h> @ depends on (assert_included && base_logging_included) @ @@ - #include <assert.h> @@ expression E; @@ - assert(E); + CHECK(E); And a bash script: for file in $(find . -name "*.cc"); do spatch --sp-file replace_assert_with_CHECK.cocci --in-place $file done The following files are maually edited: btif/src/btif_config.cc btif/src/btif_avrcp_audio_track.cc btif/src/btif_gatt_client.cc osi/src/data_dispatcher.cc osi/src/reactor.cc osi/src/thread.cc osi/src/fixed_queue.cc osi/src/list.cc osi/src/allocation_tracker.cc osi/src/alarm.cc osi/test/wakelock_test.cc Bug: 31781465 Test: Code compilation, Unit Tests, BtStressTest, BtFunhausMetricsTest Change-Id: I21dc10a45be31665e41441b75b0515ed87523988
/system/bt/stack/btm/btm_devctl.cc
|
83211b0ccceb53586ac651a4d67ded7443b2f222 |
|
07-Dec-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Get rid of selective connection procedure Bug: 30622771 Test: compilation test Change-Id: I1a7e4c49f93f11a350b96ffe7b2e69974ed82f46
/system/bt/stack/btm/btm_devctl.cc
|
911d1ae03efec2d54c3b1b605589d790d1745488 |
|
29-Nov-2016 |
Myles Watson <mylesgw@google.com> |
Apply clang-format to the rest of the tree find * | grep "\.[ch]" | xargs clang-format --style=file -i Test: mma -j32 Change-Id: I6fcc9862bb7bc07c2a367ca58fef2b3cd27a6f05
/system/bt/stack/btm/btm_devctl.cc
|
9ca07091a1f07ea201cee0504dab6a1d7073d429 |
|
29-Nov-2016 |
Myles Watson <mylesgw@google.com> |
Reformat long comments before clang-format Test: mma -j32 Change-Id: I86a2a4af9dcd22d675ca1f764bb2c9623d63edcc
/system/bt/stack/btm/btm_devctl.cc
|
ee96a3c60fca590d38025925c072d264e06493c4 |
|
23-Nov-2016 |
Myles Watson <mylesgw@google.com> |
Fix asterisks in block quotes 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
/system/bt/stack/btm/btm_devctl.cc
|
84baa7f16e830394408278dbb8c508dd9fa02887 |
|
14-Nov-2016 |
Myles Watson <mylesgw@google.com> |
Remove BLE_INCLUDED define Test: Connect to a BLE Keyboard Change-Id: I5f8f4017c90c3c404004632fd10e6c2b93bd7783
/system/bt/stack/btm/btm_devctl.cc
|
d7ffd64accbd50a27289a388856e56244ccbb5da |
|
27-Oct-2016 |
Myles Watson <mylesgw@google.com> |
Remove deprecated UNUSED macro (5/5) Include osi.h for UNUSED_ATTR. Test: mma -j32 Change-Id: I43260669dc1f54639e46cc9620093d727ee86276
/system/bt/stack/btm/btm_devctl.cc
|
d35a648d39710bbc5ac59f8add85166455af5af7 |
|
27-Oct-2016 |
Myles Watson <mylesgw@google.com> |
Remove deprecated UNUSED macro (1/5) Generated automatically with coccinelle /* This rule matches functions with arguments * that have an UNUSED(arg) in the body. */ @r1@ identifier arg; identifier fn; type t; parameter list[n] P; @@ fn(P, const t arg) { ... UNUSED(arg); ... } /* This rule removes the UNUSED line, and adds * UNUSED_ATTR to the parameter list. */ @depends on r1@ identifier r1.arg; identifier r1.fn; type r1.t; parameter list[r1.n] r1.P; typedef UNUSED_ATTR; @@ fn(P, - const t arg + UNUSED_ATTR GETRIDOFTHISCOMMA, const t arg ) { ... -UNUSED(arg); ... } Test: mma -j32 Change-Id: Idcaadd688d669d484e557becd050e69454508f3c
/system/bt/stack/btm/btm_devctl.cc
|
b2a292b5d8df2f359c38b0787bc01181225a9bc9 |
|
15-Oct-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Renamed most C files to C++: *.c to *.cc Also: - Fixed C++ related compilation errors. - Added missing 'extern "C"' guards in some of the header files. - Added missing LOCAL_CPP_EXTENSION to Android.mk files. - Added-back btif/src/btif_mce.cc and bta/mce/bta_mce_* to btif/Android.mk and bta/Android.mk respectively. - Fixed the alphabetical ordering of the *.cc files in some of the Android.mk files. - Added missing Copyright header to "osi/include/list.h" - Updated "osi/src/wakelock.cc" to use C++ std::string instead of dynamic allocation of C-style strings. Test: code compilation, unit tests, and A2DP streaming Change-Id: Ia2f7215ed9df32775c701b68fc86b09875b942c7
/system/bt/stack/btm/btm_devctl.cc
|