/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | Camera2SurfaceViewCtsActivity.java | 54 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 …]
|
D | SurfaceViewPreviewTest.java | 913 int timeOutMs) { in verifyCaptureResults() argument 918 timeout(timeOutMs).atLeast(expectResultCount)) in verifyCaptureResults() 944 timeout(timeOutMs).atLeast(expectResultCount)) in verifyCaptureResults()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSyncTest.java | 227 final int timeOutMs = 10000; in testAudioBufferReturn() local 228 boolean completed = runCheckAudioBuffer(INPUT_RESOURCE_ID, timeOutMs); in testAudioBufferReturn() 237 private boolean runCheckAudioBuffer(int inputResourceId, int timeOutMs) { in runCheckAudioBuffer() argument 273 condition.wait(timeOutMs); in runCheckAudioBuffer() 284 final int timeOutMs = 5000; in testFlush() local 285 boolean completed = runFlush(INPUT_RESOURCE_ID, timeOutMs); in testFlush() 291 private boolean runFlush(int inputResourceId, int timeOutMs) { in runFlush() argument 340 condition.wait(timeOutMs); in runFlush() 401 int timeOutMs) throws Exception { in playAV() argument 402 playAV(inputResourceId, lastBufferTimestampMs, audio, video, timeOutMs, 1.0f); in playAV() [all …]
|
D | AudioPlaybackCaptureActivity.java | 111 final long timeOutMs = 125000; in waitForMediaProjection() local 123 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in waitForMediaProjection()
|
D | DecodeAccuracyTestBase.java | 242 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()
|
D | AudioManagerTest.java | 270 public boolean waitForExpectedAction(long timeOutMs) { in waitForExpectedAction() argument 273 mLock.safeWait(timeOutMs); in waitForExpectedAction()
|
D | DecoderTest.java | 3249 final long timeOutMs = System.currentTimeMillis() + durationMs + 5 * 1000; // add 5 sec 3254 timeOutMs > System.currentTimeMillis());
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 351 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/ |
D | CapturedActivity.java | 201 final long timeOutMs = mOnEmbedded ? 125000 : 62500; in runTest() local 217 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in runTest() 278 boolean latchResult = latch.await(timeOutMs, TimeUnit.MILLISECONDS); in runTest()
|