summaryrefslogtreecommitdiff
path: root/system/doc
AgeCommit message (Collapse)Author
2024-07-02Remove system/audio_a2dp_hw Henri Chataing
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
2023-08-04Remove obsolete documentation David Duarte
Bug: 294615573 Test: mmm packages/modules/Bluetooth Change-Id: I87d211dfad6336a192176127e69f5c2efadd88de
2020-11-24btsnoop_net: Fix instruction for btsnoop logs Ɓukasz Rymanowski
Change-Id: Ib014a39f108c7e947f0bbf589d6c3c8b15d4bb7d
2020-10-20Inclusive Language Updates Martin Brabham
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
2020-10-14Inclusive Language Updates Martin Brabham
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
2020-07-31Address one of my TODOs from 2014 Zach Johnson
Finally remove BTM_ReadLocalFeatures Bug: 159815595 Tag: #refactor Test: compile & verify basic functions working Change-Id: I2312e8e72343591e3c42bcf27400e06b19f76042
2019-01-09Remove code related to Health Device Profile and MCAP Protocol Jack He
* 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)
2018-06-01Add documentation for enabling PTS mode Hansong Zhang
Test: not needed Change-Id: I8a65e3a4bac4de72ec20c73e6b553f2565c9e1de
2018-05-24Add separate sniff mode settings for gamepads Kim Low
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
2017-10-23Make copyright headers consistent with Google template; remove "(C)" Jakub Pawlowski
Test: Comment changes only; still compiles... Change-Id: Id699a8170112f06e4a2c9f2e0f0834d1817ace4e
2017-02-08osi: Remove unused eager_reader code Myles Watson
Test: Builds Change-Id: Id5c7a8b9ca59ec90c3d2d0d4935f3f5ff287c433
2017-02-02Initial HIDL conversion Andre Eisenbach
Test: Unit tests, VTS test, device sanity Change-Id: Ia5b2b5fa762d240c0490666d50ea5c878631fcd1
2016-12-15Replace assert with CHECK from base/logging.h Jack He
* 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
2016-12-01Fix asterisks in block quotes Myles Watson
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
2016-10-17Renamed most C files to C++: *.c to *.cc Pavlin Radoslavov
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
2016-10-04vendor_lib: Apply clang-format with the new config Myles Watson
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
2016-09-15Update the style guide Myles Watson
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
2016-09-06Updating QDID to reflect the certfication done for N. pkanwar
Change-Id: Ia80cb82c833df341f832d2ab8cc71a868e2c8f5e (cherry picked from commit 0443cd64e156940d0823327095d2c59a46798c13)
2016-04-04Bring back support for legacy bt_config.xml Alain Vongsouvanh
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
2016-02-10Remove code related to legacy config file Ajay Panicker
Change-Id: Ia82d9bbffcc5df1ec4cddff28d812ca221505ab9
2015-10-29Rename net_test_bluedroid to net_test_bluetooth Andre Eisenbach
Also remove other bluedroid references. Change-Id: I349e48e50b0a0a45ca1267a765145299837601d3
2015-10-20doc: add supported features document Scott James Remnant
Summarize the versions and roles of each profile/protocol listed in our Qualified Design, and provide a link to the QDID. Change-Id: I8cfbbd466c684cb95de5433b3d7fa0f1fd567689
2015-10-19Correct project name in Style Guide Scott James Remnant
Change-Id: I07f41629b06820b85bf95ca255c68fc2ea78217a
2015-10-19GKI cleanup - moved GKI buffer allocation wrappers to OSI Pavlin Radoslavov
* 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
2015-04-15Add a section in style guide: __func__ should be used over __FUNCTION__. Sharvil Nanavati
Change-Id: I93eb3e512b6030818b06a63f13999bd45dcfec4e
2015-04-08Add a section on assertions to the style guide. Sharvil Nanavati
Change-Id: I5627b5b2d6b25f0472c53b8150b14bab79b200c3
2015-04-07Add a 'Bluedroid conventions' section to the style guide. Sharvil Nanavati
Also introduce a memory management section underneath 'Bluedroid conventions' that describes common ownership semantics. Change-Id: I9f1f148437fe21788618bcdc884b2eea5cbff141
2015-04-07Add a section to the style guide on variable declarations. Sharvil Nanavati
Change-Id: I0eaa435378b56953c1c228c795d0b4bf9bd8ce6c
2015-04-07Minor cleanup of formatting in style guide. Sharvil Nanavati
Remove trailing whitespace on a line and add inline code quotations. Change-Id: I2f85ddf95f0dcfb0d9fdb1e6663315be15efeb62
2015-03-25Add section on booleans and bitfields to the style guide Zach Johnson
Change-Id: I75df8b638d71bfe2ba1dc98d3eb148d8a61f5b9c
2015-03-24Style guide: Use C99 style flexible arrays Andre Eisenbach
Change-Id: I012d9f4195833e2c6c9a5c953e71b7a7b5847673
2015-03-23Extend Bluetooth startup timeout from 3s to 8s Andre Eisenbach
Change-Id: I0e8af541bf9c5837d92b5ccc047b3dd9d3765767
2015-03-16Code formatting and language feature additions to the style guide. Sharvil Nanavati
2015-03-16Start putting together a style guide for bluedroid. Sharvil Nanavati
It's far from complete but provides a starting point for codifying best practices and guidelines for developing in this codebase.
2015-03-16Adding some documentation for the power management flow. June R. Tate-Gans
2015-03-16First pass at the bluedroid profile manager. June R. Tate-Gans
2015-03-16Add a simple classic peer Zach Johnson
2015-03-16Canonicalize HCI logtags with bt_ prefix Zach Johnson
2015-03-16Directory layout documentation Chris Manton
2015-03-16Document network ports used by bluedroid. Sharvil Nanavati
2015-03-16Document the set of log tags used by bluedroid. Sharvil Nanavati
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.
2014-07-09Add template doc for Android properties used by bluedroid. Sharvil Nanavati
Change-Id: Idafbaa69161a7fa01a381d9b4fc5d9f41bc5695f
2014-06-11Allow btsnoop logs to be read over a local socket. Sharvil Nanavati
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