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_ble.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_ble.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_ble.cc
|
b8a477e9ac51898b05cb328eda897d95f1ef3d02 |
|
17-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Get rid of BD_ADDR Test: compilation test Change-Id: I8493485873a81f897fbaef1504076ef18274a8a5
/system/bt/stack/btm/btm_ble.cc
|
78b81c6db0aed32eb595ce4de7eb22fc24800058 |
|
16-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Get rid of bdcpy, bdcmp and other BD_ADDR helpers Test: compilation test Change-Id: I37f17bfb3826b59797373645691c61bfbaefdbfd
/system/bt/stack/btm/btm_ble.cc
|
5a475e71a01322367a2ba591aecd62781902cfc2 |
|
13-Apr-2017 |
Avish Shah <avish.shah@broadcom.com> |
Bluetooth 5: Update LE2M implementation through DM (3/3) This patch moves LE2M implementation to the DM instead of tied to GATT. Below are the reasons to make this change: 1) Per link setting usually be done under DM, such as link policy etc. 2) In the future, if LECOC is coming to use in more profile/apps, we can not rely on GATT API for these. Separate API should be required. 3) we could have multiple logical GATT user on top of the same link. 4) Also this will avoid duplicating all the APIs on GATTC and GATTS. Bug: 37586939 Test: sl4a PhyTest passed Change-Id: I7330be85d1bb98a4cc66b69462b01c23c9375362
/system/bt/stack/btm/btm_ble.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_ble.cc
|
6bd467a004f4416aafc7fbd4da19b1e54578fd18 |
|
07-Apr-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
ESR11-E7716: Disable scans while setting local RPA This change is required to disable any ongoing classic advertisement or any scan before setting the RPA for the DUT, and reenable them after the Set RPA command. If a direct connection is ongoing, the RPA is not set. A background connection is suspended and resumed for sending the "Set RPA" HCI command. This patch is based on CAF patch by niarora@codeaurora.org 690c2db21f650f74c202fd380cca4ca74cbdf83c Test: manual Bug: 35935853 Change-Id: Ifbc90d0c52c8f1fa627ac80c20a69149e89cb794
/system/bt/stack/btm/btm_ble.cc
|
0c683232e28ea616844bfa03d876a08df217ba13 |
|
24-Feb-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
btsnd_hcic_ble_rand refactor Make btsnd_hcic_ble_rand accept base::Callback instead of function pointer. This will result in great code simplifications in further patches. Test: sl4a ConcurrentBleAdvertisingTest Change-Id: I9933caa78b20d0011ce3e17fd72d5740bcc4ae6d
/system/bt/stack/btm/btm_ble.cc
|
bdd2f5001ffc7c53f0e38c2a98e393b1855f9ce6 |
|
09-Feb-2017 |
Myles Watson <mylesgw@google.com> |
Clean up some more #defines true -> TRUE false -> FALSE Test: builds Change-Id: I2573b6ab81aa384cc6d20bb8beb84303aba06a66
/system/bt/stack/btm/btm_ble.cc
|
29aa1e5c5625e47c465f579aab572de25c462693 |
|
14-Dec-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Remove unused btm_set_random_address Bug: 30622771 Test: compilation test Change-Id: I0e502fb9b5b2cc3ccad0aa142a0ec9fedea7d1df
/system/bt/stack/btm/btm_ble.cc
|
c8e29efe4cf0c12cc301e91bfc89b3429c875849 |
|
07-Dec-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Build fix Test: compilation test with BLE_PRIVACY_SPT == FALSE Change-Id: Icd811584638e37101dabd433d7a4f86807e928fb
/system/bt/stack/btm/btm_ble.cc
|
5d790e4732c68fc6a159138dd0bbde6086e063ee |
|
07-Dec-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Build fix Test: compilation test Change-Id: I44648bcb5e41103066861d7060c0a7dc85cad936
/system/bt/stack/btm/btm_ble.cc
|
9462c5dbd610e7b894008cec99f57e082de1abc5 |
|
07-Dec-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Simplify btm_ble_resolve_random_addr Bug: 30622771 Test: manual testing Change-Id: I604d0e909a6fe270e2b413abbdb497d622780261
/system/bt/stack/btm/btm_ble.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_ble.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_ble.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_ble.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/btm/btm_ble.cc
|
2e8e9f42132d0297a94c0852a1fbf45c9bc348e5 |
|
15-Nov-2016 |
Myles Watson <mylesgw@google.com> |
Remove SMP_INCLUDED define Test: Connect to a BLE Keyboard Change-Id: I785692cb61f4ca5ccccab7424aa03f50c54523c9
/system/bt/stack/btm/btm_ble.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_ble.cc
|
7d1faf334e83332d733d8886069ffb2585cf1b8d |
|
14-Nov-2016 |
liuchao <liuchao741@huawei.com> |
NULL-pointer access before check in BTM_SetBleDataLength This fixes a potential NULL-pointer access in case the ACL DB for the requested BDA is not found. Test: mm -j 8 Change-Id: I86ab66730aa0d9a143ddde851bd33a05a405bb7f
/system/bt/stack/btm/btm_ble.cc
|
7921e8f594079e00e90173a8fe7483ad72443b34 |
|
10-Nov-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
BLE OOB Pairing - parse address type (1/5) When address type is not parsed, creating bond to devices not using random address is impossible. Bug: 32780409 Test: try pairing with nRF52DK using random address Change-Id: I95c4ebc7bd03cd1b895c9f17deef2e57d8b57d2a
/system/bt/stack/btm/btm_ble.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_ble.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_ble.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_ble.cc
|