Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/test/
DCarPowerManagementServiceTest.java239 private void assertStateReceivedForShutdownOrSleepWithPostpone(int lastState, long timeoutMs, in assertStateReceivedForShutdownOrSleepWithPostpone() argument
242 int[] state = mPowerHal.waitForSend(timeoutMs); in assertStateReceivedForShutdownOrSleepWithPostpone()
253 private static void waitForSemaphore(Semaphore semaphore, long timeoutMs) in waitForSemaphore() argument
255 if (!semaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSemaphore()
281 public boolean waitForDisplayStateChange(long timeoutMs) throws Exception { in waitForDisplayStateChange() argument
282 waitForSemaphore(mDisplayStateWait, timeoutMs); in waitForDisplayStateChange()
295 public void waitForShutdown(long timeoutMs) throws Exception { in waitForShutdown() argument
296 waitForSemaphore(mShutdownWait, timeoutMs); in waitForShutdown()
314 public int waitForSleepEntryAndWakeup(long timeoutMs) throws Exception { in waitForSleepEntryAndWakeup() argument
315 waitForSemaphore(mSleepWait, timeoutMs); in waitForSleepEntryAndWakeup()
[all …]
DMockedPowerHalService.java93 public synchronized int[] waitForSend(long timeoutMs) throws Exception { in waitForSend() argument
95 wait(timeoutMs); in waitForSend()
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/
DCarConnectionListenerInMockingTest.java71 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
72 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
120 public boolean waitForConnection(long timeoutMs) throws Exception { in waitForConnection() argument
121 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForConnection()
130 public boolean waitForDisconnect(long timeoutMs) throws Exception { in waitForDisconnect() argument
131 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForDisconnect()
DAppContextTest.java68 public boolean waitForContextChangeAndAssert(long timeoutMs, int expectedContexts) in waitForContextChangeAndAssert() argument
70 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert()
90 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedContexts) in waitForOwnershipLossAndAssert() argument
92 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DTestAction.java50 public void assertTestRun(long timeoutMs) throws Throwable { in assertTestRun() argument
51 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in assertTestRun()
70 public boolean waitForTest(long timeoutMs) throws Throwable { in waitForTest() argument
71 if (mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForTest()
DCarConnectionListenerTest.java70 public boolean waitForConnection(long timeoutMs) throws Exception { in waitForConnection() argument
71 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForConnection()
79 public boolean waitForDisconnect(long timeoutMs) throws Exception { in waitForDisconnect() argument
80 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForDisconnect()
DCarAppContextManagerTest.java200 public boolean waitForContextChangeAndAssert(long timeoutMs, int expectedContexts) in waitForContextChangeAndAssert() argument
202 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert()
222 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedContexts) in waitForOwnershipLossAndAssert() argument
224 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
DCarApiTestBase.java62 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarPackageManagerTest.java66 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
67 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarTest.java64 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
65 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarSensorManagerTest.java67 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
68 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DLogTest.java77 public boolean didReceiveMessage(int timeoutMs, String msg) { in didReceiveMessage() argument
80 if (timeoutMs > 0) { in didReceiveMessage()
82 Thread.sleep(timeoutMs); in didReceiveMessage()
460 String subsession, String shortMethodName, int timeoutMs) { in verifyMethodCall() argument
464 boolean isMessageReceived = mTestSystemLogger.didReceiveMessage(timeoutMs, in verifyMethodCall()
482 String subsession, int sessionId, int timeoutMs) { in verifyContinueEventResult() argument
487 boolean isMessageReceived = mTestSystemLogger.didReceiveMessage(timeoutMs, in verifyContinueEventResult()
494 int sessionId, int timeoutMs) { in verifyEventResult() argument
496 boolean isMessageReceived = mTestSystemLogger.didReceiveMessage(timeoutMs,event + ": " + in verifyEventResult()
502 int timeoutMs) { in verifyEndEventResult() argument
[all …]
/packages/apps/Settings/src/com/android/settings/
DConfirmLockPassword.java354 public void onVerified(byte[] token, int timeoutMs) { in startVerifyPassword()
365 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startVerifyPassword()
385 public void onChecked(boolean matched, int timeoutMs) { in startCheckPassword()
394 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startCheckPassword()
428 private void onPasswordChecked(boolean matched, Intent intent, int timeoutMs, in onPasswordChecked() argument
438 if (timeoutMs > 0) { in onPasswordChecked()
440 effectiveUserId, timeoutMs); in onPasswordChecked()
452 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
454 onPasswordChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
DConfirmLockPattern.java437 public void onVerified(byte[] token, int timeoutMs) {
448 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
475 public void onChecked(boolean matched, int timeoutMs) {
483 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
490 private void onPatternChecked(boolean matched, Intent intent, int timeoutMs, in onPatternChecked() argument
500 if (timeoutMs > 0) { in onPatternChecked()
502 effectiveUserId, timeoutMs); in onPatternChecked()
515 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
517 onPatternChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
DCredentialCheckResultTracker.java54 public void setResult(boolean matched, Intent intent, int timeoutMs, int effectiveUserId) { in setResult() argument
57 mResultTimeoutMs = timeoutMs; in setResult()
77 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarPowerManagementTest.java209 private void waitForSubscription(long timeoutMs) throws Exception { in waitForSubscription() argument
210 if (!mSubscriptionWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSubscription()
215 private LinkedList<int[]> waitForStateSetAndGetAll(long timeoutMs, int expectedSet) in waitForStateSetAndGetAll() argument
218 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForStateSetAndGetAll()
250 private void waitForDisplayState(boolean expectedState, long timeoutMs) throws Exception { in waitForDisplayState() argument
252 if (!mDisplayWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForDisplayState()
DCarAudioFocusTest.java484 public int waitAndGetFocusChange(long timeoutMs) throws Exception { in waitAndGetFocusChange() argument
485 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitAndGetFocusChange()
491 public void waitForFocus(long timeoutMs, int expectedFocus) throws Exception { in waitForFocus() argument
493 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocus()
530 public int[] waitForAudioFocusRequest(long timeoutMs) throws Exception { in waitForAudioFocusRequest() argument
531 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForAudioFocusRequest()
DMockedCarTestBase.java131 private boolean waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
132 return mConnectionWaitForSupportCar.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/
DVehicleNetworkMockedTest.java389 public boolean waitForHalErrorAndAssert(long timeoutMs, int expectedErrorCode, in waitForHalErrorAndAssert() argument
391 if (!mErrorWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForHalErrorAndAssert()
406 public boolean waitForHalRestartAndAssert(long timeoutMs, boolean expectedInMocking) in waitForHalRestartAndAssert() argument
408 if (!mRestartWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForHalRestartAndAssert()
415 public boolean waitForEvent(long timeoutMs, VehiclePropValue expected) in waitForEvent() argument
417 if (!mEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForEvent()
/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
DCarAppContextManagerTest.java200 public boolean waitForContextChangeAndAssert(long timeoutMs, int expectedContexts) in waitForContextChangeAndAssert() argument
202 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForContextChangeAndAssert()
223 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedContexts) in waitForOwnershipLossAndAssert() argument
225 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
DCarApiTestBase.java62 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarPackageManagerTest.java58 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarSensorManagerTest.java58 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarTest.java55 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
56 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionImageAnimation.java130 public TransitionImageAnimation timeoutMs(long timeoutMs) { in timeoutMs() argument
131 mTransitionTimeoutMs = timeoutMs; in timeoutMs()

12