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

am: e1b6771680

Change-Id: Iaeefa8ef752669318d9e2d45949c74bc666dab95
This commit is contained in:
Mikhail Naganov
2019-09-09 17:32:29 -07:00
committed by android-build-merger

View File

@@ -127,6 +127,7 @@ import android.util.AndroidRuntimeException;
import android.util.IntArray;
import android.util.Log;
import android.util.MathUtils;
import android.util.PrintWriterPrinter;
import android.util.Slog;
import android.util.SparseIntArray;
import android.view.KeyEvent;
@@ -6375,6 +6376,12 @@ public class AudioService extends IAudioService.Stub
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
if (!DumpUtils.checkDumpPermission(mContext, TAG, pw)) return;
if (mAudioHandler != null) {
pw.println("\nMessage handler (watch for unhandled messages):");
mAudioHandler.dump(new PrintWriterPrinter(pw), " ");
} else {
pw.println("\nMessage handler is null");
}
mMediaFocusControl.dump(pw);
dumpStreamStates(pw);
dumpRingerMode(pw);