Update EVS VTS test cases
This change modifies existing test cases and adds one new test case
for EVS manager implementation.
Bug: 122468953
Change-Id: I5cee01dfe0b0617c3f5c46beb94dcda0387f4ba0
Signed-off-by: Changyeon Jo <changyeon@google.com>
diff --git a/automotive/evs/1.0/vts/functional/FrameHandler.cpp b/automotive/evs/1.0/vts/functional/FrameHandler.cpp
index d44ba41..bc3790f 100644
--- a/automotive/evs/1.0/vts/functional/FrameHandler.cpp
+++ b/automotive/evs/1.0/vts/functional/FrameHandler.cpp
@@ -137,6 +137,10 @@
// Signal that the last frame has been received and the stream is stopped
timeToStop = true;
} else {
+ // Store a dimension of a received frame.
+ mFrameWidth = bufferArg.width;
+ mFrameHeight = bufferArg.height;
+
// If we were given an opened display at construction time, then send the received
// image back down the camera.
if (mDisplay.get()) {
@@ -299,3 +303,13 @@
return success;
}
+
+void FrameHandler::getFrameDimension(unsigned* width, unsigned* height) {
+ if (width) {
+ *width = mFrameWidth;
+ }
+
+ if (height) {
+ *height = mFrameHeight;
+ }
+}