aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Hearing Aid Dump Audio Tool: Add No Start Cmd featureweichinweng2019-03-111-0/+21
| | | | | | | | | | When the HCI Snoop logs wraparound, the Hearing Aid Audio Control Command "Start" is lost. For the case, we can enable No Start Cmd feature to set a fake "Start" to extract audio data. Bug: 127745964 Test: ./dump_hearingaid_audio.py -c1 1 -c2 3 -ns true btsnoop_hci.log Change-Id: Id7f67da0d5476faf38352ab57339fed8e358bac6
* Merge "Hearing Aid: Add python script to dump audio data to file"Weichin Weng2019-01-311-0/+510
|\
| * Hearing Aid: Add python script to dump audio data to fileweichinweng2019-01-291-0/+510
| | | | | | | | | | | | | | | | | | Bug: 121005659 Test: ./dump_hearingaid_audio.py btsnoop_hci.log ./dump_hearingaid_audio.py -f folder btsnoop_hci.log ./dump_hearingaid_audio.py -f folder -c1 1 -c2 3 btsnoop_hci.log ./dump_hearingaid_audio.py -f folder -a 121 btsnoop_hci.log Change-Id: I304531ecb5c5bd6cfc264130176d26acc60a64c2
* | Remove code related to Health Device Profile and MCAP ProtocolJack He2019-01-0912-2401/+0
|/ | | | | | | | | | | | * 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 dc13609b58b2f6c6185951f650036f5098e19e92)
* Metrics: Add python script to dump metrics into ASCII formatJack He2018-07-171-0/+140
| | | | | | Test: make, ./dump_metrics_ascii.py proto/bluetooth/metrics/bluetooth.proto Change-Id: Ie671fa2c2ceb9f93ed62495b592a2cf9d69ff41b
* Remove unused `tags` property from Android.bp filesDan Willemsen2018-05-081-1/+0
| | | | | | | | | | | | | | | | | | The tags property is (and has always been) unused by Soong. The property has been defined as a list of strings, and the `androidmk` converted any LOCAL_MODULE_TAGS entries over to it, but we've never done anything with it. In preparation for removing the definition from Soong, I'm removing it from all Android.bp files in the tree. Since this has never done anything, this is a no-op, but if you really did want the Android.mk behavior, the proper way to define a module to be installed in userdebug / eng builds is to use PRODUCT_PACKAGES_DEBUG or PRODUCT_PACKAGES_ENG in the appropriate product makefile. Change-Id: I48cba711acbc030a98aea674016a0d53f8b5e4aa Exempt-From-Owner-Approval: global no-op build change Test: remove `tags` from Soong, see errors go away.
* Make copyright headers consistent with Google template; remove "(C)"Jakub Pawlowski2017-10-2316-17/+17
| | | | | Test: Comment changes only; still compiles... Change-Id: Id699a8170112f06e4a2c9f2e0f0834d1817ace4e
* Move Bluetooth headers to system/bt (1/3)Jakub Pawlowski2017-10-191-1/+0
| | | | | | Bug: 67853426 Test: run Bluetooth Change-Id: I75748d29a35d10d377d39e0441116dbfd04c82e9
* Remove hw_module_t dependency in Bluetooth - cleanupJakub Pawlowski2017-10-181-1/+0
| | | | | Bug: 67853426 Test: run Bluetooth
* Linux build fixJakub Pawlowski2017-10-181-1/+1
| | | | Test: compile using ninja
* Move include->internal_include (1/2)Jakub Pawlowski2017-10-171-1/+1
| | | | Change-Id: If351c7d51a380c33ec9bae3b3f240ed53639f3c9
* Remove hw_module_t dependency in Bluetooth (1/3)Jakub Pawlowski2017-10-171-19/+8
| | | | | | | Bug: 67853426 Test: run Bluetooth Merged-In: Ia3808552137d1f770f2c0305aaa01181f383d064 Change-Id: Ia3808552137d1f770f2c0305aaa01181f383d064
* Use one type for UUID (1/5)Jakub Pawlowski2017-09-252-7/+7
| | | | | | | | | | | | | | | | | 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
* Linux build fixJakub Pawlowski2017-07-141-0/+1
| | | | | Test: build on linux using ninja Change-Id: I3b0102814433ca88611fbc863271fe065d443c68
* Make RawAddress into a class (1/3)Jakub Pawlowski2017-07-067-38/+18
| | | | | | | | | | | | | | | | * Add libbluetooth-types - library containing types implementation, that is common between stystem/bt and packages/apps/Bluetooth. It must be included in every project using btif interface. * Put Raw Address implementation into libbluetooth-types * Unify all "to/from string" helper methods into ToString and FromString * bd_addr_empty -> RawAddress::kEmpty * bd_addr_any -> RawAddress::kAny Also fix leaks in jni str2addr by adding ReleaseStringUTFChars Test: types_unittest Change-Id: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043 Merged-In: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043
* Rename bt_bdaddr_t into RawAddress (3/3)Jakub Pawlowski2017-06-287-33/+32
| | | | | Test: compilation test Change-Id: I4571721a0c6165a66450ee157a53d8d15bfc45d0
* Get rid of bdcpy, bdcmp and other BD_ADDR helpersJakub Pawlowski2017-06-192-6/+6
| | | | | Test: compilation test Change-Id: I37f17bfb3826b59797373645691c61bfbaefdbfd
* Get rid of no longer necessary bt_bdaddr_t helpersJakub Pawlowski2017-06-201-1/+1
| | | | | | | | This are now implemented by the "==" and copy operator Test: compilation test Change-Id: I4438c54a9238ad9f3083f7f8a8159d1b7f0f9b32
* Linux build fixJakub Pawlowski2017-06-061-0/+2
| | | | Change-Id: I2850577447a605877a8bc12f5ad852cacf4e0b3e
* MCAP: Add a test tool for MCAPJack He2017-05-2512-0/+2430
| | | | | | | | | | | | * Add a command line tool for MCAP related tests * This tool can access the Bluetooth stack via a command line program * Type "help" to obtain a list of available console commands in this Bluetooth * Bluetooth must be disabled when this tool is running Bug: 37867299 Test: make, PTS MCAP test Change-Id: I106e6625ee8a29b7fdad88cdfeb99419054ef771
* scripts: modify change_types.sh to skip matching "<data type>_"Ruchi Kandoi2017-01-041-1/+1
| | | | | | | | | Script erroronously modifies UINT8_TO_BE_STREAM() to uint8_t_TO_BE_STREAM(). Modidy the script to prevent that. Test: Manual; Run the script on system/nfc Change-Id: I9e130b8eb79e400282233fad7da206b4bb1301af Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
* Apply clang-format to the rest of the treeMyles Watson2016-12-023-236/+230
| | | | | | | find * | grep "\.[ch]" | xargs clang-format --style=file -i Test: mma -j32 Change-Id: I6fcc9862bb7bc07c2a367ca58fef2b3cd27a6f05
* A2DP-related naming refactoring and cleanupPavlin Radoslavov2016-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Renamed A2DP-related function names, types, constants and fields. Also, move some of those functions to a better location. - tAVDT_DATA_CBACK -> tAVDT_SINK_DATA_CBACK - tAVDT_MEDIA_CBACK -> tAVDT_SINK_MEDIA_CBACK - p_data_cback -> p_sink_data_cback - p_media_cback -> p_sink_media_cback - p_app_data_cback -> p_app_sink_data_cback - tBTA_AV_DATA_CBACK -> tBTA_AV_SINK_DATA_CBACK - BTA_AV_MEDIA_SINK_CFG_EVT -> BTA_AV_SINK_MEDIA_CFG_EVT - BTA_AV_MEDIA_DATA_EVT -> BTA_AV_SINK_MEDIA_DATA_EVT - bta_av_stream_data_cback() -> bta_av_sink_data_cback() - bte_av_media_callback() -> bte_av_sink_media_callback() - tBTA_AV_CODEC -> tA2D_CODEC - btif_a2dp_get_track_frequency() -> A2D_sbc_get_track_frequency() - btif_a2dp_get_track_channel_count() -> A2D_sbc_get_track_channel_count() - dump_codec_info() -> A2D_sbc_dump_codec_info() * Misc. other cleanup: - log messages cleanup - normalize usage of "+=" in Android.mk files Change-Id: Ida1528fb5d75cc322533f921daefb65be44562f1
* Use standard types, consistent ifdef style everywhereMarie Janssen2016-08-051-2/+10
| | | | | | | | | | | | | | | 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
* Restart failed system calls interrupted with errno of EINTRPavlin Radoslavov2016-05-121-1/+4
| | | | | | | | | | | | | | | | | In number of places we don't handle properly system calls failures when the errno is EINTR (i.e., the system call was interrupted by a signal). In all our use cases, the system calls should be restarted. The handling of the following system calls (as used in the code) has been updated/fixed: poll, send, recv, sendmsg, nanosleep, epoll_wait read - mostly (e.g., socket-like fds) write - mostly (e.g., socket-like fds) select, accept, connect Bug: 28471477 Bug: 28658141 Change-Id: I03e6f0f67e33876780fb6d02c33eb84547ba8f95
* Fix btsnooz.py multi-line base64 decodingAndre Eisenbach2016-04-041-4/+13
| | | | Change-Id: Ie915c52d8a7eada10f68999c40a2b50b35f640e2
* Btsnooz doesn't find snooplog sometimesAjay Panicker2016-03-011-1/+1
| | | | | | | | | In the bugreport in b/27274486 comment #11, the line indicating the beginning of BTSNOOP LOGS was slightly indented thus causing btsnooz to not find the beginning of the log. Bug: 27419027 Change-Id: I3b88e6a3f6f2d6c4d3cbbadb0a93cbd7965f56c8
* Swapped memset paramsEdward Savage-Jones2016-02-261-1/+1
| | | | | | Incorrect usage of memset Change-Id: I7d96c560c4b462c2794b63eb66c7272b1280ba23
* Add tool to extract and view snooz logs from a bugreportAjay Panicker2016-02-232-1/+76
| | | | Change-Id: I3893d094a1b1dd7853016d1f539f8998cdc84833
* Cleanup C and C++ compiler flagsPavlin Radoslavov2016-02-122-3/+12
| | | | | | | | | | | | | | | | | | | | | | Cleanup the setting of C and C++ compiler flags: * (Almost) all compiler flags are set uniformly in the system/bt/Android.mk file. * Enable by default breaking the compilation if there is a compilation warning: -Werror * Enable most compilation warnings: -Wall -Wextra * Renamed Android.mk related flags: - bdroid_C_INCLUDES -> bluetooth_C_INCLUDES - bdroid_CFLAGS -> bluetooth_CFLAGS * Introduce variables for C-only and C++ only compiler: - bluetooth_CFLAGS: common C and C++ compiler flags - bluetooth_CONLYFLAGS: C only compiler flags - bluetooth_CPPFLAGS: C++ only compiler flags * Disable warnings for existing issues - to be removed as issues are resolved * Add a workaround for libchrome and -DNDEBUG usage. Bug: 26879229 Change-Id: Ie7595965ca0c8ead0e95e983e76c327e7891b2c3
* Assume input from /dev/stdin if no argument provided to btsnooz.py.Sharvil Nanavati2016-02-011-10/+8
| | | | Change-Id: I54bd137e67eb1fc959663189bcdaac4690c2c645
* Move btsnooz.py script from Android Wear to the BT stack project.Sharvil Nanavati2016-01-211-0/+159
| | | | Change-Id: I8368820b5ed9325d2c3b82885b9fe934c6bc87ca
* Add socket tx/rx accountingAdam Lesinski2016-01-201-4/+6
| | | | | | | | Records network traffic going over bluetooth sockets. This patch adds support for L2CAP and RFCOMM. Bug: 26039657 Change-Id: Id30d69e4cd648f0e88ab23517e3b94f29b393995
* Add script to change data types to native C typesAndre Eisenbach2016-01-071-0/+77
| | | | | | | Please see source code for usage information and application. Bug: 22948224 Change-Id: Ia2dbd618ddcdf13abf3c63d4649147f400e00cfe
* Disable bdtool compilationAndre Eisenbach2015-12-093-0/+0
| | | | | | | | For re-factoring purposes, the dependencies are broken. Need to re-evaluate tool usage and port to new bluetoothtbd HAL layer if necessary. Change-Id: I27b2ad3d78c67a12c67d8db9f506f94888bea70f
* Removed libpower-related references.Pavlin Radoslavov2015-11-052-2/+1
| | | | | | | | Removed libpower-related references, because those are not needed anymore. Now, the wakelock-related calls and references are implemented within osi/src/alarm.c Change-Id: Ifdb232b9724af216b9b414f8b65e85cd713c20d3
* Add libpower as a dependency to all device targets that include libosi.Sharvil Nanavati2015-09-092-1/+2
| | | | | | Bug: 23902077 Change-Id: Icc7119a2b3199310e2210d46f599da00261fdff6
* Revert "Add libpower to all build targets that depend on libosi."Bart Sears2015-09-102-2/+1
| | | | | | This reverts commit 5997f91a5224ac6072eff11c89b7b9658d3d7df0. Change-Id: If682757bca55ecc0057bdd058b654ecbdcc7e50a
* Add libpower to all build targets that depend on libosi.Sharvil Nanavati2015-09-092-1/+2
| | | | Change-Id: I26e8b27077a6bd016198b90c5aabb2b2d7cdcaa2
* Add a SCO routing command to net_hci.Sharvil Nanavati2015-07-161-0/+27
| | | | | | | This allows us to change the SCO routing parameters at runtime while debugging / doing device bringup. Change-Id: I8bafb7c7fb7ad7470d378cd14a7ee4aad63f3b9b
* Include log library to make bdtoolNitin Arora2015-04-021-1/+1
| | | | | | | | | This change adds the liblog library in the make file for bdtool to provide for separate compilation of the tool without causing link errors while importing libosi Change-Id: I87752ef7e1026080bd56fb377c73b457775f12a3
* Using generic format specifier for logging pointersNitin Arora2015-04-021-1/+1
| | | | | | | | | | This change uses generic format specifier for logging the pointers which can be 64 bit or 32 bit depending upon the system used for compilation. Also address of operator is used before casting a int variable to void pointer. Change-Id: Ie9dec408f3a5f674079f77c047d8192f65a004ca
* Fix compile error on FuguAndre Eisenbach2015-04-021-0/+1
| | | | Change-Id: I389acc5c5034e1b232da0307f77577b939af68ac
* Use fully qualified path for OSI includes.Sharvil Nanavati2015-03-162-2/+2
|
* property api unification, naming and testingChris Manton2015-03-162-21/+24
|
* bt property objectChris Manton2015-03-161-3/+4
|
* Rename Bluetooth binaries to use the net_ and net_test_ prefixes.Sharvil Nanavati2015-03-162-2/+2
|
* Extend bdtool to accept / initiate SCO connections.Sharvil Nanavati2015-03-161-3/+81
| | | | | This is a great way to run controlled audio quality experiments for the Handsfree profile.
* Remove unused shell script, gen-buildcfg.sh.Sharvil Nanavati2015-03-161-26/+0
|
* Add a "setDiscoverable" command to hci.Sharvil Nanavati2015-03-161-0/+20
|