Home
last modified time | relevance | path

Searched refs:mModelHelper (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DDefaultLayoutProviderTest.java52 private LauncherModelHelper mModelHelper; field in DefaultLayoutProviderTest
57 mModelHelper = new LauncherModelHelper(); in setUp()
58 mTargetContext = mModelHelper.sandboxContext; in setUp()
63 mModelHelper.destroy(); in tearDown()
72 assertEquals(1, mModelHelper.getBgDataModel().workspaceItems.size()); in testCustomProfileLoaded_with_icon_on_hotseat()
73 ItemInfo info = mModelHelper.getBgDataModel().workspaceItems.get(0); in testCustomProfileLoaded_with_icon_on_hotseat()
87 assertEquals(1, mModelHelper.getBgDataModel().workspaceItems.size()); in testCustomProfileLoaded_with_folder()
88 ItemInfo info = mModelHelper.getBgDataModel().workspaceItems.get(0); in testCustomProfileLoaded_with_folder()
102 assertEquals(1, mModelHelper.getBgDataModel().workspaceItems.size()); in testCustomProfileLoaded_with_folder_custom_title()
103 ItemInfo info = mModelHelper.getBgDataModel().workspaceItems.get(0); in testCustomProfileLoaded_with_folder_custom_title()
[all …]
DCacheDataUpdatedTaskTest.java55 private LauncherModelHelper mModelHelper; field in CacheDataUpdatedTaskTest
62 mModelHelper = new LauncherModelHelper(); in setup()
63 mContext = mModelHelper.sandboxContext; in setup()
64 mSession1 = mModelHelper.createInstallerSession(PENDING_APP_1); in setup()
65 mModelHelper.createInstallerSession(PENDING_APP_2); in setup()
83 mModelHelper.setupDefaultLayoutProvider(builder); in setup()
84 mModelHelper.loadModelSync(); in setup()
85 assertEquals(10, mModelHelper.getBgDataModel().itemsIdMap.size()); in setup()
90 mModelHelper.destroy(); in tearDown()
105 mModelHelper.getModel().enqueueModelUpdateTask( in testCacheUpdate_update_apps()
[all …]
DPackageInstallStateChangedTaskTest.java38 private LauncherModelHelper mModelHelper; field in PackageInstallStateChangedTaskTest
43 mModelHelper = new LauncherModelHelper(); in setup()
44 mModelHelper.createInstallerSession(PENDING_APP_1); in setup()
45 mModelHelper.createInstallerSession(PENDING_APP_2); in setup()
62 mModelHelper.setupDefaultLayoutProvider(builder); in setup()
63 mModelHelper.loadModelSync(); in setup()
64 assertEquals(10, mModelHelper.getBgDataModel().itemsIdMap.size()); in setup()
69 mModelHelper.destroy(); in tearDown()
83 mModelHelper.getModel().enqueueModelUpdateTask(newTask(TEST_PACKAGE, 30)); in testSessionUpdate_ignore_installed()
94 mModelHelper.getModel().enqueueModelUpdateTask(newTask(PENDING_APP_1, 30)); in testSessionUpdate_shortcuts_updated()
[all …]
DModelMultiCallbacksTest.java63 private LauncherModelHelper mModelHelper; field in ModelMultiCallbacksTest
67 mModelHelper = new LauncherModelHelper(); in setUp()
72 mModelHelper.destroy(); in tearDown()
77 return mModelHelper.getModel().newModelCallbacks(); in getCallbacks()
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()
111 mModelHelper.getModel().startLoader(); 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()
[all …]
DLoaderCursorTest.java80 private LauncherModelHelper mModelHelper; field in LoaderCursorTest
92 mModelHelper = new LauncherModelHelper(); in setup()
93 mContext = mModelHelper.sandboxContext; in setup()
112 mModelHelper.destroy(); in tearDown()
DAddWorkspaceItemsTaskTest.kt54 Executors.MAIN_EXECUTOR.submit { mModelHelper.model.addCallbacks(mDataModelCallbacks) } in setup()
169 same(mModelHelper.bgDataModel), in verifyItemSpaceFinderCall()
192 mModelHelper.model.enqueueModelUpdateTask(task) in testAddItems()
DWorkspaceItemSpaceFinderTest.kt48 mModelHelper.bgDataModel, in findSpace()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/
DAbstractWorkspaceModelTest.kt46 protected lateinit var mModelHelper: LauncherModelHelper in <lambda>() variable in com.android.launcher3.model.AbstractWorkspaceModelTest
53 mModelHelper = LauncherModelHelper() in <lambda>()
54 mTargetContext = mModelHelper.sandboxContext in <lambda>()
65 mModelHelper.destroy() in <lambda>()
71 mModelHelper.setupDefaultLayoutProvider(mLayoutBuilder) in <lambda>()
74 mModelHelper.loadModelSync() in <lambda>()
87 mModelHelper.setupDefaultLayoutProvider(mLayoutBuilder) in <lambda>()
90 mModelHelper.loadModelSync() in <lambda>()
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java86 private LauncherModelHelper mModelHelper; field in WidgetsPredicationUpdateTaskTest
94 mModelHelper = new LauncherModelHelper(); in setup()
112 mLauncherApps = mModelHelper.sandboxContext.spyService(LauncherApps.class); in setup()
124 AppWidgetManager manager = mModelHelper.sandboxContext.spyService(AppWidgetManager.class); in setup()
137 mModelHelper.setupDefaultLayoutProvider(builder); in setup()
138 MAIN_EXECUTOR.submit(() -> mModelHelper.getModel().addCallbacks(mCallback)).get(); in setup()
139 mModelHelper.loadModelSync(); in setup()
144 mModelHelper.destroy(); in tearDown()
163 mModelHelper.getModel().enqueueModelUpdateTask( in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
203 mModelHelper.getModel().enqueueModelUpdateTask( in widgetsRecommendationRan_shouldReturnEmptyWidgetsWhenEmpty()
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java87 private LauncherModelHelper mModelHelper; field in RestoreDbTaskTest
98 mModelHelper = new LauncherModelHelper(); in setup()
99 mContext = mModelHelper.sandboxContext; in setup()
110 mModelHelper.destroy(); in teardown()