Home | History | Annotate | Download | only in launcher2

Lines Matching refs:solution

1859         // We save the current configuration -- if we fail to find a solution we will revert
1860 // to the initial state. The process of finding a solution modifies the configuration
1878 // The push solution includes the all apps button, this is not viable.
1900 // Due to the nature of the algorithm, the only check required to verify a valid solution
1979 // This method tries to find a reordering solution which satisfies the push mechanic by trying
1983 int[] direction, View ignoreView, ItemConfiguration solution) {
1991 ignoreView, solution)) {
1999 ignoreView, solution)) {
2011 ignoreView, solution)) {
2019 ignoreView, solution)) {
2031 ignoreView, solution)) {
2038 ignoreView, solution)) {
2045 // If we have failed to find a push solution with the above, then we try
2046 // to find a solution by pushing along the perpendicular axis.
2053 ignoreView, solution)) {
2061 ignoreView, solution)) {
2077 View ignoreView, ItemConfiguration solution) {
2086 CellAndSpan c = solution.map.get(ignoreView);
2094 for (View child: solution.map.keySet()) {
2096 CellAndSpan c = solution.map.get(child);
2107 // First we try to find a solution which respects the push mechanic. That is,
2108 // we try to find a solution such that no displaced item travels through another item
2111 solution)) {
2117 solution)) {
2123 if (!addViewToTempLocation(v, mOccupiedRect, direction, solution)) {
2156 int spanY, int[] direction, View dragView, boolean decX, ItemConfiguration solution) {
2157 // Copy the current state into the solution. This solution will be manipulated as necessary.
2158 copyCurrentStateToSolution(solution, false);
2160 // manipulated as necessary to find a solution.
2172 solution);
2179 dragView, false, solution);
2182 dragView, true, solution);
2184 solution.isSolution = false;
2186 solution.isSolution = true;
2187 solution.dragViewX = result[0];
2188 solution.dragViewY = result[1];
2189 solution.dragViewSpanX = spanX;
2190 solution.dragViewSpanY = spanY;
2192 return solution;
2195 private void copyCurrentStateToSolution(ItemConfiguration solution, boolean temp) {
2206 solution.add(child, c);
2210 private void copySolutionToTempState(ItemConfiguration solution, View dragView) {
2222 CellAndSpan c = solution.map.get(child);
2231 markCellsForView(solution.dragViewX, solution.dragViewY, solution.dragViewSpanX,
2232 solution.dragViewSpanY, mTmpOccupied, true);
2235 private void animateItemsToSolution(ItemConfiguration solution, View dragView, boolean
2249 CellAndSpan c = solution.map.get(child);
2257 markCellsForView(solution.dragViewX, solution.dragViewY, solution.dragViewSpanX,
2258 solution.dragViewSpanY, occupied, true);
2263 private void beginOrAdjustHintAnimations(ItemConfiguration solution, View dragView, int delay) {
2268 CellAndSpan c = solution.map.get(child);
2436 int spanX, int spanY, View dragView, ItemConfiguration solution) {
2442 copyCurrentStateToSolution(solution, false);
2443 solution.dragViewX = result[0];
2444 solution.dragViewY = result[1];
2445 solution.dragViewSpanX = resultSpan[0];
2446 solution.dragViewSpanY = resultSpan[1];
2447 solution.isSolution = true;
2449 solution.isSolution = false;
2451 return solution;
2565 // committing anything or animating anything as we just want to determine if a solution
2594 // direction vector, since we want the solution to match the preview, and it's possible
2637 // committing anything or animating anything as we just want to determine if a solution