/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | NavHandleLongPressInputConsumer.java | 22 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/ |
D | AsyncBindingTest.kt | 29 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>()
|
D | ModelMultiCallbacksTest.java | 85 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/ |
D | RecentsAnimationCallbacks.java | 21 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()
|
D | QuickstepTestInformationHandler.java | 4 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()
|
D | RecentsModel.java | 21 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/ |
D | ProxyUnfoldTransitionProvider.kt | 20 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/ |
D | ItemInflaterTest.kt | 46 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/ |
D | RemoteActionShortcut.java | 21 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/ |
D | ModelTestExtensions.kt | 39 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>()
|
D | LauncherModelHelper.java | 22 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/ |
D | QuickstepWidgetHolder.java | 19 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/ |
D | MainThreadInitializedObject.java | 18 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()
|
D | WallpaperColorHints.kt | 27 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/ |
D | FallbackRecentsTest.java | 32 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/ |
D | AnimUtils.java | 20 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/ |
D | WidgetsPredicationUpdateTaskTest.java | 23 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/ |
D | PreviewSurfaceRenderer.java | 22 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/ |
D | LauncherWidgetHolder.java | 22 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/ |
D | DesktopRecentsTransitionController.kt | 29 import com.android.launcher3.util.Executors.MAIN_EXECUTOR 86 MAIN_EXECUTOR.execute { in startAnimation()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
D | DefaultAppSearchAlgorithm.java | 19 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/ |
D | AllAppsRecyclerViewPool.kt | 27 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/ |
D | FavoriteItemsTransaction.java | 19 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/ |
D | TestInformationHandler.java | 25 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/ |
D | ViewCaptureRule.kt | 25 import com.android.app.viewcapture.ViewCapture.MAIN_EXECUTOR in <lambda>() 95 MAIN_EXECUTOR.execute { windowListenerCloseables.onEach(SafeCloseable::close) } in <lambda>()
|