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

Commit 545fcf8d authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Log dump time of MediaFocusControl

Add time at which the audio focus stack was dumped to help read
  bugreports.

Change-Id: I31a8220308770e597a328b1a546d4bcc0f7ae226
parent 954850ce
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -63,8 +63,10 @@ import com.android.server.audio.PlayerRecord.RemotePlaybackState;

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.Stack;
import java.text.DateFormat;

/**
 * @hide
@@ -124,6 +126,8 @@ public class MediaFocusControl implements OnFinished {
    }

    protected void dump(PrintWriter pw) {
        pw.println("\nMediaFocusControl dump time: "
                + DateFormat.getTimeInstance().format(new Date()));
        dumpFocusStack(pw);
        dumpRCStack(pw);
        dumpRCCStack(pw);