Home
last modified time | relevance | path

Searched refs:poll (Results 1 – 25 of 107) sorted by relevance

12345

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyRegistryManagerTest.java68 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChangedForAllSubscriptions()
75 Pair<Integer, String> result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChangedForAllSubscriptions()
97 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChanged()
106 Pair<Integer, String> result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChanged()
127 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyServiceStateChanged()
138 ServiceState result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyServiceStateChanged()
157 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifySignalStrengthChanged()
167 SignalStrength result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifySignalStrengthChanged()
186 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyMessageWaitingChanged()
196 boolean result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyMessageWaitingChanged()
[all …]
DAsyncSmsMessageListener.java49 return mMessages.poll(timeoutMs, TimeUnit.MILLISECONDS); in waitForSmsMessage()
61 return mSentMessageResults.poll(timeoutMs, TimeUnit.MILLISECONDS); in waitForMessageSentIntent()
73 return mDeliveredMessageResults.poll(timeoutMs, TimeUnit.MILLISECONDS); in waitForMessageDeliveredIntent()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DApexShimValidationTest.java80 SessionUpdateBroadcastReceiver.sessionBroadcasts.poll(60, TimeUnit.SECONDS); in testRejectsApexWithAdditionalFile_Commit()
89 SessionUpdateBroadcastReceiver.sessionBroadcasts.poll(60, TimeUnit.SECONDS); in testRejectsApexWithAdditionalFolder_Commit()
98 SessionUpdateBroadcastReceiver.sessionBroadcasts.poll(60, TimeUnit.SECONDS); in testRejectsApexWithPostInstallHook_Commit()
107 SessionUpdateBroadcastReceiver.sessionBroadcasts.poll(60, TimeUnit.SECONDS); in testRejectsApexWithPreInstallHook_Commit()
116 SessionUpdateBroadcastReceiver.sessionBroadcasts.poll(60, TimeUnit.SECONDS); in testRejectsApexWrongSHA_Commit()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DVrListenerVerifierActivity.java515 MockVrListenerService.Event e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
524 e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
533 e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
544 e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
552 e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
560 e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
587 MockVrListenerService.Event e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
595 e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
603 e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
613 e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
[all …]
/cts/hostsidetests/appsecurity/test-apps/ReviewPermissionHelper/src/com/android/cts/reviewpermissionhelper/
DReviewPermissionsTest.kt71 assertEquals(RESULT_OK, installDialogResults.poll(UI_TIMEOUT, TimeUnit.MILLISECONDS)) in approveReviewPermissions()
80 assertEquals(RESULT_CANCELED, installDialogResults.poll(UI_TIMEOUT, TimeUnit.MILLISECONDS)) in cancelReviewPermissions()
86 assertEquals(RESULT_OK, installDialogResults.poll(UI_TIMEOUT, TimeUnit.MILLISECONDS)) in assertNoReviewPermissionsNeeded()
158 assertNull(results.poll(UI_TIMEOUT_UNEXPECTED, TimeUnit.MILLISECONDS)) in reviewPermissionWhenServiceIsBound()
163 assertEquals(PERMISSION_GRANTED, results.poll(UI_TIMEOUT, TimeUnit.MILLISECONDS)) in reviewPermissionWhenServiceIsBound()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsStreamingServiceTest.java87 return mErrorCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnError()
95 return mStreamStateUpdatedCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnStreamStateUpdated()
103 return mMediaDescriptionUpdatedCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnMediaDescriptionUpdated()
111 return mBroadcastSignalStrengthUpdatedCalls.poll( in waitOnBroadcastSignalStrengthUpdated()
120 return mStreamMethodUpdatedCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnStreamMethodUpdated()
DMbmsGroupCallTestBase.java99 return mErrorCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnError()
107 return mOnAvailableSaisUpdatedCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnAvailableSaisUpdatedCalls()
115 return mOnServiceInterfaceAvailableCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnServiceInterfaceAvailableCalls()
123 return mMiddlewareReadyCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS) != null; in waitOnMiddlewareReady()
DMbmsStreamingTestBase.java86 return mErrorCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnError()
94 return mStreamingServicesUpdatedCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnStreamingServicesUpdated()
102 return mMiddlewareReadyCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS) != null; in waitOnMiddlewareReady()
DMbmsGroupCallTest.java72 return mErrorCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnError()
80 return mGroupCallStateChangedCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnGroupCallStateChanged()
88 return mBroadcastSignalStrengthUpdatedCalls.poll( in waitOnBroadcastSignalStrengthUpdated()
DMbmsDownloadTestBase.java94 return mErrorCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnError()
102 return mMiddlewareReadyCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS) != null; in waitOnMiddlewareReady()
110 return mFileServicesUpdatedCalls.poll(ASYNC_TIMEOUT, TimeUnit.MILLISECONDS); in waitOnFileServicesUpdated()
DMbmsDownloadCallbackTest.java53 return mCalls.poll(timeout, TimeUnit.MILLISECONDS); in waitOnStatusUpdated()
79 return mProgressUpdatedCalls.poll(timeout, TimeUnit.MILLISECONDS); in waitOnProgressUpdated()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTelecomManagerTest.java42 int currentTtyMode = queue.poll(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testGetCurrentTtyMode()
63 boolean isInEmergencyCall = queue.poll(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testIsInEmergencyCall_noOngoingEmergencyCall()
96 boolean isInEmergencyCall = queue.poll(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testIsInEmergencyCall_ongoingEmergencyCall()
DPhoneAccountSuggestionServiceTest.java95 CtsPhoneAccountSuggestionService.sSuggestionRequestQueue.poll( in testSuggestionFlow()
139 CtsPhoneAccountSuggestionService.sSuggestionRequestQueue.poll( in testSuggestionTimeout()
174 CtsPhoneAccountSuggestionService.sSuggestionRequestQueue.poll( in testEmptySuggestions()
211 CtsPhoneAccountSuggestionService.sSuggestionRequestQueue.poll( in testPartialSuggestions()
DCtsRoleManagerAdapter.java141 String res = q.poll(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, TimeUnit.MILLISECONDS); in addRoleHolder()
160 String res = q.poll(WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, TimeUnit.MILLISECONDS); in removeRoleHolder()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollbackBroadcastReceiver.java61 public Intent poll(long timeout, TimeUnit unit) throws InterruptedException { in poll() method in RollbackBroadcastReceiver
62 return mRollbackBroadcasts.poll(timeout, unit); in poll()
/cts/tests/tests/tethering/src/android/tethering/cts/
DTetheringManagerTest.java224 return mResult.poll(timeout, TimeUnit.MILLISECONDS); in pollTetherState()
281 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in verifyTetheringStarted()
288 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in expectTetheringFailed()
442 assertNotNull("No expected tetherable ifaces callback", mCurrent.poll(TIMEOUT_MS, in expectTetherableInterfacesChanged()
451 assertNotNull("No expected tethered ifaces callback", mCurrent.poll(TIMEOUT_MS, in expectTetheredInterfacesChanged()
472 final CallbackValue cv = mCurrent.poll(TIMEOUT_MS, c -> true); in expectCallbackStarted()
483 assertNotNull("No offload status changed", mCurrent.poll(TIMEOUT_MS, (cv) -> { in expectOneOfOffloadStatusChanged()
494 assertNotNull("No expected callback", mCurrent.poll(TIMEOUT_MS, (cv) -> { in expectErrorOrTethered()
509 final CallbackValue result = mCurrent.poll(TIMEOUT_MS, (cv) -> { in getCurrentValidUpstream()
521 assertNotNull("No onSupported callback", history.poll(TIMEOUT_MS, (cv) -> { in assumeTetheringSupported()
/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
DCtsLocationAccessService.java102 return queue.poll(LISTENER_TIMEOUT, TimeUnit.MILLISECONDS); in listenForCellInfo()
126 return queue.poll(LISTENER_TIMEOUT, TimeUnit.MILLISECONDS); in listenForCellLocation()
150 ServiceState ss = queue.poll(LISTENER_TIMEOUT, TimeUnit.MILLISECONDS); in listenForServiceState()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBlockingBroadcastReceiver.java75 return mBlockingQueue.poll(DEFAULT_TIMEOUT_SECONDS, TimeUnit.SECONDS); in awaitForBroadcast()
88 return mBlockingQueue.poll(timeoutMillis, TimeUnit.MILLISECONDS); in awaitForBroadcast()
/cts/tests/providerui/src/android/providerui/cts/
DGetResultActivity.java67 result = sResult.poll(30, TimeUnit.SECONDS); in getResult()
79 return sResult.poll(timeout, unit); in getResult()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DGetResultActivity.java69 result = sResult.poll(30, TimeUnit.SECONDS); in getResult()
81 return sResult.poll(timeout, unit); in getResult()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraSessionUtils.java81 return mSessionQueue.poll(); in getConfiguredSession()
122 return new Pair<>(mResultQueue.poll(), mCaptureTimeQueue.poll()); in getCapturedResult()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DWindowFocusStealer.java56 result = mQueue.poll(timeout, TimeUnit.MILLISECONDS); in waitResult()
121 focusStealer = queue.poll(timeout, TimeUnit.MILLISECONDS); in connect()
/cts/tests/tests/view/src/android/view/cts/
DKeyEventInterceptTest.java139 KeyEvent keyEvent = mActivity.mKeyEvents.poll(); in assertKeyNotReceived()
147 KeyEvent keyEvent = mActivity.mKeyEvents.poll(); in assertKeyReceived()
/cts/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java102 Boolean result = queue.poll(TEST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testListenerRegistrationWithChangeEnabled()
128 Boolean result = queue.poll(TEST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testListenerRegistrationWithChangeDisabled()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMyAutofillCallback.java81 final MyEvent event = mEvents.poll(CONNECTION_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in getEvent()
92 final MyEvent event = mEvents.poll(CALLBACK_NOT_CALLED_TIMEOUT_MS, TimeUnit.MILLISECONDS); in assertNotCalled()

12345