/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/condition/ |
D | SelfExecutingMonitor.java | 22 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/ |
D | FakeExecutorTest.java | 53 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()
|
D | MockExecutorHandlerTest.kt | 35 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/ |
D | CsdWarningDialogTest.java | 37 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/ |
D | CarrierTextManagerTest.java | 68 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/ |
D | HearingDevicesDialogManagerTest.java | 34 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/ |
D | UserCreatorTest.kt | 10 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/ |
D | TileQueryHelperTest.java | 58 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/ |
D | FakeExecutorModule.kt | 29 @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()
|
D | FakeExecutor.java | 26 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()
|
D | FakeThreadFactory.java | 28 private final FakeExecutor mFakeExecutor; 32 public FakeThreadFactory(FakeExecutor fakeExecutor) { in FakeThreadFactory()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | AppAdapterTest.kt | 29 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/ |
D | CloseShadeRightAfterClickTestB339290820.kt | 44 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/ |
D | executors.md | 14 [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/ |
D | FakeExecutorKosmos.kt | 20 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/ |
D | BouncerlessScrimControllerTest.java | 31 import com.android.systemui.util.concurrency.FakeExecutor; 50 private final FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock());
|
D | ScrimManagerTest.java | 30 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/ |
D | DismissCallbackRegistryTest.java | 27 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/ |
D | SystemProcessConditionTest.java | 31 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/ |
D | AsyncSensorManagerTest.java | 33 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/ |
D | TemperatureControlBehaviorTest.kt | 19 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/ |
D | ManagedProfileControllerImplTest.kt | 24 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/ |
D | WindowManagerLockscreenVisibilityManagerTest.kt | 26 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/ |
D | DeviceConfigProxyFakeTest.java | 30 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/ |
D | ComplicationTypesUpdaterTest.java | 37 import com.android.systemui.util.concurrency.FakeExecutor; 65 private final FakeExecutor mExecutor = new FakeExecutor(new FakeSystemClock());
|