Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 764073b1 authored by Jack He's avatar Jack He
Browse files

HFP: Dump state machine message verbatim

* Override StateMachine.getLogRecString(Message) method so that state
  machine messages are dumped verbatim into dumpsys output
* Use StringBuilder to build strings in getLogRecString(Message) and in
  HeadsetStackEvent.toString() to avoid costly String copy
* Optimize HeadsetStackEvent.getTypeString() to return static string
  directly
* Create HeadsetMessageObject base class to define toString() and
  buildString() interfaces
* Add buildString() methods to:
  - HeadsetDeviceState
  - HeadsetCallState
  - HeadsetClccResponse
  - HeadsetVendorSpecificResultCode
  - HeadsetStackEvent
* Split above classes into individual files

Bug: 72896133
Test: make, adb shell dumpsys bluetooth_manager
Change-Id: I319af5103168d41adf75feb2f0adad88c1c41e5f
parent e91d68a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment