Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DStackScrollAlgorithm.java360 int childHeight = getMaxAllowedChildHeight(child); in updatePositionsForState() local
362 + childHeight in updatePositionsForState()
376 float nextYPosition = currentYPosition + childHeight + in updatePositionsForState()
383 numberOfElementsCompletelyIn, i, childHeight, childViewState, scrollOffset); in updatePositionsForState()
384 clampPositionToTopStackEnd(childViewState, childHeight); in updatePositionsForState()
387 if (childViewState.yTranslation + childHeight + mPaddingBetweenElements in updatePositionsForState()
395 childHeight); in updatePositionsForState()
405 bottomStackStart, childViewState, childHeight); in updatePositionsForState()
411 childViewState, childHeight); in updatePositionsForState()
417 clampYTranslation(childViewState, childHeight); in updatePositionsForState()
[all …]
DNotificationStackScrollLayout.java1596 int childHeight = getIntrinsicHeight(removedChild) + mPaddingBetweenElements; in updateScrollStateForRemovedChild() local
1597 int endPosition = startingPosition + childHeight; in updateScrollStateForRemovedChild()
1601 mOwnScrollY -= childHeight; in updateScrollStateForRemovedChild()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java664 final int childHeight = child.getMeasuredHeight(); in measureVertical() local
666 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
670 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical()
800 int childHeight = child.getMeasuredHeight() + share; in measureVertical() local
801 if (childHeight < 0) { in measureVertical()
802 childHeight = 0; in measureVertical()
806 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)); in measureVertical()
1052 final int childHeight = child.getMeasuredHeight() + margin; in measureHorizontal() local
1067 maxDescent[index] = Math.max(maxDescent[index], childHeight - childBaseline); in measureHorizontal()
1071 maxHeight = Math.max(maxHeight, childHeight); in measureHorizontal()
[all …]
DToolbar.java1589 final int childHeight = child.getMeasuredHeight(); in getChildTop() local
1590 final int alignmentOffset = alignmentHeight > 0 ? (childHeight - alignmentHeight) / 2 : 0; in getChildTop()
1596 return getHeight() - getPaddingBottom() - childHeight in getChildTop()
1605 int spaceAbove = (space - childHeight) / 2; in getChildTop()
1609 final int spaceBelow = height - paddingBottom - childHeight - in getChildTop()
/frameworks/base/core/java/android/widget/
DLinearLayout.java730 final int childHeight = child.getMeasuredHeight(); in measureVertical() local
732 mTotalLength = Math.max(totalLength, totalLength + childHeight + lp.topMargin + in measureVertical()
736 largestChildHeight = Math.max(childHeight, largestChildHeight); in measureVertical()
865 int childHeight = child.getMeasuredHeight() + share; in measureVertical() local
866 if (childHeight < 0) { in measureVertical()
867 childHeight = 0; in measureVertical()
871 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)); in measureVertical()
1116 final int childHeight = child.getMeasuredHeight() + margin; in measureHorizontal() local
1130 maxDescent[index] = Math.max(maxDescent[index], childHeight - childBaseline); in measureHorizontal()
1134 maxHeight = Math.max(maxHeight, childHeight); in measureHorizontal()
[all …]
DSlidingDrawer.java347 int childHeight = handle.getMeasuredHeight(); in onLayout() local
356 childTop = mExpanded ? mTopOffset : height - childHeight + mBottomOffset; in onLayout()
358 content.layout(0, mTopOffset + childHeight, content.getMeasuredWidth(), in onLayout()
359 mTopOffset + childHeight + content.getMeasuredHeight()); in onLayout()
362 childTop = (height - childHeight) / 2; in onLayout()
369 handle.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
663 final int childHeight = mHandleHeight; in prepareContent() local
664 int height = mBottom - mTop - childHeight - mTopOffset; in prepareContent()
667 content.layout(0, mTopOffset + childHeight, content.getMeasuredWidth(), in prepareContent()
668 mTopOffset + childHeight + content.getMeasuredHeight()); in prepareContent()
DRelativeLayout.java593 final int childHeight = child.getMeasuredHeight(); in onMeasure() local
594 params.mTop = height - mPaddingBottom - childHeight; in onMeasure()
595 params.mBottom = params.mTop + childHeight; in onMeasure()
1058 int childHeight = child.getMeasuredHeight(); in centerVertical() local
1059 int top = (myHeight - childHeight) / 2; in centerVertical()
1062 params.mBottom = top + childHeight; in centerVertical()
DScrollView.java287 int childHeight = child.getHeight(); in canScroll() local
288 return getHeight() < childHeight + mPaddingTop + mPaddingBottom; in canScroll()
1516 final int childHeight = (getChildCount() > 0) ? getChildAt(0).getMeasuredHeight() : 0; in onLayout() local
1518 childHeight - (b - t - mPaddingBottom - mPaddingTop)); in onLayout()
DGallery.java938 int childHeight = duringLayout ? child.getMeasuredHeight() : child.getHeight(); in calculateTop() local
948 - mSpinnerPadding.top - childHeight; in calculateTop()
952 childTop = myHeight - mSpinnerPadding.bottom - childHeight; in calculateTop()
DToolbar.java1573 final int childHeight = child.getMeasuredHeight(); in getChildTop() local
1574 final int alignmentOffset = alignmentHeight > 0 ? (childHeight - alignmentHeight) / 2 : 0; in getChildTop()
1580 return getHeight() - getPaddingBottom() - childHeight in getChildTop()
1589 int spaceAbove = (space - childHeight) / 2; in getChildTop()
1593 final int spaceBelow = height - paddingBottom - childHeight - in getChildTop()
DAdapterViewAnimator.java686 final int childHeight = getMeasuredHeight() - mPaddingTop - mPaddingBottom; in measureChildren() local
691 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)); in measureChildren()
DGridView.java1054 int childHeight = 0; in onMeasure() local
1076 childHeight = child.getMeasuredHeight(); in onMeasure()
1085 heightSize = mListPadding.top + mListPadding.bottom + childHeight + in onMeasure()
1094 ourSize += childHeight; in onMeasure()
DStackView.java1141 final int childHeight = Math.round(measuredHeight*(1-PERSPECTIVE_SHIFT_FACTOR_Y))
1150 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.AT_MOST));
1172 if (maxHeight > 0 && count > 0 && maxHeight < childHeight) {
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DMultiPaneChallengeLayout.java398 final int childHeight = child.getMeasuredHeight(); in layoutWithGravity() local
403 int bottom = top + childHeight; in layoutWithGravity()
407 padding.top + (adjustedHeight - childHeight) / 2 : padding.top; in layoutWithGravity()
408 bottom = top + childHeight; in layoutWithGravity()
411 padding.bottom += childHeight / 2; in layoutWithGravity()
416 ? padding.top + height - (adjustedHeight - childHeight) / 2 in layoutWithGravity()
418 top = bottom - childHeight; in layoutWithGravity()
421 padding.top += childHeight / 2; in layoutWithGravity()
425 top = padding.top + (height - childHeight) / 2; in layoutWithGravity()
426 bottom = top + childHeight; in layoutWithGravity()
DSlidingChallengeLayout.java413 final int childHeight = mChallengeView.getHeight(); in animateChallengeTo() local
414 final int halfHeight = childHeight / 2; in animateChallengeTo()
415 final float distanceRatio = Math.min(1f, 1.0f * Math.abs(dy) / childHeight); in animateChallengeTo()
424 final float childDelta = (float) Math.abs(dy) / childHeight; in animateChallengeTo()
958 final int childHeight = child.getMeasuredHeight();
963 final int bottom = layoutBottom + (int) ((childHeight - mChallengeBottomBound)
966 child.layout(left, bottom - childHeight, left + childWidth, bottom);
/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/base/core/java/com/android/internal/widget/
DSizeAdaptiveLayout.java163 int childHeight = model.getMeasuredHeight(); in onMeasure() local
166 if (DEBUG) Log.d(TAG, "measured child at: " + childHeight); in onMeasure()
168 int resolvedHeight = resolveSizeAndState(childHeight, heightMeasureSpec, childState); in onMeasure()
278 final int childHeight = mActiveChild.getMeasuredHeight(); in onLayout() local
280 mActiveChild.layout(0, 0, childWidth, childHeight); in onLayout()
283 mModestyPanel.layout(0, mModestyPanelTop, childWidth, mModestyPanelTop + childHeight); in onLayout()
DAbsActionBarView.java259 int childHeight = child.getMeasuredHeight(); in positionChild() local
260 int childTop = y + (contentHeight - childHeight) / 2; in positionChild()
263 child.layout(x - childWidth, childTop, x, childTop + childHeight); in positionChild()
265 child.layout(x, childTop, x + childWidth, childTop + childHeight); in positionChild()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DAbsActionBarView.java243 int childHeight = child.getMeasuredHeight(); in positionChild() local
244 int childTop = y + (contentHeight - childHeight) / 2; in positionChild()
247 child.layout(x - childWidth, childTop, x, childTop + childHeight); in positionChild()
249 child.layout(x, childTop, x + childWidth, childTop + childHeight); in positionChild()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java291 final int childHeight = getHeight() - getPaddingTop() - getPaddingBottom(); in updateText() local
294 final int childHeightSpec = MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.AT_MOST); in updateText()
431 int childHeight = heightSize; in onMeasure() local
435 childHeight -= padding; in onMeasure()
439 final int childHeightSpec = MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.AT_MOST); in onMeasure()
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/
DExpandableView.java78 int childHeight = child.getMeasuredHeight(); in onMeasure() local
79 maxChildHeight = Math.max(maxChildHeight, childHeight); in onMeasure()
/frameworks/support/v4/java/android/support/v4/widget/
DDrawerLayout.java912 final int childHeight = child.getMeasuredHeight(); in onLayout() local
932 lp.topMargin + childHeight); in onLayout()
947 int childTop = (height - childHeight) / 2; in onLayout()
953 } else if (childTop + childHeight > height - lp.bottomMargin) { in onLayout()
954 childTop = height - lp.bottomMargin - childHeight; in onLayout()
957 childTop + childHeight); in onLayout()
DSwipeRefreshLayout.java560 final int childHeight = height - getPaddingTop() - getPaddingBottom(); in onLayout() local
561 child.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
DSlidingPaneLayout.java542 final int childHeight = child.getMeasuredHeight(); in onMeasure() local
544 if (heightMode == MeasureSpec.AT_MOST && childHeight > layoutHeight) { in onMeasure()
545 layoutHeight = Math.min(childHeight, maxLayoutHeight); in onMeasure()

12