audio: add dump on Streams, StreamWrapper and Module.

Add dump on Streams and StreamWrapper, so that dump of stream can be
requested via service of IModule.
Add default dump implementation for Module which dumps all streams.

Bug: 399383436
Test: adb shell dumpsys media.audio_flinger
      adb shell dumpsys android.hardware.audio.core.IModule/default
Change-Id: I478c750b1b102b1ced0c0523e5b6df700938e573
diff --git a/audio/aidl/default/Module.cpp b/audio/aidl/default/Module.cpp
index 077d80b..6a92481 100644
--- a/audio/aidl/default/Module.cpp
+++ b/audio/aidl/default/Module.cpp
@@ -612,6 +612,15 @@
     return ndk::ScopedAStatus::ok();
 }
 
+binder_status_t Module::dump(int fd, const char** args, uint32_t numArgs) {
+    for (const auto& portConfig : getConfig().portConfigs) {
+        if (portConfig.ext.getTag() == AudioPortExt::Tag::mix) {
+            getStreams().dump(portConfig.id, fd, args, numArgs);
+        }
+    }
+    return STATUS_OK;
+}
+
 ndk::ScopedAStatus Module::setModuleDebug(
         const ::aidl::android::hardware::audio::core::ModuleDebug& in_debug) {
     LOG(DEBUG) << __func__ << ": " << mType << ": old flags:" << mDebug.toString()