b5c932fe13c7d0124ce42102d616e4d394d8f877 |
|
19-Jun-2017 |
Pavlin Radoslavov <pavlin@google.com> |
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices Some carkits report SUCCESS for AVDTP RECONFIGURE commands when changing A2DP codec configuration. However, there is no audio coming from the carkit. Bug: 37625892 Test: Manual - A2DP Codec reconfiguration while streaming audio Change-Id: I01f37a2514e490986a20e96ace78c92463403396 Merged-In: I01f37a2514e490986a20e96ace78c92463403396 (cherry picked from commit e91297a4d1a77ae0c367fbe756090b7357e9893a)
/system/bt/btif/src/btif_storage.cc
|
514274c60b52425c09d62d2afb1546707c9d8ab1 |
|
18-Apr-2017 |
Stanley Tng <stng@google.com> |
Allow the Bluetooth MAC address to be updated asynchronously (3/3) There are intermittent issues where either the returned Bluetooth MAC address to Java framework is uninitialized or this address update arrives too late. This fix will do 2 things: (1) Returns error when MAC address is unavailable in the native code. (2) Updates the MAC address later by adding a new broadcast event. Test: Check address for these cases: factory reset, system reboot, and Bluetooth re-enable. Bug: 36709382 Change-Id: I7b1c526ee227897c003ac921078f317f96b92604 (cherry picked from commit 7dc0525365025e17e289869288b1b7d5146306cc)
/system/bt/btif/src/btif_storage.cc
|
1c7a152a96e68c5f5e140f7f47ed2734588cb9e0 |
|
22-Dec-2016 |
Myles Watson <mylesgw@google.com> |
btif: Remove platform-specific address logic This functionality has moved to hardware/interfaces/bluetooth/ Test: Boot and check the address. Change-Id: Idf714e514314c10dc1659f024ab4cc8570f292b7
/system/bt/btif/src/btif_storage.cc
|
0c70d8ed5f7983bd9d70f4d8e38e7e72de4e12f7 |
|
21-Nov-2016 |
Srinu Jella <sjella@codeaurora.org> |
Update UUIDs immediately on NVRAM As the BTIF config updation have delay in writing items to the NVRAM, some times there is a chance of not updating incase of battery removal happens before the actual write onto NVRAM. As SDP UUIDs is important data to store, it will update immediately onto NVRAM. Test: manual Change-Id: I6637dc326f3a53211a5bbf988a2dca1020203128
/system/bt/btif/src/btif_storage.cc
|
19e3d703b251de6ed5c2262f9e3d9b275283f1d4 |
|
09-Jan-2017 |
Jakub Pawlowski <jpawlowski@google.com> |
Remove unnecessary cutils dependency Test: build with ninja and mma Change-Id: I31688da8a554ed71b580c30a0e4c000ea4903d70
/system/bt/btif/src/btif_storage.cc
|
8843cc830b522cfe6f1e361297fc28fd331a1378 |
|
17-Apr-2014 |
Hemant Gupta <hemantg@codeaurora.org> |
HIDD: Add support for HID Device Role This patch adds support for HID Device role in bluedroid stack allowing DUT to be used as Keyboard or Mouse. Bug: 33011576 Change-Id: I45b581a54f6c7bbc1f25226715a7ea23e34255c0
/system/bt/btif/src/btif_storage.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/btif/src/btif_storage.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/btif/src/btif_storage.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/btif/src/btif_storage.cc
|
40cde56d28ab9751ba76bded0b7ac5974c750a97 |
|
21-Oct-2016 |
Myles Watson <mylesgw@google.com> |
btif: Add do-while blocks to macros Test: mma -j32 Change-Id: Ie82465b8cef6c4f527fad13892abb365e15dad7c
/system/bt/btif/src/btif_storage.cc
|
f45481678af0694902b5200ba69ced4cb61d73f0 |
|
19-Oct-2016 |
Myles Watson <mylesgw@google.com> |
btif: Fixup clang-format In src/btif_sock_l2cap.cc: Move a comment before the define and run clang-format again. Fix formatting in comments that were more than 80-characters wide. Test: mma -j32 Change-Id: I17465a1425d1de9a28f0675fe65c8529359a87af
/system/bt/btif/src/btif_storage.cc
|
6bd442f543972b072ef2cbbcf2f7c91202de1045 |
|
19-Oct-2016 |
Myles Watson <mylesgw@google.com> |
btif: Apply clang-format clang-format doesn't understand block quotes of this form: /* This is not handled well ** because there are two asterisks **/ cd btif/ # Replace '**' at the beginning of the line with ' *' sed 's/^[*][*]/ \*/' -i include/* src/* test/* co/* clang-format --style=file -i src/* include/* test/* co/* Test: mma -j32 Change-Id: I2477eae5480602d5b2fee5ec89c9ed7888022341
/system/bt/btif/src/btif_storage.cc
|
193e43ab55baa1626fd26fc5aace79f7103169d0 |
|
15-Oct-2016 |
Subramanian Srinivasan <subrsrin@codeaurora.org> |
Add device record for BR/EDR devices with derived LE keys Loads BLE keys stored in NVRAM to btm_sec database for BR/EDR devices with cross transport derived LE keys after BT reset. This change also makes sure that after BT reset, while loading the bonded devices from NVRAM, the bonded devices(with device type BR/EDR and having derived BLE keys) are also added to the resolving list after loading the IRK into btm_sec database. Test: vendor Change-Id: I1c9164a947526cf2ea36156458d148f5cbee778f
/system/bt/btif/src/btif_storage.cc
|
80d7f60680f483a71e413f2453ab20013aff5c5c |
|
02-Mar-2016 |
George Burgess IV <gbiv@google.com> |
Replace all uses of sprintf() with snprint() - sprintf() does not limit the length of the character string when writing to a buffer and may result in buffer overflow - snprintf() requires the maximum write length as a parameter. When the maximum length supported is smaller than the reserved buffer length, the call will not result in buffer overflow Bug: 31859081 Test: TestTracker/64195/3975 Change-Id: I519f8ef7b9b162fd79094f89148250d783c734c0
/system/bt/btif/src/btif_storage.cc
|
b7f64bc45dec7f7fec74ceb04874f322b9434bbf |
|
22-Jun-2016 |
Marie Janssen <jamuraa@google.com> |
btif: standardize types, #ifs 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__ Change-Id: Ic29d1d0b32c3ca9953752a4e5da6c28f45ec8895
/system/bt/btif/src/btif_storage.cc
|
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/btif/src/btif_storage.cc
|
63b0519c3f0d1c0cc523e0e9553c60fc68651acc |
|
20-May-2016 |
Chih-Hung Hsieh <chh@google.com> |
Fix misc-macro-parentheses warnings When compiled with WITH_TIDY=1, clang-tidy warns about missing parameters around macro parameters. Bug: 28705665 Change-Id: I89c23cfe6eaefae5ef3c648a7c123c0501662c13
/system/bt/btif/src/btif_storage.cc
|
d1d0f1b51469e908bb94750753367de9425a075b |
|
16-May-2016 |
Marie Janssen <jamuraa@google.com> |
btif: Remove dead code from btif_storage Change-Id: I3ee4d8fd3a7697e0113d955982b21db123354a86
/system/bt/btif/src/btif_storage.cc
|
1d92d06c857f2f1d5b09056a8c826568019c8d66 |
|
11-May-2016 |
Marie Janssen <jamuraa@google.com> |
btif: only save config when bonded devices change Bug: 27354612 Change-Id: I15f816c85d3ab1991abf076f7c1ae2914d773d54
/system/bt/btif/src/btif_storage.cc
|
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/btif/src/btif_storage.cc
|