Home
last modified time | relevance | path

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

12

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPollingCheck.java31 public PollingCheck(long timeoutMs) { in PollingCheck() argument
32 mTimeoutMs = timeoutMs; in PollingCheck()
42 long timeoutMs = mTimeoutMs; in run() local
43 while (timeoutMs > 0) { in run()
54 timeoutMs -= TIME_SLICE; in run()
60 public static void check(CharSequence message, long timeoutMs, Callable<Boolean> condition) in check() argument
62 while (timeoutMs > 0) { in check()
68 timeoutMs -= TIME_SLICE; in check()
/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/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.java80 String host, int port, int timeoutMs) throws RemoteException { in openSocketFd() argument
81 return mService.openSocketFd(host, port, timeoutMs).getFileDescriptor(); in openSocketFd()
DAbstractRestrictBackgroundNetworkTestCase.java161 protected String sendOrderedBroadcast(Intent intent, int timeoutMs) throws Exception { in sendOrderedBroadcast() argument
177 final String resultData = result.poll(timeoutMs, TimeUnit.MILLISECONDS); in sendOrderedBroadcast()
178 Log.d(TAG, "Ordered broadcast response after " + timeoutMs + "ms: " + resultData ); in sendOrderedBroadcast()
312 int timeoutMs = 500; in assertNetworkAccess() local
326 + "Sleeping " + timeoutMs + "ms before trying again"); in assertNetworkAccess()
327 SystemClock.sleep(timeoutMs); in assertNetworkAccess()
329 timeoutMs = Math.min(timeoutMs*2, NETWORK_TIMEOUT_MS); in assertNetworkAccess()
DVpnTest.java476 private FileDescriptor openSocketFd(String host, int port, int timeoutMs) throws Exception { in openSocketFd() argument
478 s.setSoTimeout(timeoutMs); in openSocketFd()
483 String host, int port, int timeoutMs) throws Exception { in openSocketFdInOtherApp() argument
/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.java62 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarTest.java57 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
58 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarAppContextManagerTest.java198 public boolean waitForContextChangeAndAssert(long timeoutMs, int expectedContexts) in waitForContextChangeAndAssert() argument
200 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert()
221 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedContexts) in waitForOwnershipLossAndAssert() argument
223 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerTestBase.java63 public synchronized boolean waitForSignal(long timeoutMs) throws InterruptedException { in waitForSignal() argument
64 return waitForCountedSignals(1, timeoutMs) > 0; in waitForSignal()
67 public synchronized int waitForCountedSignals(int targetCount, long timeoutMs) in waitForCountedSignals() argument
69 if (timeoutMs == 0) { in waitForCountedSignals()
72 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.java116 public Watchdog(long timeoutMs) { in Watchdog() argument
117 mTimeoutMs = timeoutMs; in Watchdog()
DEncodeVirtualDisplayWithCompositionTest.java1228 public void waitForSurfaceReady(long timeoutMs) throws Exception { in waitForSurfaceReady() argument
1231 if(!mWindows[i].waitForSurfaceReady(timeoutMs)) { in waitForSurfaceReady()
1254 void waitForSurfaceReady(long timeoutMs) throws Exception { in waitForSurfaceReady() argument
1255 ((TopWindowPresentation) mPresentation).waitForSurfaceReady(timeoutMs); in waitForSurfaceReady()
/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/hostsidetests/net/aidl/com/android/cts/net/hostside/
DIRemoteSocketFactory.aidl22 ParcelFileDescriptor openSocketFd(String host, int port, int timeoutMs); in openSocketFd() argument
/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()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraDeviceTest.java1243 private void waitForDeviceState(int state, long timeoutMs) { in waitForDeviceState() argument
1244 mCameraMockListener.waitForState(state, timeoutMs); in waitForDeviceState()
1248 private void waitForSessionState(int state, long timeoutMs) { in waitForSessionState() argument
1249 mSessionWaiter.waitForState(state, timeoutMs); in waitForSessionState()
1906 public List<CameraCaptureSession> getAllSessions(int numSessions, int timeoutMs) in getAllSessions() argument
1908 long remainingTime = timeoutMs; in getAllSessions()
1917 assertTrue("Get " + numSessions + " sessions timed out after " + timeoutMs + in getAllSessions()
1930 … public void waitForSessionClose(CameraCaptureSession session, int timeoutMs) throws Exception { in waitForSessionClose() argument
1931 long remainingTime = timeoutMs; in waitForSessionClose()
1940 assertTrue("Wait for session close timed out after " + timeoutMs + "ms", ret); in waitForSessionClose()
DCameraTestUtils.java380 public void waitForImageReleased(long timeoutMs) throws InterruptedException { in waitForImageReleased() argument
381 if (!mImageReleasedSema.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForImageReleased()
382 fail("wait for image available timed out after " + timeoutMs + "ms"); in waitForImageReleased()
651 public long getCaptureSequenceLastFrameNumber(int sequenceId, long timeoutMs) { in getCaptureSequenceLastFrameNumber() argument
655 mCaptureSequenceCompletedQueue.poll(timeoutMs, TimeUnit.MILLISECONDS); in getCaptureSequenceLastFrameNumber()
657 timeoutMs + "ms", completedSequence); in getCaptureSequenceLastFrameNumber()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityScreenOffTestActivity.java543 private void awaitNotification(int timeoutMs) {
545 if (timeoutMs > 0) {
547 mLock.wait(timeoutMs);
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java444 Intent intent, int timeoutMs) throws InterruptedException { in sendOrderedBroadcastAndReturnResultCode() argument
453 Integer resultCode = result.poll(timeoutMs, TimeUnit.MILLISECONDS); in sendOrderedBroadcastAndReturnResultCode()
454 assertNotNull("Timed out (more than " + timeoutMs + in sendOrderedBroadcastAndReturnResultCode()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java1211 private void waitForCallbacks(long timeoutMs) throws ItsException {
1216 mCountCallbacksRemaining.wait(timeoutMs);
1841 public TotalCaptureResult getResult(long timeoutMs) throws ItsException {
1844 result = mResultQueue.poll(timeoutMs, TimeUnit.MILLISECONDS);
1850 throw new ItsException("Getting an image timed out after " + timeoutMs +
1871 public Image getImage(long timeoutMs) throws ItsException {
1874 image = mImageQueue.poll(timeoutMs, TimeUnit.MILLISECONDS);
1880 throw new ItsException("Getting an image timed out after " + timeoutMs +

12