/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
H A D | RepeatableExecutorTest.java | 39 private FakeExecutor mFakeExecutor; field in RepeatableExecutorTest 57 mFakeExecutor.runAllReady(); in testExecute() 66 mFakeExecutor.advanceClockToNext(); in testRepeats() 67 mFakeExecutor.runAllReady(); in testRepeats() 77 mFakeExecutor.runAllReady(); in testNoExecutionBeforeStartDelay() 89 mFakeExecutor.runAllReady(); in testExecuteAfterStartDelay() 99 mFakeExecutor.runAllReady(); in testExecuteWithZeroStartDelay() 111 mFakeExecutor.runAllReady(); in testAdvanceTimeTwice() 113 mFakeExecutor.runAllReady(); in testAdvanceTimeTwice() 126 mFakeExecutor.runAllReady(); in testCancel() [all …]
|
H A D | MessageRouterImplTest.java | 75 mFakeExecutor.runAllReady(); in testSingleMessage_NoMetaData() 86 mFakeExecutor.runAllReady(); in testSingleMessage_WithMetaData() 99 mFakeExecutor.runAllReady(); in testMessages_WithMixedMetaData() 110 mFakeExecutor.runAllReady(); in testMessages_WithMixedMetaData() 124 mFakeExecutor.runAllReady(); in testMessages_WithAndWithoutMetaData() 135 mFakeExecutor.runAllReady(); in testMessages_WithAndWithoutMetaData() 174 mFakeExecutor.runAllReady(); in testCancelMessage() 186 mFakeExecutor.runAllReady(); in testSendMessage_NoSubscriber() 191 mFakeExecutor.runAllReady(); in testSendMessage_NoSubscriber() 197 mFakeExecutor.runAllReady(); in testSendMessage_NoSubscriber() [all …]
|
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | PersistentServiceConnectionTest.java | 84 mFakeExecutor, in setup() 101 mFakeExecutor.clearAll(); in tearDown() 108 mFakeExecutor.runAll(); in testConnect() 120 eq(mFakeExecutor), in testRetryOnBindFailure() 125 mFakeExecutor.runAll(); in testRetryOnBindFailure() 130 eq(mFakeExecutor), in testRetryOnBindFailure() 135 mFakeExecutor.runAll(); in testRetryOnBindFailure() 140 eq(mFakeExecutor), in testRetryOnBindFailure() 145 mFakeExecutor.runAll(); in testRetryOnBindFailure() 150 eq(mFakeExecutor), in testRetryOnBindFailure() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/touch/ |
H A D | TouchInsetManagerTest.java | 78 mFakeExecutor.runAllReady(); in testViewOnAttachedHandling() 88 mFakeExecutor.runAllReady(); in testViewOnAttachedHandling() 107 mFakeExecutor.runAllReady(); in testViewOnDetachedHandling() 118 mFakeExecutor.runAllReady(); in testViewOnDetachedHandling() 135 mFakeExecutor.runAllReady(); in testInsetRegionPropagation() 155 mFakeExecutor.runAllReady(); in testMultipleRegions() 165 mFakeExecutor.runAllReady(); in testMultipleRegions() 180 mFakeExecutor.runAllReady(); in testMultipleRegions() 201 mFakeExecutor.runAllReady(); in testMultipleViews() 209 mFakeExecutor.runAllReady(); in testMultipleViews() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
H A D | GarbageMonitorTest.java | 48 private final FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in GarbageMonitorTest 56 mFakeExecutor, in setup() 57 new MessageRouterImpl(mFakeExecutor), in setup() 78 mFakeExecutor.runAllReady(); in testTransientGarbage_doesntDump() 83 mFakeExecutor.advanceClockToLast(); in testTransientGarbage_doesntDump() 84 mFakeExecutor.runAllReady(); in testTransientGarbage_doesntDump() 105 mFakeExecutor.runAllReady(); in testLotsOfPersistentGarbage_dumpsAfterAtime() 108 mFakeExecutor.advanceClockToLast(); in testLotsOfPersistentGarbage_dumpsAfterAtime() 109 mFakeExecutor.runAllReady(); in testLotsOfPersistentGarbage_dumpsAfterAtime()
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
H A D | FakeThreadFactory.java | 28 private final FakeExecutor mFakeExecutor; field in FakeThreadFactory 33 mFakeExecutor = fakeExecutor; in FakeThreadFactory() 56 return mFakeExecutor; in buildExecutorOnNewThread() 61 return mFakeExecutor; in buildDelayableExecutorOnNewThread() 66 return mFakeExecutor; in buildDelayableExecutorOnHandler() 71 return mFakeExecutor; in buildDelayableExecutorOnLooper()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | NotificationListenerTest.java | 62 private final FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in NotificationListenerTest 75 mFakeExecutor, in setUp() 86 mFakeExecutor.runAllReady(); in testNotificationAddCallsAddNotification() 93 mFakeExecutor.runAllReady(); in testNotificationRemovalCallsRemoveNotification() 100 assertThat(mFakeExecutor.runAllReady()).isEqualTo(1); in testRankingUpdateCallsNotificationRankingUpdate() 115 assertThat(mFakeExecutor.numPending()).isEqualTo(3); in testRankingUpdateMultipleTimesCallsNotificationRankingUpdateOnce() 116 assertThat(mFakeExecutor.runAllReady()).isEqualTo(3); in testRankingUpdateMultipleTimesCallsNotificationRankingUpdateOnce() 136 assertThat(mFakeExecutor.numPending()).isEqualTo(3); in testRankingUpdateWillCallAgainIfQueueIsSlow() 137 assertThat(mFakeExecutor.runNextReady()).isTrue(); in testRankingUpdateWillCallAgainIfQueueIsSlow() 140 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testRankingUpdateWillCallAgainIfQueueIsSlow()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
H A D | PluginActionManagerTest.java | 77 private final FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in PluginActionManagerTest 106 mFakeExecutor, mFakeExecutor, mNotificationManager, mMockEnabler, in setup() 120 mFakeExecutor.runAllReady(); in testNoPlugins() 140 mFakeExecutor.runAllReady(); in testPluginDestroy() 152 mFakeExecutor.runAllReady(); in testReloadOnChange() 169 mFakeExecutor.runAllReady(); in testNonDebuggable() 179 mMockPm, mFakeExecutor, mFakeExecutor, mNotificationManager, in testNonDebuggable_privileged() 188 mFakeExecutor.runAllReady(); in testNonDebuggable_privileged() 223 mMockPm, mFakeExecutor, mFakeExecutor, mNotificationManager, in testDisablePrivileged() 267 mFakeExecutor.runAllReady(); in createPlugin()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/complication/ |
H A D | HideComplicationTouchHandlerTest.java | 80 FakeExecutor mFakeExecutor; field in HideComplicationTouchHandlerTest 86 mFakeExecutor = new FakeExecutor(mClock); in setup() 100 mFakeExecutor, in testSessionEndOnMultipleSessions() 132 mFakeExecutor, in testSessionEndWhenBouncerShowing() 164 mFakeExecutor, in testSessionEndWithTouchInInset() 190 mFakeExecutor.runAllReady(); in testSessionEndWithTouchInInset() 212 mFakeExecutor, in testSessionLifecycle() 240 mFakeExecutor.runAllReady(); in testSessionLifecycle() 253 mFakeExecutor.runAllReady(); in testSessionLifecycle()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
H A D | DeviceConfigProxyFakeTest.java | 42 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in DeviceConfigProxyFakeTest 58 NAMESPACE, mFakeExecutor, onPropertiesChangedListener); in testOnPropertiesChanged() 61 mFakeExecutor.runAllReady(); in testOnPropertiesChanged() 76 NAMESPACE, mFakeExecutor, onPropertiesChangedListener); in testOnMultiplePropertiesChanged() 78 mFakeExecutor.runAllReady(); in testOnMultiplePropertiesChanged() 84 mFakeExecutor.runAllReady(); in testOnMultiplePropertiesChanged()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/ |
H A D | PersistentConnectionManagerTest.java | 46 private FakeExecutor mFakeExecutor = new FakeExecutor(mFakeClock); field in PersistentConnectionManagerTest 65 mFakeExecutor, in setup() 118 mFakeExecutor.advanceClockToNext(); in testRetryOnBindFailure() 119 mFakeExecutor.runAllReady(); in testRetryOnBindFailure() 136 mFakeExecutor.advanceClockToNext(); in testStopDoesNotReconnect() 137 mFakeExecutor.runAllReady(); in testStopDoesNotReconnect()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/ |
H A D | ProximityCheckTest.java | 48 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in ProximityCheckTest 59 mFakeProximitySensor = new FakeProximitySensor(thresholdSensor, null, mFakeExecutor); in setUp() 61 mProximityCheck = new ProximityCheck(mFakeProximitySensor, mFakeExecutor); in setUp() 82 mFakeExecutor.advanceClockToNext(); in testTimeout() 83 mFakeExecutor.runAllReady(); in testTimeout()
|
H A D | AsyncSensorManagerTest.java | 49 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in AsyncSensorManagerTest 56 fakeSensorManager, new FakeThreadFactory(mFakeExecutor), mPluginManager); in setUp() 103 mFakeExecutor.runAllReady(); in waitUntilRequestsCompleted()
|
H A D | ProximitySensorImplDualTest.java | 47 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in ProximitySensorImplDualTest 61 mThresholdSensorPrimary, mThresholdSensorSecondary, mFakeExecutor, in setUp() 208 mFakeExecutor.advanceClockToNext(); in testSecondaryPausing() 209 mFakeExecutor.runNextReady(); in testSecondaryPausing() 358 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testSecondaryCancelsSecondary() 394 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testSecondarySafe()
|
H A D | ThresholdSensorImplTest.java | 51 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in ThresholdSensorImplTest 58 mSensorManager, new FakeThreadFactory(mFakeExecutor), null); in setUp() 391 mFakeExecutor.runAllReady(); in waitForSensorManager()
|
H A D | ProximitySensorImplSingleTest.java | 47 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in ProximitySensorImplSingleTest 58 mThresholdSensor, new FakeThresholdSensor(), mFakeExecutor, new FakeExecution()); in setUp()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/reardisplay/ |
H A D | RearDisplayDialogControllerTest.java | 49 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in RearDisplayDialogControllerTest 58 mCommandQueue, mFakeExecutor); in testClosedDialogIsShown() 75 mCommandQueue, mFakeExecutor); in testClosedDialogIsRefreshedOnConfigurationChange() 96 mCommandQueue, mFakeExecutor); in testOpenDialogIsShown()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/ |
H A D | ImageWallpaperTest.java | 91 FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in ImageWallpaperTest 164 assertThat(mFakeExecutor.numPending()).isAtLeast(1); in testLoadDrawAndUnloadBitmap() 167 while (mFakeExecutor.numPending() >= 1) { in testLoadDrawAndUnloadBitmap() 170 mFakeExecutor.runNextReady(); in testLoadDrawAndUnloadBitmap() 179 return new ImageWallpaper(mFakeExecutor, mUserTracker) { in createImageWallpaper()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
H A D | DeleteScreenshotReceiverTest.java | 66 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in DeleteScreenshotReceiverTest 90 new DeleteScreenshotReceiver(mMockScreenshotSmartActions, mFakeExecutor); in testFileDeleted() 104 int runCount = mFakeExecutor.runAllReady(); in testFileDeleted()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | NotificationTapHelperTest.java | 51 private final FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in NotificationTapHelperTest 69 mNotificationTapHelper = new NotificationTapHelper.Factory(mFalsingManager, mFakeExecutor) in setup() 335 mFakeExecutor.advanceClockToLast(); in drainExecutor() 336 mFakeExecutor.runAllReady(); in drainExecutor()
|
H A D | StatusBarRemoteInputCallbackTest.java | 65 private final FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in StatusBarRemoteInputCallbackTest 84 mock(ActionClickLogger.class), mFakeExecutor)); in setUp()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ |
H A D | NetworkControllerSignalTest.java | 79 mFakeExecutor, in testDeviceProvisioned_userNotSetUp() 117 mFakeExecutor, in testDeviceProvisioned_userSetUp() 153 mFakeExecutor, in testNoIconWithoutMobile() 192 mFakeExecutor, in testServiceStateInitialState() 279 mFakeExecutor, in testNoSimlessIconWithoutMobile()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
H A D | VisualStabilityCoordinatorTest.java | 88 private FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in VisualStabilityCoordinatorTest 102 mFakeExecutor, in setUp() 335 mFakeExecutor.advanceClockToNext(); in testTemporarilyAllowSectionChangesTimeout() 336 mFakeExecutor.runNextReady(); in testTemporarilyAllowSectionChangesTimeout()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | DeviceStateRotationLockSettingControllerTest.java | 67 private final FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in DeviceStateRotationLockSettingControllerTest 92 mFakeExecutor, in setUp()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
H A D | FalsingCollectorImplTest.java | 80 private final FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in FalsingCollectorImplTest 93 mDockManager, mFakeExecutor, mFakeSystemClock); in setUp()
|