Home
last modified time | relevance | path

Searched refs:mMainExecutor (Results 1 – 25 of 136) sorted by relevance

123456

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/
DDreamOverlayServiceTest.kt91 private val mMainExecutor = FakeExecutor(mFakeSystemClock) constant
200 mMainExecutor, in setup()
246 mMainExecutor.runAllReady() in testOnStartMetricsLogged()
263 mMainExecutor.runAllReady() in testOverlayContainerViewAddedToWindow()
282 mMainExecutor.runAllReady() in testInvalidWindowAddStart()
304 mMainExecutor.runAllReady() in testDreamOverlayContainerViewControllerInitialized()
322 mMainExecutor.runAllReady() in testDreamOverlayContainerViewRemovedFromOldParentWhenInitialized()
337 mMainExecutor.runAllReady() in testShouldShowComplicationsSetByStartDream()
352 mMainExecutor.runAllReady() in testLowLightSetByStartDream()
368 mMainExecutor.runAllReady() in testHomeControlPanelSetsByStartDream()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DTabletopModeControllerTest.java68 private TestShellExecutor mMainExecutor; field in TabletopModeControllerTest
98 mMainExecutor = new TestShellExecutor(); in setUp()
101 mDevicePostureController, mDisplayController, mMainExecutor); in setUp()
160 assertTrue(mMainExecutor.hasCallback(mPipTabletopController.mOnEnterTabletopModeCallback)); in foldedRotation90_halfOpen_scheduleTabletopModeChange()
171 assertFalse(mMainExecutor.hasCallback(mPipTabletopController.mOnEnterTabletopModeCallback)); in foldedRotation0_halfOpen_noScheduleTabletopModeChange()
183 assertFalse(mMainExecutor.hasCallback(mPipTabletopController.mOnEnterTabletopModeCallback)); in foldedRotation90_halfOpenThenUnfold_cancelTabletopModeChange()
195 assertFalse(mMainExecutor.hasCallback(mPipTabletopController.mOnEnterTabletopModeCallback)); in foldedRotation90_halfOpenThenFold_cancelTabletopModeChange()
208 assertFalse(mMainExecutor.hasCallback(mPipTabletopController.mOnEnterTabletopModeCallback)); in foldedRotation90_halfOpenThenRotate_cancelTabletopModeChange()
220 assertTrue(mMainExecutor.hasCallback(mPipTabletopController.mOnEnterTabletopModeCallback)); in unfoldedRotation90_halfOpen_scheduleTabletopModeChange()
231 assertFalse(mMainExecutor.hasCallback(mPipTabletopController.mOnEnterTabletopModeCallback)); in unfoldedRotation0_halfOpen_noScheduleTabletopModeChange()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPinnedStackListenerForwarder.java39 private final ShellExecutor mMainExecutor; field in PinnedStackListenerForwarder
43 mMainExecutor = mainExecutor; in PinnedStackListenerForwarder()
83 mMainExecutor.execute(() -> { in onMovementBoundsChanged()
90 mMainExecutor.execute(() -> { in onImeVisibilityChanged()
97 mMainExecutor.execute(() -> { in onActivityHidden()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedTimeoutHandler.java37 private final ShellExecutor mMainExecutor; field in OneHandedTimeoutHandler
68 mMainExecutor = mainExecutor; in OneHandedTimeoutHandler()
84 mMainExecutor.removeCallbacks(mTimeoutRunnable); in removeTimer()
96 mMainExecutor.executeDelayed(mTimeoutRunnable, mTimeoutMs); in resetTimer()
111 return mMainExecutor.hasCallback(mTimeoutRunnable); in hasScheduledTimeout()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileQueryHelperTest.java113 private FakeExecutor mMainExecutor; field in TileQueryHelperTest
125 FakeQSTile tile = new FakeQSTile(mBgExecutor, mMainExecutor); in setup()
135 mMainExecutor = new FakeExecutor(clock); in setup()
138 mContext, mUserTracker, mMainExecutor, mBgExecutor); 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()
228 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testQueryTiles_otherTileNotIncluded()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSnapshotWindowCreator.java25 private final ShellExecutor mMainExecutor; field in SnapshotWindowCreator
31 mMainExecutor = mainExecutor; in SnapshotWindowCreator()
40 startingWindowInfo.appToken, snapshot, mMainExecutor, in makeTaskSnapshotWindow()
44 startingWindowInfo.taskInfo.topActivityType, mMainExecutor, in makeTaskSnapshotWindow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/appclips/
DAppClipsViewModel.java57 private final Executor mMainExecutor; field in AppClipsViewModel
70 mMainExecutor = mainExecutor; in AppClipsViewModel()
82 mMainExecutor.execute(() -> { in performScreenshot()
136 }, mMainExecutor); in saveScreenshotThenFinish()
157 private final Executor mMainExecutor; field in AppClipsViewModel.Factory
166 mMainExecutor = mainExecutor; in Factory()
179 mMainExecutor, mBgExecutor); in create()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchState.java43 private final ShellExecutor mMainExecutor; field in PipTouchState
79 mMainExecutor = mainExecutor; in PipTouchState()
138 mMainExecutor.removeCallbacks(mDoubleTapTimeoutCallback); in onTouchEvent()
349 mMainExecutor.removeCallbacks(mDoubleTapTimeoutCallback);
350 mMainExecutor.executeDelayed(mDoubleTapTimeoutCallback, delay);
367 mMainExecutor.removeCallbacks(mDoubleTapTimeoutCallback);
372 mMainExecutor.removeCallbacks(mHoverExitTimeoutCallback);
373 mMainExecutor.executeDelayed(mHoverExitTimeoutCallback, HOVER_EXIT_TIMEOUT);
377 mMainExecutor.removeCallbacks(mHoverExitTimeoutCallback);
DPipInputConsumer.java87 private final ShellExecutor mMainExecutor; field in PipInputConsumer
101 mMainExecutor = mainExecutor; in PipInputConsumer()
116 mMainExecutor.execute(() -> { in setRegistrationListener()
148 mMainExecutor.execute(() -> { in registerInputConsumer()
173 mMainExecutor.execute(() -> { in unregisterInputConsumer()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTouchState.java43 private final ShellExecutor mMainExecutor; field in PipTouchState
79 mMainExecutor = mainExecutor; in PipTouchState()
138 mMainExecutor.removeCallbacks(mDoubleTapTimeoutCallback); in onTouchEvent()
349 mMainExecutor.removeCallbacks(mDoubleTapTimeoutCallback);
350 mMainExecutor.executeDelayed(mDoubleTapTimeoutCallback, delay);
366 mMainExecutor.removeCallbacks(mDoubleTapTimeoutCallback);
370 mMainExecutor.removeCallbacks(mHoverExitTimeoutCallback);
371 mMainExecutor.executeDelayed(mHoverExitTimeoutCallback, HOVER_EXIT_TIMEOUT);
375 mMainExecutor.removeCallbacks(mHoverExitTimeoutCallback);
DPipInputConsumer.java87 private final ShellExecutor mMainExecutor; field in PipInputConsumer
101 mMainExecutor = mainExecutor; in PipInputConsumer()
116 mMainExecutor.execute(() -> { in setRegistrationListener()
148 mMainExecutor.execute(() -> { in registerInputConsumer()
173 mMainExecutor.execute(() -> { in unregisterInputConsumer()
DPipScheduler.java55 private final ShellExecutor mMainExecutor; field in PipScheduler
101 mMainExecutor = mainExecutor; in PipScheduler()
113 return mMainExecutor; in getMainExecutor()
140 mMainExecutor.execute(() -> { in scheduleExitPipViaExpand()
186 tx.addTransactionCommittedListener(mMainExecutor, () -> { in scheduleFinishResizePip()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextManagerTest.java122 private FakeExecutor mMainExecutor = new FakeExecutor(mFakeSystemClock); field in CarrierTextManagerTest
139 assertThat(mMainExecutor.isExecuting()).isTrue(); in checkMainThread()
181 mMainExecutor, in setUp()
192 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in setUp()
199 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testKeyguardUpdateMonitorCalledInMainThread()
218 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testAirplaneMode()
242 mMainExecutor, in testAirplaneMode_noSim_nullPlmn_nullSpn_doesNotCrash()
284 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testCardIOError()
296 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testCardIOError()
332 FakeExecutor.exhaustExecutors(mMainExecutor, mBgExecutor); in testMoreSlotsThanSubs()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPipTouchStateTest.java50 private TestShellExecutor mMainExecutor; field in PipTouchStateTest
54 mMainExecutor = new TestShellExecutor(); in setUp()
60 mMainExecutor); in setUp()
90 mMainExecutor.flushAll(); in testDoubleTapTimeout_timeoutCallbackCalled()
125 mMainExecutor.flushAll(); in testHoverExitTimeout_timeoutCallbackCalled()
140 mMainExecutor.flushAll(); in testHoverExitTimeout_timeoutCallbackNotCalled_ifButtonPress()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayInsetsController.java45 private final ShellExecutor mMainExecutor; field in DisplayInsetsController
57 mMainExecutor = mainExecutor; in DisplayInsetsController()
218 mMainExecutor.execute(() -> { in topFocusedWindowChanged()
225 mMainExecutor.execute(() -> { in insetsChanged()
233 mMainExecutor.execute(() -> { in insetsControlChanged()
241 mMainExecutor.execute(() -> { in showInsets()
249 mMainExecutor.execute(() -> { in hideInsets()
257 mMainExecutor.execute(() -> { in setImeInputTargetRequestedVisibility()
DDisplayController.java53 private final ShellExecutor mMainExecutor; field in DisplayController
64 mMainExecutor = mainExecutor; in DisplayController()
320 mMainExecutor.execute(() -> { in onDisplayAdded()
327 mMainExecutor.execute(() -> { in onDisplayConfigurationChanged()
334 mMainExecutor.execute(() -> { in onDisplayRemoved()
341 mMainExecutor.execute(() -> { in onFixedRotationStarted()
348 mMainExecutor.execute(() -> { in onFixedRotationFinished()
356 mMainExecutor.execute(() -> { in onKeepClearAreasChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java137 private FakeExecutor mMainExecutor; field in QSTileHostTest
149 mMainExecutor = new FakeExecutor(new FakeSystemClock()); in setUp()
168 mQSTileHost = new TestQSTileHost(mContext, () -> null, mDefaultFactory, mMainExecutor, in setUp()
172 mMainExecutor.runAllReady(); in setUp()
178 mMainExecutor.execute(() -> mQSTileHost.onTuningChanged(SETTING, getSetting())); in setUp()
179 mMainExecutor.runAllReady(); in setUp()
350 mMainExecutor.runAllReady(); in testAddTileAtValidPosition()
365 mMainExecutor.runAllReady(); in testAddTileAtInvalidPositionAddsToEnd()
380 mMainExecutor.runAllReady(); in testAddTileAtEnd()
393 mMainExecutor.runAllReady(); in testNoRepeatedSpecs_customTile()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sysui/
DShellController.java66 private final ShellExecutor mMainExecutor; field in ShellController
125 mMainExecutor = mainExecutor; in ShellController()
358 mMainExecutor.execute(ShellController.this::handleInit); in onInit()
363 mMainExecutor.execute(() -> in onConfigurationChanged()
370 mMainExecutor.execute(() -> in onKeyguardVisibilityChanged()
377 mMainExecutor.execute(() -> in onKeyguardDismissAnimationFinished()
383 mMainExecutor.execute(() -> in onUserChanged()
389 mMainExecutor.execute(() -> in onUserProfilesChanged()
410 mMainExecutor.executeBlocking(() -> { in handleCommand()
422 mMainExecutor.executeBlocking(() -> { in createExternalInterfaces()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButtonController.java67 private final Executor mMainExecutor; field in EmergencyButtonController
112 mMainExecutor = mainExecutor; in EmergencyButtonController()
149 mMainExecutor.execute(() -> mView.updateEmergencyCallButton( in updateEmergencyCallButton()
176 mMainExecutor.execute(() -> { in takeEmergencyCallAction()
221 private final Executor mMainExecutor; field in EmergencyButtonController.Factory
246 mMainExecutor = mainExecutor; in Factory()
255 mTelecomManager, mMetricsLogger, mLockPatternUtils, mMainExecutor, in create()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesDialogManagerTest.java54 private final FakeExecutor mMainExecutor = new FakeExecutor(new FakeSystemClock()); field in HearingDevicesDialogManagerTest
81 mMainExecutor in setUp()
91 mMainExecutor.runAllReady(); in showDialog_existHearingDevice_showPairNewDeviceFalse()
102 mMainExecutor.runAllReady(); in showDialog_noHearingDevice_showPairNewDeviceTrue()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/
DShellTransitionTests.java143 private final TestShellExecutor mMainExecutor = new TestShellExecutor(); field in ShellTransitionTests
161 mOrganizer, mTransactionPool, createTestDisplayController(), mMainExecutor, in instantiate_addInitCallback()
170 ShellInit shellInit = new ShellInit(mMainExecutor); in instantiateController_addExternalInterface()
173 mOrganizer, mTransactionPool, createTestDisplayController(), mMainExecutor, in instantiateController_addExternalInterface()
195 mMainExecutor.flushAll(); in testBasicTransitionFlow()
246 mMainExecutor.flushAll(); in testNonDefaultHandler()
262 mMainExecutor.flushAll(); in testNonDefaultHandler()
281 mMainExecutor.flushAll(); in testNonDefaultHandler()
312 mMainExecutor.flushAll(); in testRequestRemoteTransition()
467 mMainExecutor.flushAll(); in testRegisteredRemoteTransition()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleController.java205 private final ShellExecutor mMainExecutor; field in BubbleController
323 mMainExecutor = mainExecutor; in BubbleController()
366 mMainExecutor.execute(() -> { in registerOneHandedState()
375 mMainExecutor.execute(() -> { in registerOneHandedState()
400 mMainExecutor.execute(() -> removeBubble(bubble.getKey(), DISMISS_INVALID_INTENT)); in onInit()
541 return mMainExecutor; in getMainExecutor()
551 return mMainExecutor; in getRemoteCallExecutor()
833 mSurfaceSynchronizer, mFloatingContentCoordinator, this, mMainExecutor); in ensureBubbleViewsAndWindowCreated()
991 mMainExecutor.execute(() -> collapseStack());
1010 mMainExecutor.execute(() -> showBubblesFromShortcut());
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DShadeControllerImpl.java59 private final Executor mMainExecutor; field in ShadeControllerImpl
100 mMainExecutor = mainExecutor; in ShadeControllerImpl()
184 mMainExecutor.execute(this::animateCollapseShade); in postAnimateCollapseShade()
189 mMainExecutor.execute(this::animateCollapseShadeForced); in postAnimateForceCollapseShade()
194 mMainExecutor.execute(this::animateExpandQs); in postAnimateExpandQs()
258 mMainExecutor.execute(this::collapseShade); in collapseOnMainThread()
408 mMainExecutor.execute(this::runPostCollapseActions); in collapseShadeForActivityStart()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationListener.java67 private final Executor mMainExecutor; field in NotificationListener
91 mMainExecutor = mainExecutor; in NotificationListener()
119 mMainExecutor.execute(() -> { in onListenerConnected()
149 mMainExecutor.execute(() -> { in onNotificationPosted()
162 mMainExecutor.execute(() -> { in onNotificationRemoved()
186 mMainExecutor.execute(mDispatchRankingUpdateRunnable); in onNotificationRankingUpdate()
230 mMainExecutor.execute(() -> { in onNotificationChannelModified()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DAccessPointControllerImpl.java60 private final Executor mMainExecutor; field in AccessPointControllerImpl
78 mMainExecutor = mainExecutor; in AccessPointControllerImpl()
80 mMainExecutor.execute(() -> mLifecycle.setCurrentState(Lifecycle.State.CREATED)); in AccessPointControllerImpl()
102 mMainExecutor.execute(() -> mLifecycle.setCurrentState(Lifecycle.State.DESTROYED)); in finalize()
127 mMainExecutor.execute(() -> mLifecycle.setCurrentState(Lifecycle.State.STARTED)); in addAccessPointCallback()
137 mMainExecutor.execute(() -> mLifecycle.setCurrentState(Lifecycle.State.CREATED)); in removeAccessPointCallback()

123456