/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
D | FakeExecutorTest.java | 53 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testNoDelay() local 60 fakeExecutor.execute(runnable); in testNoDelay() 63 assertEquals(1, fakeExecutor.numPending()); in testNoDelay() 64 fakeExecutor.execute(runnable); in testNoDelay() 67 assertEquals(2, fakeExecutor.numPending()); in testNoDelay() 70 assertTrue(fakeExecutor.runNextReady()); in testNoDelay() 73 assertEquals(1, fakeExecutor.numPending()); in testNoDelay() 75 assertTrue(fakeExecutor.runNextReady()); in testNoDelay() 78 assertEquals(0, fakeExecutor.numPending()); in testNoDelay() 81 assertFalse(fakeExecutor.runNextReady()); in testNoDelay() [all …]
|
D | MockExecutorHandlerTest.kt | 35 val fakeExecutor = FakeExecutor(clock) in testNoDelay() constant 36 val handler = mockExecutorHandler(fakeExecutor) in testNoDelay() 45 assertEquals(1, fakeExecutor.numPending()) in testNoDelay() 49 assertEquals(2, fakeExecutor.numPending()) in testNoDelay() 52 assertTrue(fakeExecutor.runNextReady()) in testNoDelay() 55 assertEquals(1, fakeExecutor.numPending()) in testNoDelay() 57 assertTrue(fakeExecutor.runNextReady()) in testNoDelay() 60 assertEquals(0, fakeExecutor.numPending()) in testNoDelay() 63 assertFalse(fakeExecutor.runNextReady()) in testNoDelay() 70 assertEquals(2, fakeExecutor.numPending()) in testNoDelay() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/viewmodel/ |
D | SeekBarViewModelTest.kt | 61 private lateinit var fakeExecutor: FakeExecutor variable in com.android.systemui.media.controls.ui.viewmodel.SeekBarViewModelTest 85 fakeExecutor = FakeExecutor(FakeSystemClock()) in setUp() 86 viewModel = SeekBarViewModel(FakeRepeatableExecutor(fakeExecutor), falsingManager) in setUp() 298 fakeExecutor.runAllReady() in onSeek() 314 fakeExecutor.runAllReady() in onSeekWithFalse() 326 fakeExecutor.runAllReady() in onSeekProgress() 336 fakeExecutor.runAllReady() in onSeekProgressWithSeekStarting() 353 fakeExecutor.runAllReady() in seekStarted_listenerNotified() 371 fakeExecutor.runAllReady() in seekEnded_listenerNotified() 374 fakeExecutor.runAllReady() in seekEnded_listenerNotified() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | UserBroadcastDispatcherTest.kt | 79 private lateinit var fakeExecutor: FakeExecutor in capture() variable in com.android.systemui.broadcast.UserBroadcastDispatcherTest 86 fakeExecutor = FakeExecutor(FakeSystemClock()) in capture() 109 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testSingleReceiverRegistered() 122 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testDifferentActionReceiversForDifferentFlags() 141 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE, "PERMISSION1") in testDifferentActionReceiversForDifferentPermissions() 143 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE, "PERMISSION2") in testDifferentActionReceiversForDifferentPermissions() 160 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testSingleReceiverRegistered_logging() 171 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testSingleReceiverUnregistered() 187 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testSingleReceiverUnregistered_logger() 200 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testRemoveReceiverReferences() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/start/ |
D | ControlsStartableTest.kt | 92 private lateinit var fakeExecutor: FakeExecutor variable in com.android.systemui.controls.start.ControlsStartableTest 101 fakeExecutor = FakeExecutor(FakeSystemClock()) in setUp() 119 fakeExecutor.advanceClockToLast() in testNothingCalledOnStart() 120 fakeExecutor.runAllReady() in testNothingCalledOnStart() 132 fakeExecutor.runAllReady() in testNoPreferredPackagesNoDefaultSelected_noNewSelection() 145 fakeExecutor.runAllReady() in testPreferredPackagesNotInstalled_noNewSelection() 159 fakeExecutor.runAllReady() in testPreferredPackageNotPanel_noNewSelection() 174 fakeExecutor.runAllReady() in testExistingSelection_noNewSelection() 188 fakeExecutor.runAllReady() in testPanelAdded() 206 fakeExecutor.runAllReady() in testMultiplePreferredOnlyOnePanel_panelAdded() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | LetterboxBackgroundProviderTest.kt | 48 private val fakeExecutor = FakeExecutor(fakeSystemClock) in <lambda>() constant 66 LetterboxBackgroundProvider(windowManager, fakeExecutor, wallpaperManager, mainHandler) in <lambda>() 103 fakeExecutor.runAllReady() in <lambda>() 112 fakeExecutor.runAllReady() in <lambda>() 116 fakeExecutor.runAllReady() in <lambda>() 124 fakeExecutor.runAllReady() in <lambda>() 128 fakeExecutor.runAllReady() in <lambda>() 151 fakeExecutor.runAllReady() in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/ |
D | MultiRippleControllerTest.kt | 40 private val fakeExecutor = FakeExecutor(fakeSystemClock) constant 54 fakeExecutor.execute { in updateColor_updatesColor() 69 fakeExecutor.execute { in play_playsRipple() 81 fakeExecutor.execute { in play_doesNotExceedMaxRipple() 92 fakeExecutor.execute { in play_onEnd_removesAnimation()
|
D | RippleAnimationTest.kt | 35 private val fakeExecutor = FakeExecutor(fakeSystemClock) constant in com.android.systemui.surfaceeffects.ripple.RippleAnimationTest 87 fakeExecutor.execute { in updateColor_updatesColorCorrectly() 102 fakeExecutor.execute { in play_updatesIsPlaying() 120 fakeExecutor.execute { in play_onEnd_triggersOnAnimationEnd()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/media/controls/domain/pipeline/ |
D | MediaSessionBasedFilterKosmos.kt | 21 import com.android.systemui.concurrency.fakeExecutor 29 foregroundExecutor = fakeExecutor, in <lambda>() 30 backgroundExecutor = fakeExecutor, in <lambda>()
|
D | MediaDataProcessorKosmos.kt | 24 import com.android.systemui.concurrency.fakeExecutor 45 backgroundExecutor = fakeExecutor, in <lambda>() 46 uiExecutor = fakeExecutor, in <lambda>() 47 foregroundExecutor = fakeExecutor, in <lambda>()
|
D | MediaDeviceManagerKosmos.kt | 23 import com.android.systemui.concurrency.fakeExecutor 42 fgExecutor = fakeExecutor, in <lambda>() 43 bgExecutor = fakeExecutor, in <lambda>()
|
D | MediaResumeListenerKosmos.kt | 21 import com.android.systemui.concurrency.fakeExecutor 38 mainExecutor = fakeExecutor, in <lambda>() 39 backgroundExecutor = fakeExecutor, in <lambda>()
|
D | MediaDataFilterKosmos.kt | 21 import com.android.systemui.concurrency.fakeExecutor 40 fakeExecutor in <lambda>() 43 executor = fakeExecutor, in <lambda>()
|
D | MediaTimeoutListenerKosmos.kt | 19 import com.android.systemui.concurrency.fakeExecutor 31 mainExecutor = fakeExecutor, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerKosmos.kt | 22 import com.android.systemui.concurrency.fakeExecutor 34 fakeExecutor, in <lambda>() 35 fakeExecutor, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/turbulencenoise/ |
D | TurbulenceNoiseControllerTest.kt | 40 private val fakeExecutor = FakeExecutor(fakeSystemClock) constant 50 fakeExecutor.execute { in play_playsTurbulenceNoiseInOrder() 77 fakeExecutor.execute { in play_alreadyPlaying_ignoresNewAnimationRequest() 92 fakeExecutor.execute { in finish_mainAnimationPlaying_playsEaseOutAnimation() 110 fakeExecutor.execute { in finish_nonMainAnimationPlaying_doesNotFinishAnimation() 131 fakeExecutor.execute { in onAnimationFinished_resetsStateCorrectly() 159 fakeExecutor.execute { in updateColor_updatesCorrectColor() 182 fakeExecutor.execute { in play_initializesShader()
|
D | TurbulenceNoiseViewTest.kt | 36 private val fakeExecutor = FakeExecutor(fakeSystemClock) constant 45 fakeExecutor.execute { in play_playsAnimation() 61 fakeExecutor.execute { in playEaseIn_playsEaseInAnimation() 77 fakeExecutor.execute { in playEaseOut_playsEaseOutAnimation() 93 fakeExecutor.execute { in finish_animationPlaying_finishesAnimation()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/external/ |
D | CloseShadeRightAfterClickTestB339290820.kt | 38 import com.android.systemui.concurrency.fakeExecutor 85 FakeExecutor.exhaustExecutors(fakeExecutor, bindDelayExecutor) in testStopListeningShortlyAfterClick_clickIsSent() 89 fakeExecutor.runAllReady() in testStopListeningShortlyAfterClick_clickIsSent() 91 fakeExecutor.runAllReady() in testStopListeningShortlyAfterClick_clickIsSent() 98 fakeExecutor.runAllReady() in testStopListeningShortlyAfterClick_clickIsSent() 100 FakeExecutor.exhaustExecutors(fakeExecutor, bindDelayExecutor) in testStopListeningShortlyAfterClick_clickIsSent()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/collection/ |
D | NotifLiveDataStoreKosmos.kt | 19 import com.android.systemui.concurrency.fakeExecutor 23 Kosmos.Fixture { NotifLiveDataStoreImpl(fakeExecutor) } in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/android/os/ |
D | HandlerKosmos.kt | 19 import com.android.systemui.concurrency.fakeExecutor 23 val Kosmos.fakeExecutorHandler by Kosmos.Fixture { mockExecutorHandler(fakeExecutor) } in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/scene/data/repository/ |
D | WindowRootViewVisibilityRepositoryKosmos.kt | 20 import com.android.systemui.concurrency.fakeExecutor 27 uiBgExecutor = fakeExecutor, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/media/muteawait/ |
D | MediaMuteAwaitConnectionManagerFactoryKosmos.kt | 20 import com.android.systemui.concurrency.fakeExecutor 29 mainExecutor = fakeExecutor, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/broadcast/ |
D | BroadcastSenderKosmos.kt | 20 import com.android.systemui.concurrency.fakeExecutor 28 BroadcastSender(applicationContext, WakeLockFake.Builder(applicationContext), fakeExecutor) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/media/controls/ui/viewmodel/ |
D | MediaControlViewModelKosmos.kt | 20 import com.android.systemui.concurrency.fakeExecutor 31 backgroundExecutor = fakeExecutor, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/navigationbar/ |
D | RegionSamplingHelperTest.kt | 115 val fakeExecutor = FakeExecutor(FakeSystemClock()) // pass in as backgroundExecutor in testCompositionSamplingListener_has_nonEmptyRect() constant 122 DirectExecutor.INSTANCE, fakeExecutor, compositionListener) { in testCompositionSamplingListener_has_nonEmptyRect() 131 assertThat(fakeExecutor.numPending()).isEqualTo(1) in testCompositionSamplingListener_has_nonEmptyRect() 138 fakeExecutor.runAllReady() in testCompositionSamplingListener_has_nonEmptyRect()
|