Home
last modified time | relevance | path

Searched refs:childTop (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DScaleFrameLayout.java134 int childTop; in onLayout() local
159 childTop = parentTop + lp.topMargin; in onLayout()
162 childTop = parentTop + (parentBottom - parentTop - height) / 2 + in onLayout()
166 childTop = parentBottom - height - lp.bottomMargin; in onLayout()
169 childTop = parentTop + lp.topMargin; in onLayout()
172 child.layout(childLeft, childTop, childLeft + width, childTop + height); in onLayout()
175 child.setPivotY(pivotY - childTop); in onLayout()
/frameworks/support/percent/tests/java/android/support/percent/
DPercentRelativeTest.java88 final int childTop = childToTest.getTop(); in testTopChild() local
93 0.05f * mContainerHeight, childTop); in testTopChild()
109 final int childTop = childToTest.getTop(); in testLeftChild() local
114 0.2f * mContainerHeight, childTop); in testLeftChild()
164 final int childTop = childToTest.getTop(); in testCenterChild() local
174 topChild.getBottom() + 0.1f * mContainerHeight, childTop); in testCenterChild()
DPercentRelativeRtlTest.java147 final int childTop = childToTest.getTop(); in testTopChild() local
149 0.05f * mContainerHeight, childTop); in testTopChild()
184 final int childTop = childToTest.getTop(); in testStartChild() local
187 0.2f * mContainerHeight, childTop); in testStartChild()
261 final int childTop = childToTest.getTop(); in testCenterChild() local
273 topChild.getBottom() + 0.1f * mContainerHeight, childTop); in testCenterChild()
DPercentFrameTest.java96 int childTop = childToTest.getTop(); in testMarginsSingle() local
103 0.3f * mContainerHeight, childTop); in testMarginsSingle()
115 int childTop = childToTest.getTop(); in testMarginsMultiple() local
120 0.1f * mContainerHeight, childTop); in testMarginsMultiple()
136 int childTop = childToTest.getTop(); in testMarginsTopLeft() local
145 0.2f * mContainerHeight, childTop); in testMarginsTopLeft()
/frameworks/support/design/src/android/support/design/internal/
DBaselineLayout.java101 final int childTop; in onLayout() local
103 childTop = parentTop + mBaseline - child.getBaseline(); in onLayout()
105 childTop = parentTop; in onLayout()
108 child.layout(childLeft, childTop, childLeft + width, childTop + height); in onLayout()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLinearLayout.java197 int childTop; in onLayout() local
206 childTop = mPaddingTop; in onLayout()
229 childTop += mSpacing; in onLayout()
232 childTop += lp.topMargin; in onLayout()
233 child.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
235 childTop += childHeight + lp.bottomMargin; in onLayout()
DAlertDialogLayout.java288 int childTop; in onLayout() local
292 childTop = mPaddingTop + bottom - top - totalLength; in onLayout()
297 childTop = mPaddingTop + (bottom - top - totalLength) / 2; in onLayout()
302 childTop = mPaddingTop; in onLayout()
345 childTop += dividerHeight; in onLayout()
348 childTop += lp.topMargin; in onLayout()
349 setChildFrame(child, childLeft, childTop, childWidth, childHeight); in onLayout()
350 childTop += childHeight + lp.bottomMargin; in onLayout()
DAbsActionBarView.java321 int childTop = y + (contentHeight - childHeight) / 2; in positionChild() local
324 child.layout(x - childWidth, childTop, x, childTop + childHeight); in positionChild()
326 child.layout(x, childTop, x + childWidth, childTop + childHeight); in positionChild()
DNotificationActionListLayout.java205 int childTop; in onLayout() local
246 childTop = paddingTop + ((innerHeight - childHeight) / 2) in onLayout()
250 child.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
DActionBarOverlayLayout.java486 int childTop;
488 childTop = parentBottom - height - lp.bottomMargin;
490 childTop = parentTop + lp.topMargin;
493 child.layout(childLeft, childTop, childLeft + width, childTop + height);
DViewPager.java1512 int childTop = 0;
1535 childTop = paddingTop;
1538 childTop = paddingTop;
1542 childTop = Math.max((height - child.getMeasuredHeight()) / 2,
1546 childTop = height - paddingBottom - child.getMeasuredHeight();
1551 child.layout(childLeft, childTop,
1553 childTop + child.getMeasuredHeight());
1599 final int childTop = paddingTop;
1600 child.layout(childLeft, childTop, childLeft + childMeasuredWidth,
1601 childTop + child.getMeasuredHeight());
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java452 int childTop = mBaselineChildTop; in getBaseline() local
459 childTop = getBottom() - getTop() - getPaddingBottom() - mTotalLength; in getBaseline()
463childTop += ((getBottom() - getTop() - getPaddingTop() - getPaddingBottom()) - in getBaseline()
471 return childTop + lp.topMargin + childBaseline; in getBaseline()
1428 int childTop; in layoutVertical() local
1446 childTop = getPaddingTop() + bottom - top - mTotalLength; in layoutVertical()
1451 childTop = getPaddingTop() + (bottom - top - mTotalLength) / 2; in layoutVertical()
1456 childTop = getPaddingTop(); in layoutVertical()
1463 childTop += measureNullChild(i); in layoutVertical()
1495 childTop += mDividerHeight; in layoutVertical()
[all …]
DAbsActionBarView.java262 int childTop = y + (contentHeight - childHeight) / 2; in positionChild() local
265 child.layout(x - childWidth, childTop, x, childTop + childHeight); in positionChild()
267 child.layout(x, childTop, x + childWidth, childTop + childHeight); in positionChild()
DActionBarOverlayLayout.java435 int childTop = parentTop + lp.topMargin;
437 child.layout(childLeft, childTop, childLeft + width, childTop + height);
/frameworks/base/core/java/android/widget/
DFrameLayout.java282 int childTop; in layoutChildren() local
310 childTop = parentTop + lp.topMargin; in layoutChildren()
313 childTop = parentTop + (parentBottom - parentTop - height) / 2 + in layoutChildren()
317 childTop = parentBottom - height - lp.bottomMargin; in layoutChildren()
320 childTop = parentTop + lp.topMargin; in layoutChildren()
323 child.layout(childLeft, childTop, childLeft + width, childTop + height); in layoutChildren()
DLinearLayout.java536 int childTop = mBaselineChildTop; in getBaseline() local
543 childTop = mBottom - mTop - mPaddingBottom - mTotalLength; in getBaseline()
547 childTop += ((mBottom - mTop - mPaddingTop - mPaddingBottom) - in getBaseline()
555 return childTop + lp.topMargin + childBaseline; in getBaseline()
1515 int childTop; in layoutVertical() local
1533 childTop = mPaddingTop + bottom - top - mTotalLength; in layoutVertical()
1538 childTop = mPaddingTop + (bottom - top - mTotalLength) / 2; in layoutVertical()
1543 childTop = mPaddingTop; in layoutVertical()
1550 childTop += measureNullChild(i); in layoutVertical()
1581 childTop += mDividerHeight; in layoutVertical()
[all …]
DAbsoluteLayout.java122 int childTop = mPaddingTop + lp.y; in onLayout() local
123 child.layout(childLeft, childTop, in onLayout()
125 childTop + child.getMeasuredHeight()); in onLayout()
DGallery.java922 int childTop = calculateTop(child, true); in setUpChild() local
923 int childBottom = childTop + child.getMeasuredHeight(); in setUpChild()
934 child.layout(childLeft, childTop, childRight, childBottom); in setUpChild()
947 int childTop = 0; in calculateTop() local
951 childTop = mSpinnerPadding.top; in calculateTop()
956 childTop = mSpinnerPadding.top + (availableSpace / 2); in calculateTop()
959 childTop = myHeight - mSpinnerPadding.bottom - childHeight; in calculateTop()
962 return childTop; in calculateTop()
DSlidingDrawer.java347 int childTop; in onLayout() local
353 childTop = mExpanded ? mTopOffset : height - childHeight + mBottomOffset; in onLayout()
359 childTop = (height - childHeight) / 2; in onLayout()
366 handle.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java152 final int childTop = cellTop + childParams.topMargin; in onLayout() local
154 final int childBottom = childTop + child.getMeasuredHeight(); in onLayout()
156 child.layout(childLeft, childTop, childRight, childBottom); in onLayout()
DPrintContentView.java420 final int childTop = child.getTop(); in onViewReleased() local
425 if (childTop == openedOptionsY || childTop == closedOptionsY) { in onViewReleased()
430 if (childTop < halfRange) { in onViewReleased()
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java790 int childTop = mItemBottoms[col] > Integer.MIN_VALUE ? in layoutChildren() local
793 int lowest = childTop; in layoutChildren()
800 childTop = lowest; in layoutChildren()
803 final int childBottom = childTop + childHeight; in layoutChildren()
806 child.layout(childLeft, childTop, childRight, childBottom); in layoutChildren()
966 final int childTop = childBottom - childHeight; in fillUp() local
969 child.layout(childLeft, childTop, childRight, childBottom); in fillUp()
972 mItemTops[i] = childTop - rec.getMarginAbove(i - nextCol) - itemMargin; in fillUp()
1079 final int childTop = startFrom + itemMargin; in fillDown() local
1080 final int childBottom = childTop + childHeight; in fillDown()
[all …]
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java204 final int childTop = mPaddingTop; in onLayout() local
238 child.layout(childLeft, childTop, childRight, childBottom); in onLayout()
/frameworks/support/core-ui/java/android/support/v4/view/
DViewPager.java1724 int childTop = 0;
1747 childTop = paddingTop;
1750 childTop = paddingTop;
1754 childTop = Math.max((height - child.getMeasuredHeight()) / 2,
1758 childTop = height - paddingBottom - child.getMeasuredHeight();
1763 child.layout(childLeft, childTop,
1765 childTop + child.getMeasuredHeight());
1781 int childTop = paddingTop;
1796 + ":" + childLeft + "," + childTop + " " + child.getMeasuredWidth()
1799 child.layout(childLeft, childTop,
[all …]
/frameworks/support/core-ui/java/android/support/v4/widget/
DDrawerLayout.java1233 int childTop = (height - childHeight) / 2; in onLayout() local
1237 if (childTop < lp.topMargin) { in onLayout()
1238 childTop = lp.topMargin; in onLayout()
1239 } else if (childTop + childHeight > height - lp.bottomMargin) { in onLayout()
1240 childTop = height - lp.bottomMargin - childHeight; in onLayout()
1242 child.layout(childLeft, childTop, childLeft + childWidth, in onLayout()
1243 childTop + childHeight); in onLayout()

12