Home
last modified time | relevance | path

Searched refs:timeOutMs (Results 1 – 9 of 9) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DCamera2SurfaceViewCtsActivity.java54 public boolean waitForSurfaceSizeChanged(int timeOutMs, int expectWidth, int expectHeight) { in waitForSurfaceSizeChanged() argument
55 if (timeOutMs <= 0 || expectWidth <= 0 || expectHeight <= 0) { in waitForSurfaceSizeChanged()
60 timeOutMs, expectWidth, expectHeight)); in waitForSurfaceSizeChanged()
69 int waitTimeMs = timeOutMs; in waitForSurfaceSizeChanged()
75 Log.e(TAG, "Wait for surface change timed out after " + timeOutMs + " ms"); in waitForSurfaceSizeChanged()
97 Log.e(TAG, "Wait for surface change timed out after " + timeOutMs + " ms"); in waitForSurfaceSizeChanged()
104 public boolean waitForSurfaceState(int timeOutMs, boolean valid) { in waitForSurfaceState() argument
105 if (timeOutMs <= 0) { in waitForSurfaceState()
107 String.format("timeout(%d) should be a positive number", timeOutMs)); in waitForSurfaceState()
116 int waitTimeMs = timeOutMs; in waitForSurfaceState()
[all …]
DSurfaceViewPreviewTest.java885 int timeOutMs) { in verifyCaptureResults() argument
890 timeout(timeOutMs).atLeast(expectResultCount)) in verifyCaptureResults()
916 timeout(timeOutMs).atLeast(expectResultCount)) in verifyCaptureResults()
/cts/tests/tests/media/src/android/media/cts/
DMediaSyncTest.java224 final int timeOutMs = 10000; in testAudioBufferReturn() local
225 boolean completed = runCheckAudioBuffer(INPUT_RESOURCE, timeOutMs); in testAudioBufferReturn()
234 private boolean runCheckAudioBuffer(String inputResource, int timeOutMs) { in runCheckAudioBuffer() argument
270 condition.wait(timeOutMs); in runCheckAudioBuffer()
281 final int timeOutMs = 5000; in testFlush() local
282 boolean completed = runFlush(INPUT_RESOURCE, timeOutMs); in testFlush()
288 private boolean runFlush(String inputResource, int timeOutMs) { in runFlush() argument
337 condition.wait(timeOutMs); in runFlush()
398 int timeOutMs) throws Exception { in playAV() argument
399 playAV(inputResource, lastBufferTimestampMs, audio, video, timeOutMs, 1.0f); in playAV()
[all …]
DMediaProjectionActivity.java111 final long timeOutMs = 125000; in waitForMediaProjection() local
123 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in waitForMediaProjection()
DDecodeAccuracyTestBase.java244 int numOfTotalFrames, long timeOutMs, long msPerFrameCap) { in decodeFramesAndPlay() argument
251 && (SystemClock.elapsedRealtime() - loopStart < timeOutMs)) { in decodeFramesAndPlay()
727 public abstract void waitForViewIsAvailable(long timeOutMs) throws Exception; in waitForViewIsAvailable() argument
780 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
782 while (SystemClock.elapsedRealtime() - start < timeOutMs && !textureView.isAvailable()) { in waitForViewIsAvailable()
858 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
860 while (SystemClock.elapsedRealtime() - start < timeOutMs && !getSurface().isValid()) { in waitForViewIsAvailable()
940 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
942 while (SystemClock.elapsedRealtime() - start < timeOutMs in waitForViewIsAvailable()
DAudioManagerTest.java311 public boolean waitForExpectedAction(long timeOutMs) { in waitForExpectedAction() argument
314 mLock.safeWait(timeOutMs); in waitForExpectedAction()
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java259 public static SurfaceTexture getAvailableSurfaceTexture(long timeOutMs, TextureView view) { in getAvailableSurfaceTexture() argument
260 long waitTime = timeOutMs; in getAvailableSurfaceTexture()
271 Log.w(TAG, "Wait for SurfaceTexture available timed out after " + timeOutMs + "ms"); in getAvailableSurfaceTexture()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DCapturedActivity.java231 final long timeOutMs = mOnEmbedded ? 125000 : 62500; in runTest() local
250 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in runTest()
313 boolean latchResult = latch.await(timeOutMs, TimeUnit.MILLISECONDS); in runTest()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java367 public boolean waitForPreviewDone(long timeOutMs) { in waitForPreviewDone() argument
368 if (!mPreviewDone.block(timeOutMs)) { in waitForPreviewDone()
370 Log.w(TAG, "waitForPreviewDone timed out after " + timeOutMs + "ms"); in waitForPreviewDone()