Add metrics logging logic

...for bad packet lengths and duplicate seqnos.

Bug: 244578445, 245275823
Test: Built and ran emulator
Change-Id: I65cc5b4347e6d85417b8d643f4a4a93b628ae401
diff --git a/stream-servers/RenderThread.cpp b/stream-servers/RenderThread.cpp
index 664c8c6..5425ed9 100644
--- a/stream-servers/RenderThread.cpp
+++ b/stream-servers/RenderThread.cpp
@@ -348,6 +348,7 @@
     }
 
     GfxApiLogger gfxLogger;
+    auto& metricsLogger = FrameBuffer::getFB()->getMetricsLogger();
 
     uint32_t* seqnoPtr = nullptr;
 
@@ -454,6 +455,7 @@
                     .processName = processName,
                     .gfxApiLogger = &gfxLogger,
                     .healthMonitor = &FrameBuffer::getFB()->getHealthMonitor(),
+                    .metricsLogger = &metricsLogger,
                 };
                 last = tInfo.m_vkInfo->m_vkDec.decode(readBuf.buf(), readBuf.validData(), ioStream,
                                                       seqnoPtr, context);