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

Commit f74a3c92 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by android-build-merger
Browse files

Merge "AudioService: Add the AudioDeviceBroker's message queue to the dump"...

Merge "AudioService: Add the AudioDeviceBroker's message queue to the dump" am: dab4c89c am: c908a2cd
am: 58e105da

Change-Id: I27df8c162bb413f70eb4d7ad0bc9665c6d03d3df
parents 00ef00f3 58e105da
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -37,9 +37,11 @@ import android.os.PowerManager;
import android.os.SystemClock;
import android.os.UserHandle;
import android.util.Log;
import android.util.PrintWriterPrinter;

import com.android.internal.annotations.GuardedBy;

import java.io.PrintWriter;

/** @hide */
/*package*/ final class AudioDeviceBroker {
@@ -622,6 +624,15 @@ import com.android.internal.annotations.GuardedBy;
        }
    }

    /*package*/ void dump(PrintWriter pw, String prefix) {
        if (mBrokerHandler != null) {
            pw.println(prefix + "Message handler (watch for unhandled messages):");
            mBrokerHandler.dump(new PrintWriterPrinter(pw), prefix + "  ");
        } else {
            pw.println("Message handler is null");
        }
    }

    //---------------------------------------------------------------------
    // Internal handling of messages
    // These methods are ALL synchronous, in response to message handling in BrokerHandler
+3 −2
Original line number Diff line number Diff line
@@ -6441,11 +6441,12 @@ public class AudioService extends IAudioService.Stub

        dumpAudioPolicies(pw);
        mDynPolicyLogger.dump(pw);

        mPlaybackMonitor.dump(pw);

        mRecordMonitor.dump(pw);

        pw.println("\nAudioDeviceBroker:");
        mDeviceBroker.dump(pw, "  ");

        pw.println("\n");
        pw.println("\nEvent logs:");
        mModeLogger.dump(pw);