• Home
  • Raw
  • Download

Lines Matching refs:lp

577         final LayoutParams lp = params;  in addViewToCellLayout()  local
590 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
593 if (lp.cellHSpan < 0) lp.cellHSpan = mCountX; in addViewToCellLayout()
594 if (lp.cellVSpan < 0) lp.cellVSpan = mCountY; in addViewToCellLayout()
600 mShortcutsAndWidgets.addView(child, index, lp); in addViewToCellLayout()
874 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in animateChildToPosition() local
878 if (mReorderAnimators.containsKey(lp)) { in animateChildToPosition()
879 mReorderAnimators.get(lp).cancel(); in animateChildToPosition()
880 mReorderAnimators.remove(lp); in animateChildToPosition()
883 final int oldX = lp.x; in animateChildToPosition()
884 final int oldY = lp.y; in animateChildToPosition()
887 occupied.markCells(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, false); in animateChildToPosition()
888 occupied.markCells(cellX, cellY, lp.cellHSpan, lp.cellVSpan, true); in animateChildToPosition()
890 lp.isLockedToGrid = true; in animateChildToPosition()
892 lp.cellX = info.cellX = cellX; in animateChildToPosition()
893 lp.cellY = info.cellY = cellY; in animateChildToPosition()
895 lp.tmpCellX = cellX; in animateChildToPosition()
896 lp.tmpCellY = cellY; in animateChildToPosition()
899 lp.isLockedToGrid = false; in animateChildToPosition()
900 final int newX = lp.x; in animateChildToPosition()
901 final int newY = lp.y; in animateChildToPosition()
903 lp.x = oldX; in animateChildToPosition()
904 lp.y = oldY; in animateChildToPosition()
908 lp.isLockedToGrid = true; in animateChildToPosition()
914 mReorderAnimators.put(lp, va); in animateChildToPosition()
920 lp.x = (int) ((1 - r) * oldX + r * newX); in animateChildToPosition()
921 lp.y = (int) ((1 - r) * oldY + r * newY); in animateChildToPosition()
932 lp.isLockedToGrid = true; in animateChildToPosition()
935 if (mReorderAnimators.containsKey(lp)) { in animateChildToPosition()
936 mReorderAnimators.remove(lp); in animateChildToPosition()
989 MarginLayoutParams lp = (MarginLayoutParams) v.getLayoutParams(); in visualizeDropLocation() local
990 left += lp.leftMargin; in visualizeDropLocation()
991 top += lp.topMargin; in visualizeDropLocation()
1537 LayoutParams lp = (LayoutParams) v.getLayoutParams(); in pushViewsToTempLocation() local
1538 if (!lp.canReorder) { in pushViewsToTempLocation()
1748 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in rearrangementExists() local
1751 if (!lp.canReorder) { in rearrangementExists()
1845 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in copyCurrentStateToSolution() local
1848 c = new CellAndSpan(lp.tmpCellX, lp.tmpCellY, lp.cellHSpan, lp.cellVSpan); in copyCurrentStateToSolution()
1850 c = new CellAndSpan(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan); in copyCurrentStateToSolution()
1863 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in copySolutionToTempState() local
1866 lp.tmpCellX = c.cellX; in copySolutionToTempState()
1867 lp.tmpCellY = c.cellY; in copySolutionToTempState()
1868 lp.cellHSpan = c.spanX; in copySolutionToTempState()
1869 lp.cellVSpan = c.spanY; in copySolutionToTempState()
1910 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in beginOrAdjustReorderPreviewAnimations() local
1912 ReorderPreviewAnimation rha = new ReorderPreviewAnimation(child, mode, lp.cellX, in beginOrAdjustReorderPreviewAnimations()
1913 lp.cellY, c.cellX, c.cellY, c.spanX, c.spanY); in beginOrAdjustReorderPreviewAnimations()
2104 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in commitTempPlacement() local
2109 final boolean requiresDbUpdate = (info.cellX != lp.tmpCellX in commitTempPlacement()
2110 || info.cellY != lp.tmpCellY || info.spanX != lp.cellHSpan in commitTempPlacement()
2111 || info.spanY != lp.cellVSpan); in commitTempPlacement()
2113 info.cellX = lp.cellX = lp.tmpCellX; in commitTempPlacement()
2114 info.cellY = lp.cellY = lp.tmpCellY; in commitTempPlacement()
2115 info.spanX = lp.cellHSpan; in commitTempPlacement()
2116 info.spanY = lp.cellVSpan; in commitTempPlacement()
2129 LayoutParams lp = (LayoutParams) mShortcutsAndWidgets.getChildAt(i).getLayoutParams(); in setUseTempCoords() local
2130 lp.useTmpCoords = useTempCoords; in setUseTempCoords()
2212 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in getViewsIntersectingRegion() local
2213 r1.set(lp.cellX, lp.cellY, lp.cellX + lp.cellHSpan, lp.cellY + lp.cellVSpan); in getViewsIntersectingRegion()
2237 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in revertTempState() local
2238 if (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY) { in revertTempState()
2239 lp.tmpCellX = lp.cellX; in revertTempState()
2240 lp.tmpCellY = lp.cellY; in revertTempState()
2241 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION, in revertTempState()
2512 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onDropChild() local
2513 lp.dropped = true; in onDropChild()
2545 LayoutParams lp = (LayoutParams) view.getLayoutParams(); in markCellsAsOccupiedForView()
2546 mOccupied.markCells(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, true); in markCellsAsOccupiedForView()
2551 LayoutParams lp = (LayoutParams) view.getLayoutParams(); in markCellsAsUnoccupiedForView()
2552 mOccupied.markCells(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, false); in markCellsAsUnoccupiedForView()