Fix behavior of `watch dump`
This CL fixes the behavior of `watch dump` to dump out the tag
monitoring information once and exit, instead of dumping out collected
error traces.
It also reverts the `print` command back to `live` to better reflect
what the command does.
Bug: 199746421
Test: Tested Manually
Change-Id: If4f9886be0b7db50d43499afbd501bc0d26fc1f4
diff --git a/services/camera/libcameraservice/CameraService.h b/services/camera/libcameraservice/CameraService.h
index b9a9755..a3125c6 100644
--- a/services/camera/libcameraservice/CameraService.h
+++ b/services/camera/libcameraservice/CameraService.h
@@ -1184,12 +1184,12 @@
status_t clearCachedMonitoredTagDumps(int outFd);
// Print events of monitored tags in all cached and attached clients
- status_t printWatchedTags(const Vector<String16> &args, int inFd, int outFd);
+ status_t printWatchedTags(int outFd);
// Print events of monitored tags in all attached clients as they are captured. New events are
// fetched every `refreshMillis` ms
// NOTE: This function does not terminate until user passes '\n' to inFd.
- status_t printWatchedTagsUntilInterrupt(long refreshMillis, int inFd, int outFd);
+ status_t printWatchedTagsUntilInterrupt(const Vector<String16> &args, int inFd, int outFd);
// Parses comma separated clients list and adds them to mWatchedClientPackages.
// Does not acquire mLogLock before modifying mWatchedClientPackages. It is the caller's