Home
last modified time | relevance | path

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

/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.java64 public int screenId = -1; field in ItemInfo
128 screenId = info.screenId; in copyFrom()
152 .put(LauncherSettings.Favorites.SCREEN, screenId) in writeToValues()
163 screenId = values.getAsInteger(LauncherSettings.Favorites.SCREEN); in readFromValues()
175 if (screenId == Workspace.EXTRA_EMPTY_SCREEN_ID) { in onAddToDatabase()
193 + " screen=" + screenId in dumpProperties()
DLauncher.java636 int screenId = info.screenId; in completeAdd() local
640 screenId = ensurePendingDropLayoutExists(info.screenId); in completeAdd()
645 completeAddShortcut(intent, info.container, screenId, info.cellX, info.cellY, info); in completeAdd()
671 return screenId; in completeAdd()
749 requestArgs.screenId = in handleActivityResult()
750 ensurePendingDropLayoutExists(requestArgs.screenId); in handleActivityResult()
753 mWorkspace.getScreenWithId(requestArgs.screenId); in handleActivityResult()
813 CellLayout layout = getCellLayout(pendingArgs.container, pendingArgs.screenId); in onRequestPermissionsResult()
840 private int ensurePendingDropLayoutExists(int screenId) { in ensurePendingDropLayoutExists() argument
841 CellLayout dropLayout = mWorkspace.getScreenWithId(screenId); in ensurePendingDropLayoutExists()
[all …]
DWorkspace.java540 public void insertNewWorkspaceScreenBeforeEmptyScreen(int screenId) { in insertNewWorkspaceScreenBeforeEmptyScreen() argument
547 insertNewWorkspaceScreen(screenId, insertIndex); in insertNewWorkspaceScreenBeforeEmptyScreen()
550 public void insertNewWorkspaceScreen(int screenId) { in insertNewWorkspaceScreen() argument
551 insertNewWorkspaceScreen(screenId, getChildCount()); in insertNewWorkspaceScreen()
554 public CellLayout insertNewWorkspaceScreen(int screenId, int insertIndex) { in insertNewWorkspaceScreen() argument
555 if (mWorkspaceScreens.containsKey(screenId)) { in insertNewWorkspaceScreen()
556 throw new RuntimeException("Screen id " + screenId + " already exists!"); in insertNewWorkspaceScreen()
569 mWorkspaceScreens.put(screenId, newScreen); in insertNewWorkspaceScreen()
570 mScreenOrder.add(insertIndex, screenId); in insertNewWorkspaceScreen()
756 public CellLayout getScreenWithId(int screenId) { in getScreenWithId() argument
[all …]
DAutoInstallsLayout.java270 final int screenId = mTemp[1]; in parseAndAddNode() local
273 mValues.put(Favorites.SCREEN, screenId); in parseAndAddNode()
288 if (!screenIds.contains(screenId) && in parseAndAddNode()
290 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()
2726 final int screenId; field in CellLayout.CellInfo
2735 screenId = info.screenId; in CellInfo()
DDeleteDropTarget.java70 return info.screenId >= 0; in supportsAccessibilityDrop()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java104 int screenId = coords[0]; in execute() local
162 LauncherSettings.Favorites.CONTAINER_DESKTOP, screenId, in execute()
178 int lastScreenId = info.screenId; in execute()
180 if (i.screenId == lastScreenId) { in execute()
262 ArrayList<ItemInfo> items = screenItems.get(info.screenId); in findSpaceForItem()
265 screenItems.put(info.screenId, items); in findSpaceForItem()
273 int screenId = 0; in findSpaceForItem() local
281 screenId = workspaceScreens.get(preferredScreenIndex); in findSpaceForItem()
283 app, screenItems.get(screenId), cordinates, spanX, spanY); in findSpaceForItem()
289 screenId = workspaceScreens.get(screen); in findSpaceForItem()
[all …]
DModelWriter.java86 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument
93 item.screenId = mHasVerticalHotseat in updateItemInfoProps()
96 item.screenId = screenId; in updateItemInfoProps()
105 int container, int screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
108 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
111 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
126 modelItem.screenId == item.screenId && in checkItemInfoLocked()
155 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument
156 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase()
163 .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.java169 if (entry.screenId != newScreenId) {
170 entry.screenId = newScreenId;
203 int screenId = allScreens.get(i);
205 Log.d(TAG, "Migrating " + screenId);
207 migrateScreen(screenId);
234 item.screenId = newScreenId;
256 protected void migrateScreen(int screenId) {
258 int startY = (FeatureFlags.QSB_ON_FIRST_SCREEN && screenId == Workspace.FIRST_SCREEN_ID)
261 ArrayList<DbEntry> items = loadWorkspaceEntries(screenId);
308 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.java136 screenSet.add(item.screenId); in collectWorkspaceScreens()
203 workspaces.get(fInfo.screenId).add(dtw); in dumpProto()
217 workspaces.get(info.screenId).add(dtw); in dumpProto()
227 workspaces.get(info.screenId).add(dtw); in dumpProto()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java153 return item.screenId >= 0; in itemSupportsAccessibleDrag()
180 final int screenId = findSpaceOnWorkspace(item, coordinates); in performAction() local
189 screenId, coordinates[0], coordinates[1]); in performAction()
197 workspace.snapToPage(workspace.getPageIndexForScreenId(screenId)); in performAction()
199 screenId, coordinates, info.spanX, info.spanY); in performAction()
212 final int screenId = findSpaceOnWorkspace(item, coordinates); in performAction() local
215 screenId, coordinates[0], coordinates[1]); in performAction()
416 int screenId; in findSpaceOnWorkspace() local
420 screenId = workspaceScreens.get(screenIndex); in findSpaceOnWorkspace()
426 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.java253 int screenId = FIRST_SCREEN_ID; in setupContents() local
257 if (screenId > FIRST_SCREEN_ID) { in setupContents()
258 screenId = FIRST_SCREEN_ID; in setupContents()
266 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.java1076 mInfo.screenId); in replaceFolderWithFinalItem()
1080 mInfo.container, mInfo.screenId, mInfo.cellX, mInfo.cellY); in replaceFolderWithFinalItem()
1174 mLauncher.addPendingItem(pasi, pasi.container, pasi.screenId, null, pasi.spanX, in onDrop()
1543 folder_target.pageIndex = mInfo.screenId; in logEditFolderLabel()