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

am: b6a0a3b943

Change-Id: I813a579acb3e473544b4784054bba36158f67da4
This commit is contained in:
Mikhail Naganov
2019-09-09 17:48:13 -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;
@@ -6399,6 +6400,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);