b9c95d5a614fa76026315ef1edc0b5b491863723 |
|
27-Jan-2018 |
Jakub Pawlowski <jpawlowski@google.com> |
Report LE CoC credits to GAP clients Test: manual with HA Change-Id: Ic4552b05b6e6c7dad5311e0b893da3166bf1895c
/system/bt/stack/include/gap_api.h
|
42bdd070882a2a4aed4ab99586ce5fb7f8d64bf3 |
|
18-Jan-2018 |
Jakub Pawlowski <jpawlowski@google.com> |
Make GAP_ConnWriteData accept BT_HDR This is next step towards making LE sockets work with zero copies. Test: transfer file using OPP Bug: 68359837 Change-Id: Iedcdd59acb223e2982f6cb96b8656f517008dee5
/system/bt/stack/include/gap_api.h
|
ce5f485e67ef79da3cbd31035cdfffe483abe296 |
|
12-Jan-2018 |
Jakub Pawlowski <jpawlowski@google.com> |
Limit data accepted by GAP_ConnWriteData to just one SDU This limit is already enforced in BluetoothSocket.java, which is dividing data into pieces no bigger than MTU. This is first step towards making it accept BT_HDR with data, in order to make LE sockets work with zero copies. Test: transfer file using OPP Bug: 68359837 Change-Id: I67bfd4ab5c2dc6aa8210058a742c57e1ccf845a0
/system/bt/stack/include/gap_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/stack/include/gap_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/stack/include/gap_api.h
|
d35eb7af88ef1afa9b2bd99022c9da503b1de72e |
|
05-Dec-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Make LE CoC Maximum PDU Size configurable Hearing Aid will need to modify this value. For existing code keep the value as is. Test: none Bug: 69623109 Change-Id: I8c97882b5dd08a049d3a958c51163bad41df4d6a
/system/bt/stack/include/gap_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/stack/include/gap_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/stack/include/gap_api.h
|
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/include/gap_api.h
|
0f3d3fe65b774056940d15975fe1e565ef6245fe |
|
27-May-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Get rid of GAP_TRACE_* logs This is a step required for making GAP testable, and not dependent on any global log structures. Change-Id: I5073e800cf842864021328308feb59a409927b2b
/system/bt/stack/include/gap_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/stack/include/gap_api.h
|
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/include/gap_api.h
|
9ca07091a1f07ea201cee0504dab6a1d7073d429 |
|
29-Nov-2016 |
Myles Watson <mylesgw@google.com> |
Reformat long comments before clang-format Test: mma -j32 Change-Id: I86a2a4af9dcd22d675ca1f764bb2c9623d63edcc
/system/bt/stack/include/gap_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/stack/include/gap_api.h
|
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/include/gap_api.h
|
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/include/gap_api.h
|
d19e0785e662e640191a075eda07acce61c2aeda |
|
15-Jul-2016 |
Marie Janssen <jamuraa@google.com> |
Use standard types, consistent ifdef style everywhere Remove the typedefs in stack/include/bt_types.h 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__ Update script to be less disruptive to aligned assignment blocks. Change-Id: I8f8f068e6c26ce74fd3b3707e1e31fd0b919cdd0
/system/bt/stack/include/gap_api.h
|
b7938c1866dd8b92977e3ba3632de77fd877bace |
|
27-May-2016 |
Jakub Pawlowski <jpawlowski@google.com> |
Convert HID and Device Manager BTA code to C++ These are the only places that use BTA GATTC API. After this change it's possible to change GATT API to use C++ types as arguments. Bug: 28485365 Change-Id: Idf83396f4bc3a2cc8a9b41f69da5d033af1be678
/system/bt/stack/include/gap_api.h
|
8e7323ea75b8755b6d372115f0c8b1aa7789e96b |
|
07-Apr-2016 |
Pavlin Radoslavov <pavlin@google.com> |
Removed unused functions Removed unused functions and defines that are not needed: - l2c_bcst_msg() - GAP_ConnBTWrite() - gap_proc_btu_event() - AVDT_WriteDataReq() - L2CAP_BCST_MIN_OFFSET - L2CAP_BCST_OVERHEAD - AVDT_MAX_MEDIA_SIZE - LOG_NDDEBUG in btif/src/bluetooth.c Bug: 28068134 Change-Id: If0edda2bf86caf83027db2c897537c82a0d80667
/system/bt/stack/include/gap_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/stack/include/gap_api.h
|
4e972d8c24ecfb808757ef5c81eb3877ebc93027 |
|
16-Feb-2016 |
Srinu Jella <sjella@codeaurora.org> |
Track TX empty event to manage sniff timer Use case: OPP TX while inquiry is in progress. Steps: 1. Send any file from DUT to remote using BT. 2. Accept file on remote. 3. During file transfer, start inquiry on DUT and observe behaviour. Failure: DUT sends sniff command in the middle of the transfer though it is not required. eventually OPP Tx over L2CAP file transfer fail. Root Cause: As per the current implementation, for tx it will immediately starts idle timer without checking for the completion status of tx. Fix: Handled the tx complete event from L2CAP properly to start the idle timer to manage the sniff properly. Change-Id: I298075590042e82a2f33837f6df6af0b2fd8179a
/system/bt/stack/include/gap_api.h
|
444a8da807abaf5f9e813ce70c56a79160495fb3 |
|
06-Mar-2015 |
Satya Calloji <satyac@broadcom.com> |
LE Privacy 1.2 and LE secure connections Bug: 19816438 Original author: Chaojing Sun <cjsun@broadcom.com> Change-Id: I5951f4d4e038f8348a62aa6d19b2111bae0b3ecc
/system/bt/stack/include/gap_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/stack/include/gap_api.h
|
65645888da537ff8b3480c36ffe2dfc58844aea6 |
|
15-Oct-2014 |
Zach Johnson <zachoverflow@google.com> |
Remove unused code in GAP Left the BLE stuff for now, since some of it appears to be used at least right now.
/system/bt/stack/include/gap_api.h
|
832bc91593813839d4b3d70548841e2ed29fa637 |
|
30-Sep-2014 |
Zach Johnson <zachoverflow@google.com> |
Prune BTM_SetSecurityMode and GAP_SetSecurityMode BTM_SetSecurityMode was only used from GAP_SetSecurityMode, and GAP_SetSecurityMode was never used.
/system/bt/stack/include/gap_api.h
|
24933b5b1a06274c47133debac5251a97128a267 |
|
25-Sep-2014 |
June R. Tate-Gans <jtgans@google.com> |
Removing unnecessary BTAPI #defines.
/system/bt/stack/include/gap_api.h
|
16fe0822ccd3eb6f66d3afd9965d25a0a0cb4c30 |
|
07-Aug-2014 |
Prerepa Viswanadham <dham@google.com> |
Use run time parameters to control LE features Use values read from controller to enable and control LE features such as multi advertising, RPA offload, maximum irk size etc bug 15393216 Change-Id: I193e2b9a0dc61b86f667e986803571440e390160
/system/bt/stack/include/gap_api.h
|
7fa4fba6f59f97df00aff07dbe8fb21b114b3c2c |
|
17-Apr-2014 |
Ganesh Ganapathi Batta <ganeshg@broadcom.com> |
Merge BT 4.1 features The features include: - LE Peripheral Mode - Link Layer topology (LE Central & Peripheral Concurrency) - Dual Mode Topology (Ability to choose LE transport when connecting with other Dual Mode devices) - Fast advertising Interval - Limited Discovery Time Changes - GAP Authentication and Lost Bond - Dual Mode Addressing - Common Profile and Service Error Code - 32 bit UUIDs Change-Id: Ic6701da4cf6aaa390ff2c8816b43157f36b7fb42 Conflicts: stack/btu/btu_hcif.c
/system/bt/stack/include/gap_api.h
|
a0cf8d6f47fd6709085b9ad2c8626986f7ae7f21 |
|
05-Apr-2014 |
Zhihai Xu <zhihaixu@google.com> |
remove all advertised services in SDP btif_av_init is called twice. Don't need call it in enable. disable EDR ATT SDP record bug:13558005 Change-Id: Id834697eae150018f9a0382d9c1e6c972e885739
/system/bt/stack/include/gap_api.h
|
ead3cde4bac0c3e32cd31f149093f004eef8ceeb |
|
06-Feb-2013 |
Ganesh Ganapathi Batta <ganeshg@broadcom.com> |
Initial version of BLE support for Bluedroid Change-Id: I9825a5cef9be2559c34c2a529b211b7d471147cf
/system/bt/stack/include/gap_api.h
|