diff options
Diffstat (limited to 'btif')
-rw-r--r-- | btif/Android.bp | 1 | ||||
-rw-r--r-- | btif/include/btif_bqr.h | 8 | ||||
-rw-r--r-- | btif/src/bluetooth.cc | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/btif/Android.bp b/btif/Android.bp index 7f5bdc2d8..8ea736d9c 100644 --- a/btif/Android.bp +++ b/btif/Android.bp @@ -174,6 +174,7 @@ cc_test { "libbluetooth-types", "libosi", "libbt-protos-lite", + "libbluetooth-gd-stub", ], whole_static_libs: [ "libbtif", diff --git a/btif/include/btif_bqr.h b/btif/include/btif_bqr.h index 4407b0d03..ecf69f187 100644 --- a/btif/include/btif_bqr.h +++ b/btif/include/btif_bqr.h @@ -67,6 +67,11 @@ static constexpr int8_t kCriWarnRssi = -80; static constexpr uint8_t kCriWarnUnusedCh = 55; // The queue size of recording the BQR events. static constexpr uint8_t kBqrEventQueueSize = 25; +// The minimum size of the ROOT_INFLAMMATION event +// HCI_VENDOR_SPECIFIC_EVT(1) + BQR sub event(1) + BQR report ID(1) + +// error code(1) + vendor error code(1) = 5 +static constexpr uint8_t kRootInflammationPacketMinSize = 5; + // The Property of BQR event mask configuration. static constexpr const char* kpPropertyEventMask = "persist.bluetooth.bqr.event_mask"; @@ -90,7 +95,8 @@ enum BqrQualityReportId : uint8_t { QUALITY_REPORT_ID_MONITOR_MODE = 0x01, QUALITY_REPORT_ID_APPROACH_LSTO = 0x02, QUALITY_REPORT_ID_A2DP_AUDIO_CHOPPY = 0x03, - QUALITY_REPORT_ID_SCO_VOICE_CHOPPY = 0x04 + QUALITY_REPORT_ID_SCO_VOICE_CHOPPY = 0x04, + QUALITY_REPORT_ID_ROOT_INFLAMMATION = 0x05 }; // Packet Type definition diff --git a/btif/src/bluetooth.cc b/btif/src/bluetooth.cc index ae13843c1..cfcc89d14 100644 --- a/btif/src/bluetooth.cc +++ b/btif/src/bluetooth.cc @@ -72,6 +72,7 @@ #include "osi/include/osi.h" #include "osi/include/wakelock.h" #include "stack/gatt/connection_manager.h" +#include "stack/include/btu.h" #include "stack_manager.h" using bluetooth::hearing_aid::HearingAidInterface; @@ -319,6 +320,7 @@ static void dump(int fd, const char** arguments) { btif_debug_av_dump(fd); bta_debug_av_dump(fd); stack_debug_avdtp_api_dump(fd); + stack_debug_hwbinder_thread_dump(fd); bluetooth::avrcp::AvrcpService::DebugDump(fd); btif_debug_config_dump(fd); BTA_HfClientDumpStatistics(fd); |