Home
last modified time | relevance | path

Searched refs:waitTimeMs (Results 1 – 11 of 11) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DCamera2SurfaceViewCtsActivity.java69 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/
DMediaSession2Test.java634 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 …]
DMediaController2Test.java472 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/
DMediaStubActivity.java92 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/
DProcStatsTests.java91 final int waitTimeMs = 2_000; in testCachedState() local
92 RunUtil.getDefault().sleep(waitTimeMs); in testCachedState()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGlAppSwitchTest.java112 private void runTaskSwitchTest(long waitTimeMs, int numberOfSwitches) in runTaskSwitchTest() argument
119 Thread.sleep(waitTimeMs); in runTaskSwitchTest()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DTrustedPresentationListenerTest.java276 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/
DHostsideStatsdAtomTests.java144 @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/
DCarTest.java250 private void waitForReady(long waitTimeMs) throws Exception { in waitForReady() argument
251 assertThat(mWaitLatch.await(waitTimeMs, TimeUnit.MILLISECONDS)).isTrue(); in waitForReady()
DCarPowerManagerTest.java417 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/
DDeviceUtils.java339 @Nullable String actionKey, @Nullable String actionValue, long waitTimeMs) in runActivity() argument
342 RunUtil.getDefault().sleep(waitTimeMs); in runActivity()