Lines Matching defs:lp

514                 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
519 final int colEnd = lp.column + Math.min(mColCount, lp.span);
520 for (int col = lp.column; col < colEnd; col++) {
521 final int colTop = top - rec.getMarginAbove(col - lp.column);
522 final int colBottom = bottom + rec.getMarginBelow(col - lp.column);
759 LayoutParams lp = (LayoutParams) child.getLayoutParams();
760 final int col = lp.column;
771 lp = (LayoutParams) child.getLayoutParams(); // Might have changed
774 final int span = Math.min(mColCount, lp.span);
781 if (lp.height == LayoutParams.WRAP_CONTENT) {
784 heightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY);
843 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
849 rec.column = lp.column;
851 rec.id = lp.id;
852 rec.span = Math.min(mColCount, lp.span);
894 LayoutParams lp = (LayoutParams) child.getLayoutParams();
898 addViewInLayout(child, 0, lp);
904 final int span = Math.min(mColCount, lp.span);
933 lp.id = id;
936 lp.column = nextCol;
939 if (lp.height == LayoutParams.WRAP_CONTENT) {
942 heightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY);
1008 LayoutParams lp = (LayoutParams) child.getLayoutParams();
1012 addViewInLayout(child, -1, lp);
1018 final int span = Math.min(mColCount, lp.span);
1047 lp.id = id;
1050 lp.column = nextCol;
1053 if (lp.height == LayoutParams.WRAP_CONTENT) {
1056 heightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY);
1248 ViewGroup.LayoutParams lp = view.getLayoutParams();
1251 if (lp == null) {
1252 lp = generateDefaultLayoutParams();
1253 } else if (!checkLayoutParams(lp)) {
1254 lp = generateLayoutParams(lp);
1258 final LayoutParams sglp = (LayoutParams) lp;
1344 protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) {
1345 return new LayoutParams(lp);
1349 protected boolean checkLayoutParams(ViewGroup.LayoutParams lp) {
1350 return lp instanceof LayoutParams;
1501 final LayoutParams lp = (LayoutParams) v.getLayoutParams();
1506 mTransientStateViews.put(lp.position, v);
1515 ArrayList<View> scrap = mScrapViews[lp.viewType];