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

12

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
H A DCarDiagnosticManagerTest.java59 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
60 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarPackageManagerTest.java58 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarSensorManagerTest.java57 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
58 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarTest.java60 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
61 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 DCarAppFocusManagerTest.java385 boolean waitForFocusChangeAndAssert(long timeoutMs, int expectedAppType, argument
388 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
419 boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedAppType) argument
421 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
428 boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedAppType) argument
430 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
H A DCarTest.java54 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
55 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarApiTestBase.java60 public void waitForConnection(long timeoutMs) throws InterruptedException { argument
61 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarPackageManagerTest.java57 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
58 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
H A DCarSensorManagerTest.java63 private void waitForConnection(long timeoutMs) throws InterruptedException { argument
64 mConnectionWait.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)) {
H A DCarAppFocusManagerTest.java286 public boolean waitForFocusChangeAndAssert(long timeoutMs, int expectedAppType, argument
288 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
319 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedAppType) argument
321 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
328 public boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedAppType) argument
330 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetTestUtils.java114 * @param timeoutMs timeout for this check in asynchronous test conditions
117 HeadsetCallState headsetCallState, int timeoutMs) {
118 verify(headsetPhoneState, timeout(timeoutMs).times(1)).setNumActiveCall(
120 verify(headsetPhoneState, timeout(timeoutMs).times(1)).setNumHeldCall(
122 verify(headsetPhoneState, timeout(timeoutMs).times(1)).setCallState(
116 verifyPhoneStateChangeSetters(HeadsetPhoneState headsetPhoneState, HeadsetCallState headsetCallState, int timeoutMs) argument
/packages/apps/Settings/src/com/android/settings/password/
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
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/
H A DFakeTunerHal.java54 long deviceId, int frequency, @ModulationType String modulation, int timeoutMs) {
53 nativeTune( long deviceId, int frequency, @ModulationType String modulation, int timeoutMs) argument
H A DFileTunerHal.java108 long deviceId, int frequency, @ModulationType String modulation, int timeoutMs) {
107 nativeTune( long deviceId, int frequency, @ModulationType String modulation, int timeoutMs) argument
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
H A DE2eCarTestBase.java125 void waitForConnection(long timeoutMs) { argument
126 mConnectionWait.block(timeoutMs);
H A DE2ePerformanceTest.java297 private static boolean awaitCountDownLatches(CountDownLatch[] latches, long timeoutMs) argument
301 long timeLeft = timeoutMs - (SystemClock.elapsedRealtime() - start);
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
H A DTestUtils.java198 * @param timeoutMs the time (in milliseconds) to wait for the intent
202 public static Intent waitForIntent(int timeoutMs, BlockingQueue<Intent> queue) { argument
204 Intent intent = queue.poll(timeoutMs, TimeUnit.MILLISECONDS);
216 * @param timeoutMs the time (in milliseconds) to wait and verify no intent
221 public static Intent waitForNoIntent(int timeoutMs, BlockingQueue<Intent> queue) { argument
223 Intent intent = queue.poll(timeoutMs, TimeUnit.MILLISECONDS);
/packages/services/Car/tests/carservice_test/src/com/android/car/
H A DAppFocusTest.java66 public boolean waitForFocusChangeAndAssert(long timeoutMs, int expectedAppType, argument
68 if (!mChangeWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
93 public boolean waitForOwnershipLossAndAssert(long timeoutMs, int expectedLossAppType) argument
95 if (!mLossEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
102 public boolean waitForOwnershipGrantAndAssert(long timeoutMs, int expectedGrantAppType) argument
104 if (!mGrantEventWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS)) {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
H A DMockedPowerHalService.java91 public synchronized int[] waitForSend(long timeoutMs) throws Exception { argument
93 wait(timeoutMs);
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
H A DAdapterServiceTest.java140 private void verifyStateChange(int prevState, int currState, int callNumber, int timeoutMs) { argument
142 verify(mIBluetoothCallback, timeout(timeoutMs)
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
H A DHearingAidServiceTest.java166 private void verifyConnectionStateIntent(int timeoutMs, BluetoothDevice device, argument
168 Intent intent = TestUtils.waitForIntent(timeoutMs, mDeviceQueueMap.get(device));
178 private void verifyNoConnectionStateIntent(int timeoutMs, BluetoothDevice device) { argument
179 Intent intent = TestUtils.waitForNoIntent(timeoutMs, mDeviceQueueMap.get(device));
/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/services/Car/service/src/com/android/car/hal/
H A DHalClient.java156 private static int invokeRetriable(RetriableCallback callback, long timeoutMs, long sleepMs) { argument
159 while (StatusCode.TRY_AGAIN == status && (elapsedRealtime() - startTime) < timeoutMs) {

Completed in 957 milliseconds

12