• Home
  • Raw
  • Download

Lines Matching refs:solution

1391     private void copySolutionToTempState(ItemConfiguration solution, View dragView) {
1399 CellAndSpan c = solution.map.get(child);
1408 mTmpOccupied.markCells(solution, true);
1411 private void animateItemsToSolution(ItemConfiguration solution, View dragView, boolean
1421 CellAndSpan c = solution.map.get(child);
1429 occupied.markCells(solution, true);
1435 private void beginOrAdjustReorderPreviewAnimations(ItemConfiguration solution,
1441 CellAndSpan c = solution.map.get(child);
1442 boolean skip = mode == ReorderPreviewAnimation.MODE_HINT && solution.intersectingViews
1443 != null && !solution.intersectingViews.contains(child);
1731 // committing anything or animating anything as we just want to determine if a solution
1872 // We save the current configuration -- if we fail to find a solution we will revert
1873 // to the initial state. The process of finding a solution modifies the configuration
1891 // The push solution includes the all apps button, this is not viable.
1913 // Due to the nature of the algorithm, the only check required to verify a valid solution
2116 // This method tries to find a reordering solution which satisfies the push mechanic by trying
2120 int[] direction, View ignoreView, ItemConfiguration solution) {
2128 ignoreView, solution)) {
2136 ignoreView, solution)) {
2148 ignoreView, solution)) {
2156 ignoreView, solution)) {
2168 ignoreView, solution)) {
2175 ignoreView, solution)) {
2182 // If we have failed to find a push solution with the above, then we try
2183 // to find a solution by pushing along the perpendicular axis.
2190 ignoreView, solution)) {
2198 ignoreView, solution)) {
2331 View ignoreView, ItemConfiguration solution) {
2340 CellAndSpan c = solution.map.get(ignoreView);
2348 for (View child: solution.map.keySet()) {
2350 CellAndSpan c = solution.map.get(child);
2361 solution.intersectingViews = new ArrayList<>(mIntersectingViews);
2363 // First we try to find a solution which respects the push mechanic. That is,
2364 // we try to find a solution such that no displaced item travels through another item
2367 solution)) {
2373 solution)) {
2379 if (!addViewToTempLocation(v, mOccupiedRect, direction, solution)) {
2392 ItemConfiguration solution) {
2394 spanX, spanY, direction, dragView, decX, solution);
2397 public void copyCurrentStateToSolution(ItemConfiguration solution, boolean temp) {
2408 solution.add(child, c);
2414 * the workspace to make space for the new item, this function return a solution for that
2424 * @return returns a solution for the given parameters, the solution contains all the icons and
2425 * the locations they should be in the given solution.
2443 // We want the solution to match the animation of the preview and to match the drop so we
2473 * @param solution represents widgets on the screen which the Workspace will animate to and
2477 * mode the solution would be submitted or not the database.
2482 public void performReorder(ItemConfiguration solution, View dragView, int mode) {
2484 beginOrAdjustReorderPreviewAnimations(solution, dragView,
2489 // committing anything or animating anything as we just want to determine if a solution
2497 copySolutionToTempState(solution, dragView);
2500 animateItemsToSolution(solution, dragView, mode == MODE_ON_DROP);
2504 // Since the temp solution didn't update dragView, don't commit it either
2509 beginOrAdjustReorderPreviewAnimations(solution, dragView,
2529 * Represents the solution to a reorder of items in the Workspace.
2805 // Check for a solution starting at every cell.
2820 * Finds solution to accept hotseat migration to cell layout. commits solution if commitConfig