Home
last modified time | relevance | path

Searched refs:mCountDownLatch (Results 1 – 25 of 53) sorted by relevance

123

/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccServiceTest.java93 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/
DTestLocationListener.java37 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()
DTestGnssMeasurementListener.java50 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/
DMediaSessionManagerTest.java151 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/
DLatchedOutcomeReceiver.java35 private final CountDownLatch mCountDownLatch; field in LatchedOutcomeReceiver
48 mCountDownLatch = latch; in LatchedOutcomeReceiver()
55 mCountDownLatch.countDown(); in onResult()
62 mCountDownLatch.countDown(); in onError()
DLatchedEndpointOutcomeReceiver.java30 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/
DTestGnssNavigationMessageListener.java43 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/
DMediaSessionManagerTest.java144 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()
DUtils.java59 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/
DStatusReceiver.java59 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/
DAudioTestUtil.java147 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/
DGearSelectionTestActivity.java114 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/
DSurfaceSyncGroupActivity.java43 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in SurfaceSyncGroupActivity
53 mCountDownLatch, in onCreate()
73 ready = mCountDownLatch.await(5, TimeUnit.SECONDS); in setupEmbeddedSCVH()
DSurfaceViewSyncTest.java100 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/
DRetrieveTransportInfoAndReturnStatusActivity.java45 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/
DActivityCaptureCallbackTests.java158 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/
DGnssDeviceInfo.java159 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/
DTextToSpeechConnectionTest.java199 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/
DSignificantMotionTestActivity.java335 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/
DMediaProjectionActivity.java73 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/
DDisplayRefreshRateTest.java90 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/
DConnectedNetworkScorerTest.java197 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/
DTelecomCtsVoipCall.java169 CountDownLatch mCountDownLatch; field in TelecomCtsVoipCall.LatchedOutcomeReceiver
172 mCountDownLatch = latch; in LatchedOutcomeReceiver()
178 mCountDownLatch.countDown(); in onResult()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_DownloadsTest.java77 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/
DCarMediaManagerTest.java245 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()

123