Add active component dump in internalPauseAndWaitLocked
We have a case where there is an active component which is not becoming
idle. The logs simply contain "Component 2 not idle". Add better logging
to find out what component that is.
Bug: 241137777
Test: Only adding logs
Change-Id: Ia281a6d7ad9af6365fe423238642ffdba5ed8b57
diff --git a/services/camera/libcameraservice/device3/Camera3Device.cpp b/services/camera/libcameraservice/device3/Camera3Device.cpp
index acee2ab..251522f 100644
--- a/services/camera/libcameraservice/device3/Camera3Device.cpp
+++ b/services/camera/libcameraservice/device3/Camera3Device.cpp
@@ -1512,6 +1512,7 @@
maxExpectedDuration);
status_t res = waitUntilStateThenRelock(/*active*/ false, maxExpectedDuration);
if (res != OK) {
+ mStatusTracker->dumpActiveComponents();
SET_ERR_L("Can't idle device in %f seconds!",
maxExpectedDuration/1e9);
}