Home
last modified time | relevance | path

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

12345

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
H A DFixedSizeQueueTest.java36 assertThat(queue.poll()).isEqualTo(1); in add_belowMaxCapacity()
48 assertThat(queue.poll()).isEqualTo(2); in add_exceedMaxCapacity()
49 assertThat(queue.poll()).isEqualTo(3); in add_exceedMaxCapacity()
53 public void poll() { in poll() method in FixedSizeQueueTest
58 assertThat(queue.poll()).isEqualTo(1); in poll()
59 assertThat(queue.poll()).isNull(); in poll()
/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java680 protected void waitForDownloadOrTimeout(long id, long poll, long timeoutMillis) in waitForDownloadOrTimeout() argument
682 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis); in waitForDownloadOrTimeout()
694 protected void waitForDownloadsOrTimeout(long poll, long timeoutMillis) throws TimeoutException, in waitForDownloadsOrTimeout() argument
696 doWaitForDownloadsOrTimeout(new Query(), poll, timeoutMillis); in waitForDownloadsOrTimeout()
709 protected boolean waitForDownloadOrTimeoutNoThrow(long id, long poll, long timeoutMillis) { in waitForDownloadOrTimeoutNoThrow() argument
711 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis); in waitForDownloadOrTimeoutNoThrow()
730 protected int timeoutWait(int currentTotalWaitTime, long poll, long maxTimeoutMillis, in timeoutWait() argument
733 long end = now + poll; in timeoutWait()
745 currentTotalWaitTime += poll; in timeoutWait()
759 protected void doWaitForDownloadsOrTimeout(Query query, long poll, long timeoutMillis) in doWaitForDownloadsOrTimeout() argument
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DBlockingQueueIntentReceiver.java35 return mQueue.poll(10, TimeUnit.SECONDS); in waitForIntent()
39 return mQueue.poll(3, TimeUnit.SECONDS); in waitForIntentShortDelay()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/test/
H A DProviderListenerCapture.java45 return mNewStates.poll(); in getNextNewState()
55 return mLocations.poll(); in getNextLocationResult()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DHistoryTracker.java79 while (mResults.poll() != null) { in falseBelief()
113 while (mResults.poll() != null) { in falseConfidence()
154 while (mResults.poll() != null) { in addResults()
/aosp14/frameworks/base/core/java/android/view/accessibility/
H A DWeakSparseArray.java48 for (Reference ref = mRefQueue.poll(); ref != null; ref = mRefQueue.poll()) { in removeUnreachableValues()
/aosp14/frameworks/base/services/core/java/com/android/server/textclassifier/
H A DFixedSizeQueue.java75 public E poll() { in poll() method in FixedSizeQueue
76 return mDelegate.poll(); in poll()
/aosp14/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
H A DTestHandler.java94 dispatch(mMessages.poll()); in timeAdvance()
105 while ((msg = mMessages.poll()) != null) { in flush()
/aosp14/frameworks/base/services/core/java/com/android/server/location/contexthub/
H A DConcurrentLinkedEvictingDeque.java37 poll(); in add()
/aosp14/frameworks/base/core/java/android/speech/tts/
H A DSynthesisPlaybackQueueItem.java245 ProgressMarker marker = markerList.poll(); in onMarkerReached()
303 ListEntry entry = mDataBufferList.poll(); in take()
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
H A DFrameSourceFilter.java48 return mFrames.poll(); in obtainFrame()
/aosp14/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerBaseTest.java394 private int timeoutWait(int currentTotalWaitTime, long poll, long maxTimeoutMillis, in timeoutWait() argument
397 long end = now + poll; in timeoutWait()
409 currentTotalWaitTime += poll; in timeoutWait()
/aosp14/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
H A DRollbackTest.java161 assertThat(broadcastReceiver.poll(0, TimeUnit.SECONDS)).isNull(); in testBasic()
176 Intent broadcast = broadcastReceiver.poll(5, TimeUnit.SECONDS); in testBasic()
178 assertThat(broadcastReceiver.poll(0, TimeUnit.SECONDS)).isNull(); in testBasic()
/aosp14/frameworks/base/cmds/incidentd/src/
H A DFdBuffer.cpp79 int count = TEMP_FAILURE_RETRY(poll(&pfds, 1, remainingTime)); in read()
185 int count = TEMP_FAILURE_RETRY(poll(pfds, 3, remainingTime)); in readProcessedDataInStream()
/aosp14/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
H A DMyAutofillService.java90 request = sFillRequests.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in getLastFillRequest()
125 CannedResponse response = sCannedResponses.poll(TIMEOUT_MS, TimeUnit.MILLISECONDS); in handleRequest()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DBinderWorkSourceNestedService.java70 service = blockingQueue.poll(30, TimeUnit.SECONDS);
/aosp14/system/core/trusty/keymaster/ipc/
H A Dtrusty_keymaster_ipc.cpp101 int p = poll(&pfd, 1, poll_timeout_ms); in trusty_keymaster_call_2()
170 int p = poll(&pfd, 1, poll_timeout_ms); in trusty_keymaster_call_2()
/aosp14/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DActionSendMultipleConsumerActivity.java118 bundle = mQueue.poll(2 * TIMEOUT, TimeUnit.SECONDS); in getExtras()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
H A DWeakIdentityHashMap.java37 while ((ref = mRefQueue.poll()) != null) { in cleanUp()
H A DTrackedGarbage.java56 while ((ref = mRefQueue.poll()) != null) { in cleanUp()
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/
H A DSpyInputEventSenderAndReceiver.kt31 return queue.poll(DEFAULT_DISPATCHING_TIMEOUT_MILLIS.toLong(), TimeUnit.MILLISECONDS)
/aosp14/system/core/trusty/metrics/
H A Dmetrics.cpp64 int rc = poll(&pfd, 1, timeout_ms); in WaitForEvent()
/aosp14/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
H A DTimeReceiver.java88 message = mQueue.poll(endTimeNs - curTimeNs, TimeUnit.NANOSECONDS); in getReceivedTimeNs()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/
H A DReferencePerfTest.java68 queue.poll(); in timeAllocEnqueueAndPoll()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibratorFrameworkStatsLogger.java121 stats = mVibrationStatsQueue.poll(); in writeVibrationReportedFromQueue()

12345