| Age | Commit message (Collapse) | Author |
|
Remove unused definitions, move+duplicate used definitions
to appropriate locations
Bug: 349688122
Test: m com.android.btservices
Flag: EXEMPT, dead code removal
Change-Id: I9982e5a965b86711b12b47df212655db6cc6db00
|
|
Bug: 294615573
Test: mmm packages/modules/Bluetooth
Change-Id: I87d211dfad6336a192176127e69f5c2efadd88de
|
|
Change-Id: Ib014a39f108c7e947f0bbf589d6c3c8b15d4bb7d
|
|
slave -> peripheral
SLAVE -> PERIPHERAL
Slave -> Peripheral
BYPASS_INCLUSIVE_LANGUAGE_REASON=required_to_explain_the_update
Bug: 170342881
Tag: #refactor
Test: cert/run --host
Test: atest --host bluetooth_test_common
Test: atest --host bluetooth_test_gd
Test: atest net_test_btif
Change-Id: I4a3cccc0c1d182f172a21a6c70d569e5a89a5916
Merged-In: I4a3cccc0c1d182f172a21a6c70d569e5a89a5916
|
|
master -> central
MASTER -> CENTRAL
Master -> Central
BYPASS_INCLUSIVE_LANGUAGE_REASON=required to explain the update
Bug: 170342881
Tag: #refactor
Test: cert/run --host
Test: atest --host bluetooth_test_common
Test: atest --host bluetooth_test_gd
Test: atest net_test_btif
Change-Id: I861ca756f04c06547ee9cb580029404308c678f2
Merged-In: I861ca756f04c06547ee9cb580029404308c678f2
|
|
Finally remove BTM_ReadLocalFeatures
Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I2312e8e72343591e3c42bcf27400e06b19f76042
|
|
* Health Device Profile (HDP) and MCAP protocol has been largely
replaced by BLE. New applications should use Bluetooth Low Energy
instead of legacy Bluetooth Health Device Profile
Bug: 111562841
Test: make, unit test, use Bluetooth
Change-Id: I3da1173a8a928af4b26a29e71746241c22af2236
Merged-In: I3da1173a8a928af4b26a29e71746241c22af2236
(cherry picked from commit 8e5dff56bab2f8fa8b30705c5b5b2b34f0aa6928)
|
|
Test: not needed
Change-Id: I8a65e3a4bac4de72ec20c73e6b553f2565c9e1de
|
|
For gamepads, the sniff intervals need to be much shorter. The
min is set to 14 slots (8.75ms) and max is set to 18 slots
(11.25ms).
Test: Load >=4.10 hid-sony driver, connect a DualShock4, check its
responsiveness.
Wait for 5 minutes, wake it up (if it went into PARK mode)
and check that it's still as responsive.
Furthermore, use a Bluetooth sniffer to confirm the sniff
interval.
Bug: 38511270
Change-Id: I27e2e0c8e88ab51800c4976e0971c92a3793f8d2
|
|
Test: Comment changes only; still compiles...
Change-Id: Id699a8170112f06e4a2c9f2e0f0834d1817ace4e
|
|
Test: Builds
Change-Id: Id5c7a8b9ca59ec90c3d2d0d4935f3f5ff287c433
|
|
Test: Unit tests, VTS test, device sanity
Change-Id: Ia5b2b5fa762d240c0490666d50ea5c878631fcd1
|
|
* 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
|
|
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
|
|
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
|
|
cd vendor_libs/test_vendor_lib/
clang-format ../linux/bt_vendor_linux.c -style=file -i
clang-format include/* test/* src/* -style=file -i
Update the style guide since clang-format help uses the
-style=file option.
Test: mm -j32
Change-Id: I166adfb2bb9a87fefa1242c91e5f180011caa2ad
|
|
Add a pointer to the C++ style guide.
Add a HOWTO for those who have outstanding patches that
they'd like to reformat.
Change-Id: Ia749c6498424cfbdf0bb759a1736978f91a34289
|
|
Change-Id: Ia80cb82c833df341f832d2ab8cc71a868e2c8f5e
(cherry picked from commit 0443cd64e156940d0823327095d2c59a46798c13)
|
|
If a device migrates directly from L or earlier to a version using this
new implementation, all bt_config will be lost, requiring to repair to
the devices.
Change-Id: Ifdca0d8cad8efaa9f503ca40ac0725547a06f15c
|
|
Change-Id: Ia82d9bbffcc5df1ec4cddff28d812ca221505ab9
|
|
Also remove other bluedroid references.
Change-Id: I349e48e50b0a0a45ca1267a765145299837601d3
|
|
Summarize the versions and roles of each profile/protocol listed
in our Qualified Design, and provide a link to the QDID.
Change-Id: I8cfbbd466c684cb95de5433b3d7fa0f1fd567689
|
|
Change-Id: I07f41629b06820b85bf95ca255c68fc2ea78217a
|
|
* Moved the following GKI buffer allocation functions to OSI:
- GKI_getbuf() -> osi_getbuf()
- GKI_freebuf() -> osi_freebuf()
- GKI_get_buf_size() -> osi_get_buf_size()
For now we need the osi_getbuf() / osi_freebuf() allocation wrapper,
because we need to be able to call osi_get_buf_size() on the allocated
buffer.
In the future those should be replaced with osi_malloc() / osi_free().
Currently, the osi_malloc() buffer size internal allocation tracker
does not always track the size, hence we need the osi_getbuf() wrapper.
* Replaced GKI_MAX_BUF_SIZE with BT_DEFAULT_BUFFER_SIZE
* Added new file include/bt_common.h that can be usee to include
few files that should be included alost everywhere (e.g. bt_target.h"
NOTE: This file might be removed in the future and we should include
everywhere the right set of header files.
* Removed some of the GKI-related references
* Removed file include/gki_target.h
Change-Id: Ie87830e73143de200746d54235aa99f228a95024
|
|
Change-Id: I93eb3e512b6030818b06a63f13999bd45dcfec4e
|
|
Change-Id: I5627b5b2d6b25f0472c53b8150b14bab79b200c3
|
|
Also introduce a memory management section underneath 'Bluedroid
conventions' that describes common ownership semantics.
Change-Id: I9f1f148437fe21788618bcdc884b2eea5cbff141
|
|
Change-Id: I0eaa435378b56953c1c228c795d0b4bf9bd8ce6c
|
|
Remove trailing whitespace on a line and add inline code quotations.
Change-Id: I2f85ddf95f0dcfb0d9fdb1e6663315be15efeb62
|
|
Change-Id: I75df8b638d71bfe2ba1dc98d3eb148d8a61f5b9c
|
|
Change-Id: I012d9f4195833e2c6c9a5c953e71b7a7b5847673
|
|
Change-Id: I0e8af541bf9c5837d92b5ccc047b3dd9d3765767
|
|
|
|
It's far from complete but provides a starting point for codifying
best practices and guidelines for developing in this codebase.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Going forward, we should clean up the log tags to use a consistent
naming scheme. All log tags should be lowercase and should use
underscores instead of hyphens.
|
|
Change-Id: Idafbaa69161a7fa01a381d9b4fc5d9f41bc5695f
|
|
This change allows real-time HCI debugging over adb from a
Linux box using hcidump.
Example:
--------
adb forward tcp:8872 tcp:8872
nc localhost 8872 | hcidump -X -r /dev/stdin
Change-Id: I49c32a941f71f612807061284a755a38b76588ff
|