/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPowerManagementServiceTest.java | 241 private void assertStateReceivedForShutdownOrSleepWithPostpone(int lastState, long timeoutMs, in assertStateReceivedForShutdownOrSleepWithPostpone() argument 244 int[] state = mPowerHal.waitForSend(timeoutMs); in assertStateReceivedForShutdownOrSleepWithPostpone() 255 private static void waitForSemaphore(Semaphore semaphore, long timeoutMs) in waitForSemaphore() argument 257 if (!semaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSemaphore() 282 public boolean waitForDisplayStateChange(long timeoutMs) throws Exception { in waitForDisplayStateChange() argument 283 waitForSemaphore(mDisplayStateWait, timeoutMs); in waitForDisplayStateChange() 296 public void waitForShutdown(long timeoutMs) throws Exception { in waitForShutdown() argument 297 waitForSemaphore(mShutdownWait, timeoutMs); in waitForShutdown() 315 public int waitForSleepEntryAndWakeup(long timeoutMs) throws Exception { in waitForSleepEntryAndWakeup() argument 316 waitForSemaphore(mSleepWait, timeoutMs); in waitForSleepEntryAndWakeup() [all …]
|
D | MockedPowerHalService.java | 91 public synchronized int[] waitForSend(long timeoutMs) throws Exception { in waitForSend() argument 93 wait(timeoutMs); in waitForSend()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | AppFocusTest.java | 58 public boolean waitForFocusChangeAndAssert(long timeoutMs, int expectedAppType, in waitForFocusChangeAndAssert() argument 60 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocusChangeAndAssert() 85 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedLossAppType) in waitForOwnershipLossAndAssert() argument 87 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert() 94 public boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedGrantAppType) in waitForOwnershipGrantAndAssert() argument 96 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipGrantAndAssert()
|
D | CarAudioFocusSystemSoundTest.java | 288 public int waitAndGetFocusChange(long timeoutMs) throws Exception { in waitAndGetFocusChange() argument 289 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitAndGetFocusChange() 295 public void waitForFocus(long timeoutMs, int expectedFocus) throws Exception { in waitForFocus() argument 297 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocus() 340 int[] waitForAudioFocusRequest(long timeoutMs) throws Exception { in waitForAudioFocusRequest() argument 341 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForAudioFocusRequest() 350 void assertNoFocusRequest(long timeoutMs) throws Exception { in assertNoFocusRequest() argument 351 if (mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in assertNoFocusRequest()
|
D | CarPowerManagementTest.java | 154 private void waitForSubscription(long timeoutMs) throws Exception { in waitForSubscription() argument 155 if (!mSubscriptionWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSubscription() 160 private LinkedList<int[]> waitForStateSetAndGetAll(long timeoutMs, int expectedSet) in waitForStateSetAndGetAll() argument 163 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForStateSetAndGetAll()
|
D | CarAudioFocusTest.java | 518 int waitAndGetFocusChange(long timeoutMs) throws Exception { in waitAndGetFocusChange() argument 519 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitAndGetFocusChange() 525 void waitForFocus(long timeoutMs, int expectedFocus) throws Exception { in waitForFocus() argument 527 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocus() 570 int[] waitForAudioFocusRequest(long timeoutMs) throws Exception { in waitForAudioFocusRequest() argument 571 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForAudioFocusRequest()
|
D | CarAudioExtFocusTest.java | 874 public int waitAndGetFocusChange(long timeoutMs) throws Exception { in waitAndGetFocusChange() argument 875 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitAndGetFocusChange() 881 public void waitForFocus(long timeoutMs, int expectedFocus) throws Exception { in waitForFocus() argument 883 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocus() 926 public int[] waitForAudioFocusRequest(long timeoutMs) throws Exception { in waitForAudioFocusRequest() argument 927 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForAudioFocusRequest()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ConfirmLockPassword.java | 375 public void onVerified(byte[] token, int timeoutMs) { in startVerifyPassword() 386 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startVerifyPassword() 406 public void onChecked(boolean matched, int timeoutMs) { in startCheckPassword() 415 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startCheckPassword() 446 private void onPasswordChecked(boolean matched, Intent intent, int timeoutMs, in onPasswordChecked() argument 456 if (timeoutMs > 0) { in onPasswordChecked() 459 effectiveUserId, timeoutMs); in onPasswordChecked() 471 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument 473 onPasswordChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
|
D | ConfirmLockPattern.java | 450 public void onVerified(byte[] token, int timeoutMs) { 461 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, 489 public void onChecked(boolean matched, int timeoutMs) { 497 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, 504 private void onPatternChecked(boolean matched, Intent intent, int timeoutMs, in onPatternChecked() argument 514 if (timeoutMs > 0) { in onPatternChecked() 517 effectiveUserId, timeoutMs); in onPatternChecked() 530 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument 532 onPatternChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
|
D | CredentialCheckResultTracker.java | 54 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/android_support_car_api_test/src/com/android/support/car/apitest/ |
D | TestAction.java | 50 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()
|
D | CarAppFocusManagerTest.java | 280 public boolean waitForFocusChangeAndAssert(long timeoutMs, int expectedAppType, in waitForFocusChangeAndAssert() argument 282 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocusChangeAndAssert() 313 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipLossAndAssert() argument 315 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert() 322 public boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipGrantAndAssert() argument 324 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipGrantAndAssert()
|
D | CarApiTestBase.java | 60 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 61 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarPackageManagerTest.java | 57 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 58 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarTest.java | 54 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 55 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarSensorManagerTest.java | 61 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 62 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarAppFocusManagerTest.java | 381 boolean waitForFocusChangeAndAssert(long timeoutMs, int expectedAppType, in waitForFocusChangeAndAssert() argument 384 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocusChangeAndAssert() 415 boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipLossAndAssert() argument 417 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert() 424 boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipGrantAndAssert() argument 426 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipGrantAndAssert()
|
D | CarApiTestBase.java | 62 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarPackageManagerTest.java | 58 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarSensorManagerTest.java | 58 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarDiagnosticManagerTest.java | 59 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 60 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
D | CarTest.java | 60 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 61 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | E2ePerformanceTest.java | 353 void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument 354 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection() 366 private static boolean awaitCountDownLatches(CountDownLatch[] latches, long timeoutMs) in awaitCountDownLatches() argument 370 long timeLeft = timeoutMs - (SystemClock.elapsedRealtime() - start); in awaitCountDownLatches()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsNetworkManager.java | 69 static void setNetworkAcquireTimeout(final long timeoutMs) { in setNetworkAcquireTimeout() argument 70 sNetworkAcquireTimeoutMs = timeoutMs; in setNetworkAcquireTimeout()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | HalClient.java | 156 private static int invokeRetriable(RetriableCallback callback, long timeoutMs, long sleepMs) { in invokeRetriable() argument 159 while (StatusCode.TRY_AGAIN == status && (elapsedRealtime() - startTime) < timeoutMs) { in invokeRetriable()
|