/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | BlockingInputAllocation.java | 113 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/ |
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/autofillservice/src/android/autofillservice/cts/ |
D | OneTimeCancellationSignalListener.java | 34 OneTimeCancellationSignalListener(long timeoutMs) { in OneTimeCancellationSignalListener() argument 35 mTimeoutMs = timeoutMs; in OneTimeCancellationSignalListener()
|
D | AbstractAutoFillActivity.java | 52 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/ |
D | TestUtils.java | 187 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()
|
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 | 118 public Watchdog(long timeoutMs) { in Watchdog() argument 119 mTimeoutMs = timeoutMs; in Watchdog()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | MyActivity.java | 46 public Integer getResult(int timeoutMs) throws InterruptedException { in getResult() argument 47 return mResult.poll(timeoutMs, TimeUnit.MILLISECONDS); in getResult()
|
D | RemoteSocketFactoryClient.java | 83 public FileDescriptor openSocketFd(String host, int port, int timeoutMs) in openSocketFd() argument 87 ParcelFileDescriptor pfd = mService.openSocketFd(host, port, timeoutMs); in openSocketFd()
|
D | AbstractRestrictBackgroundNetworkTestCase.java | 220 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/ |
D | LifecycleTracker.java | 75 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/ |
D | AsyncUtils.java | 76 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/ |
D | RemoteSocketFactoryService.java | 38 public ParcelFileDescriptor openSocketFd(String host, int port, int timeoutMs) { 41 s.setSoTimeout(timeoutMs);
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarApiTestBase.java | 63 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 64 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarTest.java | 62 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarAppFocusManagerTest.java | 329 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/ |
D | Animatable2Callback.java | 45 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/ |
D | IRemoteSocketFactory.aidl | 22 ParcelFileDescriptor openSocketFd(String host, int port, int timeoutMs); in openSocketFd() argument
|
/cts/tests/tests/midi/src/android/midi/cts/ |
D | MidiEchoTest.java | 131 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/ |
D | TestLogService.java | 85 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/ |
D | TestProcessClient.java | 101 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/ |
D | CtsMediaOutputSurface.java | 265 public boolean checkForNewImage(int timeoutMs) { in checkForNewImage() argument 271 mFrameSyncObject.wait(timeoutMs); in checkForNewImage()
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
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()
|