/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/ |
D | EuiccServiceTest.java | 93 private CountDownLatch mCountDownLatch; field in EuiccServiceTest 233 mCountDownLatch = new CountDownLatch(1); in testOnGetEid() 241 mCountDownLatch.countDown(); in testOnGetEid() 246 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetEid() 257 mCountDownLatch = new CountDownLatch(1); in testOnGetAvailableMemoryInBytes_onSuccess() 266 mCountDownLatch.countDown(); in testOnGetAvailableMemoryInBytes_onSuccess() 276 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetAvailableMemoryInBytes_onSuccess() 288 mCountDownLatch = new CountDownLatch(1); in testOnGetAvailableMemoryInBytes_onUnsupportedOperationException() 301 mCountDownLatch.countDown(); in testOnGetAvailableMemoryInBytes_onUnsupportedOperationException() 306 mCountDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testOnGetAvailableMemoryInBytes_onUnsupportedOperationException() [all …]
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | TestLocationListener.java | 37 private CountDownLatch mCountDownLatch; field in TestLocationListener 41 mCountDownLatch = new CountDownLatch(locationToCollect); in TestLocationListener() 49 mCountDownLatch.countDown(); in onLocationChanged() 55 mCountDownLatch = new CountDownLatch(locationToCollect); in clearReceivedLocationsAndResetCounter() 77 return TestUtils.waitFor(mCountDownLatch, TIMEOUT_IN_SEC); in await() 81 return TestUtils.waitFor(mCountDownLatch, timeInSec); in await()
|
D | TestGnssMeasurementListener.java | 50 private final CountDownLatch mCountDownLatch; field in TestGnssMeasurementListener 82 mCountDownLatch = new CountDownLatch(eventsToCollect); in TestGnssMeasurementListener() 123 mCountDownLatch.countDown(); in onGnssMeasurementsReceived() 131 mCountDownLatch.countDown(); in onGnssMeasurementsReceived() 174 return TestUtils.waitFor(mCountDownLatch, seconds); in await()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSessionManagerTest.java | 151 assertThat(keyEventSessionListener.mCountDownLatch in testOnMediaKeyEventSessionChangedListener() 163 assertThat(keyEventSessionListener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)) in testOnMediaKeyEventSessionChangedListener() 181 assertThat(keyEventSessionListener.mCountDownLatch in testOnMediaKeyEventSessionChangedListener_whenSessionIsReleased() 187 assertThat(keyEventSessionListener.mCountDownLatch in testOnMediaKeyEventSessionChangedListener_whenSessionIsReleased() 208 assertThat(keyEventSessionListener.mCountDownLatch in testOnMediaKeyEventSessionChangedListener_noSession_passesEmptyPackageAndNullToken() 272 assertThat(keyEventDispatchedListener.mCountDownLatch in testOnMediaKeyEventDispatchedListener() 285 assertThat(keyEventDispatchedListener.mCountDownLatch in testOnMediaKeyEventDispatchedListener() 337 assertThat(listener.mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in testSetOnVolumeKeyLongPressListener() 350 assertThat(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)).isFalse(); in testSetOnVolumeKeyLongPressListener() 356 assertThat(listener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)).isFalse(); in testSetOnVolumeKeyLongPressListener() [all …]
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | LatchedOutcomeReceiver.java | 35 private final CountDownLatch mCountDownLatch; field in LatchedOutcomeReceiver 48 mCountDownLatch = latch; in LatchedOutcomeReceiver() 55 mCountDownLatch.countDown(); in onResult() 62 mCountDownLatch.countDown(); in onError()
|
D | LatchedEndpointOutcomeReceiver.java | 30 CountDownLatch mCountDownLatch; field in LatchedEndpointOutcomeReceiver 33 mCountDownLatch = latch; in LatchedEndpointOutcomeReceiver() 39 mCountDownLatch.countDown(); in onResult()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/ |
D | TestGnssNavigationMessageListener.java | 43 private final CountDownLatch mCountDownLatch; field in TestGnssNavigationMessageListener 47 mCountDownLatch = new CountDownLatch(1); in TestGnssNavigationMessageListener() 56 mCountDownLatch.countDown(); in onGnssNavigationMessageReceived() 64 mCountDownLatch.countDown(); in onStatusChanged() 70 return TestUtils.waitFor(mCountDownLatch, TIMEOUT_IN_SEC); in await()
|
/cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/ |
D | MediaSessionManagerTest.java | 144 assertTrue(keyEventSessionListener.mCountDownLatch in testOnMediaKeyEventSessionChangedListener() 158 assertFalse(keyEventSessionListener.mCountDownLatch.await(WAIT_MS, TimeUnit.MILLISECONDS)); in testOnMediaKeyEventSessionChangedListener() 172 assertTrue(keyEventSessionListener.mCountDownLatch in testOnMediaKeyEventSessionChangedListener_whenSessionIsReleased() 178 assertTrue(keyEventSessionListener.mCountDownLatch in testOnMediaKeyEventSessionChangedListener_whenSessionIsReleased() 201 CountDownLatch mCountDownLatch; field in MediaSessionManagerTest.MediaKeyEventSessionListener 205 mCountDownLatch = new CountDownLatch(1); in MediaKeyEventSessionListener() 209 mCountDownLatch = new CountDownLatch(1); in resetCountDownLatch() 216 mCountDownLatch.countDown(); in onMediaKeyEventSessionChanged()
|
D | Utils.java | 59 if (!callback.mCountDownLatch.await(TEST_TIMING_TOLERANCE_MS, TimeUnit.MILLISECONDS) in assertMediaPlaybackStarted() 77 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in Utils.TestAudioPlaybackCallback 85 mCountDownLatch.countDown(); in onPlaybackConfigChanged()
|
/cts/hostsidetests/incrementalinstall/appvalidator/src/android/incrementalinstall/inrementaltestappvalidation/ |
D | StatusReceiver.java | 59 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in StatusReceiver.StatusLatch 64 mCountDownLatch.countDown(); in releaseWithStatus() 68 mCountDownLatch.await(); in awaitForStatus()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioTestUtil.java | 147 private CountDownLatch mCountDownLatch; field in AudioTestUtil.AudioRecordingCallbackUtil 150 mCountDownLatch = new CountDownLatch(1); in reset() 169 mCountDownLatch.countDown(); in onRecordingConfigChanged() 174 mCountDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS); in await()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | GearSelectionTestActivity.java | 114 private CountDownLatch mCountDownLatch; field in GearSelectionTestActivity.GearSelectionCallback 129 mCountDownLatch.countDown(); in onChangeEvent() 132 if (mCountDownLatch.getCount() != 0) { in onChangeEvent() 154 mCountDownLatch = new CountDownLatch(counter); in setSupportedGearCounter() 158 if (!mCountDownLatch.await(TEST_TIMEOUT_MINUTES, TimeUnit.MINUTES)) { in unregisterIfTimeout()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceSyncGroupActivity.java | 43 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in SurfaceSyncGroupActivity 53 mCountDownLatch, in onCreate() 73 ready = mCountDownLatch.await(5, TimeUnit.SECONDS); in setupEmbeddedSCVH()
|
D | SurfaceViewSyncTest.java | 100 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); 121 mCountDownLatch.countDown(); 133 return mCountDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS); 141 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); 160 t.addTransactionCommittedListener(Runnable::run, mCountDownLatch::countDown); 184 return mCountDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS);
|
/cts/tests/tests/wifi/CtsWifiLocationTestApp/src/android/net/wifi/cts/app/ |
D | RetrieveTransportInfoAndReturnStatusActivity.java | 45 private final CountDownLatch mCountDownLatch; field in RetrieveTransportInfoAndReturnStatusActivity.TestNetworkCallback 51 mCountDownLatch = countDownLatch; in TestNetworkCallback() 64 mCountDownLatch.countDown(); in onCapabilitiesChanged()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/ |
D | ActivityCaptureCallbackTests.java | 158 private CountDownLatch mCountDownLatch = new CountDownLatch(1); field in ActivityCaptureCallbackTests.ScreencaptureCallbackActivity 165 mCountDownLatch.countDown(); 171 boolean invoked = mCountDownLatch.await( in waitAndAssertCallbackInvokedOnActivity() 181 boolean invoked = mCountDownLatch.await( in waitAndAssertCallbackNotInvoked()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | GnssDeviceInfo.java | 159 private final CountDownLatch mCountDownLatch; field in GnssDeviceInfo.TestGnssMeasurementListener 169 mCountDownLatch = new CountDownLatch(eventsToCollect); in TestGnssMeasurementListener() 179 mCountDownLatch.countDown(); in onGnssMeasurementsReceived() 201 if (mCountDownLatch.await(STANDARD_WAIT_TIME_MS, TimeUnit.MILLISECONDS)) { in waitFor()
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechConnectionTest.java | 199 private final CountDownLatch mCountDownLatch; field in TextToSpeechConnectionTest.TtsInitListener 203 mCountDownLatch = new CountDownLatch(1); in TtsInitListener() 209 mCountDownLatch.countDown(); in onInit() 214 boolean resultAccepted = mCountDownLatch.await(TTS_INIT_WAITING_TIME_LIMIT_MILLIS, in waitForInitStatus()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | SignificantMotionTestActivity.java | 335 private volatile CountDownLatch mCountDownLatch; 353 mCountDownLatch.countDown(); 357 if (mCountDownLatch != null) { 358 mCountDownLatch.countDown(); 419 mCountDownLatch = new CountDownLatch(1); 420 mCountDownLatch.await(TRIGGER_MAX_DELAY_SECONDS, TimeUnit.SECONDS);
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | MediaProjectionActivity.java | 73 private CountDownLatch mCountDownLatch; field in MediaProjectionActivity 85 mCountDownLatch = new CountDownLatch(1); in onCreate() 142 mCountDownLatch.countDown(); in createMediaProjection() 160 } while (!mCountDownLatch.await(timeOutMs, TimeUnit.MILLISECONDS)); in waitForMediaProjection()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | DisplayRefreshRateTest.java | 90 private CountDownLatch mCountDownLatch = new CountDownLatch(1); field in DisplayRefreshRateTest.DisplayListener 95 mCountDownLatch.await(5, TimeUnit.SECONDS); in waitForModeToChange() 115 mCountDownLatch.countDown(); in onDisplayChanged()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | ConnectedNetworkScorerTest.java | 197 private final CountDownLatch mCountDownLatch; field in ConnectedNetworkScorerTest.TestUsabilityStatsListener 203 mCountDownLatch = countDownLatch; in TestUsabilityStatsListener() 212 mCountDownLatch.countDown(); in onWifiUsabilityStats() 531 protected CountDownLatch mCountDownLatch; field in ConnectedNetworkScorerTest.TestConnectedNetworkScorer 538 mCountDownLatch = countDownLatch; in TestConnectedNetworkScorer() 543 synchronized (mCountDownLatch) { in onStop() 545 mCountDownLatch.countDown(); in onStop() 551 synchronized (mCountDownLatch) { in onSetScoreUpdateObserver() 557 synchronized (mCountDownLatch) { in resetCountDownLatch() 558 mCountDownLatch = countDownLatch; in resetCountDownLatch() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomCtsVoipCall.java | 169 CountDownLatch mCountDownLatch; field in TelecomCtsVoipCall.LatchedOutcomeReceiver 172 mCountDownLatch = latch; in LatchedOutcomeReceiver() 178 mCountDownLatch.countDown(); in onResult()
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStore_DownloadsTest.java | 77 private CountDownLatch mCountDownLatch; field in MediaStore_DownloadsTest 298 mCountDownLatch.countDown(); in testNotifyChange() 308 mCountDownLatch = new CountDownLatch(1); in testNotifyChange() 324 mCountDownLatch.await(NOTIFY_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyChange() 326 mCountDownLatch = new CountDownLatch(1); in testNotifyChange() 331 mCountDownLatch.await(NOTIFY_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyChange() 333 mCountDownLatch = new CountDownLatch(1); in testNotifyChange() 335 mCountDownLatch.await(NOTIFY_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyChange()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarMediaManagerTest.java | 245 private final CountDownLatch mCountDownLatch; field in CarMediaManagerTest.MediaSourceTracker 249 mCountDownLatch = new CountDownLatch(expectedCount); in MediaSourceTracker() 253 return mCountDownLatch.await(TIMEOUT, TimeUnit.SECONDS); in await() 259 mCountDownLatch.countDown(); in onMediaSourceChanged()
|