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

Commit b8c896a4 authored by xutianguo's avatar xutianguo Committed by Myles Watson
Browse files

HFP: Implement toString for HeadsetPhoneState



Test: Run adb shell dumpsys bluetooth_manager and check the output.

Change-Id: I35fd89fd6d61e13a7a1b5347550476aabfd0dea1
Signed-off-by: default avatarxutianguo <xutianguo@xiaomi.com>
parent c47637cc
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -108,6 +108,14 @@ class HeadsetPhoneState {
        mStateMachine = null;
    }

    public String toString() {
        return "HeadsetPhoneState [mService=" + mService + ", mNumActive=" + mNumActive
                + ", mCallState=" + mCallState + ", mNumHeld=" + mNumHeld + ", mSignal=" + mSignal
                + ", mRoam=" + mRoam + ", mBatteryCharge=" + mBatteryCharge
                + ", mSpeakerVolume=" + mSpeakerVolume + ", mMicVolume=" + mMicVolume
                + ", mListening=" + mListening + ", mSlcReady=" + mSlcReady + "]";
    }

    void listenForPhoneState(boolean start) {

        mSlcReady = start;