Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DActiveTrackpadListTest.kt83 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in update callback not called in constructor()
93 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in update called on add only once()
99 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in update called on add only once()
104 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in update called on add only once()
110 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in update called on add only once()
120 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in update called on remove only once()
124 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in update called on remove only once()
129 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in update called on remove only once()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/graphics/
DThemeManagerTest.kt58 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in isMonoThemeEnabled get and set()
64 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in isMonoThemeEnabled get and set()
76 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in callback called on theme change()
84 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in iconState changes with theme()
88 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in iconState changes with theme()
92 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in iconState changes with theme()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DModelTestExtensions.kt36 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in <lambda>()
46 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { forceReload() } in <lambda>()
53 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { addCallbacksAndLoad(mockCb) } in <lambda>()
54 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) {} in <lambda>()
55 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in <lambda>()
56 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { removeCallbacks(mockCb) } in <lambda>()
79 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in <lambda>()
DLauncherModelHelper.java25 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
138 runOnExecutorSync(Executors.MODEL_EXECUTOR, () -> { }); in getBgDataModel()
228 mDestroyTask.add(() -> runOnExecutorSync(MODEL_EXECUTOR, () -> in setupDefaultLayoutProvider()
DLauncherBindableItemsContainerTest.kt72 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) { in <lambda>()
97 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) { in <lambda>()
DDaggerSingletonDeadlockTest.kt58 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) { in objectCreationOnBackgroundThread()
DVibratorWrapperTest.kt69 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in init_register_onChangeListener()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/pm/
DUserCacheTest.kt54 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in getBadgeDrawable only returns a UserBadgeDrawable given a user in the cache()
70 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in getPreInstallApps returns list of pre installed apps given a user()
85 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in getUserProfiles returns copy of UserCache profiles()
101 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in getUserForSerialNumber returns user key matching given entry serial number()
116 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in getUserInfo returns cached UserIconInfo given user key()
132 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in getSerialNumberForUser returns cached UserIconInfo serial number given user key()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/icons/
DIconCacheTest.java30 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
167 runOnExecutorSync(MODEL_EXECUTOR, in launcherActivityInfo_cached_in_memory()
173 runOnExecutorSync(MODEL_EXECUTOR, in launcherActivityInfo_cached_in_memory()
182 runOnExecutorSync(MODEL_EXECUTOR, in launcherActivityInfo_cached_in_memory()
192 runOnExecutorSync(MODEL_EXECUTOR, () -> mIconCache.getShortcutIcon(info, si)); in shortcutInfo_not_cached_in_memory()
197 runOnExecutorSync(MODEL_EXECUTOR, in shortcutInfo_not_cached_in_memory()
204 runOnExecutorSync(MODEL_EXECUTOR, in shortcutInfo_not_cached_in_memory()
215 runOnExecutorSync(MODEL_EXECUTOR, in shortcutInfo_not_cached_in_memory()
286 runOnExecutorSync(MODEL_EXECUTOR, () -> { in executeIconUpdate()
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java26 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
165 runOnExecutorSync(MODEL_EXECUTOR, () -> { in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
180 runOnExecutorSync(MAIN_EXECUTOR, () -> { }); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
204 runOnExecutorSync(MODEL_EXECUTOR, () -> { in widgetsRecommendationRan_shouldReturnEmptyWidgetsWhenEmpty()
221 runOnExecutorSync(MAIN_EXECUTOR, () -> { }); in widgetsRecommendationRan_shouldReturnEmptyWidgetsWhenEmpty()
234 runOnExecutorSync(MODEL_EXECUTOR, () -> { in widgetsRecommendations_excludesWidgetsHiddenForPicker()
246 runOnExecutorSync(MAIN_EXECUTOR, () -> { }); in widgetsRecommendations_excludesWidgetsHiddenForPicker()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/
DPackageUpdatedTaskTest.kt135 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in OP_ADD triggers model callbacks and adds new items to AllAppsList()
153 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in OP_UPDATE triggers model callbacks and updates items in AllAppsList()
170 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in OP_REMOVE triggers model callbacks and removes packages and icons()
186 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in OP_UNAVAILABLE triggers model callbacks and removes package from AllAppsList()
204 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in OP_SUSPEND triggers model callbacks and updates flags in AllAppsList()
221 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in OP_UNSUSPEND triggers no callbacks when app not suspended()
237 TestUtil.runOnExecutorSync(Executors.MODEL_EXECUTOR) { in OP_USER_AVAILABILITY_CHANGE triggers no callbacks if current user not work or private()
DPackageInstallStateChangedTaskTest.java23 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
97 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_ignore_installed()
108 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_shortcuts_updated()
118 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_widgets_updated()
DCacheDataUpdatedTaskTest.java25 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
118 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testCacheUpdate_update_apps()
133 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_ignores_normal_apps()
151 runOnExecutorSync(MODEL_EXECUTOR, () -> { in testSessionUpdate_updates_pending_apps()
DAddWorkspaceItemsTaskTest.kt26 import com.android.launcher3.util.TestUtil.runOnExecutorSync
176 runOnExecutorSync(Executors.MODEL_EXECUTOR) { in testAddItems()
179 runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in testAddItems()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DFavoriteItemsTransaction.java20 import static com.android.launcher3.util.TestUtil.runOnExecutorSync;
59 runOnExecutorSync(MODEL_EXECUTOR, () -> { in commit()
106 runOnExecutorSync(MAIN_EXECUTOR, model::forceReload); in commit()
/packages/apps/Launcher3/tests/src/com/android/launcher3/pm/
DInstallSessionHelperTest.kt182 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in promiseIconAddedForId returns true if there is a promiseIcon with the session id()
204 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in removePromiseIconId removes promiseIconId for given Session id()
231 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in tryQueuePromiseAppIcon will update promise icon ids from eligible sessions()
260 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in verifySessionInfo is true if can verify given SessionInfo()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/
DAllAppsActionManagerTest.kt94 TestUtil.runOnExecutorSync(bgExecutor) {} // Force system action to unregister. in toggleTaskbar_destroyedAfterActionRegistered_actionUnregistered()
103 TestUtil.runOnExecutorSync(bgExecutor) {} // Force system action to unregister. in toggleTaskbar_destroyedBeforeActionRegistered_pendingActionUnregistered()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/
DGeneratedPreviewTest.kt125 TestUtil.runOnExecutorSync(DatabaseWidgetPreviewLoader.getLoaderExecutor()) {} in <lambda>()
126 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) {} in <lambda>()
DLauncherAppWidgetHostTest.kt69 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in Runnable called when app widget removed()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/workspace/
DThemeIconsTest.java82 TestUtil.runOnExecutorSync(MAIN_EXECUTOR, btv::performLongClick); in testShortcutIconWithoutTheme()
113 TestUtil.runOnExecutorSync(MAIN_EXECUTOR, btv::performLongClick); in testShortcutIconWithTheme()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/model/
DWidgetsPredictionsRequesterTest.kt160 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in <lambda>()
198 TestUtil.runOnExecutorSync(Executors.MAIN_EXECUTOR) {} in <lambda>()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/
DTaskbarControllerTestUtil.kt29 TestUtil.runOnExecutorSync(MAIN_EXECUTOR) { runTest() } in runOnMainSync()
/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/
DSystemShortcutTest.java205 TestUtil.runOnExecutorSync(MAIN_EXECUTOR, () -> systemShortcut.onClick(mView)); in testDontSuggestAppForPredictedItem()
223 TestUtil.runOnExecutorSync(MAIN_EXECUTOR, () -> systemShortcut.onClick(mView)); in testDontSuggestAppForPredictedItemWithUndo()
231 TestUtil.runOnExecutorSync(MAIN_EXECUTOR, snackbar.findViewById( in testDontSuggestAppForPredictedItemWithUndo()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ui/
DBubbleTextViewTest.java502 TestUtil.runOnExecutorSync(MAIN_EXECUTOR, in applyingPendingIcon_preserves_last_icon()
510 TestUtil.runOnExecutorSync(MAIN_EXECUTOR, in applyingPendingIcon_preserves_last_icon()
518 TestUtil.runOnExecutorSync(MAIN_EXECUTOR, () -> { in applyingPendingIcon_preserves_last_icon()
/packages/apps/Launcher3/tests/src/com/android/launcher3/backuprestore/
DBackupAndRestoreDBSelectionTest.kt77 TestUtil.runOnExecutorSync(MODEL_EXECUTOR) { in oldDatabasesNotPresentAfterRestore()

12