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

am: c908a2cd5f

Change-Id: If4d7fd5db92a04fbad06f3819b39e64417d164c9
This commit is contained in:
Jean-Michel Trivi
2019-09-10 08:44:55 -07:00
committed by android-build-merger
2 changed files with 14 additions and 2 deletions

View File

@@ -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

View File

@@ -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);