aaudio: improved dumpsys
Add more information about various streams and endpoints.
Bug: 38396780
Test: adb shell dumpsys media.aaudio
Change-Id: I5cc116574bfc3aa93703c182d933dbdfcbefad7a
diff --git a/services/oboeservice/AAudioEndpointManager.cpp b/services/oboeservice/AAudioEndpointManager.cpp
index 36e678a..02d4a19 100644
--- a/services/oboeservice/AAudioEndpointManager.cpp
+++ b/services/oboeservice/AAudioEndpointManager.cpp
@@ -48,16 +48,17 @@
result << "EndpointManager may be deadlocked\n";
}
+ result << "AAudioEndpointManager:" << "\n";
size_t inputs = mInputs.size();
- result << "Inputs: " << inputs << "\n";
+ result << "Input Endpoints: " << inputs << "\n";
for (const auto &input : mInputs) {
- result << " Input(" << input << ")\n";
+ result << " Input: " << input->dump() << "\n";
}
size_t outputs = mOutputs.size();
- result << "Outputs: " << outputs << "\n";
+ result << "Output Endpoints: " << outputs << "\n";
for (const auto &output : mOutputs) {
- result << " Output(" << output << ")\n";
+ result << " Output: " << output->dump() << "\n";
}
if (isLocked) {