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.java907 int timeOutMs) { in verifyCaptureResults() argument
912 timeout(timeOutMs).atLeast(expectResultCount)) in verifyCaptureResults()
938 timeout(timeOutMs).atLeast(expectResultCount)) in verifyCaptureResults()
/cts/tests/tests/media/src/android/media/cts/
DMediaSyncTest.java226 final int timeOutMs = 10000; in testAudioBufferReturn() local
227 boolean completed = runCheckAudioBuffer(INPUT_RESOURCE_ID, timeOutMs); in testAudioBufferReturn()
236 private boolean runCheckAudioBuffer(int inputResourceId, int timeOutMs) { in runCheckAudioBuffer() argument
272 condition.wait(timeOutMs); in runCheckAudioBuffer()
283 final int timeOutMs = 5000; in testFlush() local
284 boolean completed = runFlush(INPUT_RESOURCE_ID, timeOutMs); in testFlush()
290 private boolean runFlush(int inputResourceId, int timeOutMs) { in runFlush() argument
339 condition.wait(timeOutMs); in runFlush()
400 int timeOutMs) throws Exception { in playAV() argument
401 playAV(inputResourceId, lastBufferTimestampMs, audio, video, timeOutMs, 1.0f); in playAV()
[all …]
DAudioPlaybackCaptureActivity.java111 final long timeOutMs = 125000; in waitForMediaProjection() local
123 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in waitForMediaProjection()
DDecodeAccuracyTestBase.java242 int numOfTotalFrames, long timeOutMs, long msPerFrameCap) { in decodeFramesAndPlay() argument
249 && (SystemClock.elapsedRealtime() - loopStart < timeOutMs)) { in decodeFramesAndPlay()
725 public abstract void waitForViewIsAvailable(long timeOutMs) throws Exception; in waitForViewIsAvailable() argument
778 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
780 while (SystemClock.elapsedRealtime() - start < timeOutMs && !textureView.isAvailable()) { in waitForViewIsAvailable()
856 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
858 while (SystemClock.elapsedRealtime() - start < timeOutMs && !getSurface().isValid()) { in waitForViewIsAvailable()
938 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
940 while (SystemClock.elapsedRealtime() - start < timeOutMs in waitForViewIsAvailable()
DAudioManagerTest.java256 public boolean waitForExpectedAction(long timeOutMs) { in waitForExpectedAction() argument
259 mLock.safeWait(timeOutMs); in waitForExpectedAction()
DDecoderTest.java3165 final long timeOutMs = System.currentTimeMillis() + durationMs + 5 * 1000; // add 5 sec
3170 timeOutMs > System.currentTimeMillis());
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java351 protected SurfaceTexture getAvailableSurfaceTexture(long timeOutMs, TextureView view) { in getAvailableSurfaceTexture() argument
352 long waitTime = timeOutMs; in getAvailableSurfaceTexture()
363 Log.w(TAG, "Wait for SurfaceTexture available timed out after " + timeOutMs + "ms"); in getAvailableSurfaceTexture()
404 public boolean waitForPreviewDone(long timeOutMs) { in waitForPreviewDone() argument
405 if (!mPreviewDone.block(timeOutMs)) { in waitForPreviewDone()
407 Log.w(TAG, "waitForPreviewDone timed out after " + timeOutMs + "ms"); in waitForPreviewDone()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DCapturedActivity.java198 final long timeOutMs = mOnEmbedded ? 125000 : 62500; in runTest() local
214 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in runTest()
275 boolean latchResult = latch.await(timeOutMs, TimeUnit.MILLISECONDS); in runTest()