Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java246 int lastState, long timeoutMs, int expectedParamForShutdownOrSuspend) throws Exception { in assertStateReceivedForShutdownOrSleepWithPostpone() argument
251 int[] state = mPowerHal.waitForSend(timeoutMs); in assertStateReceivedForShutdownOrSleepWithPostpone()
262 private static void waitForSemaphore(Semaphore semaphore, long timeoutMs) in waitForSemaphore() argument
264 if (!semaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSemaphore()
286 public boolean waitForDisplayStateChange(long timeoutMs) throws Exception { in waitForDisplayStateChange() argument
287 waitForSemaphore(mDisplayStateWait, timeoutMs); in waitForDisplayStateChange()
315 public void waitForShutdown(long timeoutMs) throws Exception { in waitForShutdown() argument
316 waitForSemaphore(mShutdownWait, timeoutMs); in waitForShutdown()
329 public void waitForSleepEntryAndWakeup(long timeoutMs) throws Exception { in waitForSleepEntryAndWakeup() argument
330 waitForSemaphore(mSleepWait, timeoutMs); in waitForSleepEntryAndWakeup()
[all …]
DMockedPowerHalService.java90 public synchronized int[] waitForSend(long timeoutMs) throws Exception { in waitForSend() argument
92 wait(timeoutMs); in waitForSend()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DAppFocusTest.java60 public boolean waitForFocusChangeAndAssert(long timeoutMs, int expectedAppType, in waitForFocusChangeAndAssert() argument
62 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocusChangeAndAssert()
87 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedLossAppType) in waitForOwnershipLossAndAssert() argument
89 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
96 public boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedGrantAppType) in waitForOwnershipGrantAndAssert() argument
98 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipGrantAndAssert()
DCarPowerManagementTest.java359 private void waitForSubscription(long timeoutMs) throws Exception { in waitForSubscription() argument
360 if (!mSubscriptionWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForSubscription()
365 private LinkedList<int[]> waitForStateSetAndGetAll(long timeoutMs, int expectedSet) in waitForStateSetAndGetAll() argument
368 if (!mSetWaitSemaphore.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForStateSetAndGetAll()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmLockPassword.java362 public void onVerified(byte[] token, int timeoutMs) { in startVerifyPassword()
373 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startVerifyPassword()
393 public void onChecked(boolean matched, int timeoutMs) { in startCheckPassword()
402 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startCheckPassword()
433 private void onPasswordChecked(boolean matched, Intent intent, int timeoutMs, in onPasswordChecked() argument
445 if (timeoutMs > 0) { in onPasswordChecked()
448 effectiveUserId, timeoutMs); in onPasswordChecked()
460 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
462 onPasswordChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
DConfirmLockPattern.java431 public void onVerified(byte[] token, int timeoutMs) {
442 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
470 public void onChecked(boolean matched, int timeoutMs) {
478 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
485 private void onPatternChecked(boolean matched, Intent intent, int timeoutMs, in onPatternChecked() argument
497 if (timeoutMs > 0) { in onPatternChecked()
500 effectiveUserId, timeoutMs); in onPatternChecked()
513 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
515 onPatternChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
DCredentialCheckResultTracker.java55 public void setResult(boolean matched, Intent intent, int timeoutMs, int effectiveUserId) { in setResult() argument
58 mResultTimeoutMs = timeoutMs; in setResult()
78 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DConfirmLockPassword.java362 public void onVerified(byte[] token, int timeoutMs) { in startVerifyPassword()
373 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startVerifyPassword()
393 public void onChecked(boolean matched, int timeoutMs) { in startCheckPassword()
402 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startCheckPassword()
433 private void onPasswordChecked(boolean matched, Intent intent, int timeoutMs, in onPasswordChecked() argument
445 if (timeoutMs > 0) { in onPasswordChecked()
448 effectiveUserId, timeoutMs); in onPasswordChecked()
460 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
462 onPasswordChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
DConfirmLockPattern.java431 public void onVerified(byte[] token, int timeoutMs) {
442 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
470 public void onChecked(boolean matched, int timeoutMs) {
478 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
485 private void onPatternChecked(boolean matched, Intent intent, int timeoutMs, in onPatternChecked() argument
497 if (timeoutMs > 0) { in onPatternChecked()
500 effectiveUserId, timeoutMs); in onPatternChecked()
513 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
515 onPatternChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
DCredentialCheckResultTracker.java55 public void setResult(boolean matched, Intent intent, int timeoutMs, int effectiveUserId) { in setResult() argument
58 mResultTimeoutMs = timeoutMs; in setResult()
78 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetTestUtils.java117 HeadsetCallState headsetCallState, int timeoutMs) { in verifyPhoneStateChangeSetters() argument
118 verify(headsetPhoneState, timeout(timeoutMs).times(1)).setNumActiveCall( in verifyPhoneStateChangeSetters()
120 verify(headsetPhoneState, timeout(timeoutMs).times(1)).setNumHeldCall( in verifyPhoneStateChangeSetters()
122 verify(headsetPhoneState, timeout(timeoutMs).times(1)).setCallState( in verifyPhoneStateChangeSetters()
DHeadsetServiceAndStateMachineTest.java1193 private void waitAndVerifyConnectionStateIntent(int timeoutMs, BluetoothDevice device, in waitAndVerifyConnectionStateIntent() argument
1195 Intent intent = TestUtils.waitForIntent(timeoutMs, mConnectionStateChangedQueue); in waitAndVerifyConnectionStateIntent()
1200 private void waitAndVerifyActiveDeviceChangedIntent(int timeoutMs, BluetoothDevice device) { in waitAndVerifyActiveDeviceChangedIntent() argument
1201 Intent intent = TestUtils.waitForIntent(timeoutMs, mActiveDeviceChangedQueue); in waitAndVerifyActiveDeviceChangedIntent()
1206 private void waitAndVerifyAudioStateIntent(int timeoutMs, BluetoothDevice device, int newState, in waitAndVerifyAudioStateIntent() argument
1208 Intent intent = TestUtils.waitForIntent(timeoutMs, mAudioStateChangedQueue); in waitAndVerifyAudioStateIntent()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarAppFocusManagerTest.java302 boolean waitForFocusChangeAndAssert(long timeoutMs, int expectedAppType, in waitForFocusChangeAndAssert() argument
305 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForFocusChangeAndAssert()
336 boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipLossAndAssert() argument
338 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipLossAndAssert()
345 boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedAppType) in waitForOwnershipGrantAndAssert() argument
347 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) { in waitForOwnershipGrantAndAssert()
DCarApiTestBase.java62 public void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarSensorManagerTest.java57 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
58 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()
DCarDiagnosticManagerTest.java59 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
60 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
DCarTest.java59 private void waitForConnection(long timeoutMs) throws InterruptedException { in waitForConnection() argument
60 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS); in waitForConnection()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java181 private void verifyConnectionStateIntent(int timeoutMs, BluetoothDevice device, in verifyConnectionStateIntent() argument
183 Intent intent = TestUtils.waitForIntent(timeoutMs, mConnectionStateChangedQueue); in verifyConnectionStateIntent()
193 private void verifyNoConnectionStateIntent(int timeoutMs) { in verifyNoConnectionStateIntent() argument
194 Intent intent = TestUtils.waitForNoIntent(timeoutMs, mConnectionStateChangedQueue); in verifyNoConnectionStateIntent()
198 private void verifyAudioStateIntent(int timeoutMs, BluetoothDevice device, in verifyAudioStateIntent() argument
200 Intent intent = TestUtils.waitForIntent(timeoutMs, mAudioStateChangedQueue); in verifyAudioStateIntent()
209 private void verifyNoAudioStateIntent(int timeoutMs) { in verifyNoAudioStateIntent() argument
210 Intent intent = TestUtils.waitForNoIntent(timeoutMs, mAudioStateChangedQueue); in verifyNoAudioStateIntent()
214 private void verifyCodecConfigIntent(int timeoutMs, BluetoothDevice device, in verifyCodecConfigIntent() argument
216 Intent intent = TestUtils.waitForIntent(timeoutMs, mCodecConfigChangedQueue); in verifyCodecConfigIntent()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceTest.java171 private Intent waitForIntent(int timeoutMs, BlockingQueue<Intent> queue) { in waitForIntent() argument
173 Intent intent = queue.poll(timeoutMs, TimeUnit.MILLISECONDS); in waitForIntent()
182 private void verifyConnectionStateIntent(int timeoutMs, BluetoothDevice device, int newState, in verifyConnectionStateIntent() argument
184 Intent intent = waitForIntent(timeoutMs, mConnectionStateChangedQueue); in verifyConnectionStateIntent()
193 private void verifyCallback(int timeoutMs, int callbackType, BlockingQueue<Integer> queue) { in verifyCallback() argument
195 Integer lastCallback = queue.poll(timeoutMs, TimeUnit.MILLISECONDS); in verifyCallback()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java207 public static Intent waitForIntent(int timeoutMs, BlockingQueue<Intent> queue) { in waitForIntent() argument
209 Intent intent = queue.poll(timeoutMs, TimeUnit.MILLISECONDS); in waitForIntent()
226 public static Intent waitForNoIntent(int timeoutMs, BlockingQueue<Intent> queue) { in waitForNoIntent() argument
228 Intent intent = queue.poll(timeoutMs, TimeUnit.MILLISECONDS); in waitForNoIntent()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2eCarTestBase.java125 void waitForConnection(long timeoutMs) { in waitForConnection() argument
126 mConnectionWait.block(timeoutMs); in waitForConnection()
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java85 int timeoutMs) throws UnknownHostException { in getAllByName() argument
119 latch.await(timeoutMs, TimeUnit.MILLISECONDS); in getAllByName()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsNetworkManager.java69 static void setNetworkAcquireTimeout(final long timeoutMs) { in setNetworkAcquireTimeout() argument
70 sNetworkAcquireTimeoutMs = timeoutMs; in setNetworkAcquireTimeout()
/packages/services/Car/service/src/com/android/car/hal/
DHalClient.java156 private static int invokeRetriable(RetriableCallback callback, long timeoutMs, long sleepMs) { in invokeRetriable() argument
159 while (StatusCode.TRY_AGAIN == status && (elapsedRealtime() - startTime) < timeoutMs) { in invokeRetriable()

12