3538b64d9760d8b98900e768354e9f0c499db277 |
|
31-Jan-2018 |
Jakub Pawlowski <jpawlowski@google.com> |
BTA_JvL2capConnect simplification Test: manual Change-Id: I18ac5ac451490e0d3c0c9fc5daa9f8d64ff19bd5
/system/bt/bta/include/bta_jv_api.h
|
e5e2dd556b5f271a9425e526c66bf70efe4503a8 |
|
31-Jan-2018 |
Jakub Pawlowski <jpawlowski@google.com> |
Simplify btSock_start_l2cap_server_l Test: run OPP, chekc LE CoC Change-Id: I4091ea8065ba913966fcd14495b90b2c565fdba3
/system/bt/bta/include/bta_jv_api.h
|
84519312368dfa4b12c1be5b8c6290d26f397cbf |
|
12-Jan-2018 |
Jakub Pawlowski <jpawlowski@google.com> |
One less copy when sending LE CoC data. After this patch, data is read from socket directly into BT_HDR that is passed down the stack, rather than copying the data later. Test: manual Bug: 68359837 Change-Id: I3f304e6c7e60ce64b44350678d0ba10324fc97bc
/system/bt/bta/include/bta_jv_api.h
|
c474342ab57843baea7d0a57ba5a9ab4bf3decf6 |
|
11-Jan-2018 |
Jakub Pawlowski <jpawlowski@google.com> |
Make BTA_JvL2capWrite take ownership of the data buffer This is first step towards making it accept BT_HDR with data, in order to make LE sockets work with zero copies. Bug: 68359837 Test: transfer file using OPP Change-Id: Ib202520554bbc83cb8587bf1c4caa4b0da6b266c
/system/bt/bta/include/bta_jv_api.h
|
a32cfc94062df66234894360dca39878c0735761 |
|
05-Jan-2018 |
Jakub Pawlowski <jpawlowski@google.com> |
Revert "Use vector instead of raw pointer in l2cap socket write handling" This reverts commit 4da2ff53e694c5bee2973c55bb14eb40f74a9d3d. Change-Id: Id8a399ec6f7474b92579c4647899e424feeb0d33
/system/bt/bta/include/bta_jv_api.h
|
4da2ff53e694c5bee2973c55bb14eb40f74a9d3d |
|
31-Oct-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Use vector instead of raw pointer in l2cap socket write handling Currently, when we receive data from upper layers for LE CoC socket, we store it in memory and pass a raw pointer around, keeping memory until the write is acknowledged by controller and event is sent back to btif layer in on_l2cap_write*_done. If anything goes wrong, we might loose the pointer to the data and have a memory leak. From now on, we store the data in std::vector and pass its ownership down the stack. The moment the data is copied into lower layer buffer, vector is automatically freed. We no longer pass the data back to on_l2cap_write*_done callback. Bug: 68359837 Test: compilation test Change-Id: If34c0fba8d4a040a242b8c655491b8967a03b96a
/system/bt/bta/include/bta_jv_api.h
|
8ba543299b3f0d3320a91103af8e57094ae4321c |
|
30-Oct-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Assert on null callback in BTA_JvL2capConnect and BTA_JvL2capConnectLE Passing null as callback should never happen in any scenario. Bug: 68359837 Test: compilation test Change-Id: I29702219183eae9d1782438f99d01534fbe44d73
/system/bt/bta/include/bta_jv_api.h
|
5b790feeeb211c42bf78ca3ae9c26aa30e516765 |
|
18-Sep-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Make copyright headers consistent with Google template; remove "(C)" Test: Comment changes only; still compiles... Change-Id: Id699a8170112f06e4a2c9f2e0f0834d1817ace4e
/system/bt/bta/include/bta_jv_api.h
|
819e2ecb84a22d6e03ec9ed67b3260c0dd7e8aba |
|
10-Jul-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Use one type for UUID (1/5) Currently, we have few different representations for UUID in stack: tBT_UUID, tSDP_UUID, bt_uuid_t, bluetooth:UUID, or uint8_t*. Additionally, tBT_UUID and bt_uuid_t are used to hold UUID as 128bit as Little Endian or Big Endian, depending on which part of stack (GATT or SDP) is using it. This patch is creating one type, bluetooth::Uuid, that will replace all other types. Bug: 66912853 Test: all sl4a tests for GATT and RFCOMM Merged-In: Ia42d3233146db0488728ed6f878f99b368fe8838 Change-Id: Ia42d3233146db0488728ed6f878f99b368fe8838
/system/bt/bta/include/bta_jv_api.h
|
a484a888196ddf8bcbf1ad3226d6451bc735a94b |
|
25-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Rename bt_bdaddr_t into RawAddress (3/3) Test: compilation test Change-Id: I4571721a0c6165a66450ee157a53d8d15bfc45d0
/system/bt/bta/include/bta_jv_api.h
|
a09c3482007047e852a40b67b86882e96ebede51 |
|
16-Jun-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Replace BD_ADDR with bt_bdaddr_t in JV related code Test: compilation test Change-Id: Ie0cf491506ebb898ba968586048d2b58248ba112
/system/bt/bta/include/bta_jv_api.h
|
ad1e23d50e431fb82ff1b8d3ce02f64ca0c5a940 |
|
10-Dec-2016 |
Jack He <siyuanh@google.com> |
Remove extern "C" from header files Since change 290046, most files in system/bt is compiled as C++ source. Therefore, there is no longer a need for the extern "C" wrapper around includes that export symbols from those sources. The following python script is applied to each file in the directory: front = '#ifdef\s+__cplusplus\s+extern\s+"C"\s+{\s+#endif\s+' back = '#ifdef\s+__cplusplus\s+}\s+#endif' with open(sys.argv[1], "r") as f: data = f.read() data = re.sub(front, "", data) data = re.sub(back, "", data) print data through a shell script: for file in $(find . -name "*.h"); do python remove_cpp_extern_c.py $file > tmp cat tmp > $file rm tmp done with following files not edited: * stack/include/a2dp_* * include/bt_trace.h * embdrv/sbc/* Bug: 33492510 Test: Code compilation, BtFunhausMetricsTest, BtStressTest Change-Id: Iac21cdfb1924b50478dd0b82326e092602cbc9d4
/system/bt/bta/include/bta_jv_api.h
|
8ab5e4dbb107be931381bca470c87db447e00881 |
|
23-Nov-2016 |
Ajay Panicker <apanicke@google.com> |
Remove additional usages of UINT_TO_PTR Bug: 32995283 Test: TestTracker/69659 Change-Id: If37b8bcf30f098f6fc2c4dff82118a9f47a125a3
/system/bt/bta/include/bta_jv_api.h
|
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/bta/include/bta_jv_api.h
|
531fe1a8c1ca7edfdaf11bbbf3bd63d51bde9b33 |
|
22-Nov-2016 |
Ajay Panicker <apanicke@google.com> |
Remove more usages of UINT_TO_PTR macro Bug: 32995283 Test: Sanity tests with a carkit and a headset Change-Id: Ie74ece4814499f771eb1f229558de7df5c726180
/system/bt/bta/include/bta_jv_api.h
|
58d57a46cbe38e0ab70d4f2333dd381ff89342b0 |
|
21-Nov-2016 |
Ajay Panicker <apanicke@google.com> |
Remove some usages of UINT_TO_PTR macro Bug: 32995283 Test: Sanity test with various devices Change-Id: I20a0b1571c044170ba5a8792d8e990a6790cbce2
/system/bt/bta/include/bta_jv_api.h
|
135db4f34477342b53242abfe9beec0262854389 |
|
11-Nov-2016 |
Ajay Panicker <apanicke@google.com> |
Remove pointer to integer cast in btif_sock_l2cap to prevent crash on 64 bit systems Bug: 24400656 Test: Previously crashed Bluetooth, does not crash after patch Change-Id: Ia381abca72e46d369a0de1749e42d1b6273a321a
/system/bt/bta/include/bta_jv_api.h
|
1baaae3f34a667058e7f0c5f778357d98320cf38 |
|
09-Nov-2016 |
Myles Watson <mylesgw@google.com> |
bta: Fix comment formatting after clang-format Test: mma -j32 Change-Id: Ic945ac421b1918527105c59674eda89afd3d4126
/system/bt/bta/include/bta_jv_api.h
|
cd1fd07f1306e08fe048682dd5918987e579f937 |
|
09-Nov-2016 |
Myles Watson <mylesgw@google.com> |
bta: Apply clang-format clang-format -i --style=file bta/*/* (twice) Test: mma -j32 Change-Id: Ib118b1dfb6a34f9a5bfe153d65841e9041165264
/system/bt/bta/include/bta_jv_api.h
|
8af480e24549ba51a3f6858d9d9af504715e0bea |
|
09-Nov-2016 |
Myles Watson <mylesgw@google.com> |
bta: Remove double asterisks in comments Double asterisks at the beginning of the line sed -i s,"^[*][*]"," *", bta/*/* Double asterisks after a space sed -i s,"^ [*][*]\([^*]\)"," *\1", bta/*/* sed -i s,"^ [*][*]$"," *", bta/*/* Test: mma -j32 Change-Id: Ib83b802c7000176683b4e7f24d1255b3c2c6c01c
/system/bt/bta/include/bta_jv_api.h
|
e9e58ced195ec2c983c7723c9cbdabd45eb0f2fd |
|
17-Jun-2016 |
Marie Janssen <jamuraa@google.com> |
bta: use standard types Use standard types everywhere. Use standard style for #if statements: - #if (VAR_NAME == TRUE) - #if (VAR_NAME1 == TRUE && VAR_NAME2 == TRUE) Use __func__ instead of __FUNCTION__ Fix some debug statements to use __func__ Change-Id: Ib86de4de9f14529ecaa4f71597260e3b5785360b
/system/bt/bta/include/bta_jv_api.h
|
713993d1784ab7c23aee1fa3cf1ab8676cc0aa69 |
|
21-Apr-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Convert BTIF code from C to C++ Modifications required: * added proper casting * moved variable definitions before goto statements * added 'extern "C"' markers where needed * renamed 'operator' to 'operator_name' Bug: 28485365 Change-Id: I903357967387207e678866c02e008f047f8263f6
/system/bt/bta/include/bta_jv_api.h
|
547a2972e70021724f5638165a54da36d6a06198 |
|
06-Apr-2016 |
Sharvil Nanavati <sharvil@google.com> |
Delete unused JV code Change-Id: I16d017ef90269a435b8f66a58ed06d2fc89d407f
/system/bt/bta/include/bta_jv_api.h
|
6721232129f137ab024d9b95fc1094a714bc4c01 |
|
09-Mar-2016 |
Navin Kochar <navin.kochar@intel.com> |
Add LE L2CAP Connection Oriented Channel This implementation for LE L2CAP Connection Oriented Channel (a Bluetooth Core Spec 4.1 feature) has been tested on the following formal and informal IOP events conducted by BT SIG Sport and Fitness Working Group. * Informal IOP – Tokyo 2014 * UPF 49 – Berlin 2014 * Formal IOP – Tokyo 2014 * Formal IOP – Santa Clara 2015 Change-Id: Ia6de62f9321a78b98930629f65078884157a9c0d Signed-off-by: Navin Kochar <navin.kochar@intel.com>
/system/bt/bta/include/bta_jv_api.h
|
8372aa5fa535ee4f09c09981b6125b54ace31fe2 |
|
25-Mar-2015 |
Kim Schulz <k.schulz@samsung.com> |
L2CAP and SDP Search API for BT profiles (2/2) Added support for exposing L2CAP to Java such that OBEX over L2CAP is made possible. Added support to create SDP records as a seperate step.(as opposed to creating a SDP record when a BluetoothSocket is created). This allows both a RFCOMM channel and a L2CAP PSM to be included in a SDP record. (Additionally the content of the SDP record is set by the profile in Java, in stead of beeing hardcoded in the socket layer.) This completes the L2CAP channel exposure to Java. Change-Id: Iaf68a07d910145cdd33e940d73cd680f79164100
/system/bt/bta/include/bta_jv_api.h
|
83e2c342e8b40009f3509425722d309c0b8189b9 |
|
30-Sep-2014 |
Chris Manton <cmanton@google.com> |
Remove data_types.h
/system/bt/bta/include/bta_jv_api.h
|
14c80d98b0b6ea5e6f7a2302626cb61a38d17101 |
|
08-Oct-2014 |
Zach Johnson <zachoverflow@google.com> |
Refactor bta_jv functions Remove unused L2CAP and SDP code to reduce distraction from unused code path. In general, if we need any of this behavior in the future, it's best to talk directly to the apis instead of through another layer.
/system/bt/bta/include/bta_jv_api.h
|
39110ec88460421618330863807804e03594ef67 |
|
06-Oct-2014 |
Zach Johnson <zachoverflow@google.com> |
Remove duplicate local bdaddr management functions
/system/bt/bta/include/bta_jv_api.h
|
24933b5b1a06274c47133debac5251a97128a267 |
|
25-Sep-2014 |
June R. Tate-Gans <jtgans@google.com> |
Removing unnecessary BTAPI #defines.
/system/bt/bta/include/bta_jv_api.h
|
2f338f25530d2aaab7acf45701c271d10b81d96d |
|
24-Mar-2013 |
Ganesh Ganapathi Batta <ganeshg@broadcom.com> |
BT: JV rfcomm socket sniff support Bug:8322094 Change-Id: Ib472f39488b685ac396289e65c1da21fdfd93c4c
/system/bt/bta/include/bta_jv_api.h
|
9ac641d0a674333af57b85b367e64cf94dfae291 |
|
16-Jan-2013 |
Matthew Xie <mattx@google.com> |
fixed rfc resouce leaking and multi-session issue also added more debug messages bug 7486080 Change-Id: Ic21e9d2df5f651b51ea2126a3cac25811808dcfb
/system/bt/bta/include/bta_jv_api.h
|
689d66b6559dcb3a0ad7f6cc33b6129e50910253 |
|
13-Dec-2012 |
The Android Open Source Project <initial-contribution@android.com> |
Snapshot 9fd57cbacd95e89602f430244c35bbc67f08b6d2 Change-Id: Ibc3a4bf4161d286c7cfab89a19c676eb5cc9224f
/system/bt/bta/include/bta_jv_api.h
|
5738f83aeb59361a0a2eda2460113f6dc9194271 |
|
13-Dec-2012 |
The Android Open Source Project <initial-contribution@android.com> |
Snapshot cdeccf6fdd8c2d494ea2867cb37a025bf8879baf Change-Id: Ia2de32ccb97a9641462c72363b0a8c4288f4f36d
/system/bt/bta/include/bta_jv_api.h
|