/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | PollingCheck.java | 31 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/src/android/app/cts/ |
D | ActivityTestsBase.java | 145 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/ |
D | ActivityTestsBase.java | 145 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/midi/src/android/midi/cts/ |
D | MidiEchoTest.java | 118 public synchronized void waitForMessages(int count, int timeoutMs) in waitForMessages() argument 120 long endTimeMs = System.currentTimeMillis() + timeoutMs + 1; in waitForMessages() 121 long timeToWait = timeoutMs + 1; in waitForMessages() 173 int timeoutMs = 1000; in setUpEchoServer() local 174 MidiDevice echoDevice = callback.waitForOpen(timeoutMs); in setUpEchoServer() 337 final int timeoutMs = 20; in testEchoSmallMessage() local 339 receiver.waitForMessages(numMessages, timeoutMs); in testEchoSmallMessage() 377 final int timeoutMs = 100; in testEchoLatency() local 379 receiver.waitForMessages(numMessages, timeoutMs); in testEchoLatency() 439 final int timeoutMs = 500; in testEchoMultipleMessages() local [all …]
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | MyActivity.java | 50 public Integer getResult(int timeoutMs) throws InterruptedException { in getResult() argument 51 return mResult.poll(timeoutMs, TimeUnit.MILLISECONDS); in getResult()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTestBase.java | 63 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()
|
D | CompositionTextureView.java | 100 public boolean waitForSurfaceReady(long timeoutMs) throws Exception { in waitForSurfaceReady() argument 104 if (mInitWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSurfaceReady()
|
D | OutputSurface.java | 261 public boolean checkForNewImage(int timeoutMs) { in checkForNewImage() argument 267 mFrameSyncObject.wait(timeoutMs); in checkForNewImage()
|
D | MediaRandomTest.java | 116 public Watchdog(long timeoutMs) { in Watchdog() argument 117 mTimeoutMs = timeoutMs; in Watchdog()
|
D | EncodeVirtualDisplayWithCompositionTest.java | 1221 public void waitForSurfaceReady(long timeoutMs) throws Exception { in waitForSurfaceReady() argument 1224 if(!mWindows[i].waitForSurfaceReady(timeoutMs)) { in waitForSurfaceReady() 1247 void waitForSurfaceReady(long timeoutMs) throws Exception { in waitForSurfaceReady() argument 1248 ((TopWindowPresentation) mPresentation).waitForSurfaceReady(timeoutMs); in waitForSurfaceReady()
|
D | Vp8CodecTestBase.java | 1210 public void waitForCompletion(long timeoutMs) throws Exception { in waitForCompletion() argument 1212 long timeoutExpiredMs = System.currentTimeMillis() + timeoutMs; in waitForCompletion()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaOutputSurface.java | 265 public boolean checkForNewImage(int timeoutMs) { in checkForNewImage() argument 271 mFrameSyncObject.wait(timeoutMs); in checkForNewImage()
|
/cts/tests/tests/hardware/src/android/hardware/multiprocess/ |
D | ErrorLoggingService.java | 549 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/tests/hardware/src/android/hardware/camera2/cts/ |
D | CameraDeviceTest.java | 1183 private void waitForDeviceState(int state, long timeoutMs) { in waitForDeviceState() argument 1184 mCameraMockListener.waitForState(state, timeoutMs); in waitForDeviceState() 1188 private void waitForSessionState(int state, long timeoutMs) { in waitForSessionState() argument 1189 mSessionWaiter.waitForState(state, timeoutMs); in waitForSessionState() 1764 public List<CameraCaptureSession> getAllSessions(int numSessions, int timeoutMs) in getAllSessions() argument 1766 long remainingTime = timeoutMs; in getAllSessions() 1775 assertTrue("Get " + numSessions + " sessions timed out after " + timeoutMs + in getAllSessions() 1788 … public void waitForSessionClose(CameraCaptureSession session, int timeoutMs) throws Exception { in waitForSessionClose() argument 1789 long remainingTime = timeoutMs; in waitForSessionClose() 1798 assertTrue("Wait for session close timed out after " + timeoutMs + "ms", ret); in waitForSessionClose()
|
D | StillCaptureTest.java | 1172 public void waitForAutoFocusDone(long timeoutMs) { in waitForAutoFocusDone() argument 1173 if (focusDone.block(timeoutMs)) { in waitForAutoFocusDone() 1177 + timeoutMs + "ms"); in waitForAutoFocusDone()
|
D | CameraTestUtils.java | 370 public void waitForImageReleased(long timeoutMs) throws InterruptedException { in waitForImageReleased() argument 371 if (!mImageReleasedSema.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForImageReleased() 372 fail("wait for image available timed out after " + timeoutMs + "ms"); in waitForImageReleased()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsService.java | 1668 public TotalCaptureResult getResult(long timeoutMs) throws ItsException { 1671 result = mResultQueue.poll(timeoutMs, TimeUnit.MILLISECONDS); 1677 throw new ItsException("Getting an image timed out after " + timeoutMs + 1698 public Image getImage(long timeoutMs) throws ItsException { 1701 image = mImageQueue.poll(timeoutMs, TimeUnit.MILLISECONDS); 1707 throw new ItsException("Getting an image timed out after " + timeoutMs +
|