/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/ |
D | ReorderTestCase.java | 20 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()
|
D | CellLayoutTestUtils.java | 24 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()
|
D | ReorderAlgorithmUnitTestCase.java | 18 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()
|
D | HotseatReorderUnitTest.kt | 28 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()
|
D | ReorderAlgorithmUnitTest.java | 33 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/ |
D | CellLayoutBoard.java | 35 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 …]
|
D | PermutedBoardComparator.kt | 24 class PermutedBoardComparator : Comparator<CellLayoutBoard> { 33 cellLayoutBoard: CellLayoutBoard, in compare() 34 otherCellLayoutBoard: CellLayoutBoard in compare()
|
D | IdenticalBoardComparator.kt | 25 class IdenticalBoardComparator : Comparator<CellLayoutBoard> { 36 cellLayoutBoard: CellLayoutBoard, in compare() 37 otherCellLayoutBoard: CellLayoutBoard in compare()
|
D | TestWorkspaceBuilder.java | 110 public FavoriteItemsTransaction buildFromBoard(CellLayoutBoard board, in buildFromBoard()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/ |
D | TaplReorderWidgetsTest.java | 36 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/ |
D | RandomBoardGenerator.kt | 19 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()
|
D | RandomMultiBoardGenerator.kt | 19 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/ |
D | ValidGridMigrationTestCaseGenerator.kt | 21 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/ |
D | GridMigrationUtils.kt | 23 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/ |
D | GridMigrationTest.kt | 26 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/ |
D | full_reorder_case | 15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
|
D | push_reorder_case | 15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
|
D | move_out_reorder_case | 15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
|
D | simple_reorder_case | 15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
|
D | multiple_cell_layouts_simple_reorder | 15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
|
D | multiple_cell_layouts_no_space_reorder | 15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
|
D | multiple_cell_layouts_reorder_other_side | 15 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
|
/packages/apps/Launcher3/tests/assets/ReorderAlgorithmUnitTest/ |
D | reorder_algorithm_test_cases | 19 # Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
|