Lines Matching refs:direction
1268 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, in findNearestArea() argument
1295 int curDirectionScore = direction[0] * curDirection[0] + in findNearestArea()
1296 direction[1] * curDirection[1]; in findNearestArea()
1317 int[] direction, ItemConfiguration currentState) { in addViewToTempLocation() argument
1323 findNearestArea(c.cellX, c.cellY, c.spanX, c.spanY, direction, in addViewToTempLocation()
1521 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
1531 if (direction[0] < 0) { in pushViewsToTempLocation()
1534 } else if (direction[0] > 0) { in pushViewsToTempLocation()
1537 } else if (direction[1] < 0) { in pushViewsToTempLocation()
1616 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument
1643 boundingRect.height(), direction, in addViewsToTempLocation()
1670 int[] direction, View ignoreView, ItemConfiguration solution) { in attemptPushInDirection() argument
1671 if ((Math.abs(direction[0]) + Math.abs(direction[1])) > 1) { in attemptPushInDirection()
1674 int temp = direction[1]; in attemptPushInDirection()
1675 direction[1] = 0; in attemptPushInDirection()
1677 if (pushViewsToTempLocation(intersectingViews, occupied, direction, in attemptPushInDirection()
1681 direction[1] = temp; in attemptPushInDirection()
1682 temp = direction[0]; in attemptPushInDirection()
1683 direction[0] = 0; in attemptPushInDirection()
1685 if (pushViewsToTempLocation(intersectingViews, occupied, direction, in attemptPushInDirection()
1690 direction[0] = temp; in attemptPushInDirection()
1693 direction[0] *= -1; in attemptPushInDirection()
1694 direction[1] *= -1; in attemptPushInDirection()
1695 temp = direction[1]; in attemptPushInDirection()
1696 direction[1] = 0; in attemptPushInDirection()
1697 if (pushViewsToTempLocation(intersectingViews, occupied, direction, in attemptPushInDirection()
1702 direction[1] = temp; in attemptPushInDirection()
1703 temp = direction[0]; in attemptPushInDirection()
1704 direction[0] = 0; in attemptPushInDirection()
1705 if (pushViewsToTempLocation(intersectingViews, occupied, direction, in attemptPushInDirection()
1710 direction[0] = temp; in attemptPushInDirection()
1711 direction[0] *= -1; in attemptPushInDirection()
1712 direction[1] *= -1; in attemptPushInDirection()
1717 if (pushViewsToTempLocation(intersectingViews, occupied, direction, in attemptPushInDirection()
1722 direction[0] *= -1; in attemptPushInDirection()
1723 direction[1] *= -1; in attemptPushInDirection()
1724 if (pushViewsToTempLocation(intersectingViews, occupied, direction, in attemptPushInDirection()
1729 direction[0] *= -1; in attemptPushInDirection()
1730 direction[1] *= -1; in attemptPushInDirection()
1736 int temp = direction[1]; in attemptPushInDirection()
1737 direction[1] = direction[0]; in attemptPushInDirection()
1738 direction[0] = temp; in attemptPushInDirection()
1739 if (pushViewsToTempLocation(intersectingViews, occupied, direction, in attemptPushInDirection()
1745 direction[0] *= -1; in attemptPushInDirection()
1746 direction[1] *= -1; in attemptPushInDirection()
1747 if (pushViewsToTempLocation(intersectingViews, occupied, direction, in attemptPushInDirection()
1752 direction[0] *= -1; in attemptPushInDirection()
1753 direction[1] *= -1; in attemptPushInDirection()
1756 temp = direction[1]; in attemptPushInDirection()
1757 direction[1] = direction[0]; in attemptPushInDirection()
1758 direction[0] = temp; in attemptPushInDirection()
1763 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, in rearrangementExists() argument
1799 if (attemptPushInDirection(mIntersectingViews, mOccupiedRect, direction, ignoreView, in rearrangementExists()
1805 if (addViewsToTempLocation(mIntersectingViews, mOccupiedRect, direction, ignoreView, in rearrangementExists()
1812 if (!addViewToTempLocation(v, mOccupiedRect, direction, solution)) { in rearrangementExists()
1837 int spanX, int spanY, int[] direction, View dragView, boolean decX, in findReorderSolution() argument
1853 success = rearrangementExists(result[0], result[1], spanX, spanY, direction, dragView, in findReorderSolution()
1861 direction, dragView, false, solution); in findReorderSolution()
1864 direction, dragView, true, solution); in findReorderSolution()
2274 View dragView, int[] direction, boolean commit) { in createAreaForResize() argument
2280 spanX, spanY, direction, dragView, true, new ItemConfiguration()); in createAreaForResize()