3c3ef2d3c87783f0929d9fd13013d89e6b86f58a |
|
27-Apr-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Fix LE disconnecting right after pairing When a device connect to android over LE, the default policy is to keep this connection. If any app "claims" this connnection, and then stop using it, we'll disconnect from the device after a short timeout. If pairing is triggered to such device, that is connected but not used by any app, it will cause disconnect after the pairing is finished. This is because using SMP over fixed LE L2CAP channel is conseidered as connecting, using, and disconnecting a channel by the stack. This is obvious logic error - using fixed channels should not require "connecting" to them. As a temporary workaround, do not trigger a timeout when a fixed SMP channel is closed over LE. For LE only devices, this means they will stay connected after the pairing until some app starts using them or they disconnect. For dual mode devices, Classic connection will be established and SDP will be performed. The classic connection will be disconnected if no app will use it, and the LE connection to the device will stay up. Bug: 37352720 Test: manual Change-Id: Ic9d688aacf84e0267277b12b28dfa7cc57fdcea6 (cherry picked from commit 7c8bab231328956d3b7569280cb162be4e345422)
/system/bt/stack/l2cap/l2c_utils.cc
|
96fb273d92a31204edcf43ab2594a19876d14056 |
|
25-Mar-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Add option to specify initial LE connection PHY (1/3) For whitelist connections we always use all possible PHYs, for direct connection use PHY specified by client. Test: manual Bug: 30622771 Change-Id: I720f134e2800dc3d282135bb7ffbe3882117c680
/system/bt/stack/l2cap/l2c_utils.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/l2cap/l2c_utils.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/l2cap/l2c_utils.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/l2cap/l2c_utils.cc
|
f33b6f434f086b20fabe5913016bc423ac975057 |
|
23-Nov-2016 |
Marie Janssen <jamuraa@google.com> |
readability fix: No assigns in if conditionals 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
/system/bt/stack/l2cap/l2c_utils.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/l2cap/l2c_utils.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/l2cap/l2c_utils.cc
|