Home
last modified time | relevance | path

Searched refs:MAIN_EXECUTOR (Results 1 – 25 of 90) sorted by relevance

1234

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DNavHandleLongPressInputConsumer.java22 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
111 } else if (MAIN_EXECUTOR.getHandler().hasCallbacks(mTriggerLongPress)) { in onMotionEvent()
137 MAIN_EXECUTOR.getHandler().postDelayed(mTriggerLongPress, mLongPressTimeout); in handleMotionEvent()
144 if (!MAIN_EXECUTOR.getHandler().hasCallbacks(mTriggerLongPress)) { in handleMotionEvent()
157 MAIN_EXECUTOR.getHandler().removeCallbacks(mTriggerLongPress); in handleMotionEvent()
160 MAIN_EXECUTOR.getHandler().postDelayed(mTriggerLongPress, delay); in handleMotionEvent()
180 if (MAIN_EXECUTOR.getHandler().hasCallbacks(mTriggerLongPress) in handleMotionEvent()
193 MAIN_EXECUTOR.getHandler().removeCallbacks(mTriggerLongPress); in handleMotionEvent()
194 MAIN_EXECUTOR.getHandler().post(mTriggerLongPress); in handleMotionEvent()
220 MAIN_EXECUTOR.post(longPressRunnable); in triggerLongPress()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DAsyncBindingTest.kt29 import com.android.launcher3.util.Executors.MAIN_EXECUTOR in <lambda>()
110 MAIN_EXECUTOR.execute { modelHelper.model.addCallbacksAndLoad(callbacks) } in <lambda>()
120 MAIN_EXECUTOR.execute { modelHelper.model.addCallbacksAndLoad(callbacks) } in <lambda>()
128 MAIN_EXECUTOR.submit(callbacks.pendingTasks!!::executeAllAndDestroy).get() in <lambda>()
144 MAIN_EXECUTOR.submit { in <lambda>()
168 assertEquals(MAIN_EXECUTOR.looper, inflationLooper.valueAt(i)) in <lambda>()
172 MAIN_EXECUTOR.submit { in <lambda>()
182 MAIN_EXECUTOR.submit {}.get() in <lambda>()
184 MAIN_EXECUTOR.submit {}.get() in <lambda>()
DModelMultiCallbacksTest.java85 Executors.MAIN_EXECUTOR.execute(() -> mModelHelper.getModel().addCallbacksAndLoad(cb1)); in testTwoCallbacks_loadedTogether()
94 Executors.MAIN_EXECUTOR.execute(() -> mModelHelper.getModel().addCallbacksAndLoad(cb2)); in testTwoCallbacks_loadedTogether()
105 Executors.MAIN_EXECUTOR.execute(() -> mModelHelper.getModel().removeCallbacks(cb2)); in testTwoCallbacks_loadedTogether()
125 Executors.MAIN_EXECUTOR.execute(() -> mModelHelper.getModel().addCallbacksAndLoad(cb1)); in testTwoCallbacks_receiveUpdates()
126 Executors.MAIN_EXECUTOR.execute(() -> mModelHelper.getModel().addCallbacksAndLoad(cb2)); in testTwoCallbacks_receiveUpdates()
147 Executors.MAIN_EXECUTOR.execute(() -> mModelHelper.getModel().removeCallbacks(cb2)); in testTwoCallbacks_receiveUpdates()
158 Executors.MAIN_EXECUTOR.submit(() -> { }).get(); in waitForLoaderAndTempMainThread()
160 Executors.MAIN_EXECUTOR.submit(() -> { }).get(); in waitForLoaderAndTempMainThread()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsAnimationCallbacks.java21 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
127 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), in onAnimationStart()
147 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationStart()
162 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationCanceled()
175 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onTasksAppeared()
187 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onSwitchToScreenshot()
197 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationFinished()
DQuickstepTestInformationHandler.java4 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
249 TISBindHelper helper = MAIN_EXECUTOR.submit(() -> in runOnTISBinder()
255 MAIN_EXECUTOR.execute(helper::onDestroy); in runOnTISBinder()
DRecentsModel.java21 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
91 new RecentTasksList(MAIN_EXECUTOR, in RecentsModel()
128 iconProvider.registerIconChangeListener(this, MAIN_EXECUTOR.getHandler()); in RecentsModel()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/unfold/
DProxyUnfoldTransitionProvider.kt20 import com.android.launcher3.util.Executors.MAIN_EXECUTOR
45 MAIN_EXECUTOR.execute(delegate::onTransitionStarted) in onTransitionStarted()
50 MAIN_EXECUTOR.execute { delegate.onTransitionProgress(progress) } in onTransitionProgress()
55 MAIN_EXECUTOR.execute(delegate::onTransitionFinished) in onTransitionFinished()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DItemInflaterTest.kt46 import com.android.launcher3.util.Executors.MAIN_EXECUTOR in <lambda>()
118 MAIN_EXECUTOR.submit(Callable { underTest.inflateItem(itemInfo, modelWriter) }).get() in <lambda>()
147 MAIN_EXECUTOR.submit(Callable { underTest.inflateItem(itemInfo, modelWriter) }).get() in <lambda>()
180 MAIN_EXECUTOR.submit(Callable { underTest.inflateItem(itemInfo, modelWriter) }).get() in <lambda>()
210 MAIN_EXECUTOR.submit(Callable { underTest.inflateItem(itemInfo, modelWriter) }).get() in <lambda>()
236 MAIN_EXECUTOR.submit(Callable { underTest.inflateItem(itemInfo, modelWriter) }).get() in <lambda>()
272 MAIN_EXECUTOR.submit(Callable { underTest.inflateItem(itemInfo, modelWriter) }).get() in <lambda>()
289 MAIN_EXECUTOR.submit(Callable { underTest.inflateItem(itemInfo, modelWriter) }).get() in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DRemoteActionShortcut.java21 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
59 MAIN_EXECUTOR.getHandler()); in setIconAndLabelFor()
67 MAIN_EXECUTOR.getHandler()); in setIconAndContentDescriptionFor()
107 MAIN_EXECUTOR.getHandler(), in onClick()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DModelTestExtensions.kt39 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { forceReload() } in <lambda>()
46 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { addCallbacksAndLoad(mockCb) } in <lambda>()
48 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in <lambda>()
49 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { removeCallbacks(mockCb) } in <lambda>()
DLauncherModelHelper.java22 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
203 MAIN_EXECUTOR.submit(() -> getModel().addCallbacksAndLoad(mockCb)).get(); in loadModelSync()
206 MAIN_EXECUTOR.submit(() -> { }).get(); in loadModelSync()
207 MAIN_EXECUTOR.submit(() -> getModel().removeCallbacks(mockCb)).get(); in loadModelSync()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DQuickstepWidgetHolder.java19 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
85 MAIN_EXECUTOR.execute(() -> sHolders.add(this)); in QuickstepWidgetHolder()
94 i -> MAIN_EXECUTOR.execute(() -> in createHost()
96 () -> MAIN_EXECUTOR.execute(() -> in createHost()
178 MAIN_EXECUTOR.submit(() -> { in destroy()
319 MAIN_EXECUTOR.execute(() -> mListeningHolders.forEach(holder -> in executeOnMainExecutor()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DMainThreadInitializedObject.java18 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
59 return MAIN_EXECUTOR.submit(() -> get(context)).get(); in get()
166 return MAIN_EXECUTOR.submit(() -> getObject(object)).get(); in getObject()
DWallpaperColorHints.kt27 import com.android.launcher3.util.Executors.MAIN_EXECUTOR in <lambda>()
51 MAIN_EXECUTOR.handler in <lambda>()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DFallbackRecentsTest.java32 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
127 MAIN_EXECUTOR.submit(OverviewUpdateHandler::new).get(); in FallbackRecentsTest()
135 MAIN_EXECUTOR.submit(updateHandler::destroy).get(); in FallbackRecentsTest()
210 Wait.atMost("Failed to get from recents", () -> MAIN_EXECUTOR.submit(() -> { in getFromRecents()
233 final boolean recentsActivityIsNull = MAIN_EXECUTOR.submit( in waitForRecentsActivityStop()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DAnimUtils.java20 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
68 MAIN_EXECUTOR.execute(list::executeAllAndDestroy); in completeRunnableListCallback()
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java23 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
138 MAIN_EXECUTOR.submit(() -> mModelHelper.getModel().addCallbacks(mCallback)).get(); in setup()
165 runOnExecutorSync(MAIN_EXECUTOR, () -> { }); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
205 runOnExecutorSync(MAIN_EXECUTOR, () -> { }); in widgetsRecommendationRan_shouldReturnEmptyWidgetsWhenEmpty()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DPreviewSurfaceRenderer.java22 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
120 mSurfaceControlViewHost = MAIN_EXECUTOR.submit(() -> in PreviewSurfaceRenderer()
266 MAIN_EXECUTOR.execute(() -> { in loadModelData()
276 MAIN_EXECUTOR.execute(() -> renderView(inflationContext, dataModel, null, in loadModelData()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DLauncherWidgetHolder.java22 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
193 MAIN_EXECUTOR.execute(() -> mProviderChangedListeners.add(listener)); in addProviderChangeListener()
202 MAIN_EXECUTOR.execute(() -> mProviderChangedListeners.remove(listener)); in removeProviderChangeListener()
229 MAIN_EXECUTOR.execute( in sendActionCancelled()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/desktop/
DDesktopRecentsTransitionController.kt29 import com.android.launcher3.util.Executors.MAIN_EXECUTOR
86 MAIN_EXECUTOR.execute { in startAnimation()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DDefaultAppSearchAlgorithm.java19 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
53 mResultHandler = new Handler(MAIN_EXECUTOR.getLooper()); in DefaultAppSearchAlgorithm()
/packages/apps/Launcher3/src/com/android/launcher3/recyclerview/
DAllAppsRecyclerViewPool.kt27 import com.android.launcher3.util.Executors.MAIN_EXECUTOR in <lambda>()
99 MAIN_EXECUTOR, in <lambda>()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DFavoriteItemsTransaction.java19 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
100 runOnExecutorSync(MAIN_EXECUTOR, model::forceReload); in commit()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestInformationHandler.java25 import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
260 MAIN_EXECUTOR.submit(() -> in call()
408 MAIN_EXECUTOR.execute(model::forceReload); in call()
423 MAIN_EXECUTOR.execute(model::forceReload); in call()
506 return getFromExecutorSync(MAIN_EXECUTOR, () -> {
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DViewCaptureRule.kt25 import com.android.app.viewcapture.ViewCapture.MAIN_EXECUTOR in <lambda>()
95 MAIN_EXECUTOR.execute { windowListenerCloseables.onEach(SafeCloseable::close) } in <lambda>()

1234