Adding ReorderParameters to ReorderAlgorithm
No logic change made. Flag: NA Bug: 229292911 Test: ReorderAlgorithmUnitTest Change-Id: Iababd2fba688a482cffe6d2243c987b0c022c6a5
This commit is contained in:
1 parent
b70b7fde7a
commit
25f8e406a7
5 files changed
+157
-128
No files matched your search
@@ -191,9 +191,21 @@ public class ReorderAlgorithmUnitTest {
|
||||
|
||||
int[] testCaseXYinPixels = new int[2];
|
||||
cl.regionToCenterPoint(x, y, spanX, spanY, testCaseXYinPixels);
|
||||
ItemConfiguration solution = cl.createReorderAlgorithm().calculateReorder(
|
||||
testCaseXYinPixels[0], testCaseXYinPixels[1], minSpanX, minSpanY, spanX, spanY,
|
||||
null);
|
||||
ItemConfiguration configuration = new ItemConfiguration();
|
||||
cl.copyCurrentStateToSolution(configuration);
|
||||
ItemConfiguration solution = cl.createReorderAlgorithm()
|
||||
.calculateReorder(
|
||||
new ReorderParameters(
|
||||
testCaseXYinPixels[0],
|
||||
testCaseXYinPixels[1],
|
||||
spanX,
|
||||
spanY,
|
||||
minSpanX,
|
||||
minSpanY,
|
||||
null,
|
||||
configuration
|
||||
)
|
||||
);
|
||||
if (solution == null) {
|
||||
solution = new ItemConfiguration();
|
||||
solution.isSolution = false;
|
||||
|
||||
Reference in new issue
Block a user