/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
H A D | CarDiagnosticManagerTest.java | 59 private void waitForConnection(long timeoutMs) throws InterruptedException { argument 60 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | CarPackageManagerTest.java | 58 private void waitForConnection(long timeoutMs) throws InterruptedException { argument 59 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | CarSensorManagerTest.java | 57 private void waitForConnection(long timeoutMs) throws InterruptedException { argument 58 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | CarTest.java | 60 private void waitForConnection(long timeoutMs) throws InterruptedException { argument 61 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | CarApiTestBase.java | 62 public void waitForConnection(long timeoutMs) throws InterruptedException { argument 63 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | CarAppFocusManagerTest.java | 385 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 D | CarTest.java | 54 private void waitForConnection(long timeoutMs) throws InterruptedException { argument 55 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | CarApiTestBase.java | 60 public void waitForConnection(long timeoutMs) throws InterruptedException { argument 61 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | CarPackageManagerTest.java | 57 private void waitForConnection(long timeoutMs) throws InterruptedException { argument 58 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | CarSensorManagerTest.java | 63 private void waitForConnection(long timeoutMs) throws InterruptedException { argument 64 mConnectionWait.tryAcquire(timeoutMs, TimeUnit.MILLISECONDS);
|
H A D | TestAction.java | 50 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 D | CarAppFocusManagerTest.java | 286 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 D | HeadsetTestUtils.java | 114 * @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 D | CredentialCheckResultTracker.java | 54 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 D | FakeTunerHal.java | 54 long deviceId, int frequency, @ModulationType String modulation, int timeoutMs) { 53 nativeTune( long deviceId, int frequency, @ModulationType String modulation, int timeoutMs) argument
|
H A D | FileTunerHal.java | 108 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 D | E2eCarTestBase.java | 125 void waitForConnection(long timeoutMs) { argument 126 mConnectionWait.block(timeoutMs);
|
H A D | E2ePerformanceTest.java | 297 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 D | TestUtils.java | 198 * @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 D | AppFocusTest.java | 66 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 D | MockedPowerHalService.java | 91 public synchronized int[] waitForSend(long timeoutMs) throws Exception { argument 93 wait(timeoutMs);
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
H A D | AdapterServiceTest.java | 140 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 D | HearingAidServiceTest.java | 166 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 D | MmsNetworkManager.java | 67 * @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 D | HalClient.java | 156 private static int invokeRetriable(RetriableCallback callback, long timeoutMs, long sleepMs) { argument 159 while (StatusCode.TRY_AGAIN == status && (elapsedRealtime() - startTime) < timeoutMs) {
|