Home
last modified time | relevance | path

Searched refs:timeoutMs (Results 1 – 25 of 41) sorted by relevance

12

/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DBlockingInputAllocation.java113 public synchronized void waitForBufferAndReceive(long timeoutMs) { in waitForBufferAndReceive() argument
118 mListener.waitForBuffer(timeoutMs); in waitForBufferAndReceive()
205 private void waitForBufferWithTimeout(long timeoutMs) { in waitForBufferWithTimeout() argument
210 mBufferSyncObject.wait(timeoutMs); in waitForBufferWithTimeout()
229 public void waitForBuffer(long timeoutMs) { in waitForBuffer() argument
230 if (timeoutMs <= TIMEOUT_MS) { in waitForBuffer()
233 waitForBufferWithTimeout(timeoutMs + TIMEOUT_MS); in waitForBuffer()
/cts/tests/app/app/src/android/app/stubs/
DActivityTestsBase.java145 public int waitForResultOrThrow(int timeoutMs) { in waitForResultOrThrow() argument
146 return waitForResultOrThrow(timeoutMs, null); in waitForResultOrThrow()
149 public int waitForResultOrThrow(int timeoutMs, String expected) { in waitForResultOrThrow() argument
150 final int res = waitForResult(timeoutMs, expected); in waitForResultOrThrow()
163 public int waitForResult(int timeoutMs, String expected) { in waitForResult() argument
166 final long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult()
/cts/tests/tests/os/src/android/os/cts/
DActivityTestsBase.java145 public int waitForResultOrThrow(int timeoutMs) { in waitForResultOrThrow() argument
146 return waitForResultOrThrow(timeoutMs, null); in waitForResultOrThrow()
149 public int waitForResultOrThrow(int timeoutMs, String expected) { in waitForResultOrThrow() argument
150 final int res = waitForResult(timeoutMs, expected); in waitForResultOrThrow()
163 public int waitForResult(int timeoutMs, String expected) { in waitForResult() argument
166 final long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DOneTimeCancellationSignalListener.java34 OneTimeCancellationSignalListener(long timeoutMs) { in OneTimeCancellationSignalListener() argument
35 mTimeoutMs = timeoutMs; in OneTimeCancellationSignalListener()
DAbstractAutoFillActivity.java52 public final void syncRunOnUiThread(Runnable action, long timeoutMs) { in syncRunOnUiThread() argument
59 if (!latch.await(timeoutMs, TimeUnit.MILLISECONDS)) { in syncRunOnUiThread()
61 timeoutMs); in syncRunOnUiThread()
/cts/tests/tests/media/src/android/media/cts/
DTestUtils.java187 public synchronized boolean waitForSignal(long timeoutMs) throws InterruptedException { in waitForSignal() argument
188 return waitForCountedSignals(1, timeoutMs) > 0; in waitForSignal()
191 public synchronized int waitForCountedSignals(int targetCount, long timeoutMs) in waitForCountedSignals() argument
193 if (timeoutMs == 0) { in waitForCountedSignals()
196 long deadline = System.currentTimeMillis() + timeoutMs; in waitForCountedSignals()
DCompositionTextureView.java100 public boolean waitForSurfaceReady(long timeoutMs) throws Exception { in waitForSurfaceReady() argument
104 if (mInitWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSurfaceReady()
DOutputSurface.java261 public boolean checkForNewImage(int timeoutMs) { in checkForNewImage() argument
267 mFrameSyncObject.wait(timeoutMs); in checkForNewImage()
DMediaRandomTest.java118 public Watchdog(long timeoutMs) { in Watchdog() argument
119 mTimeoutMs = timeoutMs; in Watchdog()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyActivity.java46 public Integer getResult(int timeoutMs) throws InterruptedException { in getResult() argument
47 return mResult.poll(timeoutMs, TimeUnit.MILLISECONDS); in getResult()
DRemoteSocketFactoryClient.java83 public FileDescriptor openSocketFd(String host, int port, int timeoutMs) in openSocketFd() argument
87 ParcelFileDescriptor pfd = mService.openSocketFd(host, port, timeoutMs); in openSocketFd()
DAbstractRestrictBackgroundNetworkTestCase.java220 protected String sendOrderedBroadcast(Intent intent, int timeoutMs) throws Exception { in sendOrderedBroadcast() argument
236 final String resultData = result.poll(timeoutMs, TimeUnit.MILLISECONDS); in sendOrderedBroadcast()
237 Log.d(TAG, "Ordered broadcast response after " + timeoutMs + "ms: " + resultData ); in sendOrderedBroadcast()
386 int timeoutMs = 500; in assertNetworkAccess() local
400 + "Sleeping " + timeoutMs + "ms before trying again"); in assertNetworkAccess()
406 SystemClock.sleep(timeoutMs); in assertNetworkAccess()
409 timeoutMs = Math.min(timeoutMs*2, NETWORK_TIMEOUT_MS); in assertNetworkAccess()
/cts/tests/framework/base/activitymanager/src/android/server/am/lifecycle/
DLifecycleTracker.java75 long timeoutMs) { in waitForConditionWithTimeout() argument
76 final long timeout = System.currentTimeMillis() + timeoutMs; in waitForConditionWithTimeout()
84 wait(timeoutMs); in waitForConditionWithTimeout()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAsyncUtils.java76 public static void waitOn(Object notifyLock, BooleanSupplier condition, long timeoutMs) { in waitOn() argument
82 while (!condition.getAsBoolean() && timeSlept < timeoutMs) { in waitOn()
84 notifyLock.wait(timeoutMs - timeSlept); in waitOn()
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DRemoteSocketFactoryService.java38 public ParcelFileDescriptor openSocketFd(String host, int port, int timeoutMs) {
41 s.setSoTimeout(timeoutMs);
/cts/tests/tests/car/src/android/car/cts/
DCarApiTestBase.java63 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
64 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarTest.java62 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarAppFocusManagerTest.java329 public boolean waitForFocusChangedAndAssert(long timeoutMs, int expectedAppType, in waitForFocusChangedAndAssert() argument
331 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocusChangedAndAssert()
362 public boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipGrantAndAssert() argument
364 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipGrantAndAssert()
371 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipLossAndAssert() argument
373 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatable2Callback.java45 public boolean waitForEnd(long timeoutMs) throws InterruptedException { in waitForEnd() argument
49 mEndLock.wait(timeoutMs); in waitForEnd()
/cts/hostsidetests/net/aidl/com/android/cts/net/hostside/
DIRemoteSocketFactory.aidl22 ParcelFileDescriptor openSocketFd(String host, int port, int timeoutMs); in openSocketFd() argument
/cts/tests/tests/midi/src/android/midi/cts/
DMidiEchoTest.java131 public synchronized void waitForMessages(int count, int timeoutMs) in waitForMessages() argument
133 long endTimeMs = System.currentTimeMillis() + timeoutMs + 1; in waitForMessages()
134 long timeToWait = timeoutMs + 1; in waitForMessages()
351 final int timeoutMs = 20; in testEchoSmallMessage() local
353 receiver.waitForMessages(numMessages, timeoutMs); in testEchoSmallMessage()
393 final int timeoutMs = 100; in testEchoLatency() local
395 receiver.waitForMessages(numMessages, timeoutMs); in testEchoLatency()
455 final int timeoutMs = 500; in testEchoMultipleMessages() local
458 receiver.waitForMessages(messageReceivedIndex + 1, timeoutMs); in testEchoMultipleMessages()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DTestLogService.java85 public static Map<String, String> getResultsForClient(String logtag, int timeoutMs) { in getResultsForClient() argument
95 latch.await(timeoutMs, TimeUnit.MILLISECONDS); in getResultsForClient()
/cts/tests/tests/webkit/src/android/webkit/cts/
DTestProcessClient.java101 public void run(Class runnableClass, long timeoutMs) throws Throwable { in run() argument
110 mLock.wait(timeoutMs); in run()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DCtsMediaOutputSurface.java265 public boolean checkForNewImage(int timeoutMs) { in checkForNewImage() argument
271 mFrameSyncObject.wait(timeoutMs); in checkForNewImage()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java549 public List<LogEvent> getLog(long timeoutMs) throws TimeoutException { in getLog() argument
550 return retrieveLog(false, 0, timeoutMs); in getLog()
577 public List<LogEvent> getLog(long timeoutMs, int event) throws TimeoutException { in getLog() argument
578 return retrieveLog(true, event, timeoutMs); in getLog()

12