Home
last modified time | relevance | path

Searched refs:timeOutMs (Results 1 – 11 of 11) 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.java873 int timeOutMs) { in verifyCaptureResults() argument
878 timeout(timeOutMs).atLeast(expectResultCount)) in verifyCaptureResults()
904 timeout(timeOutMs).atLeast(expectResultCount)) in verifyCaptureResults()
/cts/tests/tests/media/projection/src/android/media/projection/cts/
DMediaProjectionManagerTest.java131 final long timeOutMs = 5000L * HW_TIMEOUT_MULTIPLIER; in testGetMediaProjectionWithOtherFgs() local
144 assertTrue("Can't start FGS", latchHolder[0].await(timeOutMs, TimeUnit.MILLISECONDS)); in testGetMediaProjectionWithOtherFgs()
167 assertTrue("Can't stop FGS", latchHolder[0].await(timeOutMs, TimeUnit.MILLISECONDS)); in testGetMediaProjectionWithOtherFgs()
171 latchHolder[1].await(timeOutMs, TimeUnit.MILLISECONDS)); in testGetMediaProjectionWithOtherFgs()
179 final long timeOutMs = 5000L * HW_TIMEOUT_MULTIPLIER; in testGetMediaProjectionWithOtherFgsAlter() local
210 assertTrue("Can't start FGS", latchHolder[0].await(timeOutMs, TimeUnit.MILLISECONDS)); in testGetMediaProjectionWithOtherFgsAlter()
215 assertTrue("Can't stop FGS", latchHolder[0].await(timeOutMs, TimeUnit.MILLISECONDS)); in testGetMediaProjectionWithOtherFgsAlter()
219 latchHolder[1].await(timeOutMs, TimeUnit.MILLISECONDS)); in testGetMediaProjectionWithOtherFgsAlter()
224 final long timeOutMs = 5000L * HW_TIMEOUT_MULTIPLIER; in testGetMediaProjectionMultipleProjections() local
265 latchHolder[0].await(timeOutMs, TimeUnit.MILLISECONDS)); in testGetMediaProjectionMultipleProjections()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaSyncTest.java225 final int timeOutMs = 10000; in testAudioBufferReturn() local
226 boolean completed = runCheckAudioBuffer(INPUT_RESOURCE, timeOutMs); in testAudioBufferReturn()
235 private boolean runCheckAudioBuffer(String inputResource, int timeOutMs) { in runCheckAudioBuffer() argument
271 condition.wait(timeOutMs); in runCheckAudioBuffer()
282 final int timeOutMs = 5000; in testFlush() local
283 boolean completed = runFlush(INPUT_RESOURCE, timeOutMs); in testFlush()
289 private boolean runFlush(String inputResource, int timeOutMs) { in runFlush() argument
338 condition.wait(timeOutMs); in runFlush()
399 int timeOutMs) throws Exception { in playAV() argument
400 playAV(inputResource, lastBufferTimestampMs, audio, video, timeOutMs, 1.0f); in playAV()
[all …]
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioVolumeGroupCallbackHelper.java57 public boolean waitForExpectedVolumeGroupChanged(long timeOutMs) { in waitForExpectedVolumeGroupChanged() argument
DAudioManagerTest.java471 public boolean waitForExpectedEvent(long timeOutMs) { in waitForExpectedEvent() argument
473 return mLock.waitFor(timeOutMs, () -> mEventReceived); in waitForExpectedEvent()
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java270 public static SurfaceTexture getAvailableSurfaceTexture(long timeOutMs, TextureView view) { in getAvailableSurfaceTexture() argument
271 long waitTime = timeOutMs; in getAvailableSurfaceTexture()
282 Log.w(TAG, "Wait for SurfaceTexture available timed out after " + timeOutMs + "ms"); in getAvailableSurfaceTexture()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaProjectionActivity.java146 final long timeOutMs = 10000; in waitForMediaProjection() local
160 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in waitForMediaProjection()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecodeAccuracyTestBase.java247 int numOfTotalFrames, long timeOutMs, long msPerFrameCap) { in decodeFramesAndPlay() argument
254 && (SystemClock.elapsedRealtime() - loopStart < timeOutMs)) { in decodeFramesAndPlay()
730 public abstract void waitForViewIsAvailable(long timeOutMs) throws Exception; in waitForViewIsAvailable() argument
783 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
785 while (SystemClock.elapsedRealtime() - start < timeOutMs && !textureView.isAvailable()) { in waitForViewIsAvailable()
861 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
863 while (SystemClock.elapsedRealtime() - start < timeOutMs && !getSurface().isValid()) { in waitForViewIsAvailable()
943 public void waitForViewIsAvailable(long timeOutMs) throws Exception { in waitForViewIsAvailable() argument
945 while (SystemClock.elapsedRealtime() - start < timeOutMs in waitForViewIsAvailable()
DDecoderTest.java3353 final long timeOutMs = System.currentTimeMillis() + durationMs + 5 * 1000; // add 5 sec
3356 timeOutMs > System.currentTimeMillis());
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java383 public boolean waitForPreviewDone(long timeOutMs) { in waitForPreviewDone() argument
384 if (!mPreviewDone.block(timeOutMs)) { in waitForPreviewDone()
386 Log.w(TAG, "waitForPreviewDone timed out after " + timeOutMs + "ms"); in waitForPreviewDone()