/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/tests/media/src/android/media/cts/ |
D | TestUtils.java | 92 public synchronized boolean waitForSignal(long timeoutMs) throws InterruptedException { in waitForSignal() argument 93 return waitForCountedSignals(1, timeoutMs) > 0; in waitForSignal() 96 public synchronized int waitForCountedSignals(int targetCount, long timeoutMs) in waitForCountedSignals() argument 98 if (timeoutMs == 0) { in waitForCountedSignals() 101 long deadline = System.currentTimeMillis() + timeoutMs; in waitForCountedSignals()
|
/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/app/app/src/android/app/stubs/ |
D | ActivityTestsBase.java | 159 public int waitForResultOrThrow(int timeoutMs) { in waitForResultOrThrow() argument 160 return waitForResultOrThrow(timeoutMs, null); in waitForResultOrThrow() 163 public int waitForResultOrThrow(int timeoutMs, String expected) { in waitForResultOrThrow() argument 164 final int res = waitForResult(timeoutMs, expected); in waitForResultOrThrow() 177 public int waitForResult(int timeoutMs, String expected) { in waitForResult() argument 180 final long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult()
|
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiEchoTest.java | 287 final int timeoutMs = TIMEOUT_PER_MESSAGE_MS * numMessages; in test_C_EchoSmallMessage() local 288 Thread.sleep(timeoutMs); in test_C_EchoSmallMessage() 316 final int timeoutMs = TIMEOUT_PER_MESSAGE_MS * numMessages; in test_D_EchoNMessages() local 317 Thread.sleep(timeoutMs); in test_D_EchoNMessages() 350 final int timeoutMs = TIMEOUT_PER_MESSAGE_MS * numMessages; in test_E_FlushMessages() local 351 Thread.sleep(timeoutMs); in test_E_FlushMessages() 412 final int timeoutMs = TIMEOUT_PER_MESSAGE_MS * numMessages; in test_G_NativeEchoTime() local 413 Thread.sleep(timeoutMs); in test_G_NativeEchoTime() 451 final int timeoutMs = TIMEOUT_PER_MESSAGE_MS * numMessages; in test_H_EchoNMessages_PureNative() local 452 Thread.sleep(timeoutMs); in test_H_EchoNMessages_PureNative() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | TestUtils.java | 108 long timeoutMs, String conditionName) { in waitOn() argument 115 while (!condition.getAsBoolean() && timeSlept < timeoutMs) { in waitOn() 117 notifyLock.wait(timeoutMs - timeSlept); in waitOn()
|
D | ActivitiesWatcher.java | 49 public ActivitiesWatcher(long timeoutMs) { in ActivitiesWatcher() argument 50 mTimeoutMs = timeoutMs; in ActivitiesWatcher() 150 private ActivityWatcher(long timeoutMs) { in ActivityWatcher() argument 151 mTimeoutMs = timeoutMs; in ActivityWatcher()
|
D | OneTimeDeviceConfigListener.java | 52 long timeoutMs) { in OneTimeDeviceConfigListener() argument 55 mTimeoutMs = timeoutMs; in OneTimeDeviceConfigListener()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | TestUtils.java | 108 long timeoutMs, String conditionName) { in waitOn() argument 115 while (!condition.getAsBoolean() && timeSlept < timeoutMs) { in waitOn() 117 notifyLock.wait(timeoutMs - timeSlept); in waitOn()
|
D | ActivitiesWatcher.java | 49 public ActivitiesWatcher(long timeoutMs) { in ActivitiesWatcher() argument 50 mTimeoutMs = timeoutMs; in ActivitiesWatcher() 150 private ActivityWatcher(long timeoutMs) { in ActivityWatcher() argument 151 mTimeoutMs = timeoutMs; in ActivityWatcher()
|
D | OneTimeDeviceConfigListener.java | 52 long timeoutMs) { in OneTimeDeviceConfigListener() argument 55 mTimeoutMs = timeoutMs; in OneTimeDeviceConfigListener()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | LifecycleTracker.java | 92 long timeoutMs) { in waitForConditionWithTimeout() argument 93 final long timeout = System.currentTimeMillis() + timeoutMs; in waitForConditionWithTimeout() 101 wait(timeoutMs); in waitForConditionWithTimeout()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | OneTimeCancellationSignalListener.java | 35 public OneTimeCancellationSignalListener(long timeoutMs) { in OneTimeCancellationSignalListener() argument 36 mTimeoutMs = timeoutMs; in OneTimeCancellationSignalListener()
|
D | AbstractAutoFillActivity.java | 59 public final void syncRunOnUiThread(Runnable action, long timeoutMs) { in syncRunOnUiThread() argument 66 if (!latch.await(timeoutMs, TimeUnit.MILLISECONDS)) { in syncRunOnUiThread() 68 timeoutMs); in syncRunOnUiThread()
|
D | GridActivity.java | 139 final long timeoutMs = 100; in getText() local 141 onCell(row, column, (c) -> Helper.offer(queue, c.getText().toString(), timeoutMs)); in getText() 142 final String text = queue.poll(timeoutMs, TimeUnit.MILLISECONDS); in getText() 144 throw new RetryableException("text not set in " + timeoutMs + "ms"); in getText()
|
/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()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | ServiceControlUtils.java | 46 BooleanSupplier condition, long timeoutMs, String conditionName) { in waitForConditionWithServiceStateChange() argument 57 waitOn(lock, condition, timeoutMs, conditionName); in waitForConditionWithServiceStateChange()
|
/cts/tests/tests/midi/src/android/midi/cts/ |
D | MidiEchoTest.java | 135 public synchronized void waitForMessages(int count, int timeoutMs) in waitForMessages() argument 137 long endTimeMs = System.currentTimeMillis() + timeoutMs + 1; in waitForMessages() 138 long timeToWait = timeoutMs + 1; in waitForMessages() 334 final int timeoutMs = 20; in testEchoSmallMessage() local 336 receiver.waitForMessages(numMessages, timeoutMs); in testEchoSmallMessage() 376 final int timeoutMs = 100; in testEchoLatency() local 378 receiver.waitForMessages(numMessages, timeoutMs); in testEchoLatency() 438 final int timeoutMs = 500; in testEchoMultipleMessages() local 441 receiver.waitForMessages(messageReceivedIndex + 1, timeoutMs); in testEchoMultipleMessages()
|
/cts/tests/tests/net/api23Test/src/android/net/cts/api23test/ |
D | ConnectivityManagerApi23Test.java | 117 Intent intent, int timeoutMs) throws InterruptedException { in sendOrderedBroadcastAndReturnResultCode() argument 126 Integer resultCode = result.poll(timeoutMs, TimeUnit.MILLISECONDS); in sendOrderedBroadcastAndReturnResultCode() 127 assertNotNull("Timed out (more than " + timeoutMs + in sendOrderedBroadcastAndReturnResultCode()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | AbstractContentCaptureActivity.java | 137 public final void syncRunOnUiThread(@NonNull Runnable action, long timeoutMs) { in syncRunOnUiThread() argument 144 if (!latch.await(timeoutMs, TimeUnit.MILLISECONDS)) { in syncRunOnUiThread() 147 String.format("action on UI thread timed out after %d ms", timeoutMs)); in syncRunOnUiThread()
|
/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 | 74 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 75 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarAppFocusManagerTest.java | 276 public boolean waitForFocusChangedAndAssert(long timeoutMs, int expectedAppType, in waitForFocusChangedAndAssert() argument 278 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocusChangedAndAssert() 309 public boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipGrantAndAssert() argument 311 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipGrantAndAssert() 318 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipLossAndAssert() argument 320 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | Animatable2Callback.java | 48 public boolean waitForEnd(long timeoutMs) throws InterruptedException { in waitForEnd() argument 52 mEndLock.wait(timeoutMs); in waitForEnd()
|