Lines Matching defs:lp

189     private int getVirtualHeight(LayoutParams lp, int height, int heightUsed) {
198 if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) {
202 } else if (lp.childType == LayoutParams.CHILD_TYPE_PAGE_DELETE_DROP_TARGET) {
233 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
235 if (lp.childType == LayoutParams.CHILD_TYPE_CHALLENGE) {
245 } else if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) {
256 if (lp.maxWidth >= 0) {
258 Math.min(lp.maxWidth, width), MeasureSpec.EXACTLY);
260 if (lp.maxHeight >= 0) {
262 Math.min(lp.maxHeight, insetHeight), MeasureSpec.EXACTLY);
269 if (Gravity.isVertical(lp.gravity)) {
271 } else if (Gravity.isHorizontal(lp.gravity)) {
274 } else if (lp.childType == LayoutParams.CHILD_TYPE_SCRIM) {
283 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
285 if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER ||
286 lp.childType == LayoutParams.CHILD_TYPE_SCRIM ||
292 final int virtualHeight = getVirtualHeight(lp, insetHeight, heightUsed);
296 if (lp.centerWithinArea > 0) {
299 (int) ((width - widthUsed) * lp.centerWithinArea + 0.5f),
307 (int) (virtualHeight * lp.centerWithinArea + 0.5f),
316 if (lp.maxWidth >= 0) {
318 Math.min(lp.maxWidth, MeasureSpec.getSize(adjustedWidthSpec)),
321 if (lp.maxHeight >= 0) {
323 Math.min(lp.maxHeight, MeasureSpec.getSize(adjustedHeightSpec)),
351 LayoutParams lp = (LayoutParams) child.getLayoutParams();
359 } else if (lp.childType == LayoutParams.CHILD_TYPE_PAGE_DELETE_DROP_TARGET) {
370 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
373 height = getVirtualHeight(lp, height, heightUsed);
375 final int gravity = Gravity.getAbsoluteGravity(lp.gravity, getLayoutDirection());
377 final boolean fixedLayoutSize = lp.centerWithinArea > 0;
385 adjustedWidth = (int) (paddedWidth * lp.centerWithinArea + 0.5f);
390 adjustedHeight = (int) (paddedHeight * lp.centerWithinArea + 0.5f);