Home
last modified time | relevance | path

Searched refs:runOnExecutorSync (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DModelTestExtensions.kt31 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in <lambda>()
39 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { forceReload() } in <lambda>()
46 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { addCallbacksAndLoad(mockCb) } in <lambda>()
47 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) {} in <lambda>()
48 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in <lambda>()
49 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { removeCallbacks(mockCb) } in <lambda>()
73 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in <lambda>()
DLauncherModelHelper.java24 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
116 runOnExecutorSync(Executors.MODEL_EXECUTOR, () -> { }); in getBgDataModel()
192 mDestroyTask.add(() -> runOnExecutorSync(MODEL_EXECUTOR, () -> in setupDefaultLayoutProvider()
DTestUtil.java181 public static void runOnExecutorSync(ExecutorService executor, UncheckedRunnable task) { in runOnExecutorSync() method in TestUtil
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DPackageInstallStateChangedTaskTest.java8 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
82 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_ignore_installed()
93 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_shortcuts_updated()
103 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_widgets_updated()
DCacheDataUpdatedTaskTest.java10 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
101 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testCacheUpdate_update_apps()
116 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_ignores_normal_apps()
131 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_updates_pending_apps()
DAddWorkspaceItemsTaskTest.kt26 import com.android.launcher3.util.TestUtil.runOnExecutorSync
190 runOnExecutorSync(Executors.MODEL_EXECUTOR) { in testAddItems()
193 runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in testAddItems()
DFolderIconLoadTest.kt150 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { cache.clearMemoryCache() } in setupAndLoadFolder()
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java25 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
150 runOnExecutorSync(MODEL_EXECUTOR, () -> { in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
165 runOnExecutorSync(MAIN_EXECUTOR, () -> { }); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
188 runOnExecutorSync(MODEL_EXECUTOR, () -> { in widgetsRecommendationRan_shouldReturnEmptyWidgetsWhenEmpty()
205 runOnExecutorSync(MAIN_EXECUTOR, () -> { }); in widgetsRecommendationRan_shouldReturnEmptyWidgetsWhenEmpty()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DFavoriteItemsTransaction.java21 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
59 runOnExecutorSync(MODEL_EXECUTOR, () -> { in commit()
100 runOnExecutorSync(MAIN_EXECUTOR, model::forceReload); in commit()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/
DAllAppsActionManagerTest.kt67 TestUtil.runOnExecutorSync(bgExecutor) {} // Force system action to unregister. in toggleTaskbar_destroyedAfterActionRegistered_actionUnregistered()
76 TestUtil.runOnExecutorSync(bgExecutor) {} // Force system action to unregister. in toggleTaskbar_destroyedBeforeActionRegistered_pendingActionUnregistered()
/packages/apps/Launcher3/tests/src/com/android/launcher3/backuprestore/
DBackupAndRestoreDBSelectionTest.kt58 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in oldDatabasesNotPresentAfterRestore()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/
DAutoInstallsLayoutTest.kt176 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in work_item_added_to_home()