Home | History | Annotate | Download | only in launcher3

Lines Matching refs:lp

68             CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
70 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) &&
71 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
88 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
90 canvas.drawRect(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height, p);
112 public void setupLp(CellLayout.LayoutParams lp) {
113 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(),
145 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
146 if (!lp.isFullscreen) {
147 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(),
155 int cellPaddingY = (int) Math.max(0, ((lp.height - cHeight) / 2f));
160 lp.x = 0;
161 lp.y = 0;
162 lp.width = getMeasuredWidth();
163 lp.height = getMeasuredHeight();
165 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width, MeasureSpec.EXACTLY);
166 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height,
185 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
186 int childLeft = lp.x;
187 int childTop = lp.y;
188 child.layout(childLeft, childTop, childLeft + lp.width, childTop + lp.height);
190 if (lp.dropped) {
191 lp.dropped = false;
197 cellXY[0] + childLeft + lp.width / 2,
198 cellXY[1] + childTop + lp.height / 2, 0, null);