Home | History | Annotate | Download | only in view

Lines Matching refs:lp

119                 LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams();
126 if ((lp.boxedEdges & LayoutParams.BOX_LEFT) == 0) {
127 marginLeft = lp.leftMargin;
129 if ((lp.boxedEdges & LayoutParams.BOX_RIGHT) == 0) {
130 marginRight = lp.rightMargin;
132 if ((lp.boxedEdges & LayoutParams.BOX_TOP) == 0) {
133 marginTop = lp.topMargin;
135 if ((lp.boxedEdges & LayoutParams.BOX_BOTTOM) == 0) {
136 marginBottom = lp.bottomMargin;
140 marginLeft = lp.leftMargin;
141 marginTop = lp.topMargin;
142 marginRight = lp.rightMargin;
143 marginBottom = lp.bottomMargin;
180 final LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams();
192 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_LEFT) != 0)) {
195 totalMargin += plwf + lp.leftMargin;
197 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_RIGHT) != 0)) {
200 totalMargin += prwf + lp.rightMargin;
202 if (lp.width == LayoutParams.MATCH_PARENT) {
208 totalPadding + totalMargin, lp.width);
214 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_TOP) != 0)) {
217 totalMargin += ptwf + lp.topMargin;
219 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_BOTTOM) != 0)) {
222 totalMargin += pbwf + lp.bottomMargin;
225 if (lp.height == LayoutParams.MATCH_PARENT) {
230 totalPadding + totalMargin, lp.height);
257 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
265 int gravity = lp.gravity;
282 if (lp.width == LayoutParams.MATCH_PARENT) {
283 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_LEFT) != 0)) {
286 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_RIGHT) != 0)) {
289 childLeft = parentLeft + lp.leftMargin;
294 lp.leftMargin - lp.rightMargin;
299 && ((lp.boxedEdges & LayoutParams.BOX_RIGHT) != 0)) {
303 childLeft = parentRight - width - lp.rightMargin;
309 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_LEFT) != 0)) {
313 childLeft = parentLeft + lp.leftMargin;
321 if (lp.height == LayoutParams.MATCH_PARENT) {
322 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_TOP) != 0)) {
325 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_BOTTOM) != 0)) {
328 childTop = parentTop + lp.topMargin;
332 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_TOP) != 0)) {
336 childTop = parentTop + lp.topMargin;
341 lp.topMargin - lp.bottomMargin;
344 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_BOTTOM) != 0)) {
348 childTop = parentBottom - height - lp.bottomMargin;
352 childTop = parentTop + lp.topMargin;