/packages/apps/Launcher3/tests/assets/ReorderAlgorithmUnitTest/ |
D | reorder_algorithm_test_cases | 5 # * board: represent a workspace, the first line is the dimensions of the board width x height … 6 # There are different characters on the board that represent different things: 22 board: 7x10 35 board: 7x10 47 board: 9x10 59 board: 9x10 71 board: 7x6 79 board: 7x6 87 board: 4x10 99 board: 4x10 [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/board/ |
D | CellLayoutBoard.java | 16 package com.android.launcher3.celllayout.board; 249 public static WidgetRect getWidgetRect(int x, int y, Set<Point> used, char[][] board) { in getWidgetRect() argument 250 char type = board[x][y]; in getWidgetRect() 270 if (next.x < 0 || next.x >= board.length) continue; in getWidgetRect() 271 if (next.y < 0 || next.y >= board[0].length) continue; in getWidgetRect() 272 if (board[next.x][next.y] == type && !used.contains(next)) { in getWidgetRect() 293 private static List<WidgetRect> getRects(char[][] board) { in getRects() argument 296 for (int x = 0; x < board.length; x++) { in getRects() 297 for (int y = 0; y < board[0].length; y++) { in getRects() 298 if (!used.contains(new Point(x, y)) && isWidget(board[x][y])) { in getRects() [all …]
|
D | TestWorkspaceBuilder.java | 16 package com.android.launcher3.celllayout.board; 110 public FavoriteItemsTransaction buildFromBoard(CellLayoutBoard board, in buildFromBoard() argument 112 board.getWidgets().forEach( in buildFromBoard() 114 board.getIcons().forEach((iconPoint) -> in buildFromBoard() 117 board.getFolders().forEach((folderPoint) -> in buildFromBoard()
|
D | CellType.java | 17 package com.android.launcher3.celllayout.board;
|
D | FolderPoint.java | 17 package com.android.launcher3.celllayout.board;
|
D | IconPoint.java | 17 package com.android.launcher3.celllayout.board;
|
D | PermutedBoardComparator.kt | 16 package com.android.launcher3.celllayout.board
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/testgenerator/ |
D | RandomBoardGenerator.kt | 19 import com.android.launcher3.celllayout.board.CellLayoutBoard 43 board: CellLayoutBoard, in fillBoard() 48 if (area.height() * area.width() <= 0) return board in fillBoard() 57 if (board.widgets.size <= MAX_NUMBER_OF_WIDGETS && width * height > 1) { in fillBoard() 58 board.addWidget(x, y, width, height) in fillBoard() 60 board.addIcon(x, y) in fillBoard() 65 return board in fillBoard() 67 fillBoard(board, Rect(area.left, area.top, area.right, y), remainingEmptySpaces) in fillBoard() 68 fillBoard(board, Rect(area.left, y, x, area.bottom), remainingEmptySpaces) in fillBoard() 69 fillBoard(board, Rect(x, y + height, area.right, area.bottom), remainingEmptySpaces) in fillBoard() [all …]
|
D | RandomMultiBoardGenerator.kt | 19 import com.android.launcher3.celllayout.board.CellLayoutBoard
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/ |
D | HotseatReorderUnitTest.kt | 28 import com.android.launcher3.celllayout.board.CellLayoutBoard in <lambda>() 29 import com.android.launcher3.celllayout.board.IconPoint in <lambda>() 30 import com.android.launcher3.celllayout.board.PermutedBoardComparator in <lambda>() 31 import com.android.launcher3.celllayout.board.WidgetRect in <lambda>() 103 private fun solve(board: CellLayoutBoard): CellLayout { in solve() 104 val cl = cellLayoutBuilder.createCellLayout(board.width, board.height, false) in solve() 106 board.icons in solve() 122 board.widgets in solve() 166 val board: CellLayoutBoard = in generateRandomTestCase() constant 168 val finishBoard: CellLayoutBoard = boardFromCellLayout(solve(board)) in generateRandomTestCase() [all …]
|
D | ReorderAlgorithmUnitTest.java | 33 import com.android.launcher3.celllayout.board.CellLayoutBoard; 34 import com.android.launcher3.celllayout.board.IconPoint; 35 import com.android.launcher3.celllayout.board.PermutedBoardComparator; 36 import com.android.launcher3.celllayout.board.WidgetRect; 145 public ItemConfiguration solve(CellLayoutBoard board, int x, int y, int spanX, in solve() argument 147 CellLayout cl = mCellLayoutBuilder.createCellLayout(board.getWidth(), board.getHeight(), in solve() 151 board.getIcons() in solve() 156 board.getWidgets() in solve() 204 CellLayoutBoard board = CellLayoutTestUtils.viewsToBoard( in boardFromSolution() local 207 board.addWidget(solution.cellX, solution.cellY, solution.spanX, solution.spanY, in boardFromSolution() [all …]
|
D | CellLayoutTestUtils.java | 24 import com.android.launcher3.celllayout.board.CellLayoutBoard; 49 CellLayoutBoard board = boards.get(screenId); in workspaceToBoards() local 52 board.addIcon(pos.cellX, pos.cellY); in workspaceToBoards() 55 board.addWidget(pos.cellX, pos.cellY, params.cellHSpan, in workspaceToBoards() 64 CellLayoutBoard board = new CellLayoutBoard(width, height); in viewsToBoard() local 70 board.addIcon(params.getCellX(), params.getCellY()); in viewsToBoard() 73 board.addWidget(params.getCellX(), params.getCellY(), params.cellHSpan, in viewsToBoard() 77 return board; in viewsToBoard()
|
D | CellLayoutTestCaseReader.java | 67 public String board; field in CellLayoutTestCaseReader.Board 69 public Board(Point gridSize, String board) { in Board() argument 72 this.board = board; in Board() 145 StringBuilder board = new StringBuilder(); in parseBoard() local 147 board.append(it.next() + "\n"); in parseBoard() 149 return board.toString(); in parseBoard()
|
D | ReorderAlgorithmUnitTestCase.java | 18 import com.android.launcher3.celllayout.board.CellLayoutBoard; 70 testCase.startBoard = CellLayoutBoard.boardFromString(startBoard.board); in readNextCase() 83 testCase.endBoard = CellLayoutBoard.boardFromString(endBoard.board); in readNextCase()
|
/packages/apps/Launcher3/tests/assets/ReorderWidgets/ |
D | simple_reorder_case | 5 # * board: represent a workspace, the first line is the dimensions of the board width x height … 6 # There are different characters on the board that represent different things: 18 board: 5x5 25 board: 5x5 32 board: 4x4 38 board: 4x4 44 board: 6x5 51 board: 6x5
|
D | multiple_cell_layouts_simple_reorder | 5 # * board: represent a workspace, the first line is the dimensions of the board width x height … 6 # There are different characters on the board that represent different things: 18 board: 5x5 25 board: 10x5 32 board: 4x4 38 board: 8x4 44 board: 6x5 51 board: 12x5
|
D | multiple_cell_layouts_no_space_reorder | 5 # * board: represent a workspace, the first line is the dimensions of the board width x height … 6 # There are different characters on the board that represent different things: 18 board: 5x5 25 board: 10x5 32 board: 4x4 38 board: 8x4 44 board: 6x5 51 board: 12x5
|
D | multiple_cell_layouts_reorder_other_side | 5 # * board: represent a workspace, the first line is the dimensions of the board width x height … 6 # There are different characters on the board that represent different things: 18 board: 5x5 25 board: 10x5 32 board: 4x4 38 board: 8x4 44 board: 6x5 51 board: 12x5
|
D | push_reorder_case | 5 # * board: represent a workspace, the first line is the dimensions of the board width x height … 6 # There are different characters on the board that represent different things: 18 board: 5x5 25 board: 5x5 32 board: 6x5 39 board: 6x5
|
D | move_out_reorder_case | 5 # * board: represent a workspace, the first line is the dimensions of the board width x height … 6 # There are different characters on the board that represent different things: 18 board: 5x5 25 board: 5x5 32 board: 6x5 39 board: 6x5
|
D | full_reorder_case | 5 # * board: represent a workspace, the first line is the dimensions of the board width x height … 6 # There are different characters on the board that represent different things: 18 board: 4x4 24 board: 4x4
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/testgenerator/ |
D | ValidGridMigrationTestCaseGenerator.kt | 21 import com.android.launcher3.celllayout.board.CellLayoutBoard in <lambda>() 64 .flatMapIndexed { i, board -> board.widgets.map { Pair(i, it) } } in <lambda>() method 84 .flatMapIndexed { i, board -> board.icons.map { Pair(i, it) } } in <lambda>() method
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/ |
D | TaplReorderWidgetsTest.java | 36 import com.android.launcher3.celllayout.board.CellLayoutBoard; 37 import com.android.launcher3.celllayout.board.TestWorkspaceBuilder; 38 import com.android.launcher3.celllayout.board.WidgetRect; 105 CellLayoutBoard board = boards.get(i); in buildWorkspaceFromBoards() local 106 mWorkspaceBuilder.buildFromBoard(board, transaction, i); in buildWorkspaceFromBoards() 300 new ReorderTestCase(startBoard.board, moveTo, endBoard.board)); in addTestCase()
|
/packages/modules/Virtualization/docs/ |
D | custom_vm.md | 120 First, choose the target board. `ferrochrome` is the name of the virtual board 124 (cr) setup_board --board=ferrochrome 150 (cr) cros build-packages --board=ferrochrome --chromium --accept-licenses='*' 151 (cr) cros build-image --board=ferrochrome --no-enable-rootfs-verification test
|
/packages/apps/Launcher3/tests/res/raw/ |
D | reorder_algorithm_test.txt | 2 board: 6x5
|