Home
last modified time | relevance | path

Searched refs:countDownLatch (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DSessionAbandonBehaviorTest.java96 AbandonSessionCallBack(CountDownLatch countDownLatch, int[] sessionIds) { in AbandonSessionCallBack() argument
97 mCountDownLatch = countDownLatch; in AbandonSessionCallBack()
104 AbandonSessionCallBack(CountDownLatch countDownLatch, int sessionId) { in AbandonSessionCallBack() argument
105 this(countDownLatch, new int[]{sessionId}); in AbandonSessionCallBack()
268 final CountDownLatch countDownLatch = new CountDownLatch(1); in abandon_stagedSession_shouldReceiveAbandonCallBack() local
270 new AbandonSessionCallBack(countDownLatch, sessionId)); in abandon_stagedSession_shouldReceiveAbandonCallBack()
275 countDownLatch.await(CALLBACK_TIMEOUT_SECONDS, TimeUnit.SECONDS)).isTrue(); in abandon_stagedSession_shouldReceiveAbandonCallBack()
282 final CountDownLatch countDownLatch = new CountDownLatch(1); in abandon_nonStagedSession_shouldReceiveAbandonCallBack() local
284 new AbandonSessionCallBack(countDownLatch, sessionId)); in abandon_nonStagedSession_shouldReceiveAbandonCallBack()
289 countDownLatch.await(CALLBACK_TIMEOUT_SECONDS, TimeUnit.SECONDS)).isTrue(); in abandon_nonStagedSession_shouldReceiveAbandonCallBack()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestImsService.java127 countDownLatch(LATCH_FEATURES_READY); in readyForFeatureCreation()
134 countDownLatch(LATCH_ENABLE_IMS); in enableIms()
142 countDownLatch(LATCH_DISABLE_IMS); in disableIms()
150 countDownLatch(LATCH_CREATE_RCS); in createRcsFeature()
155 countDownLatch(LATCH_RCS_READY); in createRcsFeature()
161 countDownLatch(LATCH_REMOVE_RCS); in createRcsFeature()
168 countDownLatch(LATCH_RCS_CAP_SET); in createRcsFeature()
173 countDownLatch(LATCH_UCE_LISTENER_SET); in createRcsFeature()
180 countDownLatch(LATCH_UCE_REQUEST_PUBLISH); in createRcsFeature()
199 countDownLatch(LATCH_CREATE_MMTEL); in createMmTelFeature()
[all …]
DTestSipTransport.java68 countDownLatch(LATCH_CREATE_DELEGATE); in createSipDelegate()
77 countDownLatch(LATCH_DESTROY_DELEGATE); in destroySipDelegate()
121 private void countDownLatch(int latchIndex) { in countDownLatch() method in TestSipTransport
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccManagerTest.java118 CountDownLatch countDownLatch = new CountDownLatch(1); in testDownloadSubscription() local
119 mCallbackReceiver = new CallbackReceiver(countDownLatch); in testDownloadSubscription()
132 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testDownloadSubscription()
164 CountDownLatch countDownLatch = new CountDownLatch(1); in testDeleteSubscription() local
165 mCallbackReceiver = new CallbackReceiver(countDownLatch); in testDeleteSubscription()
175 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testDeleteSubscription()
193 CountDownLatch countDownLatch = new CountDownLatch(1); in testSwitchToSubscription() local
194 mCallbackReceiver = new CallbackReceiver(countDownLatch); in testSwitchToSubscription()
205 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testSwitchToSubscription()
223 CountDownLatch countDownLatch = new CountDownLatch(1); in testEraseSubscriptions() local
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DTestHelper.java107 TestScanResultsCallback(CountDownLatch countDownLatch) { in TestScanResultsCallback() argument
108 mCountDownLatch = countDownLatch; in TestScanResultsCallback()
133 CountDownLatch countDownLatch = new CountDownLatch(1); in findMatchingSavedNetworksWithBssid() local
137 new TestScanResultsCallback(countDownLatch); in findMatchingSavedNetworksWithBssid()
143 countDownLatch.await(DURATION_MILLIS, TimeUnit.MILLISECONDS); in findMatchingSavedNetworksWithBssid()
235 TestNetworkCallback(@NonNull CountDownLatch countDownLatch) { in TestNetworkCallback() argument
236 mCountDownLatch = countDownLatch; in TestNetworkCallback()
239 TestNetworkCallback(@NonNull CountDownLatch countDownLatch, int flags) { in TestNetworkCallback() argument
241 mCountDownLatch = countDownLatch; in TestNetworkCallback()
264 @NonNull CountDownLatch countDownLatch) { in createTestNetworkCallback()
[all …]
DConnectedNetworkScorerTest.java175 TestUsabilityStatsListener(CountDownLatch countDownLatch) { in TestUsabilityStatsListener() argument
176 mCountDownLatch = countDownLatch; in TestUsabilityStatsListener()
199 CountDownLatch countDownLatch = new CountDownLatch(1); in testWifiUsabilityStatsEntry() local
202 new TestUsabilityStatsListener(countDownLatch); in testWifiUsabilityStatsEntry()
209 assertThat(countDownLatch.await(TIMEOUT, TimeUnit.MILLISECONDS)).isTrue(); in testWifiUsabilityStatsEntry()
405 TestConnectedNetworkScorer(CountDownLatch countDownLatch) { in TestConnectedNetworkScorer() argument
406 mCountDownLatch = countDownLatch; in TestConnectedNetworkScorer()
424 public void resetCountDownLatch(CountDownLatch countDownLatch) { in resetCountDownLatch() argument
426 mCountDownLatch = countDownLatch; in resetCountDownLatch()
433 TestConnectedNetworkScorerWithSessionId(CountDownLatch countDownLatch) { in TestConnectedNetworkScorerWithSessionId() argument
[all …]
DWifiManagerTest.java4574 CountDownLatch countDownLatch = new CountDownLatch(1); in testAddRemoveSuggestionUserApprovalStatusListener() local
4576 countDownLatch); in testAddRemoveSuggestionUserApprovalStatusListener()
4579 assertTrue(countDownLatch.await(TEST_WAIT_DURATION_MS, TimeUnit.MILLISECONDS)); in testAddRemoveSuggestionUserApprovalStatusListener()
4589 public TestUserApprovalStatusListener(CountDownLatch countDownLatch) { in TestUserApprovalStatusListener() argument
4590 mBlocker = countDownLatch; in TestUserApprovalStatusListener()
/cts/tests/tests/wifi/CtsWifiLocationTestApp/src/android/net/wifi/cts/app/
DRetrieveTransportInfoAndReturnStatusActivity.java49 TestNetworkCallback(CountDownLatch countDownLatch) { in TestNetworkCallback() argument
51 mCountDownLatch = countDownLatch; in TestNetworkCallback()
71 CountDownLatch countDownLatch = new CountDownLatch(1); in canRetrieveSsidFromTransportInfo() local
72 TestNetworkCallback testNetworkCallback = new TestNetworkCallback(countDownLatch); in canRetrieveSsidFromTransportInfo()
81 if (!countDownLatch.await( in canRetrieveSsidFromTransportInfo()
/cts/tests/tests/content/src/android/content/cts/
DMockSyncAdapter.java103 countDownLatch(); in startSync()
115 countDownLatch(); in cancelSync()
128 countDownLatch(); in initialize()
131 private void countDownLatch() { in countDownLatch() method in MockSyncAdapter
/cts/tests/tests/packagewatchdog/src/android/packagewatchdog/cts/
DExplicitHealthCheckServiceTest.java52 CountDownLatch countDownLatch = new CountDownLatch(1); in testNotifyHealthCheckPassed() local
55 countDownLatch.countDown(); in testNotifyHealthCheckPassed()
59 countDownLatch.await(); in testNotifyHealthCheckPassed()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPhoneAccountTest.java112 final CountDownLatch countDownLatch = new CountDownLatch(1); in internalTestOutgoingCall() local
116 countDownLatch)); in internalTestOutgoingCall()
126 boolean calllogProviderChanged = countDownLatch.await(1, TimeUnit.MINUTES); in internalTestOutgoingCall()
193 final CountDownLatch countDownLatch = new CountDownLatch(1); in internalTestIncomingCall() local
197 countDownLatch)); in internalTestIncomingCall()
208 boolean calllogProviderChanged = countDownLatch.await(1, TimeUnit.MINUTES); in internalTestIncomingCall()
339 public CalllogContentObserver(Handler handler, final CountDownLatch countDownLatch) { in CalllogContentObserver() argument
341 mCountDownLatch = countDownLatch; in CalllogContentObserver()
/cts/tests/uwb/src/android/uwb/cts/
DUwbManagerTest.java133 RangingSessionCallback(@NonNull CountDownLatch countDownLatch) { in RangingSessionCallback() argument
134 mCountDownLatch = countDownLatch; in RangingSessionCallback()
169 CountDownLatch countDownLatch = new CountDownLatch(1); in testOpenRangingSessionWithBadParams() local
170 RangingSessionCallback rangingSessionCallback = new RangingSessionCallback(countDownLatch); in testOpenRangingSessionWithBadParams()
180 assertThat(countDownLatch.await(1, TimeUnit.SECONDS)).isTrue(); in testOpenRangingSessionWithBadParams()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java62 final CountDownLatch countDownLatch = new CountDownLatch(1); in startScanAndWaitForResults() local
71 countDownLatch.countDown(); in startScanAndWaitForResults()
88 if (!countDownLatch.await(SCAN_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startScanAndWaitForResults()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DASurfaceControlTestActivity.java114 final CountDownLatch countDownLatch = new CountDownLatch(1); in verifyTest() local
119 countDownLatch.countDown(); in verifyTest()
123 countDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS); in verifyTest()
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DCollectionAppWidgetProvider.java61 public static void configure(CountDownLatch countDownLatch, in configure() argument
64 sCountDownLatch = countDownLatch; in configure()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/testcase/
DNetworkSuggestionTestCase.java150 ConnectionStatusListener(CountDownLatch countDownLatch) { in ConnectionStatusListener() argument
151 mCountDownLatch = countDownLatch; in ConnectionStatusListener()
167 UserApprovalStatusListener(CountDownLatch countDownLatch) { in UserApprovalStatusListener() argument
168 mCountDownLatch = countDownLatch; in UserApprovalStatusListener()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsFixedCollectionAdapterTest.java643 CountDownLatch countDownLatch; in awaitIntent() local
648 countDownLatch = new CountDownLatch(1); in awaitIntent()
649 mCountDownLatch = countDownLatch; in awaitIntent()
654 countDownLatch.await(20, TimeUnit.SECONDS); in awaitIntent()
DLinearLayoutTest.java626 final CountDownLatch countDownLatch, final int left, final int top, in verifyBounds() argument
636 countDownLatch.countDown(); in verifyBounds()
/cts/tests/tests/media/src/android/media/cts/
DVideoCodecTestBase.java1046 final CountDownLatch countDownLatch = new CountDownLatch(1); in runCallable() local
1055 countDownLatch.countDown(); in runCallable()
1061 countDownLatch.await(); in runCallable()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java3000 final CountDownLatch countDownLatch, final int left, final int top, in checkBounds() argument
3010 countDownLatch.countDown(); in checkBounds()