• Home
  • Raw
  • Download

Lines Matching refs:result

696     void pointToCellExact(int x, int y, int[] result) {  in pointToCellExact()  argument
700 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap); in pointToCellExact()
701 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact()
706 if (result[0] < 0) result[0] = 0; in pointToCellExact()
707 if (result[0] >= xAxis) result[0] = xAxis - 1; in pointToCellExact()
708 if (result[1] < 0) result[1] = 0; in pointToCellExact()
709 if (result[1] >= yAxis) result[1] = yAxis - 1; in pointToCellExact()
718 void pointToCellRounded(int x, int y, int[] result) { in pointToCellRounded() argument
719 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); in pointToCellRounded()
730 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
734 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint()
735 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); in cellToPoint()
746 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument
747 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint()
758 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
761 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint()
763 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap) + in regionToCenterPoint()
774 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
779 result.set(left, top, left + (spanX * mCellWidth + (spanX - 1) * mWidthGap), in regionToRect()
1066 void estimateDropCell(int originX, int originY, int spanX, int spanY, int[] result) { in estimateDropCell() argument
1072 pointToCellRounded(originX, originY, result); in estimateDropCell()
1075 int rightOverhang = result[0] + spanX - countX; in estimateDropCell()
1077 result[0] -= rightOverhang; // Snap to right in estimateDropCell()
1079 result[0] = Math.max(0, result[0]); // Snap to left in estimateDropCell()
1080 int bottomOverhang = result[1] + spanY - countY; in estimateDropCell()
1082 result[1] -= bottomOverhang; // Snap to bottom in estimateDropCell()
1084 result[1] = Math.max(0, result[1]); // Snap to top in estimateDropCell()
1171 int[] result) { in findNearestVacantArea() argument
1172 return findNearestVacantArea(pixelX, pixelY, spanX, spanY, null, result); in findNearestVacantArea()
1191 int spanY, int[] result, int[] resultSpan) { in findNearestVacantArea() argument
1193 result, resultSpan); in findNearestVacantArea()
1211 boolean ignoreOccupied, int[] result) { in findNearestArea() argument
1213 spanX, spanY, ignoreView, ignoreOccupied, result, null, mOccupied); in findNearestArea()
1248 View ignoreView, boolean ignoreOccupied, int[] result, int[] resultSpan, in findNearestArea() argument
1261 final int[] bestXY = result != null ? result : new int[2]; in findNearestArea()
1393 boolean[][] occupied, boolean blockOccupied[][], int[] result) { in findNearestArea() argument
1395 final int[] bestXY = result != null ? result : new int[2]; in findNearestArea()
2010 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument
2013 result[0] = 0; in computeDirectionVector()
2014 result[1] = 0; in computeDirectionVector()
2016 result[0] = (int) Math.signum(deltaX); in computeDirectionVector()
2019 result[1] = (int) Math.signum(deltaY); in computeDirectionVector()
2042 int result[] = new int[2]; in findReorderSolution() local
2043 result = findNearestArea(pixelX, pixelY, spanX, spanY, result); in findReorderSolution()
2048 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolution()
2064 solution.dragViewX = result[0]; in findReorderSolution()
2065 solution.dragViewY = result[1]; in findReorderSolution()
2330 int[] result = new int[2]; in findConfigurationNoShuffle() local
2332 findNearestVacantArea(pixelX, pixelY, minSpanX, minSpanY, spanX, spanY, null, result, in findConfigurationNoShuffle()
2334 if (result[0] >= 0 && result[1] >= 0) { in findConfigurationNoShuffle()
2336 solution.dragViewX = result[0]; in findConfigurationNoShuffle()
2337 solution.dragViewY = result[1]; in findConfigurationNoShuffle()
2422 View dragView, int[] result) { in isNearestDropLocationOccupied() argument
2423 result = findNearestArea(pixelX, pixelY, spanX, spanY, result); in isNearestDropLocationOccupied()
2424 getViewsIntersectingRegion(result[0], result[1], spanX, spanY, dragView, null, in isNearestDropLocationOccupied()
2479 View dragView, int[] result, int resultSpan[], int mode) { in performReorder() argument
2481 result = findNearestArea(pixelX, pixelY, spanX, spanY, result); in performReorder()
2527 result[0] = finalSolution.dragViewX; in performReorder()
2528 result[1] = finalSolution.dragViewY; in performReorder()
2532 result[0] = result[1] = resultSpan[0] = resultSpan[1] = -1; in performReorder()
2534 return result; in performReorder()
2543 result[0] = finalSolution.dragViewX; in performReorder()
2544 result[1] = finalSolution.dragViewY; in performReorder()
2570 result[0] = result[1] = resultSpan[0] = resultSpan[1] = -1; in performReorder()
2578 return result; in performReorder()
2662 int pixelX, int pixelY, int spanX, int spanY, View ignoreView, int[] result) { in findNearestVacantArea() argument
2663 return findNearestArea(pixelX, pixelY, spanX, spanY, ignoreView, true, result); in findNearestVacantArea()
2682 int spanX, int spanY, View ignoreView, int[] result, int[] resultSpan) { in findNearestVacantArea() argument
2684 result, resultSpan, mOccupied); in findNearestVacantArea()
2701 int pixelX, int pixelY, int spanX, int spanY, int[] result) { in findNearestArea() argument
2702 return findNearestArea(pixelX, pixelY, spanX, spanY, null, false, result); in findNearestArea()
2903 public static int[] rectToCell(int width, int height, int[] result) { in rectToCell() argument
2921 if (result == null) { in rectToCell()
2924 result[0] = spanX; in rectToCell()
2925 result[1] = spanY; in rectToCell()
2926 return result; in rectToCell()