Merge "AudioService: Add the AudioDeviceBroker's message queue to the dump"
am: dab4c89c00
Change-Id: I642e4ebf5f792dfa9933514356e7b8bf28a020cc
This commit is contained in:
@@ -40,9 +40,11 @@ import android.os.PowerManager;
|
|||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
import android.util.PrintWriterPrinter;
|
||||||
|
|
||||||
import com.android.internal.annotations.GuardedBy;
|
import com.android.internal.annotations.GuardedBy;
|
||||||
|
|
||||||
|
import java.io.PrintWriter;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
/*package*/ final class AudioDeviceBroker {
|
/*package*/ final class AudioDeviceBroker {
|
||||||
@@ -597,6 +599,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
|
// Internal handling of messages
|
||||||
// These methods are ALL synchronous, in response to message handling in BrokerHandler
|
// These methods are ALL synchronous, in response to message handling in BrokerHandler
|
||||||
|
|||||||
@@ -6417,11 +6417,12 @@ public class AudioService extends IAudioService.Stub
|
|||||||
|
|
||||||
dumpAudioPolicies(pw);
|
dumpAudioPolicies(pw);
|
||||||
mDynPolicyLogger.dump(pw);
|
mDynPolicyLogger.dump(pw);
|
||||||
|
|
||||||
mPlaybackMonitor.dump(pw);
|
mPlaybackMonitor.dump(pw);
|
||||||
|
|
||||||
mRecordMonitor.dump(pw);
|
mRecordMonitor.dump(pw);
|
||||||
|
|
||||||
|
pw.println("\nAudioDeviceBroker:");
|
||||||
|
mDeviceBroker.dump(pw, " ");
|
||||||
|
|
||||||
pw.println("\n");
|
pw.println("\n");
|
||||||
pw.println("\nEvent logs:");
|
pw.println("\nEvent logs:");
|
||||||
mModeLogger.dump(pw);
|
mModeLogger.dump(pw);
|
||||||
|
|||||||
Reference in New Issue
Block a user