summaryrefslogtreecommitdiff
path: root/tests/camera/src/android/hardware/camera2/cts/BurstCaptureTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/camera/src/android/hardware/camera2/cts/BurstCaptureTest.java')
-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);