Searched refs:runOnExecutorSync (Results 1 – 12 of 12) sorted by relevance
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | ModelTestExtensions.kt | 31 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>()
|
D | LauncherModelHelper.java | 24 import static com.android.launcher3.util.TestUtil.runOnExecutorSync; 116 runOnExecutorSync(Executors.MODEL_EXECUTOR, () -> { }); in getBgDataModel() 192 mDestroyTask.add(() -> runOnExecutorSync(MODEL_EXECUTOR, () -> in setupDefaultLayoutProvider()
|
D | TestUtil.java | 181 public static void runOnExecutorSync(ExecutorService executor, UncheckedRunnable task) { in runOnExecutorSync() method in TestUtil
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | PackageInstallStateChangedTaskTest.java | 8 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()
|
D | CacheDataUpdatedTaskTest.java | 10 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()
|
D | AddWorkspaceItemsTaskTest.kt | 26 import com.android.launcher3.util.TestUtil.runOnExecutorSync 190 runOnExecutorSync(Executors.MODEL_EXECUTOR) { in testAddItems() 193 runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in testAddItems()
|
D | FolderIconLoadTest.kt | 150 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { cache.clearMemoryCache() } in setupAndLoadFolder()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/ |
D | WidgetsPredicationUpdateTaskTest.java | 25 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/ |
D | FavoriteItemsTransaction.java | 21 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/ |
D | AllAppsActionManagerTest.kt | 67 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/ |
D | BackupAndRestoreDBSelectionTest.kt | 58 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in oldDatabasesNotPresentAfterRestore()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AutoInstallsLayoutTest.kt | 176 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in work_item_added_to_home()
|