Home
last modified time | relevance | path

Searched refs:numPending (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DFakeExecutorTest.java63 assertEquals(1, fakeExecutor.numPending()); in testNoDelay()
67 assertEquals(2, fakeExecutor.numPending()); in testNoDelay()
73 assertEquals(1, fakeExecutor.numPending()); in testNoDelay()
78 assertEquals(0, fakeExecutor.numPending()); in testNoDelay()
88 assertEquals(2, fakeExecutor.numPending()); in testNoDelay()
111 assertEquals(3, fakeExecutor.numPending()); in testDelayed()
115 assertEquals(3, fakeExecutor.numPending()); in testDelayed()
120 assertEquals(2, fakeExecutor.numPending()); in testDelayed()
126 assertEquals(0, fakeExecutor.numPending()); in testDelayed()
145 assertEquals(3, fakeExecutor.numPending()); in testAtTime()
[all …]
DMockExecutorHandlerTest.kt45 assertEquals(1, fakeExecutor.numPending()) in testNoDelay()
49 assertEquals(2, fakeExecutor.numPending()) in testNoDelay()
55 assertEquals(1, fakeExecutor.numPending()) in testNoDelay()
60 assertEquals(0, fakeExecutor.numPending()) in testNoDelay()
70 assertEquals(2, fakeExecutor.numPending()) in testNoDelay()
92 assertEquals(3, fakeExecutor.numPending()) in testDelayed()
96 assertEquals(3, fakeExecutor.numPending()) in testDelayed()
101 assertEquals(2, fakeExecutor.numPending()) in testDelayed()
107 assertEquals(0, fakeExecutor.numPending()) in testDelayed()
125 assertEquals(3, fakeExecutor.numPending()) in testAtTime()
[all …]
DRepeatableExecutorTest.java69 assertThat(mFakeExecutor.numPending()).isEqualTo(1); in testRepeats()
79 assertThat(mFakeExecutor.numPending()).isEqualTo(1); in testNoExecutionBeforeStartDelay()
91 assertThat(mFakeExecutor.numPending()).isEqualTo(1); in testExecuteAfterStartDelay()
101 assertThat(mFakeExecutor.numPending()).isEqualTo(1); in testExecuteWithZeroStartDelay()
115 assertThat(mFakeExecutor.numPending()).isEqualTo(1); in testAdvanceTimeTwice()
128 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testCancel()
141 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testCancelAfterStart()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaTimeoutListenerTest.kt160 assertThat(executor.numPending()).isEqualTo(1) in testOnMediaDataLoaded_registersTimeout_whenPaused()
182 assertThat(executor.numPending()).isEqualTo(1) in testOnMediaDataRemoved_clearsTimeout()
186 assertThat(executor.numPending()).isEqualTo(0) in testOnMediaDataRemoved_clearsTimeout()
206 assertThat(executor.numPending()).isEqualTo(1) in testOnMediaDataLoaded_migratesKeys()
224 assertThat(executor.numPending()).isEqualTo(1) in testOnMediaDataLoaded_migratesKeys_noTimeoutExtension()
236 assertThat(executor.numPending()).isEqualTo(1) in testOnPlaybackStateChanged_schedulesTimeout_whenPaused()
248 assertThat(executor.numPending()).isEqualTo(0) in testOnPlaybackStateChanged_cancelsTimeout_whenResumed()
260 assertThat(executor.numPending()).isEqualTo(1) in testOnPlaybackStateChanged_reusesTimeout_whenNotPlaying()
287 assertThat(executor.numPending()).isEqualTo(1) in testOnSessionDestroyed_active_clearsTimeout()
294 assertThat(executor.numPending()).isEqualTo(0) in testOnSessionDestroyed_active_clearsTimeout()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DActivityStarterImplTest.kt62 assertThat(mainExecutor.numPending()).isEqualTo(1) in postStartActivityDismissingKeyguard_pendingIntent_postsOnMain()
69 assertThat(mainExecutor.numPending()).isEqualTo(1) in postStartActivityDismissingKeyguard_intent_postsOnMain()
76 assertThat(mainExecutor.numPending()).isEqualTo(1) in postQSRunnableDismissingKeyguard_leaveOpenStatusBarState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/viewmodel/
DSeekBarViewModelTest.kt538 assertThat(fakeExecutor.numPending()).isEqualTo(1) in queuePollTaskWhenPlaying()
553 assertThat(fakeExecutor.numPending()).isEqualTo(0) in noQueuePollTaskWhenStopped()
574 assertThat(fakeExecutor.numPending()).isEqualTo(1) in queuePollTaskWhenListening()
595 assertThat(fakeExecutor.numPending()).isEqualTo(0) in noQueuePollTaskWhenNotListening()
614 assertThat(fakeExecutor.numPending()).isEqualTo(1) in pollTaskQueuesAnotherPollTaskWhenPlaying()
641 assertThat(fakeExecutor.numPending()).isEqualTo(0) in noQueuePollTaskWhenSeeking()
671 assertThat(fakeExecutor.numPending()).isEqualTo(1) in queuePollTaskWhenDoneSeekingWithFalse()
701 assertThat(fakeExecutor.numPending()).isEqualTo(0) in noQueuePollTaskWhenDoneSeeking()
723 assertThat(fakeExecutor.numPending()).isEqualTo(1) in startListeningQueuesPollTask()
744 assertThat(fakeExecutor.numPending()).isEqualTo(1) in playbackChangeQueuesPollTask()
/frameworks/av/media/module/bufferpool/1.0/
DBufferStatus.cpp148 size_t numPending = pending.size(); in postBufferStatusMessage() local
149 if (avail >= numPending + 1) { in postBufferStatusMessage()
151 for (size_t i = 0; i < numPending; ++i) { in postBufferStatusMessage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationListenerTest.java119 assertThat(mFakeExecutor.numPending()).isEqualTo(3); in testRankingUpdateMultipleTimesCallsNotificationRankingUpdateOnce()
140 assertThat(mFakeExecutor.numPending()).isEqualTo(3); in testRankingUpdateWillCallAgainIfQueueIsSlow()
144 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testRankingUpdateWillCallAgainIfQueueIsSlow()
/frameworks/av/media/module/bufferpool/2.0/
DBufferStatus.cpp184 size_t numPending = pending.size(); in postBufferStatusMessage() local
185 if (avail >= numPending + 1) { in postBufferStatusMessage()
187 for (size_t i = 0; i < numPending; ++i) { in postBufferStatusMessage()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxDec.h85 size_t numPending{0u};
DC2SoftVpxDec.cpp358 if (--queue->numPending == 0u) { in threadLoop()
835 CHECK_EQ(0u, queue->numPending); in outputBuffer()
836 queue->numPending = queue->entries.size(); in outputBuffer()
837 while (queue->numPending > 0) { in outputBuffer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DImageWallpaperTest.java170 assertThat(mFakeExecutor.numPending()).isAtLeast(1); in testLoadDrawAndUnloadBitmap()
173 while (mFakeExecutor.numPending() >= 1) { in testLoadDrawAndUnloadBitmap()
/frameworks/native/libs/binder/
DRpcState.cpp925 size_t numPending = it->second.asyncTodo.size(); in processTransactInternal() local
927 transaction->asyncNumber, addr, numPending); in processTransactInternal()
933 if (numPending >= kArbitraryOnewayCallWarnLevel) { in processTransactInternal()
934 if (numPending >= kArbitraryOnewayCallTerminateLevel) { in processTransactInternal()
935 ALOGE("WARNING: %zu pending oneway transactions. Terminating!", numPending); in processTransactInternal()
941 if (numPending % kArbitraryOnewayCallWarnPer == 0) { in processTransactInternal()
943 target.get(), numPending); in processTransactInternal()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/
DFakeExecutor.java140 public int numPending() { in numPending() method in FakeExecutor
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotifLiveDataImplTest.kt119 assertThat(executor.numPending()).isEqualTo(0) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/navigationbar/
DRegionSamplingHelperTest.kt131 assertThat(fakeExecutor.numPending()).isEqualTo(1) in testCompositionSamplingListener_has_nonEmptyRect()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DProximitySensorImplDualTest.java358 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testSecondaryCancelsSecondary()
394 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testSecondarySafe()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/resume/
DMediaResumeListenerTest.kt206 assertThat(executor.numPending()).isEqualTo(0) in capture()
327 assertThat(executor.numPending()).isEqualTo(1) in capture()
332 assertThat(executor.numPending()).isEqualTo(1) in capture()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DSmartspaceDedupingCoordinatorTest.kt386 assertEquals(0, executor.numPending()) in assertExecutorIsClear()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DBrightLineClassifierTest.java332 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testHistory_doubleTap()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DConnectivityController.java1174 final int numPending = mSortedStats.size(); in registerPendingUidCallbacksLocked() local
1175 if (numPending < numCallbacks) { in registerPendingUidCallbacksLocked()
1178 + numCallbacks + " vs " + numPending); in registerPendingUidCallbacksLocked()
1180 for (int i = numCallbacks; i < numPending && i < MAX_NETWORK_CALLBACKS; ++i) { in registerPendingUidCallbacksLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DWorkCountTrackerTest.java262 final int numPending = jobs.pendingMultiTypes.size(); in checkRandom() local
274 assertThat(totalRunning).isAtLeast(Math.min(minExpected, numPending)); in checkRandom()
/frameworks/base/packages/SystemUI/docs/
Dexecutors.md251 <td>numPending()</td>
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerTest.java247 assertEquals(0, mBackgroundExecutor.numPending()); in tearDown()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobConcurrencyManager.java1846 final int numPending = pendingJobQueue.size(); in shouldStopRunningJobLocked() local
1847 if (numPending == 0) { in shouldStopRunningJobLocked()

12