Home
last modified time | relevance | path

Searched refs:LauncherModel (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/model/
DBaseModelUpdateTask.java23 import com.android.launcher3.LauncherModel;
24 import com.android.launcher3.LauncherModel.ModelUpdateTask;
25 import com.android.launcher3.LauncherModel.CallbackTask;
26 import com.android.launcher3.LauncherModel.Callbacks;
44 private LauncherModel mModel;
49 public void init(LauncherAppState app, LauncherModel model, in init()
DAddWorkspaceItemsTask.java33 import com.android.launcher3.LauncherModel;
34 import com.android.launcher3.LauncherModel.CallbackTask;
35 import com.android.launcher3.LauncherModel.Callbacks;
74 ArrayList<Long> workspaceScreens = LauncherModel.loadWorkspaceScreensDb(context); in execute()
172 LauncherModel.updateWorkspaceScreenOrder(context, workspaceScreens); in updateScreens()
DLoaderTask.java46 import com.android.launcher3.LauncherModel;
144 try (LauncherModel.LoaderTransaction transaction = mApp.getModel().beginLoader(this)) { in run()
259 mBgDataModel.workspaceScreens.addAll(LauncherModel.loadWorkspaceScreensDb(context)); in loadWorkspace()
749 new Handler(LauncherModel.getWorkerLooper())); in loadWorkspace()
765 LauncherModel.updateWorkspaceScreenOrder(context, mBgDataModel.workspaceScreens); in loadWorkspace()
DSdCardAvailableReceiver.java25 import com.android.launcher3.LauncherModel;
43 private final LauncherModel mModel;
DCacheDataUpdatedTask.java26 import com.android.launcher3.LauncherModel.CallbackTask;
27 import com.android.launcher3.LauncherModel.Callbacks;
DPackageInstallStateChangedTask.java28 import com.android.launcher3.LauncherModel.CallbackTask;
29 import com.android.launcher3.LauncherModel.Callbacks;
DLoaderResults.java28 import com.android.launcher3.LauncherModel;
29 import com.android.launcher3.LauncherModel.Callbacks;
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherApplication.java37 private LauncherModel mModel;
56 mModel = new LauncherModel(this, mIconCache); in onCreate()
109 LauncherModel setLauncher(Launcher launcher) { in setLauncher()
118 LauncherModel getModel() { in getModel()
DInstallShortcutReceiver.java200 boolean launcherNotLoaded = LauncherModel.getCellCountX() <= 0 || in onReceive()
201 LauncherModel.getCellCountY() <= 0; in onReceive()
250 final ArrayList<ItemInfo> items = LauncherModel.getItemsInLocalCoordinates(context); in processInstallShortcut()
251 final boolean exists = LauncherModel.shortcutExists(context, name, intent); in processInstallShortcut()
338 final int xCount = LauncherModel.getCellCountX(); in findEmptyCell()
339 final int yCount = LauncherModel.getCellCountY(); in findEmptyCell()
DFolder.java129 mMaxCountX = LauncherModel.getCellCountX(); in Folder()
130 mMaxCountY = LauncherModel.getCellCountY(); in Folder()
258 LauncherModel.updateItemInDatabase(mLauncher, mInfo); in doneEditingFolderName()
377 LauncherModel.deleteItemFromDatabase(mLauncher, item); in bind()
742 LauncherModel.moveItemInDatabase(mLauncher, info, mInfo.id, 0, in updateItemLocationsInDatabase()
901 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, mInfo.id, 0, in arrangeChildren()
954 LauncherModel.addOrMoveItemInDatabase(mLauncher, finalItem, mInfo.container, in replaceFolderWithFinalItem()
959 LauncherModel.deleteItemFromDatabase(mLauncher, mInfo); in replaceFolderWithFinalItem()
1052 LauncherModel.addOrMoveItemInDatabase( in onAdd()
DAppsCustomizePagedView.java367 maxCellCountX = (isLandscape ? LauncherModel.getCellCountX() : in onDataReady()
368 LauncherModel.getCellCountY()); in onDataReady()
369 maxCellCountY = (isLandscape ? LauncherModel.getCellCountY() : in onDataReady()
370 LauncherModel.getCellCountX()); in onDataReady()
461 if (minSpanX <= LauncherModel.getCellCountX() && in onPackagesUpdated()
462 minSpanY <= LauncherModel.getCellCountY()) { in onPackagesUpdated()
1545 Collections.sort(mApps, LauncherModel.getAppNameComparator());
1554 int index = Collections.binarySearch(mApps, info, LauncherModel.getAppNameComparator());
DWorkspace.java340 LauncherModel.updateWorkspaceLayoutCells(cellCountX, cellCountY); in Workspace()
564 int childId = LauncherModel.getCellLayoutChildId(container, screen, x, y, spanX, spanY); in addInScreen()
1954 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screen, cellXY[0],
2275 cell.setId(LauncherModel.getCellLayoutChildId(container, mDragInfo.screen,
2306 LauncherModel.moveItemInDatabase(mLauncher, info, container, screen, lp.cellX,
2421 width, height, LauncherModel.getCellCountX(), LauncherModel.getCellCountY(),
2435 width, height, LauncherModel.getCellCountX(), LauncherModel.getCellCountY(),
3168 LauncherModel.addOrMoveItemInDatabase(mLauncher, info, container, screen,
3415 LauncherModel.modifyItemInDatabase(mLauncher, info, container, screen, info.cellX,
3731 LauncherModel.deleteItemFromDatabase(mLauncher, info);
[all …]
DDeleteDropTarget.java234 LauncherModel.deleteItemFromDatabase(mLauncher, item); in completeDrop()
239 LauncherModel.deleteFolderContentsFromDatabase(mLauncher, folderInfo); in completeDrop()
243 LauncherModel.deleteItemFromDatabase(mLauncher, item); in completeDrop()
DHotseat.java99 if (mCellCountX < 0) mCellCountX = LauncherModel.getCellCountX(); in onFinishInflate()
100 if (mCellCountY < 0) mCellCountY = LauncherModel.getCellCountY(); in onFinishInflate()
DPagedViewWidget.java119 int hSpan = Math.min(cellSpan[0], LauncherModel.getCellCountX()); in applyFromAppWidgetProviderInfo()
120 int vSpan = Math.min(cellSpan[1], LauncherModel.getCellCountY()); in applyFromAppWidgetProviderInfo()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java23 import com.android.launcher3.LauncherModel;
24 import com.android.launcher3.LauncherModel.ModelUpdateTask;
25 import com.android.launcher3.LauncherModel.Callbacks;
58 public LauncherModel model;
76 model = mock(LauncherModel.class); in setUp()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppState.java51 private final LauncherModel mModel;
101 mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext));
157 LauncherModel setLauncher(Launcher launcher) {
167 public LauncherModel getModel() {
DLauncherModel.java82 public class LauncherModel extends BroadcastReceiver class
163 LauncherModel(LauncherAppState app, IconCache iconCache, AppFilter appFilter) { in LauncherModel() method in LauncherModel
625 void init(LauncherAppState app, LauncherModel model, in init()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DViewOnDrawExecutor.java25 import com.android.launcher3.LauncherModel;
68 LauncherModel.setWorkerPriority(Process.THREAD_PRIORITY_BACKGROUND); in execute()
122 LauncherModel.setWorkerPriority(Process.THREAD_PRIORITY_DEFAULT); in markCompleted()
DPreconditions.java21 import com.android.launcher3.LauncherModel;
36 if (FeatureFlags.IS_DOGFOOD_BUILD && !isSameLooper(LauncherModel.getWorkerLooper())) { in assertWorkerThread()
DManagedProfileHeuristic.java30 import com.android.launcher3.LauncherModel;
84 new Handler(LauncherModel.getWorkerLooper()).post(new Runnable() { in onAllAppsLoaded()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVO.java34 import com.android.launcher3.LauncherModel;
122 new LooperExecutor(LauncherModel.getWorkerLooper()).execute(new Runnable() { in createShortcutInfoFromPinItemRequest()
DPackageInstallerCompatVL.java32 import com.android.launcher3.LauncherModel;
57 mWorker = new Handler(LauncherModel.getWorkerLooper()); in PackageInstallerCompatVL()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShapeOverride.java38 import com.android.launcher3.LauncherModel;
168 new LooperExecutor(LauncherModel.getWorkerLooper()).execute( in onPreferenceChange()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationListener.java34 import com.android.launcher3.LauncherModel;
134 mWorkerHandler = new Handler(LauncherModel.getWorkerLooper(), mWorkerCallback); in NotificationListener()

12