mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Update VtsHalEvsV1_*TargetTest" am: 1f6ecfbab0 am: 109cfa5121
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1914237 Change-Id: I67ef5ae70d2f71147940c8d3e09c3176bc6e69f6
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// These values are called out in the EVS design doc (as of Mar 8, 2017)
|
// These values are called out in the EVS design doc (as of Mar 8, 2017)
|
||||||
static const int kMaxStreamStartMilliseconds = 500;
|
static const int kMaxStreamStartMilliseconds = 1000;
|
||||||
static const int kMinimumFramesPerSecond = 10;
|
static const int kMinimumFramesPerSecond = 10;
|
||||||
|
|
||||||
static const int kSecondsToMilliseconds = 1000;
|
static const int kSecondsToMilliseconds = 1000;
|
||||||
@@ -332,11 +332,6 @@ TEST_P(EvsHidlTest, CameraStreamPerformance) {
|
|||||||
printf("Measured time to first frame %0.2f ms\n", timeToFirstFrame * kNanoToMilliseconds);
|
printf("Measured time to first frame %0.2f ms\n", timeToFirstFrame * kNanoToMilliseconds);
|
||||||
ALOGI("Measured time to first frame %0.2f ms", timeToFirstFrame * kNanoToMilliseconds);
|
ALOGI("Measured time to first frame %0.2f ms", timeToFirstFrame * kNanoToMilliseconds);
|
||||||
|
|
||||||
// Check aspect ratio
|
|
||||||
unsigned width = 0, height = 0;
|
|
||||||
frameHandler->getFrameDimension(&width, &height);
|
|
||||||
EXPECT_GE(width, height);
|
|
||||||
|
|
||||||
// Wait a bit, then ensure we get at least the required minimum number of frames
|
// Wait a bit, then ensure we get at least the required minimum number of frames
|
||||||
sleep(5);
|
sleep(5);
|
||||||
nsecs_t end = systemTime(SYSTEM_TIME_MONOTONIC);
|
nsecs_t end = systemTime(SYSTEM_TIME_MONOTONIC);
|
||||||
@@ -370,7 +365,7 @@ TEST_P(EvsHidlTest, CameraStreamBuffering) {
|
|||||||
ALOGI("Starting CameraStreamBuffering test");
|
ALOGI("Starting CameraStreamBuffering test");
|
||||||
|
|
||||||
// Arbitrary constant (should be > 1 and not too big)
|
// Arbitrary constant (should be > 1 and not too big)
|
||||||
static const unsigned int kBuffersToHold = 6;
|
static const unsigned int kBuffersToHold = 2;
|
||||||
|
|
||||||
// Get the camera list
|
// Get the camera list
|
||||||
loadCameraList();
|
loadCameraList();
|
||||||
|
|||||||
@@ -499,11 +499,6 @@ TEST_P(EvsHidlTest, CameraStreamPerformance) {
|
|||||||
<< std::scientific << timeToFirstFrame * kNanoToMilliseconds
|
<< std::scientific << timeToFirstFrame * kNanoToMilliseconds
|
||||||
<< " ms.";
|
<< " ms.";
|
||||||
|
|
||||||
// Check aspect ratio
|
|
||||||
unsigned width = 0, height = 0;
|
|
||||||
frameHandler->getFrameDimension(&width, &height);
|
|
||||||
EXPECT_GE(width, height);
|
|
||||||
|
|
||||||
// Wait a bit, then ensure we get at least the required minimum number of frames
|
// Wait a bit, then ensure we get at least the required minimum number of frames
|
||||||
sleep(5);
|
sleep(5);
|
||||||
nsecs_t end = systemTime(SYSTEM_TIME_MONOTONIC);
|
nsecs_t end = systemTime(SYSTEM_TIME_MONOTONIC);
|
||||||
@@ -541,7 +536,7 @@ TEST_P(EvsHidlTest, CameraStreamBuffering) {
|
|||||||
LOG(INFO) << "Starting CameraStreamBuffering test";
|
LOG(INFO) << "Starting CameraStreamBuffering test";
|
||||||
|
|
||||||
// Arbitrary constant (should be > 1 and not too big)
|
// Arbitrary constant (should be > 1 and not too big)
|
||||||
static const unsigned int kBuffersToHold = 6;
|
static const unsigned int kBuffersToHold = 2;
|
||||||
|
|
||||||
// Get the camera list
|
// Get the camera list
|
||||||
loadCameraList();
|
loadCameraList();
|
||||||
|
|||||||
Reference in New Issue
Block a user