summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-08-01 23:07:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-08-01 23:07:42 +0000
commitfe108953037b603a6dbb8445a3744ef599dd2229 (patch)
treeeeae771b5edc5026da95249f01ad001e9b20f474
parent75d47ea3905beea4d21163d5694e3fac824a8501 (diff)
parent30b89a97f776b478db016ba9520b68718b315743 (diff)
downloadcts-fe108953037b603a6dbb8445a3744ef599dd2229.tar.gz
Merge "Camera: Fix testJpegBurst flake" into stage-aosp-udc-ts-dev
-rw-r--r--tests/camera/src/android/hardware/camera2/cts/BurstCaptureTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/camera/src/android/hardware/camera2/cts/BurstCaptureTest.java b/tests/camera/src/android/hardware/camera2/cts/BurstCaptureTest.java
index ca9d75d3ad0..f306bd97278 100644
--- a/tests/camera/src/android/hardware/camera2/cts/BurstCaptureTest.java
+++ b/tests/camera/src/android/hardware/camera2/cts/BurstCaptureTest.java
@@ -269,8 +269,10 @@ public class BurstCaptureTest extends Camera2SurfaceViewTestCase {
// Wait for first result with locking
resultListener.drain();
+ // Add 1 extra frame to wait due to earlier repeating request could introduce
+ // 1 more frame delay.
CaptureResult lockedResult =
- resultListener.getCaptureResultForRequest(lockedRequest, maxPipelineDepth);
+ resultListener.getCaptureResultForRequest(lockedRequest, maxPipelineDepth + 1);
int pipelineDepth = lockedResult.get(CaptureResult.REQUEST_PIPELINE_DEPTH);