Home
last modified time | relevance | path

Searched refs:screenId (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java92 int screenId = coords[0]; in execute() local
106 LauncherSettings.Favorites.CONTAINER_DESKTOP, screenId, in execute()
122 int lastScreenId = info.screenId; in execute()
124 if (i.screenId == lastScreenId) { in execute()
206 ArrayList<ItemInfo> items = screenItems.get(info.screenId); in findSpaceForItem()
209 screenItems.put(info.screenId, items); in findSpaceForItem()
217 int screenId = 0; in findSpaceForItem() local
225 screenId = workspaceScreens.get(preferredScreenIndex); in findSpaceForItem()
227 app, screenItems.get(screenId), cordinates, spanX, spanY); in findSpaceForItem()
233 screenId = workspaceScreens.get(screen); in findSpaceForItem()
[all …]
DModelWriter.java84 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument
91 item.screenId = mHasVerticalHotseat in updateItemInfoProps()
94 item.screenId = screenId; in updateItemInfoProps()
103 int container, int screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
106 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
109 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
124 modelItem.screenId == item.screenId && in checkItemInfoLocked()
153 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument
154 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase()
161 .put(Favorites.SCREEN, item.screenId))); in moveItemInDatabase()
[all …]
DLoaderCursor.java373 info.screenId = getInt(screenIndex); in applyCommonProperties()
394 int containerIndex = item.screenId; in checkItemPlacement()
399 if (item.screenId >= mIDP.numHotseatIcons) { in checkItemPlacement()
401 + " into hotseat position " + item.screenId in checkItemPlacement()
408 if (hotseatOccupancy.cells[(int) item.screenId][0]) { in checkItemPlacement()
410 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement()
414 hotseatOccupancy.cells[item.screenId][0] = true; in checkItemPlacement()
419 occupancy.cells[item.screenId][0] = true; in checkItemPlacement()
434 + " into cell (" + containerIndex + "-" + item.screenId + ":" in checkItemPlacement()
440 if (!occupied.containsKey(item.screenId)) { in checkItemPlacement()
[all …]
DGridSizeMigrationTask.java167 if (entry.screenId != newScreenId) {
168 entry.screenId = newScreenId;
201 int screenId = allScreens.get(i);
203 Log.d(TAG, "Migrating " + screenId);
205 migrateScreen(screenId);
232 item.screenId = newScreenId;
254 protected void migrateScreen(int screenId) {
256 int startY = (FeatureFlags.QSB_ON_FIRST_SCREEN && screenId == Workspace.FIRST_SCREEN_ID)
259 ArrayList<DbEntry> items = loadWorkspaceEntries(screenId);
306 removedRow, removedCol, screenId));
[all …]
DBaseLoaderResults.java197 if (info.screenId == currentScreenId) { in filterCurrentWorkspaceItems()
230 int lr = (lhs.screenId * screenCellCount + in sortWorkspaceItemsSpatially()
232 int rr = (rhs.screenId * screenCellCount + in sortWorkspaceItemsSpatially()
238 return Integer.compare(lhs.screenId, rhs.screenId); in sortWorkspaceItemsSpatially()
DBgDataModel.java129 screenSet.add(item.screenId); in collectWorkspaceScreens()
196 workspaces.get(fInfo.screenId).add(dtw); in dumpProto()
210 workspaces.get(info.screenId).add(dtw); in dumpProto()
220 workspaces.get(info.screenId).add(dtw); in dumpProto()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspaceLayoutManager.java43 int screenId = info.screenId; in addInScreenFromBind() local
44 x = getHotseat().getCellXFromOrder(screenId); in addInScreenFromBind()
45 y = getHotseat().getCellYFromOrder(screenId); in addInScreenFromBind()
47 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind()
55 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen()
70 default void addInScreen(View child, int container, int screenId, int x, int y, in addInScreen() argument
73 if (getScreenWithId(screenId) == null) { in addInScreen()
74 Log.e(TAG, "Skipping child, screenId " + screenId + " not found"); in addInScreen()
80 if (screenId == EXTRA_EMPTY_SCREEN_ID) { in addInScreen()
98 layout = getScreenWithId(screenId); in addInScreen()
[all …]
DItemInfo.java62 public int screenId = -1; field in ItemInfo
126 screenId = info.screenId; in copyFrom()
149 .put(LauncherSettings.Favorites.SCREEN, screenId) in writeToValues()
160 screenId = values.getAsInteger(LauncherSettings.Favorites.SCREEN); in readFromValues()
172 if (screenId == Workspace.EXTRA_EMPTY_SCREEN_ID) { in onAddToDatabase()
190 + " screen=" + screenId in dumpProperties()
DLauncher.java621 int screenId = info.screenId; in completeAdd() local
625 screenId = ensurePendingDropLayoutExists(info.screenId); in completeAdd()
630 completeAddShortcut(intent, info.container, screenId, info.cellX, info.cellY, info); in completeAdd()
655 return screenId; in completeAdd()
733 requestArgs.screenId = in handleActivityResult()
734 ensurePendingDropLayoutExists(requestArgs.screenId); in handleActivityResult()
737 mWorkspace.getScreenWithId(requestArgs.screenId); in handleActivityResult()
797 CellLayout layout = getCellLayout(pendingArgs.container, pendingArgs.screenId); in onRequestPermissionsResult()
824 private int ensurePendingDropLayoutExists(int screenId) { in ensurePendingDropLayoutExists() argument
825 CellLayout dropLayout = mWorkspace.getScreenWithId(screenId); in ensurePendingDropLayoutExists()
[all …]
DWorkspace.java547 public void insertNewWorkspaceScreenBeforeEmptyScreen(int screenId) { in insertNewWorkspaceScreenBeforeEmptyScreen() argument
554 insertNewWorkspaceScreen(screenId, insertIndex); in insertNewWorkspaceScreenBeforeEmptyScreen()
557 public void insertNewWorkspaceScreen(int screenId) { in insertNewWorkspaceScreen() argument
558 insertNewWorkspaceScreen(screenId, getChildCount()); in insertNewWorkspaceScreen()
561 public CellLayout insertNewWorkspaceScreen(int screenId, int insertIndex) { in insertNewWorkspaceScreen() argument
562 if (mWorkspaceScreens.containsKey(screenId)) { in insertNewWorkspaceScreen()
563 throw new RuntimeException("Screen id " + screenId + " already exists!"); in insertNewWorkspaceScreen()
576 mWorkspaceScreens.put(screenId, newScreen); in insertNewWorkspaceScreen()
577 mScreenOrder.add(insertIndex, screenId); in insertNewWorkspaceScreen()
763 public CellLayout getScreenWithId(int screenId) { in getScreenWithId() argument
[all …]
DAutoInstallsLayout.java262 final int screenId = mTemp[1]; in parseAndAddNode() local
265 mValues.put(Favorites.SCREEN, screenId); in parseAndAddNode()
280 if (!screenIds.contains(screenId) && in parseAndAddNode()
282 screenIds.add(screenId); in parseAndAddNode()
DCellLayout.java2093 int screenId = Launcher.cast(mActivity).getWorkspace().getIdForScreen(this); in commitTempPlacement() local
2097 screenId = -1; in commitTempPlacement()
2120 screenId, info.cellX, info.cellY, info.spanX, info.spanY); in commitTempPlacement()
2718 final int screenId; field in CellLayout.CellInfo
2727 screenId = info.screenId; in CellInfo()
DDeleteDropTarget.java70 return info.screenId >= 0; in supportsAccessibilityDrop()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java150 return item.screenId >= 0; in itemSupportsAccessibleDrag()
170 final int screenId = findSpaceOnWorkspace(item, coordinates); in performAction() local
179 screenId, coordinates[0], coordinates[1]); in performAction()
187 workspace.snapToPage(workspace.getPageIndexForScreenId(screenId)); in performAction()
189 screenId, coordinates, info.spanX, info.spanY); in performAction()
202 final int screenId = findSpaceOnWorkspace(item, coordinates); in performAction() local
205 screenId, coordinates[0], coordinates[1]); in performAction()
406 int screenId; in findSpaceOnWorkspace() local
410 screenId = workspaceScreens.get(screenIndex); in findSpaceOnWorkspace()
416 screenId = workspaceScreens.get(screenIndex); in findSpaceOnWorkspace()
[all …]
DShortcutMenuAccessibilityDelegate.java69 final int screenId = findSpaceOnWorkspace(item, coordinates); in performAction() local
75 screenId, coordinates[0], coordinates[1]); in performAction()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DAddWorkspaceItemsTaskTest.java136 private int setupWorkspaceWithHoles(int startId, int screenId, Rect... holes) throws Exception { in setupWorkspaceWithHoles() argument
143 existingScreens.add(screenId); in setupWorkspaceWithHoles()
144 screenOccupancy.append(screenId, occupancy); in setupWorkspaceWithHoles()
156 info.screenId = screenId; in setupWorkspaceWithHoles()
DGridSizeMigrationTaskTest.java81 int screenId = 0; in verifyHotseat() local
87 "container=-101 and screen=" + screenId, null, null, null); in verifyHotseat()
99 screenId++; in verifyHotseat()
279 int screenId = allScreens.get(i); in verifyWorkspace() local
287 "container=-100 and screen=" + screenId + in verifyWorkspace()
DBaseGridChangesTestCase.java99 int screenId = startScreen + i; in createGrid() local
113 ids[i][y][x] = addItem(typeArray[i][y][x], screenId, DESKTOP, x, y); in createGrid()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DBindWidgetTest.java250 int screenId = FIRST_SCREEN_ID; in setupContents() local
254 if (screenId > FIRST_SCREEN_ID) { in setupContents()
255 screenId = FIRST_SCREEN_ID; in setupContents()
263 item.screenId = screenId; in setupContents()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DLoaderCursorTest.java201 int container, int screenId) { in newItemInfo() argument
208 info.screenId = screenId; in newItemInfo()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherPreviewRenderer.java214 public CellLayout getScreenWithId(int screenId) {
248 info.screenId = i;
256 info.screenId = 0;
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java1055 mInfo.screenId); in replaceFolderWithFinalItem()
1059 mInfo.container, mInfo.screenId, mInfo.cellX, mInfo.cellY); in replaceFolderWithFinalItem()
1150 mLauncher.addPendingItem(pasi, pasi.container, pasi.screenId, null, pasi.spanX, in onDrop()