Home
last modified time | relevance | path

Searched refs:CellLayoutBoard (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DReorderTestCase.java20 import com.android.launcher3.celllayout.board.CellLayoutBoard;
27 public List<CellLayoutBoard> mStart;
29 public List<List<CellLayoutBoard>> mEnd;
31 public ReorderTestCase(List<CellLayoutBoard> start, Point moveMainTo, in ReorderTestCase()
32 List<CellLayoutBoard>... end) { in ReorderTestCase()
39 mStart = CellLayoutBoard.boardListFromString(start); in ReorderTestCase()
44 .map(CellLayoutBoard::boardListFromString) in ReorderTestCase()
DCellLayoutTestUtils.java24 import com.android.launcher3.celllayout.board.CellLayoutBoard;
32 public static ArrayList<CellLayoutBoard> workspaceToBoards(Launcher launcher) { in workspaceToBoards()
33 ArrayList<CellLayoutBoard> boards = new ArrayList<>(); in workspaceToBoards()
47 boards.add(new CellLayoutBoard(cellLayout.getCountX(), cellLayout.getCountY())); in workspaceToBoards()
49 CellLayoutBoard board = boards.get(screenId); in workspaceToBoards()
63 public static CellLayoutBoard viewsToBoard(List<View> views, int width, int height) { in viewsToBoard()
64 CellLayoutBoard board = new CellLayoutBoard(width, height); in viewsToBoard()
DReorderAlgorithmUnitTestCase.java18 import com.android.launcher3.celllayout.board.CellLayoutBoard;
58 CellLayoutBoard startBoard;
63 CellLayoutBoard endBoard;
70 testCase.startBoard = CellLayoutBoard.boardFromString(startBoard.board); in readNextCase()
83 testCase.endBoard = CellLayoutBoard.boardFromString(endBoard.board); in readNextCase()
87 public CellLayoutBoard getStartBoard() { in getStartBoard()
139 public CellLayoutBoard getEndBoard() { in getEndBoard()
143 public void setEndBoard(CellLayoutBoard endBoard) { in setEndBoard()
DHotseatReorderUnitTest.kt28 import com.android.launcher3.celllayout.board.CellLayoutBoard in <lambda>()
42 val startBoard: CellLayoutBoard, in <lambda>()
43 val endBoard: CellLayoutBoard in <lambda>()
103 private fun solve(board: CellLayoutBoard): CellLayout { in solve()
151 private fun boardFromCellLayout(cellLayout: CellLayout): CellLayoutBoard { in boardFromCellLayout()
166 val board: CellLayoutBoard = in generateRandomTestCase()
168 val finishBoard: CellLayoutBoard = boardFromCellLayout(solve(board)) in generateRandomTestCase()
DReorderAlgorithmUnitTest.java33 import com.android.launcher3.celllayout.board.CellLayoutBoard;
145 public ItemConfiguration solve(CellLayoutBoard board, int x, int y, int spanX, in solve()
199 public CellLayoutBoard boardFromSolution(ItemConfiguration solution, int width, in boardFromSolution()
204 CellLayoutBoard board = CellLayoutTestUtils.viewsToBoard( in boardFromSolution()
220 CellLayoutBoard finishBoard = boardFromSolution(solution, in evaluateTestCase()
248 CellLayoutBoard board = boardGenerator.generateBoard(width, height, in generateRandomTestCase()
254 CellLayoutBoard finishBoard = boardFromSolution(solution, board.getWidth(), in generateRandomTestCase()
275 public boolean validateIntegrity(CellLayoutBoard startBoard, CellLayoutBoard finishBoard, in validateIntegrity()
283 Comparator<CellLayoutBoard> comparator = new PermutedBoardComparator(); in validateIntegrity()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/board/
DCellLayoutBoard.java35 public class CellLayoutBoard implements Comparable<CellLayoutBoard> { class
37 public static final Comparator<CellLayoutBoard> COMPARATOR = new IdenticalBoardComparator();
40 public int compareTo(@NonNull CellLayoutBoard cellLayoutBoard) { in compareTo()
60 public CellLayoutBoard() { in CellLayoutBoard() method in CellLayoutBoard
68 public CellLayoutBoard(int width, int height) { in CellLayoutBoard() method in CellLayoutBoard
330 public static WidgetRect getMainFromList(List<CellLayoutBoard> boards) { in getMainFromList()
331 for (CellLayoutBoard board : boards) { in getMainFromList()
340 public static WidgetRect getWidgetIn(List<CellLayoutBoard> boards, int x, int y) { in getWidgetIn()
341 for (CellLayoutBoard board : boards) { in getWidgetIn()
351 public static CellLayoutBoard boardFromString(String boardStr) { in boardFromString()
[all …]
DPermutedBoardComparator.kt24 class PermutedBoardComparator : Comparator<CellLayoutBoard> {
33 cellLayoutBoard: CellLayoutBoard, in compare()
34 otherCellLayoutBoard: CellLayoutBoard in compare()
DIdenticalBoardComparator.kt25 class IdenticalBoardComparator : Comparator<CellLayoutBoard> {
36 cellLayoutBoard: CellLayoutBoard, in compare()
37 otherCellLayoutBoard: CellLayoutBoard in compare()
DTestWorkspaceBuilder.java110 public FavoriteItemsTransaction buildFromBoard(CellLayoutBoard board, in buildFromBoard()
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/
DTaplReorderWidgetsTest.java36 import com.android.launcher3.celllayout.board.CellLayoutBoard;
89 private boolean validateBoard(List<CellLayoutBoard> testBoards) { in validateBoard()
90 ArrayList<CellLayoutBoard> workspaceBoards = workspaceToBoards(); in validateBoard()
102 private FavoriteItemsTransaction buildWorkspaceFromBoards(List<CellLayoutBoard> boards, in buildWorkspaceFromBoards()
105 CellLayoutBoard board = boards.get(i); in buildWorkspaceFromBoards()
113 ArrayList<CellLayoutBoard> boards = workspaceToBoards(); in printCurrentWorkspace()
120 private ArrayList<CellLayoutBoard> workspaceToBoards() { in workspaceToBoards()
125 ArrayList<CellLayoutBoard> workspaceBoards = workspaceToBoards(); in getWidgetClosestTo()
166 WidgetRect mainWidgetCellPos = CellLayoutBoard.getMainFromList( in runTestCase()
189 for (List<CellLayoutBoard> boards : testCase.mEnd) { in runTestCase()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/testgenerator/
DRandomBoardGenerator.kt19 import com.android.launcher3.celllayout.board.CellLayoutBoard
37 open fun generateBoard(width: Int, height: Int, remainingEmptySpaces: Int): CellLayoutBoard { in generateBoard()
38 val cellLayoutBoard = CellLayoutBoard(width, height) in generateBoard()
43 board: CellLayoutBoard, in fillBoard()
46 ): CellLayoutBoard { in fillBoard()
DRandomMultiBoardGenerator.kt19 import com.android.launcher3.celllayout.board.CellLayoutBoard
27 ): CellLayoutBoard { in generateBoard()
28 val cellLayoutBoard = CellLayoutBoard(width, height) in generateBoard()
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/testgenerator/
DValidGridMigrationTestCaseGenerator.kt21 import com.android.launcher3.celllayout.board.CellLayoutBoard in <lambda>()
34 boards: List<CellLayoutBoard>, in <lambda>()
105 val boards: List<CellLayoutBoard>,
106 val destBoards: List<CellLayoutBoard>,
126 ): List<CellLayoutBoard> { in generateBoards()
127 val boards = mutableListOf<CellLayoutBoard>() in generateBoards()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/gridmigration/
DGridMigrationUtils.kt23 import com.android.launcher3.celllayout.board.CellLayoutBoard
32 fun itemListToBoard(itemsArg: List<WorkspaceItem>, boardSize: Point): List<CellLayoutBoard> { in contains()
35 List(items.maxOf { it.screenId + 1 }) { CellLayoutBoard(boardSize.x, boardSize.y) } in contains()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DGridMigrationTest.kt26 import com.android.launcher3.celllayout.board.CellLayoutBoard in <lambda>()
107 val boards = Array(100) { CellLayoutBoard(data.gridState.columns, data.gridState.rows) } in validateDb()
/packages/apps/Launcher3/tests/assets/ReorderWidgets/
Dfull_reorder_case15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
Dpush_reorder_case15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
Dmove_out_reorder_case15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
Dsimple_reorder_case15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
Dmultiple_cell_layouts_simple_reorder15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
Dmultiple_cell_layouts_no_space_reorder15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
Dmultiple_cell_layouts_reorder_other_side15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
/packages/apps/Launcher3/tests/assets/ReorderAlgorithmUnitTest/
Dreorder_algorithm_test_cases19 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java