Home
last modified time | relevance | path

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

123

/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.java148 countDownLatch(LATCH_FEATURES_READY); in readyForFeatureCreation()
155 countDownLatch(LATCH_ENABLE_IMS); in enableImsForSubscription()
164 countDownLatch(LATCH_DISABLE_IMS); in disableImsForSubscription()
174 countDownLatch(LATCH_RCS_READY); in createRcsFeatureForSubscription()
180 countDownLatch(LATCH_REMOVE_RCS); in createRcsFeatureForSubscription()
187 countDownLatch(LATCH_RCS_CAP_SET); in createRcsFeatureForSubscription()
193 countDownLatch(LATCH_UCE_LISTENER_SET); in createRcsFeatureForSubscription()
198 countDownLatch(LATCH_CREATE_RCS); in createRcsFeatureForSubscription()
212 countDownLatch(LATCH_UCE_REQUEST_PUBLISH); in createRcsFeatureForSubscription()
233 countDownLatch(LATCH_MMTEL_READY); in createMmTelFeatureForSubscription()
[all …]
DImsCallingBase.java157 public void countDownLatch(int latchIndex) { in countDownLatch() method in ImsCallingBase
508 countDownLatch(LATCH_IS_ON_CALL_ADDED); in onCallAdded()
510 countDownLatch(LATCH_IS_ON_CONFERENCE_CALL_ADDED); in onCallAdded()
518 countDownLatch(LATCH_IS_ON_CALL_REMOVED); in onCallRemoved()
527 countDownLatch(LATCH_IS_CALL_DIALING); in onCallStateChanged()
530 countDownLatch(LATCH_IS_CALL_ACTIVE); in onCallStateChanged()
533 countDownLatch(LATCH_IS_CALL_DISCONNECTING); in onCallStateChanged()
536 countDownLatch(LATCH_IS_CALL_DISCONNECTED); in onCallStateChanged()
539 countDownLatch(LATCH_IS_CALL_RINGING); in onCallStateChanged()
542 countDownLatch(LATCH_IS_CALL_HOLDING); in onCallStateChanged()
[all …]
DTestSipTransport.java75 countDownLatch(LATCH_CREATE_DELEGATE); in createSipDelegate()
84 countDownLatch(LATCH_DESTROY_DELEGATE); in destroySipDelegate()
128 private void countDownLatch(int latchIndex) { in countDownLatch() method in TestSipTransport
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccManagerTest.java204 CountDownLatch countDownLatch = new CountDownLatch(1); in testDownloadSubscription() local
205 mCallbackReceiver = new CallbackReceiver(countDownLatch); in testDownloadSubscription()
219 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testDownloadSubscription()
251 CountDownLatch countDownLatch = new CountDownLatch(1); in testDeleteSubscription() local
252 mCallbackReceiver = new CallbackReceiver(countDownLatch); in testDeleteSubscription()
263 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testDeleteSubscription()
288 CountDownLatch countDownLatch = new CountDownLatch(1); in testSwitchToSubscritionDisableWithNoPortAndChangesCompatDisabled() local
289 mCallbackReceiver = new CallbackReceiver(countDownLatch); in testSwitchToSubscritionDisableWithNoPortAndChangesCompatDisabled()
301 countDownLatch.await(CALLBACK_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testSwitchToSubscritionDisableWithNoPortAndChangesCompatDisabled()
341 CountDownLatch countDownLatch = new CountDownLatch(1); in testSwitchToSubscription() local
[all …]
/cts/tests/tests/nfc/src/android/nfc/cts/
DWalletRoleTestUtils.java92 CountDownLatch countDownLatch = new CountDownLatch(1); in setDefaultWalletRoleHolder() local
99 countDownLatch.countDown(); in setDefaultWalletRoleHolder()
101 countDownLatch.await(3000, TimeUnit.MILLISECONDS); in setDefaultWalletRoleHolder()
110 CountDownLatch countDownLatch = new CountDownLatch(1); in removeRoleHolder() local
116 countDownLatch.countDown(); in removeRoleHolder()
118 countDownLatch.await(3000, TimeUnit.MILLISECONDS); in removeRoleHolder()
147 CountDownLatch countDownLatch = new CountDownLatch(1); in runWithRole() local
157 countDownLatch.countDown(); in runWithRole()
167 countDownLatch.await(4000, TimeUnit.MILLISECONDS); in runWithRole()
202 CountDownLatch countDownLatch = new CountDownLatch(1); in runWithRoleNone() local
[all …]
DNfcUtils.java41 CountDownLatch countDownLatch = new CountDownLatch(1); in enableNfc() local
53 countDownLatch.countDown(); in enableNfc()
68 countDownLatch.await(2000, TimeUnit.MILLISECONDS); in enableNfc()
84 CountDownLatch countDownLatch = new CountDownLatch(1); in disableNfc() local
96 countDownLatch.countDown(); in disableNfc()
111 countDownLatch.await(2000, TimeUnit.MILLISECONDS); in disableNfc()
/cts/tests/tests/app/src/android/app/cts/
DShareIdentityTest.java412 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_explicitIdentityShared_identityAvailableToActivity()
428 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_defaultIdentityNotShared_identityNotAvailableToActivity()
449 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_explicitIdentityNotShared_identityNotAvailableToActivity()
475 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_identityNotSharedSameUid_identityAvailableToActivity()
503 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_startActivityForResult_identityNotAvailableToActivity()
527 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_sendBroadcastToRuntimeReceiverIdentityShared_identityAvailable()
544 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_sendBroadcastToManifestReceiverIdentityShared_identityAvailable()
562 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_sendBroadcastToRuntimeReceiverIdentityNotShared_identityNotAvailable()
585 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_sendBroadcastToManifestReceiverIdentityNotShared_identityNotAvailable()
607 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_sendBroadcastToRuntimeReceiverDefault_identityNotAvailable()
[all …]
/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/telephony/current/src/android/telephony/cts/
DTestDomainSelectionService.java94 countDownLatch(LATCH_ON_RESELECTION); in reselectDomain()
105 countDownLatch(LATCH_ON_FINISH_SELECTION); in finishSelection()
134 countDownLatch(LATCH_ON_DOMAIN_SELECTION); in onDomainSelection()
144 countDownLatch(LATCH_ON_SERVICE_STATE_UPDATED); in onServiceStateUpdated()
153 countDownLatch(LATCH_ON_BARRING_INFO_UPDATED); in onBarringInfoUpdated()
189 countDownLatch(LATCH_ON_BIND); in onBind()
203 countDownLatch(LATCH_ON_UNBIND); in onUnbind()
270 private void countDownLatch(int latchIndex) { in countDownLatch() method in TestDomainSelectionService
340 countDownLatch(LATCH_ON_WWAN_SELECTOR_CALLBACK); in onWwanSelected()
395 countDownLatch(LATCH_ON_EMERGENCY_REG_RESULT); in requestEmergencyNetworkScan()
DDomainSelectionCallingBase.java119 private void countDownLatch(int latchIndex) { in countDownLatch() method in DomainSelectionCallingBase
271 countDownLatch(LATCH_IS_ON_CALL_ADDED); in onCallAdded()
278 countDownLatch(LATCH_IS_ON_CALL_REMOVED); in onCallRemoved()
287 countDownLatch(LATCH_IS_CALL_DIALING); in onCallStateChanged()
290 countDownLatch(LATCH_IS_CALL_DISCONNECTED); in onCallStateChanged()
/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/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/telephony/current/mockmodem/src/android/telephony/mockmodem/
DMockImsService.java71 countDownLatch(LATCH_WAIT_FOR_SRVCC_CALL_INFO); in setSrvccCallInfo()
86 countDownLatch(LATCH_WAIT_FOR_TRIGGER_EPS_FALLBACK); in setEpsFallbackReason()
120 countDownLatch(LATCH_WAIT_FOR_START_IMS_TRAFFIC); in startImsTraffic()
136 countDownLatch(LATCH_WAIT_FOR_STOP_IMS_TRAFFIC); in stopImsTraffic()
225 private void countDownLatch(int latchIndex) { in countDownLatch() method in MockImsService
/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/surfacecontrol/src/android/view/surfacecontrol/cts/
DAttachedSurfaceControlTest.java347 CountDownLatch countDownLatch = new CountDownLatch(1); in testCropWithChildBoundingInsets() local
359 countDownLatch.countDown(); in testCropWithChildBoundingInsets()
362 countDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS)); in testCropWithChildBoundingInsets()
423 CountDownLatch countDownLatch = new CountDownLatch(1); in testGetHostToken() local
434 countDownLatch.countDown(); in testGetHostToken()
437 countDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS)); in testGetHostToken()
454 CountDownLatch countDownLatch = new CountDownLatch(1); in testSyncTransactionViewNotVisible() local
466 countDownLatch.countDown(); in testSyncTransactionViewNotVisible()
469 countDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS)); in testSyncTransactionViewNotVisible()
494 CountDownLatch countDownLatch = new CountDownLatch(1); in testSyncTransactionNothingToDraw() local
[all …]
DSurfaceViewSurfaceValidatorTest.java84 SurfaceFiller(Context c, CountDownLatch countDownLatch) { in SurfaceFiller() argument
87 mCountDownLatch = countDownLatch; in SurfaceFiller()
153 private void addSurfaceView(CountDownLatch countDownLatch) { in addSurfaceView() argument
168 t.addTransactionCommittedListener(Runnable::run, countDownLatch::countDown); in addSurfaceView()
/cts/tests/tests/wifi/mockWifi/src/android/wifi/mockwifi/
DMockWifiModemService.java82 countDownLatch(LATCH_WIFI_INTERFACES_READY); in onBind()
85 countDownLatch(LATCH_MOCK_WIFI_MODEM_SERVICE_READY); in onBind()
90 public void countDownLatch(int latchIndex) { in countDownLatch() method in MockWifiModemService
/cts/tests/tests/gameservice/src/android/service/games/
DGameServiceTestService.java158 CountDownLatch countDownLatch = new CountDownLatch(1);
165 countDownLatch.countDown();
171 countDownLatch.countDown();
176 countDownLatch.await(
/cts/tests/surfacecontrol/scvhapp/src/android/server/wm/scvh/
DCrossProcessSurfaceControlViewHostTestService.java142 CountDownLatch countDownLatch = new CountDownLatch(1); in setKeepScreenOnFlag() local
145 mView.getViewTreeObserver().addOnDrawListener(countDownLatch::countDown); in setKeepScreenOnFlag()
149 countDownLatch.await(WAIT_TIMEOUT_S, TimeUnit.SECONDS); in setKeepScreenOnFlag()
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfacePixelValidator2.java161 CountDownLatch countDownLatch = new CountDownLatch(1); in finish() local
174 countDownLatch.countDown(); in finish()
179 countDownLatch.await(5L * HW_TIMEOUT_MULTIPLIER, TimeUnit.SECONDS)); in finish()
/cts/tests/tests/hibernation/src/android/hibernation/cts/
DAppHibernationIntegrationTest.kt232 val countDownLatch = CountDownLatch(1) in <lambda>() constant
238 countDownLatch.countDown() in <lambda>()
242 countDownLatch.await(TIMEOUT_TIME_MS, TimeUnit.MILLISECONDS)) in <lambda>()
256 val countDownLatch = CountDownLatch(1) in <lambda>() constant
263 countDownLatch.countDown() in <lambda>()
267 countDownLatch.await(TIMEOUT_TIME_MS, TimeUnit.MILLISECONDS)) in <lambda>()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DConnectedNetworkScorerTest.java202 TestUsabilityStatsListener(CountDownLatch countDownLatch) { in TestUsabilityStatsListener() argument
203 mCountDownLatch = countDownLatch; in TestUsabilityStatsListener()
226 CountDownLatch countDownLatch = new CountDownLatch(1); in testWifiUsabilityStatsEntry() local
229 new TestUsabilityStatsListener(countDownLatch); in testWifiUsabilityStatsEntry()
235 assertThat(countDownLatch.await(TIMEOUT, TimeUnit.MILLISECONDS)).isTrue(); in testWifiUsabilityStatsEntry()
537 TestConnectedNetworkScorer(CountDownLatch countDownLatch) { in TestConnectedNetworkScorer() argument
538 mCountDownLatch = countDownLatch; in TestConnectedNetworkScorer()
556 public void resetCountDownLatch(CountDownLatch countDownLatch) { in resetCountDownLatch() argument
558 mCountDownLatch = countDownLatch; in resetCountDownLatch()
565 TestConnectedNetworkScorerWithSessionId(CountDownLatch countDownLatch) { in TestConnectedNetworkScorerWithSessionId() argument
[all …]
/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/mediaediting/src/android/media/mediaediting/cts/
DTransformerAndroidTestRunner.java322 CountDownLatch countDownLatch = new CountDownLatch(1); in runInternal() local
335 countDownLatch.countDown(); in runInternal()
344 countDownLatch.countDown(); in runInternal()
387 countDownLatch.countDown(); in runInternal()
392 if (!countDownLatch.await(timeoutSeconds, SECONDS)) { in runInternal()

123