Home
last modified time | relevance | path

Searched refs:FakeExecutor (Results 1 – 25 of 201) sorted by relevance

123456789

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/condition/
DSelfExecutingMonitor.java22 import com.android.systemui.util.concurrency.FakeExecutor;
30 private final FakeExecutor mExecutor;
35 public SelfExecutingMonitor(FakeExecutor executor) { in SelfExecutingMonitor()
59 final FakeExecutor mExecutor = new FakeExecutor(mFakeSystemClock); in createInstance()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DFakeExecutorTest.java53 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testNoDelay()
102 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testDelayed()
136 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testAtTime()
170 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testDelayed_AdvanceAndRun()
216 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testExecutionOrder()
285 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testRemoval_single()
324 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testRemoval_multi()
360 FakeExecutor fakeExecutor = new FakeExecutor(clock); in testIsExecuting()
DMockExecutorHandlerTest.kt35 val fakeExecutor = FakeExecutor(clock) in testNoDelay()
82 val fakeExecutor = FakeExecutor(clock) in testDelayed()
115 val fakeExecutor = FakeExecutor(clock) in testAtTime()
147 val fakeExecutor = FakeExecutor(clock) in testRemoveCallback_postDelayed()
168 val fakeExecutor = FakeExecutor(clock) in testRemoveCallback_postAtTime()
190 val fakeExecutor = FakeExecutor(clock) in testRemoveCallback_mixed_allRemoved()
209 val fakeExecutor = FakeExecutor(clock) in testRemoveCallback_differentRunnables_onlyMatchingRemoved()
233 val fakeExecutor = FakeExecutor(clock) in testRemoveMessages_fails()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DCsdWarningDialogTest.java37 import com.android.systemui.util.concurrency.FakeExecutor;
63 FakeExecutor executor = new FakeExecutor(new FakeSystemClock()); in create1XCsdDialogAndWait_sendsNotification()
79 FakeExecutor executor = new FakeExecutor(new FakeSystemClock()); in create5XCsdDiSalogAndWait_willSendNotification()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextManagerTest.java68 import com.android.systemui.util.concurrency.FakeExecutor;
122 private FakeExecutor mMainExecutor = new FakeExecutor(mFakeSystemClock);
123 private FakeExecutor mBgExecutor = new FakeExecutor(mFakeSystemClock);
192 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in setUp()
199 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testKeyguardUpdateMonitorCalledInMainThread()
218 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testAirplaneMode()
284 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testCardIOError()
296 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testCardIOError()
332 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testMoreSlotsThanSubs()
341 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testCallback()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesDialogManagerTest.java34 import com.android.systemui.util.concurrency.FakeExecutor;
54 private final FakeExecutor mMainExecutor = new FakeExecutor(new FakeSystemClock());
55 private final FakeExecutor mBackgroundExecutor = new FakeExecutor(new FakeSystemClock());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/
DUserCreatorTest.kt10 import com.android.systemui.util.concurrency.FakeExecutor
36 private lateinit var mainExecutor: FakeExecutor
37 private lateinit var bgExecutor: FakeExecutor
43 mainExecutor = FakeExecutor(FakeSystemClock()) in setUp()
44 bgExecutor = FakeExecutor(FakeSystemClock()) in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileQueryHelperTest.java58 import com.android.systemui.util.concurrency.FakeExecutor;
113 private FakeExecutor mMainExecutor;
114 private FakeExecutor mBgExecutor;
135 mMainExecutor = new FakeExecutor(clock); in setup()
136 mBgExecutor = new FakeExecutor(clock); in setup()
151 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testIsFinished_trueAfterQuerying()
160 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testQueryTiles_callsListenerTwice()
174 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testQueryTiles_isFinishedFalseOnListenerCalls_thenTrueAfterCompletion()
188 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testQueryTiles_correctTilesAndOrderOnlyStockTiles()
208 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testQueryTiles_correctTilesAndOrderOtherFactoryTiles()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/
DFakeExecutorModule.kt29 @Binds @Main @SysUISingleton fun bindMainExecutor(executor: FakeExecutor): Executor in bindMainExecutor()
31 @Binds @UiBackground @SysUISingleton fun bindUiBgExecutor(executor: FakeExecutor): Executor in bindMainExecutor()
34 @Provides fun provideFake(clock: FakeSystemClock) = FakeExecutor(clock) in bindMainExecutor()
DFakeExecutor.java26 public class FakeExecutor implements DelayableExecutor { class
39 public FakeExecutor(FakeSystemClock clock) { in FakeExecutor() method in FakeExecutor
178 public static void exhaustExecutors(FakeExecutor ...executors) { in exhaustExecutors()
182 for (FakeExecutor executor : executors) { in exhaustExecutors()
DFakeThreadFactory.java28 private final FakeExecutor mFakeExecutor;
32 public FakeThreadFactory(FakeExecutor fakeExecutor) { in FakeThreadFactory()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DAppAdapterTest.kt29 import com.android.systemui.util.concurrency.FakeExecutor in <lambda>()
52 private val backgroundExecutor = FakeExecutor(fakeSystemClock) in <lambda>()
53 private val uiExecutor = FakeExecutor(fakeSystemClock) in <lambda>()
77 FakeExecutor.exhaustExecutors(backgroundExecutor, uiExecutor) in <lambda>()
94 FakeExecutor.exhaustExecutors(backgroundExecutor, uiExecutor) in <lambda>()
112 FakeExecutor.exhaustExecutors(backgroundExecutor, uiExecutor) in <lambda>()
130 FakeExecutor.exhaustExecutors(backgroundExecutor, uiExecutor) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/external/
DCloseShadeRightAfterClickTestB339290820.kt44 import com.android.systemui.util.concurrency.FakeExecutor
59 private val bindDelayExecutor: FakeExecutor
63 bindDelayExecutor = FakeExecutor(fakeSystemClock) in <lambda>()
85 FakeExecutor.exhaustExecutors(fakeExecutor, bindDelayExecutor) in testStopListeningShortlyAfterClick_clickIsSent()
100 FakeExecutor.exhaustExecutors(fakeExecutor, bindDelayExecutor) in testStopListeningShortlyAfterClick_clickIsSent()
172 val executor: FakeExecutor,
/frameworks/base/packages/SystemUI/docs/
Dexecutors.md14 [FakeExecutor][FakeExecutor] is available.
20 [FakeExecutor]: /packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/FakeExecut…
191 ## Testing (FakeExecutor)
193 We have a [FakeExecutor][FakeExecutor] available. It implements
269 _If you advance the supplied FakeSystemClock directly, the FakeExecutor will
279 FakeExecutor executor = new FakeExecutor(clock);
294 FakeExecutor executor = new FakeExecutor(clock);
312 FakeExecutor executorA = new FakeExecutor(clock);
313 FakeExecutor executorB = new FakeExecutor(clock);
328 want the benefits of [FakeExecutor] when writing your tests, which
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/concurrency/
DFakeExecutorKosmos.kt20 import com.android.systemui.util.concurrency.FakeExecutor
23 var Kosmos.fakeExecutor by Kosmos.Fixture { FakeExecutor(fakeSystemClock) } in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/scrim/
DBouncerlessScrimControllerTest.java31 import com.android.systemui.util.concurrency.FakeExecutor;
50 private final FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock());
DScrimManagerTest.java30 import com.android.systemui.util.concurrency.FakeExecutor;
56 private final FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DDismissCallbackRegistryTest.java27 import com.android.systemui.util.concurrency.FakeExecutor;
46 private FakeExecutor mUiBgExecutor = new FakeExecutor(new FakeSystemClock());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/process/condition/
DSystemProcessConditionTest.java31 import com.android.systemui.util.concurrency.FakeExecutor;
55 private final FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DAsyncSensorManagerTest.java33 import com.android.systemui.util.concurrency.FakeExecutor;
49 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DTemperatureControlBehaviorTest.kt19 import com.android.systemui.util.concurrency.FakeExecutor
47 FakeExecutor(fakeSystemClock), in setup()
48 FakeExecutor(fakeSystemClock), in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DManagedProfileControllerImplTest.kt24 import com.android.systemui.util.concurrency.FakeExecutor
40 private val mainExecutor: FakeExecutor = FakeExecutor(FakeSystemClock())
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/binder/
DWindowManagerLockscreenVisibilityManagerTest.kt26 import com.android.systemui.util.concurrency.FakeExecutor
42 private lateinit var executor: FakeExecutor
52 executor = FakeExecutor(FakeSystemClock()) in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DDeviceConfigProxyFakeTest.java30 import com.android.systemui.util.concurrency.FakeExecutor;
42 private FakeExecutor mFakeExecutor = new FakeExecutor(new FakeSystemClock());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DComplicationTypesUpdaterTest.java37 import com.android.systemui.util.concurrency.FakeExecutor;
65 private final FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock());

123456789