/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
D | RepeatableExecutorTest.java | 38 private FakeExecutor mFakeExecutor; field in RepeatableExecutorTest 45 mFakeExecutor = new FakeExecutor(mFakeClock); in setUp() 47 mExecutor = new RepeatableExecutorImpl(mFakeExecutor); in setUp() 56 mFakeExecutor.runAllReady(); in testExecute() 65 mFakeExecutor.advanceClockToNext(); in testRepeats() 66 mFakeExecutor.runAllReady(); in testRepeats() 69 assertThat(mFakeExecutor.numPending()).isEqualTo(1); in testRepeats() 76 mFakeExecutor.runAllReady(); in testNoExecutionBeforeStartDelay() 79 assertThat(mFakeExecutor.numPending()).isEqualTo(1); in testNoExecutionBeforeStartDelay() 88 mFakeExecutor.runAllReady(); in testExecuteAfterStartDelay() [all …]
|
D | MessageRouterImplTest.java | 52 FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in MessageRouterImplTest 64 mMR = new MessageRouterImpl(mFakeExecutor); in setup() 74 mFakeExecutor.runAllReady(); in testSingleMessage_NoMetaData() 85 mFakeExecutor.runAllReady(); in testSingleMessage_WithMetaData() 98 mFakeExecutor.runAllReady(); in testMessages_WithMixedMetaData() 109 mFakeExecutor.runAllReady(); in testMessages_WithMixedMetaData() 123 mFakeExecutor.runAllReady(); in testMessages_WithAndWithoutMetaData() 134 mFakeExecutor.runAllReady(); in testMessages_WithAndWithoutMetaData() 149 mFakeExecutor.runNextReady(); in testRepeatedMessage() 151 mFakeExecutor.runNextReady(); in testRepeatedMessage() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/touch/ |
D | TouchInsetManagerTest.java | 56 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in TouchInsetManagerTest 66 final TouchInsetManager insetManager = new TouchInsetManager(mFakeExecutor); in testViewOnAttachedHandling() 78 mFakeExecutor.runAllReady(); in testViewOnAttachedHandling() 88 mFakeExecutor.runAllReady(); in testViewOnAttachedHandling() 96 final TouchInsetManager insetManager = new TouchInsetManager(mFakeExecutor); in testViewOnDetachedHandling() 107 mFakeExecutor.runAllReady(); in testViewOnDetachedHandling() 118 mFakeExecutor.runAllReady(); in testViewOnDetachedHandling() 126 final TouchInsetManager insetManager = new TouchInsetManager(mFakeExecutor); in testInsetRegionPropagation() 135 mFakeExecutor.runAllReady(); in testInsetRegionPropagation() 146 final TouchInsetManager insetManager = new TouchInsetManager(mFakeExecutor); in testMultipleRegions() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | PersistentServiceConnectionTest.java | 83 private final FakeExecutor mFakeExecutor = new FakeExecutor(); field in PersistentServiceConnectionTest 95 mFakeExecutor, in setup() 112 mFakeExecutor.clearAll(); in tearDown() 119 mFakeExecutor.runAll(); in testConnect() 131 eq(mFakeExecutor), in testRetryOnBindFailure() 136 mFakeExecutor.runAll(); in testRetryOnBindFailure() 141 eq(mFakeExecutor), in testRetryOnBindFailure() 146 mFakeExecutor.runAll(); in testRetryOnBindFailure() 151 eq(mFakeExecutor), in testRetryOnBindFailure() 156 mFakeExecutor.runAll(); in testRetryOnBindFailure() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationListenerTest.java | 65 private final FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in NotificationListenerTest 79 mFakeExecutor, in setUp() 90 mFakeExecutor.runAllReady(); in testNotificationAddCallsAddNotification() 97 mFakeExecutor.runAllReady(); in testNotificationRemovalCallsRemoveNotification() 104 assertThat(mFakeExecutor.runAllReady()).isEqualTo(1); in testRankingUpdateCallsNotificationRankingUpdate() 119 assertThat(mFakeExecutor.numPending()).isEqualTo(3); in testRankingUpdateMultipleTimesCallsNotificationRankingUpdateOnce() 120 assertThat(mFakeExecutor.runAllReady()).isEqualTo(3); in testRankingUpdateMultipleTimesCallsNotificationRankingUpdateOnce() 140 assertThat(mFakeExecutor.numPending()).isEqualTo(3); in testRankingUpdateWillCallAgainIfQueueIsSlow() 141 assertThat(mFakeExecutor.runNextReady()).isTrue(); in testRankingUpdateWillCallAgainIfQueueIsSlow() 144 assertThat(mFakeExecutor.numPending()).isEqualTo(0); in testRankingUpdateWillCallAgainIfQueueIsSlow()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
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()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/complication/ |
D | HideComplicationTouchHandlerTest.java | 84 FakeExecutor mFakeExecutor; field in HideComplicationTouchHandlerTest 90 mFakeExecutor = new FakeExecutor(mClock); in setup() 105 mFakeExecutor, in testSessionEndOnMultipleSessions() 138 mFakeExecutor, in testSessionEndWhenBouncerShowing() 171 mFakeExecutor, in testSessionEndWithTouchInInset() 197 mFakeExecutor.runAllReady(); in testSessionEndWithTouchInInset() 220 mFakeExecutor, in testSessionLifecycle() 248 mFakeExecutor.runAllReady(); in testSessionLifecycle() 261 mFakeExecutor.runAllReady(); in testSessionLifecycle() 280 mFakeExecutor, in testNoActionWhenDisabledByFlag()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotifBindPipelineTest.java | 57 private final FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in NotifBindPipelineTest 70 new NotificationEntryProcessorFactoryExecutorImpl(mFakeExecutor)); in setUp() 89 mFakeExecutor.runAllReady(); in testCallbackCalled() 106 mFakeExecutor.runAllReady(); in testCallbackCancelled() 126 mFakeExecutor.runAllReady(); in testMultipleCallbacks() 131 mFakeExecutor.runAllReady(); in testMultipleCallbacks()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/ |
D | PersistentConnectionManagerTest.java | 47 private FakeExecutor mFakeExecutor = new FakeExecutor(mFakeClock); field in PersistentConnectionManagerTest 72 mFakeExecutor, in setup() 127 mFakeExecutor.advanceClockToNext(); in testRetryOnBindFailure() 128 mFakeExecutor.runAllReady(); in testRetryOnBindFailure() 145 mFakeExecutor.advanceClockToNext(); in testStopDoesNotReconnect() 146 mFakeExecutor.runAllReady(); in testStopDoesNotReconnect()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServiceManagerTest.java | 90 private FakeExecutor mFakeExecutor; field in TileServiceManagerTest 103 mFakeExecutor = new FakeExecutor(new FakeSystemClock()); in setUp() 104 Handler handler = mockExecutorHandler(mFakeExecutor); in setUp() 240 mFakeExecutor.advanceClockToLast(); in testStopListeningAndUnbindImmediatelyAfterUpdate() 241 mFakeExecutor.runAllReady(); in testStopListeningAndUnbindImmediatelyAfterUpdate() 259 mFakeExecutor.advanceClockToLast(); in testStopListeningAndUnbindImmediatelyAfterUpdate_ifRequestedFromTileService() 260 mFakeExecutor.runAllReady(); in testStopListeningAndUnbindImmediatelyAfterUpdate_ifRequestedFromTileService() 277 mFakeExecutor.advanceClockToLast(); in testNotUnbindImmediatelyAfterUpdate_ifRequestedFromSystemUI() 278 mFakeExecutor.runAllReady(); in testNotUnbindImmediatelyAfterUpdate_ifRequestedFromSystemUI()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/ |
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()
|
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()
|
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()
|
D | ThresholdSensorImplTest.java | 52 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in ThresholdSensorImplTest 59 mSensorManager, new FakeThreadFactory(mFakeExecutor), null); in setUp() 392 mFakeExecutor.runAllReady(); in waitForSensorManager()
|
D | ProximitySensorImplSingleTest.java | 47 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in ProximitySensorImplSingleTest 58 mThresholdSensor, new FakeThresholdSensor(), mFakeExecutor, new FakeExecution()); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/reardisplay/ |
D | RearDisplayDialogControllerTest.java | 75 private final FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in RearDisplayDialogControllerTest 92 mFakeExecutor, in testClosedDialogIsShown() 115 mFakeExecutor, in testClosedDialogIsRefreshedOnConfigurationChange() 144 mFakeExecutor, in testOpenDialogIsShown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/ |
D | ImageWallpaperTest.java | 96 FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in ImageWallpaperTest 170 assertThat(mFakeExecutor.numPending()).isAtLeast(1); in testLoadDrawAndUnloadBitmap() 173 while (mFakeExecutor.numPending() >= 1) { in testLoadDrawAndUnloadBitmap() 176 mFakeExecutor.runNextReady(); in testLoadDrawAndUnloadBitmap() 185 return new ImageWallpaper(mFakeExecutor, mUserTracker) { in createImageWallpaper()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeUiTest.java | 74 private FakeExecutor mFakeExecutor; field in DozeUiTest 86 mFakeExecutor = new FakeExecutor(new FakeSystemClock()); in setUp() 88 mHandler, mDozeParameters, mFakeExecutor, mDozeLog); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyConstantsTest.java | 49 private final FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in SmartReplyConstantsTest 67 mFakeExecutor, in setUp() 215 mFakeExecutor.runAllReady(); in overrideSetting()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
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()
|
D | StatusBarRemoteInputCallbackTest.java | 65 private final FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock()); field in StatusBarRemoteInputCallbackTest 84 mock(ActionClickLogger.class), mFakeExecutor)); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ |
D | NetworkControllerSignalTest.java | 80 mFakeExecutor, in testDeviceProvisioned_userNotSetUp() 118 mFakeExecutor, in testDeviceProvisioned_userSetUp() 154 mFakeExecutor, in testNoIconWithoutMobile() 193 mFakeExecutor, in testServiceStateInitialState() 280 mFakeExecutor, in testNoSimlessIconWithoutMobile()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | VisualStabilityCoordinatorTest.java | 101 private FakeExecutor mFakeExecutor = new FakeExecutor(mFakeSystemClock); field in VisualStabilityCoordinatorTest 121 mFakeExecutor, in setUp() 353 mFakeExecutor.advanceClockToNext(); in testTemporarilyAllowSectionChangesTimeout() 354 mFakeExecutor.runNextReady(); in testTemporarilyAllowSectionChangesTimeout()
|