Home
last modified time | relevance | path

Searched refs:board (Results 1 – 25 of 44) sorted by relevance

12

/packages/apps/Launcher3/tests/assets/ReorderAlgorithmUnitTest/
Dreorder_algorithm_test_cases5 # * 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/
DCellLayoutBoard.java16 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 …]
DTestWorkspaceBuilder.java16 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()
DCellType.java17 package com.android.launcher3.celllayout.board;
DFolderPoint.java17 package com.android.launcher3.celllayout.board;
DIconPoint.java17 package com.android.launcher3.celllayout.board;
DPermutedBoardComparator.kt16 package com.android.launcher3.celllayout.board
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/testgenerator/
DRandomBoardGenerator.kt19 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 …]
DRandomMultiBoardGenerator.kt19 import com.android.launcher3.celllayout.board.CellLayoutBoard
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DHotseatReorderUnitTest.kt28 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 …]
DReorderAlgorithmUnitTest.java33 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 …]
DCellLayoutTestUtils.java24 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()
DCellLayoutTestCaseReader.java67 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()
DReorderAlgorithmUnitTestCase.java18 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/
Dsimple_reorder_case5 # * 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
Dmultiple_cell_layouts_simple_reorder5 # * 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
Dmultiple_cell_layouts_no_space_reorder5 # * 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
Dmultiple_cell_layouts_reorder_other_side5 # * 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
Dpush_reorder_case5 # * 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
Dmove_out_reorder_case5 # * 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
Dfull_reorder_case5 # * 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/
DValidGridMigrationTestCaseGenerator.kt21 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/
DTaplReorderWidgetsTest.java36 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/
Dcustom_vm.md120 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/
Dreorder_algorithm_test.txt2 board: 6x5

12