/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | Camera2SurfaceViewCtsActivity.java | 69 int waitTimeMs = timeOutMs; in waitForSurfaceSizeChanged() local 71 while (!changeSucceeded && waitTimeMs > 0) { in waitForSurfaceSizeChanged() 73 changeSucceeded = surfaceChangedDone.block(waitTimeMs); in waitForSurfaceSizeChanged() 93 waitTimeMs -= (SystemClock.elapsedRealtime() - startTimeMs); in waitForSurfaceSizeChanged() 116 int waitTimeMs = timeOutMs; in waitForSurfaceState() local 118 while (!stateReached && waitTimeMs > 0) { in waitForSurfaceState() 120 stateReached = surfaceStateDone.block(waitTimeMs); in waitForSurfaceState() 133 waitTimeMs -= (SystemClock.elapsedRealtime() - startTimeMs); in waitForSurfaceState()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSession2Test.java | 634 public boolean awaitOnConnected(long waitTimeMs) { in awaitOnConnected() argument 636 return mOnConnectedLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnConnected() 642 public boolean awaitOnDisconnected(long waitTimeMs) { in awaitOnDisconnected() argument 644 return mOnDisconnectedLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnDisconnected() 650 public boolean awaitOnPlaybackActiveChanged(long waitTimeMs) { in awaitOnPlaybackActiveChanged() argument 652 return mOnPlaybackActiveChangedLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnPlaybackActiveChanged() 748 public boolean awaitOnConnect(long waitTimeMs) { in awaitOnConnect() argument 750 return mOnConnectLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnConnect() 756 public boolean awaitOnPostConnect(long waitTimeMs) { in awaitOnPostConnect() argument 758 return mOnPostConnectLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnPostConnect() [all …]
|
D | MediaController2Test.java | 472 public boolean awaitOnConnected(long waitTimeMs) { in awaitOnConnected() argument 474 return mOnConnectedLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnConnected() 480 public boolean awaitOnDisconnected(long waitTimeMs) { in awaitOnDisconnected() argument 482 return mOnDisconnectedLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnDisconnected() 488 public boolean awaitOnSessionCommand(long waitTimeMs) { in awaitOnSessionCommand() argument 490 return mOnSessionCommandLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnSessionCommand() 496 public boolean awaitOnCommandResult(long waitTimeMs) { in awaitOnCommandResult() argument 498 return mOnCommandResultLatch.await(waitTimeMs, TimeUnit.MILLISECONDS); in awaitOnCommandResult()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | MediaStubActivity.java | 92 long waitTimeMs) throws InterruptedException { in waitTillSurfaceHolderIsCreated() argument 97 while (!surface.isValid() && (SystemClock.elapsedRealtime() - start) < waitTimeMs) { in waitTillSurfaceHolderIsCreated() 98 mCondition.await(waitTimeMs, TimeUnit.MILLISECONDS); in waitTillSurfaceHolderIsCreated()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perf/ |
D | ProcStatsTests.java | 91 final int waitTimeMs = 2_000; in testCachedState() local 92 RunUtil.getDefault().sleep(waitTimeMs); in testCachedState()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GlAppSwitchTest.java | 112 private void runTaskSwitchTest(long waitTimeMs, int numberOfSwitches) in runTaskSwitchTest() argument 119 Thread.sleep(waitTimeMs); in runTaskSwitchTest()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | TrustedPresentationListenerTest.java | 276 private boolean wait(CountDownLatch latch, long waitTimeMs) { in wait() argument 280 return latch.await(waitTimeMs, TimeUnit.MILLISECONDS); in wait() 283 waitTimeMs = Math.max(0, waitTimeMs - elapsedTime); in wait()
|
/cts/hostsidetests/appcompat/hiddenapi/src/android/compat/hiddenapi/cts/ |
D | HostsideStatsdAtomTests.java | 144 @Nullable String actionKey, @Nullable String actionValue, long waitTimeMs) in runActivity() argument 147 RunUtil.getDefault().sleep(waitTimeMs); in runActivity()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarTest.java | 250 private void waitForReady(long waitTimeMs) throws Exception { in waitForReady() argument 251 assertThat(mWaitLatch.await(waitTimeMs, TimeUnit.MILLISECONDS)).isTrue(); in waitForReady()
|
D | CarPowerManagerTest.java | 417 public String getCurrentPolicyId(long waitTimeMs) throws Exception { in getCurrentPolicyId() argument 418 if (mLatch.await(waitTimeMs, TimeUnit.MILLISECONDS)) { in getCurrentPolicyId()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/ |
D | DeviceUtils.java | 339 @Nullable String actionKey, @Nullable String actionValue, long waitTimeMs) in runActivity() argument 342 RunUtil.getDefault().sleep(waitTimeMs); in runActivity()
|