Home
last modified time | relevance | path

Searched refs:childHeight (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/support/percent/tests/java/android/support/percent/
DPercentRelativeTest.java80 final int childHeight = childToTest.getHeight(); in testTopChild() local
85 0.05f * childWidth, childHeight); in testTopChild()
101 final int childHeight = childToTest.getHeight(); in testLeftChild() local
104 0.5f * mContainerHeight, childHeight); in testLeftChild()
106 0.05f * childHeight, childWidth); in testLeftChild()
122 final int childHeight = childToTest.getHeight(); in testBottomChild() local
127 0.05f * childWidth, childHeight); in testBottomChild()
143 final int childHeight = childToTest.getHeight(); in testRightChild() local
146 0.4f * mContainerHeight, childHeight); in testRightChild()
148 0.05f * childHeight, childWidth); in testRightChild()
DPercentRelativeRtlTest.java152 final int childHeight = childToTest.getHeight(); in testTopChild() local
157 0.05f * childWidth, childHeight); in testTopChild()
177 final int childHeight = childToTest.getHeight(); in testStartChild() local
180 0.5f * mContainerHeight, childHeight); in testStartChild()
182 0.05f * childHeight, childWidth); in testStartChild()
208 final int childHeight = childToTest.getHeight(); in testBottomChild() local
213 0.05f * childWidth, childHeight); in testBottomChild()
238 final int childHeight = childToTest.getHeight(); in testEndChild() local
241 0.4f * mContainerHeight, childHeight); in testEndChild()
243 0.05f * childHeight, childWidth); in testEndChild()
DPercentFrameTest.java57 int childHeight = childToTest.getHeight(); in testWidthHeight() local
62 0.5f * mContainerHeight, childHeight); in testWidthHeight()
70 int childHeight = childToTest.getHeight(); in testWidthAspectRatio() local
75 childWidth / 1.2f, childHeight); in testWidthAspectRatio()
83 int childHeight = childToTest.getHeight(); in testHeightAspectRatio() local
86 0.5f * mContainerHeight, childHeight); in testHeightAspectRatio()
88 1.5f * childHeight, childWidth); in testHeightAspectRatio()
134 int childHeight = childToTest.getHeight(); in testMarginsTopLeft() local
141 0.5f * mContainerHeight, childHeight); in testMarginsTopLeft()
153 int childHeight = childToTest.getHeight(); in testMarginsBottomRight() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DStackScrollAlgorithm.java336 int childHeight = getMaxAllowedChildHeight(child); in updatePositionsForState() local
340 updateFirstChildHeight(child, childViewState, childHeight, ambientState); in updatePositionsForState()
344 float nextYPosition = currentYPosition + childHeight + in updatePositionsForState()
359 childViewState, childHeight); in updatePositionsForState()
365 clampPositionToBottomStackStart(childViewState, childViewState.height, childHeight, in updatePositionsForState()
375 currentYPosition = childViewState.yTranslation + childHeight + paddingAfterChild; in updatePositionsForState()
467 int childHeight, int minHeight, AmbientState ambientState) { in clampPositionToBottomStackStart() argument
471 int childStart = bottomStackStart - childHeight; in clampPositionToBottomStackStart()
492 StackViewState childViewState, int childHeight) { in updateStateForChildTransitioningInBottom() argument
496 (transitioningPositionStart - currentYPosition) / (childHeight + in updateStateForChildTransitioningInBottom()
[all …]
DNotificationChildrenContainer.java737 float childHeight = child.isExpanded(true /* allowOnKeyguard */)
740 maxContentHeight += childHeight;
759 float childHeight = child.isExpanded(true /* allowOnKeyguard */)
766 childHeight, fraction), false);
768 child.setActualHeight((int) childHeight, false);
791 float childHeight = child.isExpanded(true /* allowOnKeyguard */)
794 intrinsicHeight += childHeight;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java668 final int childHeight = child.getMeasuredHeight(); in measureVertical() local
670 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
674 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical()
804 int childHeight = child.getMeasuredHeight() + share; in measureVertical() local
805 if (childHeight < 0) { in measureVertical()
806 childHeight = 0; in measureVertical()
810 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)); in measureVertical()
1056 final int childHeight = child.getMeasuredHeight() + margin; in measureHorizontal() local
1071 maxDescent[index] = Math.max(maxDescent[index], childHeight - childBaseline); in measureHorizontal()
1075 maxHeight = Math.max(maxHeight, childHeight); in measureHorizontal()
[all …]
DAbsActionBarView.java261 int childHeight = child.getMeasuredHeight(); in positionChild() local
262 int childTop = y + (contentHeight - childHeight) / 2; in positionChild()
265 child.layout(x - childWidth, childTop, x, childTop + childHeight); in positionChild()
267 child.layout(x, childTop, x + childWidth, childTop + childHeight); in positionChild()
/frameworks/base/core/java/android/widget/
DLinearLayout.java761 final int childHeight = child.getMeasuredHeight(); in measureVertical() local
767 consumedExcessSpace += childHeight; in measureVertical()
771 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
775 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical()
892 final int childHeight; in measureVertical() local
894 childHeight = largestChildHeight; in measureVertical()
899 childHeight = share; in measureVertical()
903 childHeight = child.getMeasuredHeight() + share; in measureVertical()
907 Math.max(0, childHeight), MeasureSpec.EXACTLY); in measureVertical()
1153 final int childHeight = child.getMeasuredHeight() + margin; in measureHorizontal() local
[all …]
DSlidingDrawer.java344 int childHeight = handle.getMeasuredHeight(); in onLayout() local
353 childTop = mExpanded ? mTopOffset : height - childHeight + mBottomOffset; in onLayout()
355 content.layout(0, mTopOffset + childHeight, content.getMeasuredWidth(), in onLayout()
356 mTopOffset + childHeight + content.getMeasuredHeight()); in onLayout()
359 childTop = (height - childHeight) / 2; in onLayout()
366 handle.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
660 final int childHeight = mHandleHeight; in prepareContent() local
661 int height = mBottom - mTop - childHeight - mTopOffset; in prepareContent()
664 content.layout(0, mTopOffset + childHeight, content.getMeasuredWidth(), in prepareContent()
665 mTopOffset + childHeight + content.getMeasuredHeight()); in prepareContent()
DRelativeLayout.java588 final int childHeight = child.getMeasuredHeight(); in onMeasure() local
589 params.mTop = height - mPaddingBottom - childHeight; in onMeasure()
590 params.mBottom = params.mTop + childHeight; in onMeasure()
1061 int childHeight = child.getMeasuredHeight(); in centerVertical() local
1062 int top = (myHeight - childHeight) / 2; in centerVertical()
1065 params.mBottom = top + childHeight; in centerVertical()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLinearLayout.java135 final int childHeight = child.getMeasuredHeight(); in onMeasure() local
136 int newHeight = Math.max(totalHeight, totalHeight + childHeight + lp.topMargin + in onMeasure()
219 final int childHeight = child.getMeasuredHeight(); in onLayout() local
233 child.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
235 childTop += childHeight + lp.bottomMargin; in onLayout()
DAbsActionBarView.java320 int childHeight = child.getMeasuredHeight(); in positionChild() local
321 int childTop = y + (contentHeight - childHeight) / 2; in positionChild()
324 child.layout(x - childWidth, childTop, x, childTop + childHeight); in positionChild()
326 child.layout(x, childTop, x + childWidth, childTop + childHeight); in positionChild()
DNotificationActionListLayout.java242 final int childHeight = child.getMeasuredHeight(); in onLayout() local
246 childTop = paddingTop + ((innerHeight - childHeight) / 2) in onLayout()
250 child.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
DAlertDialogLayout.java314 final int childHeight = child.getMeasuredHeight(); in onLayout() local
349 setChildFrame(child, childLeft, childTop, childWidth, childHeight); in onLayout()
350 childTop += childHeight + lp.bottomMargin; in onLayout()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DLinearLayoutEditTextsTest.java52 final int childHeight = mChild.getHeight(); in testLayout() local
55 assertEquals(containerHeight, childHeight); in testLayout()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DBottomScrollViewTest.java64 private BottomScrollView createScrollView(final int childHeight) { in createScrollView() argument
68 final View child = new TestChildView(getContext(), childHeight); in createScrollView()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFlowLayout.java101 final int childHeight = child.getMeasuredHeight(); in onLayout() local
106 child.layout(x, y, x + childWidth, y + childHeight); in onLayout()
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java802 final int childHeight = child.getMeasuredHeight(); in layoutChildren() local
803 final int childBottom = childTop + childHeight; in layoutChildren()
813 if (rec != null && rec.height != childHeight) { in layoutChildren()
815 rec.height = childHeight; in layoutChildren()
946 final int childHeight = child.getMeasuredHeight(); in fillUp() local
947 if (invalidateBefore || (childHeight != rec.height && rec.height > 0)) { in fillUp()
950 rec.height = childHeight; in fillUp()
966 final int childTop = childBottom - childHeight; in fillUp()
1060 final int childHeight = child.getMeasuredHeight(); in fillDown() local
1061 if (invalidateAfter || (childHeight != rec.height && rec.height > 0)) { in fillDown()
[all …]
/frameworks/support/design/src/android/support/design/widget/
DCoordinatorLayout.java933 Rect anchorRect, Rect out, LayoutParams lp, int childWidth, int childHeight) { in getDesiredAnchoredChildRectWithoutConstraints() argument
994 top -= childHeight; in getDesiredAnchoredChildRectWithoutConstraints()
1000 top -= childHeight / 2; in getDesiredAnchoredChildRectWithoutConstraints()
1004 out.set(left, top, left + childWidth, top + childHeight); in getDesiredAnchoredChildRectWithoutConstraints()
1007 private void constrainChildRect(LayoutParams lp, Rect out, int childWidth, int childHeight) { in constrainChildRect() argument
1017 height - getPaddingBottom() - childHeight - lp.bottomMargin)); in constrainChildRect()
1019 out.set(left, top, left + childWidth, top + childHeight); in constrainChildRect()
1034 final int childHeight = child.getMeasuredHeight(); in getDesiredAnchoredChildRect() local
1036 childWidth, childHeight); in getDesiredAnchoredChildRect()
1037 constrainChildRect(lp, out, childWidth, childHeight); in getDesiredAnchoredChildRect()
[all …]
DAppBarLayout.java348 final int childHeight = child.getMeasuredHeight(); in getTotalScrollRange() local
353 range += childHeight + lp.topMargin + lp.bottomMargin; in getTotalScrollRange()
395 final int childHeight = child.getMeasuredHeight(); in getDownNestedPreScrollRange() local
407 range += childHeight - ViewCompat.getMinimumHeight(child); in getDownNestedPreScrollRange()
410 range += childHeight; in getDownNestedPreScrollRange()
434 int childHeight = child.getMeasuredHeight(); in getDownNestedScrollRange() local
435 childHeight += lp.topMargin + lp.bottomMargin; in getDownNestedScrollRange()
441 range += childHeight; in getDownNestedScrollRange()
/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java234 final int childHeight = getDrawable().getIntrinsicHeight(); in getIntrinsicHeight() local
235 if (childHeight < 0) { in getIntrinsicHeight()
238 return childHeight + mState.mInsetTop + mState.mInsetBottom; in getIntrinsicHeight()
/frameworks/base/core/java/android/view/
DNotificationHeaderView.java185 int childHeight = child.getMeasuredHeight(); in onLayout() local
189 int top = (int) (getPaddingTop() + (ownHeight - childHeight) / 2.0f); in onLayout()
190 int bottom = top + childHeight; in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DExpandableView.java80 int childHeight = child.getMeasuredHeight(); in onMeasure() local
81 maxChildHeight = Math.max(maxChildHeight, childHeight); in onMeasure()
/frameworks/support/core-ui/java/android/support/v4/view/
DPagerTitleStrip.java299 final int childHeight = getHeight() - getPaddingTop() - getPaddingBottom(); in updateText() local
300 final int maxHeight = Math.max(0, childHeight); in updateText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DRecentsView.java368 int childHeight = mEmptyView.getMeasuredHeight(); in onLayout() local
372 Math.max(0, (bottom - top - topBottomInsets - childHeight)) / 2; in onLayout()
373 mEmptyView.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()

12