/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WorkspaceLayoutManager.java | 45 int screenId = info.screenId; in addInScreenFromBind() local 46 x = getHotseat().getCellXFromOrder(screenId); in addInScreenFromBind() 47 y = getHotseat().getCellYFromOrder(screenId); in addInScreenFromBind() 49 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind() 57 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen() 72 default void addInScreen(View child, int container, int screenId, int x, int y, in addInScreen() argument 75 if (getScreenWithId(screenId) == null) { in addInScreen() 76 Log.e(TAG, "Skipping child, screenId " + screenId + " not found"); in addInScreen() 82 if (screenId == EXTRA_EMPTY_SCREEN_ID) { in addInScreen() 101 layout = getScreenWithId(screenId); in addInScreen() [all …]
|
D | Launcher.java | 672 int screenId = info.screenId; in completeAdd() local 676 screenId = ensurePendingDropLayoutExists(info.screenId); in completeAdd() 681 completeAddShortcut(intent, info.container, screenId, info.cellX, info.cellY, info); in completeAdd() 708 return screenId; in completeAdd() 780 requestArgs.screenId = in handleActivityResult() 781 ensurePendingDropLayoutExists(requestArgs.screenId); in handleActivityResult() 784 mWorkspace.getScreenWithId(requestArgs.screenId); in handleActivityResult() 842 CellLayout layout = getCellLayout(pendingArgs.container, pendingArgs.screenId); in onRequestPermissionsResult() 865 private int ensurePendingDropLayoutExists(int screenId) { in ensurePendingDropLayoutExists() argument 866 CellLayout dropLayout = mWorkspace.getScreenWithId(screenId); in ensurePendingDropLayoutExists() [all …]
|
D | Workspace.java | 602 public void insertNewWorkspaceScreenBeforeEmptyScreen(int screenId) { in insertNewWorkspaceScreenBeforeEmptyScreen() argument 609 insertNewWorkspaceScreen(screenId, insertIndex); in insertNewWorkspaceScreenBeforeEmptyScreen() 612 public void insertNewWorkspaceScreen(int screenId) { in insertNewWorkspaceScreen() argument 613 insertNewWorkspaceScreen(screenId, getChildCount()); in insertNewWorkspaceScreen() 616 public CellLayout insertNewWorkspaceScreen(int screenId, int insertIndex) { in insertNewWorkspaceScreen() argument 617 if (mWorkspaceScreens.containsKey(screenId)) { in insertNewWorkspaceScreen() 618 throw new RuntimeException("Screen id " + screenId + " already exists!"); in insertNewWorkspaceScreen() 630 mWorkspaceScreens.put(screenId, newScreen); in insertNewWorkspaceScreen() 631 mScreenOrder.add(insertIndex, screenId); in insertNewWorkspaceScreen() 772 public CellLayout getScreenWithId(int screenId) { in getScreenWithId() argument [all …]
|
D | AutoInstallsLayout.java | 273 final int screenId = mTemp[1]; in parseAndAddNode() local 276 mValues.put(Favorites.SCREEN, screenId); in parseAndAddNode() 291 if (!screenIds.contains(screenId) && in parseAndAddNode() 293 screenIds.add(screenId); in parseAndAddNode()
|
D | CellLayout.java | 1076 int screenId = workspace.getIdForScreen(this); in applyColorExtractionOnWidget() local 1077 int pageId = workspace.getPageIndexForScreenId(screenId); in applyColorExtractionOnWidget() 2154 int screenId = Launcher.cast(mActivity).getWorkspace().getIdForScreen(this); in commitTempPlacement() local 2158 screenId = -1; in commitTempPlacement() 2181 screenId, info.cellX, info.cellY, info.spanX, info.spanY); in commitTempPlacement() 2811 final int screenId; field in CellLayout.CellInfo 2820 screenId = info.screenId; in CellInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTask.java | 108 int screenId = coords[0]; in execute() local 175 LauncherSettings.Favorites.CONTAINER_DESKTOP, screenId, in execute() 194 int lastScreenId = info.screenId; in execute() 196 if (i.screenId == lastScreenId) { in execute() 278 ArrayList<ItemInfo> items = screenItems.get(info.screenId); in findSpaceForItem() 281 screenItems.put(info.screenId, items); in findSpaceForItem() 289 int screenId = 0; in findSpaceForItem() local 297 screenId = workspaceScreens.get(preferredScreenIndex); in findSpaceForItem() 299 app, screenItems.get(screenId), cordinates, spanX, spanY); in findSpaceForItem() 305 screenId = workspaceScreens.get(screen); in findSpaceForItem() [all …]
|
D | ModelWriter.java | 86 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() 127 modelItem.screenId == item.screenId && in checkItemInfoLocked() 156 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument 157 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase() 164 .put(Favorites.SCREEN, item.screenId))); in moveItemInDatabase() [all …]
|
D | GridSizeMigrationTaskV2.java | 227 for (int screenId = 0; screenId <= mDestReader.mLastScreenId; screenId++) { in migrate() 229 Log.d(TAG, "Migrating " + screenId); in migrate() 232 mDestReader, mContext, screenId, mTrgX, mTrgY, mWorkspaceDiff); in migrate() 239 int screenId = mDestReader.mLastScreenId + 1; in migrate() local 242 mDestReader, mContext, screenId, mTrgX, mTrgY, mWorkspaceDiff); in migrate() 244 screenId++; in migrate() 368 Context context, int screenId, int trgX, int trgY, List<DbEntry> itemsToPlace) { in GridPlacementSolution() argument 374 mScreenId = screenId; in GridPlacementSolution() 379 List<DbEntry> existedEntries = mDestReader.mWorkspaceEntriesByScreenId.get(screenId); in GridPlacementSolution() 420 entry.screenId = mScreenId; in findPlacement() [all …]
|
D | LoaderCursor.java | 388 info.screenId = getInt(screenIndex); in applyCommonProperties() 414 int containerIndex = item.screenId; in checkItemPlacement() 419 if (item.screenId >= mIDP.numDatabaseHotseatIcons) { in checkItemPlacement() 421 + " into hotseat position " + item.screenId in checkItemPlacement() 428 if (hotseatOccupancy.cells[(int) item.screenId][0]) { in checkItemPlacement() 430 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement() 434 hotseatOccupancy.cells[item.screenId][0] = true; in checkItemPlacement() 439 occupancy.cells[item.screenId][0] = true; in checkItemPlacement() 454 + " into cell (" + containerIndex + "-" + item.screenId + ":" in checkItemPlacement() 460 if (!occupied.containsKey(item.screenId)) { in checkItemPlacement() [all …]
|
D | GridSizeMigrationTask.java | 174 if (entry.screenId != newScreenId) { 175 entry.screenId = newScreenId; 208 int screenId = allScreens.get(i); 210 Log.d(TAG, "Migrating " + screenId); 212 migrateScreen(screenId); 239 item.screenId = newScreenId; 261 protected void migrateScreen(int screenId) { 263 int startY = (FeatureFlags.QSB_ON_FIRST_SCREEN && screenId == Workspace.FIRST_SCREEN_ID) 266 ArrayList<DbEntry> items = loadWorkspaceEntries(screenId); 313 removedRow, removedCol, screenId)); [all …]
|
D | ModelUtils.java | 68 if (info.screenId == currentScreenId) { in filterCurrentWorkspaceItems() 100 int lr = (lhs.screenId * screenCellCount + lhs.cellY * screenCols in sortWorkspaceItemsSpatially() 102 int rr = (rhs.screenId * screenCellCount + +rhs.cellY * screenCols in sortWorkspaceItemsSpatially() 108 return Integer.compare(lhs.screenId, rhs.screenId); in sortWorkspaceItemsSpatially() 131 .forEach(i -> seen.add(i.screenId)); in getMissingHotseatRanks()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfo.java | 102 public int screenId = -1; field in ItemInfo 174 screenId = info.screenId; in copyFrom() 212 .put(LauncherSettings.Favorites.SCREEN, screenId) in writeToValues() 223 screenId = values.getAsInteger(LauncherSettings.Favorites.SCREEN); in readFromValues() 235 if (screenId == Workspace.EXTRA_EMPTY_SCREEN_ID) { in onAddToDatabase() 254 + " screen=" + screenId in dumpProperties() 341 .setIndex(screenId)); in buildProto() 349 folderBuilder.setGridX(cellX).setGridY(cellY).setPageIndex(screenId); in buildProto() 355 .setIndex(fInfo.screenId)); in buildProto() 359 .setPageIndex(fInfo.screenId) in buildProto() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 191 return item.screenId >= 0 && item.container != Favorites.CONTAINER_HOTSEAT_PREDICTION; in itemSupportsAccessibleDrag() 223 final int screenId = findSpaceOnWorkspace(item, coordinates); in performAction() local 229 screenId, coordinates[0], coordinates[1]); in performAction() 239 workspace.snapToPage(workspace.getPageIndexForScreenId(screenId)); in performAction() 241 screenId, coordinates, info.spanX, info.spanY); in performAction() 252 final int screenId = findSpaceOnWorkspace(item, coordinates); in performAction() local 255 screenId, coordinates[0], coordinates[1]); in performAction() 472 int screenId; in findSpaceOnWorkspace() local 476 screenId = workspaceScreens.get(screenIndex); in findSpaceOnWorkspace() 482 screenId = workspaceScreens.get(screenIndex); in findSpaceOnWorkspace() [all …]
|
D | ShortcutMenuAccessibilityDelegate.java | 70 final int screenId = findSpaceOnWorkspace(item, coordinates); in performAction() local 74 screenId, coordinates[0], coordinates[1]); in performAction()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTaskTest.java | 155 private int setupWorkspaceWithHoles(int startId, int screenId, Rect... holes) throws Exception { in setupWorkspaceWithHoles() argument 157 model -> writeWorkspaceWithHoles(model, startId, screenId, holes)); in setupWorkspaceWithHoles() 161 BgDataModel bgDataModel, int startId, int screenId, Rect... holes) { in writeWorkspaceWithHoles() argument 168 mExistingScreens.add(screenId); in writeWorkspaceWithHoles() 169 mScreenOccupancy.append(screenId, occupancy); in writeWorkspaceWithHoles() 180 info.screenId = screenId; in writeWorkspaceWithHoles()
|
D | GridSizeMigrationTaskTest.java | 92 int screenId = 0; in verifyHotseat() local 98 "container=-101 and screen=" + screenId, null, null, null); in verifyHotseat() 110 screenId++; in verifyHotseat() 290 int screenId = allScreens.get(i); in verifyWorkspace() local 298 "container=-100 and screen=" + screenId + in verifyWorkspace()
|
D | LoaderCursorTest.java | 213 int container, int screenId) { in newItemInfo() argument 220 info.screenId = screenId; in newItemInfo()
|
D | ModelMultiCallbacksTest.java | 224 assertEquals(mItems.get(0).screenId, mPageBoundSync); in verifySynchronouslyBound()
|
/packages/apps/Launcher3/tests/src_common/com/android/launcher3/common/ |
D | WidgetUtils.java | 85 int screenId = FIRST_SCREEN_ID; in addItemToScreen() local 90 if (screenId > FIRST_SCREEN_ID) { in addItemToScreen() 91 screenId = FIRST_SCREEN_ID; in addItemToScreen() 99 item.screenId = screenId; in addItemToScreen()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/ |
D | HotseatEduController.java | 109 firstItem.screenId, firstItem.cellX, firstItem.cellY); in migrateToFolder() 151 int screenId = LauncherSettings.Settings.call(mLauncher.getContentResolver(), in placeFoldersInWorkspace() local 159 LauncherSettings.Favorites.CONTAINER_DESKTOP, screenId, col++, in placeFoldersInWorkspace() 162 mNewScreens = IntArray.wrap(screenId); in placeFoldersInWorkspace() 206 int lastPage = mNewItems.get(mNewItems.size() - 1).screenId; in moveHotseatItems() 211 if (info.screenId == lastPage) { in moveHotseatItems()
|
D | HotseatPredictionModel.java | 113 info.screenId, info.cellX, info.cellY, info.spanX, info.spanY); in wrapAppTargetWithLocation() 123 && info.screenId == Workspace.FIRST_SCREEN_ID); in isTrackedForPrediction()
|
D | HotseatPredictionController.java | 349 LauncherSettings.Favorites.CONTAINER_HOTSEAT, workspaceItemInfo.screenId, in pinPrediction() 446 itemInfo.screenId = rank; in preparePredictionInfo() 482 cardinality |= 1 << info.screenId; in logLaunchedAppRankingInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | LauncherDelegate.java | 111 info.screenId); in replaceFolderWithFinalItem() 115 info.container, info.screenId, info.cellX, info.cellY); in replaceFolderWithFinalItem()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/ |
D | LauncherModelHelper.java | 327 int screenId = startScreen + i; in createGrid() local 342 typeArray[i][y][x], screenId, DESKTOP, x, y, profileId); in createGrid()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | LauncherPreviewRenderer.java | 332 public CellLayout getScreenWithId(int screenId) { 470 itemInfo.screenId = rank;
|