Searched defs:timeoutMs (Results 1 - 25 of 28) sorted by relevance

12

/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
H A DCarPackageManagerTest.java58 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarSensorManagerTest.java58 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarTest.java55 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
56 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarApiTestBase.java62 public void waitForConnection(long timeoutMs) throws InterruptedException { argument
63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarAppContextManagerTest.java200 public boolean waitForContextChangeAndAssert(long timeoutMs, int expectedContexts) argument
202 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
223 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedContexts) argument
225 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
H A DCarTest.java64 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
65 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarConnectionListenerTest.java70 public boolean waitForConnection(long timeoutMs) throws Exception { argument
71 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
79 public boolean waitForDisconnect(long timeoutMs) throws Exception { argument
80 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
H A DCarPackageManagerTest.java66 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
67 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarSensorManagerTest.java67 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
68 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarApiTestBase.java62 public void waitForConnection(long timeoutMs) throws InterruptedException { argument
63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarAppContextManagerTest.java200 public boolean waitForContextChangeAndAssert(long timeoutMs, int expectedContexts) argument
202 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
222 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedContexts) argument
224 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
H A DTestAction.java50 public void assertTestRun(long timeoutMs) throws Throwable { argument
51 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
70 public boolean waitForTest(long timeoutMs) throws Throwable { argument
71 if (mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
/packages/apps/Settings/src/com/android/settings/
H A DCredentialCheckResultTracker.java54 public void setResult(boolean matched, Intent intent, int timeoutMs, int effectiveUserId) { argument
57 mResultTimeoutMs = timeoutMs;
77 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, argument
H A DConfirmLockPassword.java354 public void onVerified(byte[] token, int timeoutMs) {
365 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
385 public void onChecked(boolean matched, int timeoutMs) {
394 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
428 private void onPasswordChecked(boolean matched, Intent intent, int timeoutMs, argument
438 if (timeoutMs > 0) {
440 effectiveUserId, timeoutMs);
452 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, argument
454 onPasswordChecked(matched, intent, timeoutMs, effectiveUserId, newResult);
H A 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, argument
500 if (timeoutMs > 0) {
502 effectiveUserId, timeoutMs);
515 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, argument
517 onPatternChecked(matched, intent, timeoutMs, effectiveUserId, newResult);
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
H A DMockedCarTestBase.java131 private boolean waitForConnection(long timeoutMs) throws InterruptedException { argument
132 return mConnectionWaitForSupportCar.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarAudioFocusTest.java484 public int waitAndGetFocusChange(long timeoutMs) throws Exception { argument
485 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
491 public void waitForFocus(long timeoutMs, int expectedFocus) throws Exception { argument
493 if (!mFocusChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
530 public int[] waitForAudioFocusRequest(long timeoutMs) throws Exception { argument
531 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
H A DCarPowerManagementTest.java209 private void waitForSubscription(long timeoutMs) throws Exception { argument
210 if (!mSubscriptionWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
215 private LinkedList<int[]> waitForStateSetAndGetAll(long timeoutMs, int expectedSet) argument
218 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
250 private void waitForDisplayState(boolean expectedState, long timeoutMs) throws Exception { argument
252 if (!mDisplayWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/
H A DAppContextTest.java68 public boolean waitForContextChangeAndAssert(long timeoutMs, int expectedContexts) argument
70 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
90 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedContexts) argument
92 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
H A DCarConnectionListenerInMockingTest.java71 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
72 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
120 public boolean waitForConnection(long timeoutMs) throws Exception { argument
121 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
130 public boolean waitForDisconnect(long timeoutMs) throws Exception { argument
131 if (!mWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/test/
H A DMockedPowerHalService.java93 public synchronized int[] waitForSend(long timeoutMs) throws Exception { argument
95 wait(timeoutMs);
H A DCarPowerManagementServiceTest.java239 private void assertStateReceivedForShutdownOrSleepWithPostpone(int lastState, long timeoutMs, argument
242 int[] state = mPowerHal.waitForSend(timeoutMs);
253 private static void waitForSemaphore(Semaphore semaphore, long timeoutMs) argument
255 if (!semaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
281 public boolean waitForDisplayStateChange(long timeoutMs) throws Exception { argument
282 waitForSemaphore(mDisplayStateWait, timeoutMs);
295 public void waitForShutdown(long timeoutMs) throws Exception { argument
296 waitForSemaphore(mShutdownWait, timeoutMs);
314 public int waitForSleepEntryAndWakeup(long timeoutMs) throws Exception { argument
315 waitForSemaphore(mSleepWait, timeoutMs);
357 waitForShutdown(long timeoutMs) argument
366 waitForSleepEntry(long timeoutMs) argument
375 waitForSleepExit(long timeoutMs) argument
399 waitForPrepareShutdown(long timeoutMs) argument
410 waitForPowerOn(long timeoutMs) argument
[all...]
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/
H A DVehicleNetworkTest.java224 private synchronized boolean waitForEvent(Integer prop, long timeoutMs) argument
227 long end = now + timeoutMs;
/packages/apps/Messaging/src/android/support/v7/mms/
H A DMmsNetworkManager.java67 * @param timeoutMs timeout in millisecond
69 static void setNetworkAcquireTimeout(final long timeoutMs) { argument
70 sNetworkAcquireTimeoutMs = timeoutMs;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
H A DTransitionImageAnimation.java130 public TransitionImageAnimation timeoutMs(long timeoutMs) { argument
131 mTransitionTimeoutMs = timeoutMs;

Completed in 854 milliseconds

12