Home
last modified time | relevance | path

Searched refs:childWidth (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/support/percent/tests/java/android/support/percent/
DPercentRelativeTest.java79 final int childWidth = childToTest.getWidth(); in testTopChild() local
83 0.5f * mContainerWidth, childWidth); in testTopChild()
85 0.05f * childWidth, childHeight); in testTopChild()
100 final int childWidth = childToTest.getWidth(); in testLeftChild() local
106 0.05f * childHeight, childWidth); in testLeftChild()
121 final int childWidth = childToTest.getWidth(); in testBottomChild() local
125 0.4f * mContainerWidth, childWidth); in testBottomChild()
127 0.05f * childWidth, childHeight); in testBottomChild()
142 final int childWidth = childToTest.getWidth(); in testRightChild() local
148 0.05f * childHeight, childWidth); in testRightChild()
DPercentRelativeRtlTest.java151 final int childWidth = childToTest.getWidth(); in testTopChild() local
155 0.5f * mContainerWidth, childWidth); in testTopChild()
157 0.05f * childWidth, childHeight); in testTopChild()
176 final int childWidth = childToTest.getWidth(); in testStartChild() local
182 0.05f * childHeight, childWidth); in testStartChild()
207 final int childWidth = childToTest.getWidth(); in testBottomChild() local
211 0.4f * mContainerWidth, childWidth); in testBottomChild()
213 0.05f * childWidth, childHeight); in testBottomChild()
237 final int childWidth = childToTest.getWidth(); in testEndChild() local
243 0.05f * childHeight, childWidth); in testEndChild()
DPercentFrameTest.java56 int childWidth = childToTest.getWidth(); in testWidthHeight() local
60 0.5f * mContainerWidth, childWidth); in testWidthHeight()
69 int childWidth = childToTest.getWidth(); in testWidthAspectRatio() local
73 0.6f * mContainerWidth, childWidth); in testWidthAspectRatio()
75 childWidth / 1.2f, childHeight); in testWidthAspectRatio()
82 int childWidth = childToTest.getWidth(); in testHeightAspectRatio() local
88 1.5f * childHeight, childWidth); in testHeightAspectRatio()
133 int childWidth = childToTest.getWidth(); in testMarginsTopLeft() local
139 0.5f * mContainerWidth, childWidth); in testMarginsTopLeft()
152 int childWidth = childToTest.getWidth(); in testMarginsBottomRight() local
[all …]
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFlowLayout.java59 final int childWidth = child.getMeasuredWidth(); in onMeasure() local
62 if (x + childWidth > width) { in onMeasure()
67 x += childWidth; in onMeasure()
100 final int childWidth = child.getMeasuredWidth(); in onLayout() local
102 if (x + childWidth > width) { in onLayout()
106 child.layout(x, y, x + childWidth, y + childHeight); in onLayout()
107 x += childWidth; in onLayout()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAbsActionBarView.java260 int childWidth = child.getMeasuredWidth(); 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()
270 return (reverse ? -childWidth : childWidth); in positionChild()
DLinearLayoutCompat.java1031 final int childWidth = child.getMeasuredWidth(); in measureHorizontal() local
1033 mTotalLength += childWidth + lp.leftMargin + lp.rightMargin + in measureHorizontal()
1037 mTotalLength = Math.max(totalLength, totalLength + childWidth + lp.leftMargin + in measureHorizontal()
1042 largestChildWidth = Math.max(childWidth, largestChildWidth); in measureHorizontal()
1194 int childWidth = child.getMeasuredWidth() + share; in measureHorizontal() local
1195 if (childWidth < 0) { in measureHorizontal()
1196 childWidth = 0; in measureHorizontal()
1200 MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY), in measureHorizontal()
1465 final int childWidth = child.getMeasuredWidth(); in layoutVertical() local
1480 childLeft = paddingLeft + ((childSpace - childWidth) / 2) in layoutVertical()
[all …]
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java343 int childWidth = handle.getMeasuredWidth(); in onLayout() local
352 childLeft = (width - childWidth) / 2; in onLayout()
358 childLeft = mExpanded ? mTopOffset : width - childWidth + mBottomOffset; in onLayout()
361 content.layout(mTopOffset + childWidth, 0, in onLayout()
362 mTopOffset + childWidth + content.getMeasuredWidth(), in onLayout()
366 handle.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
667 final int childWidth = mHandle.getWidth(); in prepareContent() local
668 int width = mRight - mLeft - childWidth - mTopOffset; in prepareContent()
671 content.layout(childWidth + mTopOffset, 0, in prepareContent()
672 mTopOffset + childWidth + content.getMeasuredWidth(), in prepareContent()
DLinearLayout.java1120 final int childWidth = child.getMeasuredWidth(); in measureHorizontal() local
1126 usedExcessSpace += childWidth; in measureHorizontal()
1130 mTotalLength += childWidth + lp.leftMargin + lp.rightMargin in measureHorizontal()
1134 mTotalLength = Math.max(totalLength, totalLength + childWidth + lp.leftMargin in measureHorizontal()
1139 largestChildWidth = Math.max(childWidth, largestChildWidth); in measureHorizontal()
1276 final int childWidth; in measureHorizontal() local
1278 childWidth = largestChildWidth; in measureHorizontal()
1283 childWidth = share; in measureHorizontal()
1287 childWidth = child.getMeasuredWidth() + share; in measureHorizontal()
1291 Math.max(0, childWidth), MeasureSpec.EXACTLY); in measureHorizontal()
[all …]
DTabWidget.java192 final int childWidth = child.getMeasuredWidth(); in measureHorizontal() local
194 final int newWidth = Math.max(0, childWidth - delta); in measureHorizontal()
197 extraWidth -= childWidth - newWidth; // delta may have been clamped in measureHorizontal()
DHorizontalScrollView.java272 int childWidth = child.getWidth(); in canScroll() local
273 return getWidth() < childWidth + mPaddingLeft + mPaddingRight ; in canScroll()
1511 int childWidth = 0; in onLayout() local
1515 childWidth = getChildAt(0).getMeasuredWidth(); in onLayout()
1523 final boolean forceLeftGravity = (childWidth > available); in onLayout()
1536 childWidth - (r - l - mPaddingLeft - mPaddingRight)); in onLayout()
DTableRow.java225 final int childWidth = child.getMeasuredWidth(); in measureChildBeforeLayout() local
226 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth; in measureChildBeforeLayout()
DRelativeLayout.java558 final int childWidth = child.getMeasuredWidth(); in onMeasure() local
559 params.mLeft = width - mPaddingRight - childWidth; in onMeasure()
560 params.mRight = params.mLeft + childWidth; in onMeasure()
1053 int childWidth = child.getMeasuredWidth(); in centerHorizontal() local
1054 int left = (myWidth - childWidth) / 2; in centerHorizontal()
1057 params.mRight = left + childWidth; in centerHorizontal()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DWeightSumTest.java52 final int childWidth = mChild.getWidth(); in testLayout() local
55 assertEquals(containerWidth / 2, childWidth); in testLayout()
/frameworks/base/core/java/com/android/internal/widget/
DAbsActionBarView.java319 int childWidth = child.getMeasuredWidth(); 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()
329 return (reverse ? -childWidth : childWidth); in positionChild()
DAlertDialogLayout.java313 final int childWidth = child.getMeasuredWidth(); in onLayout() local
330 childLeft = paddingLeft + ((childSpace - childWidth) / 2) in onLayout()
335 childLeft = childRight - childWidth - lp.rightMargin; in onLayout()
349 setChildFrame(child, childLeft, childTop, childWidth, childHeight); in onLayout()
DNotificationActionListLayout.java241 final int childWidth = child.getMeasuredWidth(); in onLayout() local
250 child.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
251 childLeft += childWidth + lp.rightMargin; in onLayout()
DMessagingLinearLayout.java218 final int childWidth = child.getMeasuredWidth(); in onLayout() local
223 childLeft = childRight - childWidth - lp.rightMargin; in onLayout()
233 child.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutKeysLayout.java66 int childWidth = child.getMeasuredWidth(); in onMeasure() local
70 if (xPos + childWidth > width) { in onMeasure()
74 xPos += childWidth + layoutParams.mHorizontalSpacing; in onMeasure()
/frameworks/support/core-ui/java/android/support/v4/widget/
DDrawerLayout.java1197 final int childWidth = child.getMeasuredWidth(); in onLayout() local
1203 childLeft = -childWidth + (int) (childWidth * lp.onScreen); in onLayout()
1204 newOffset = (float) (childWidth + childLeft) / childWidth; in onLayout()
1206 childLeft = width - (int) (childWidth * lp.onScreen); in onLayout()
1207 newOffset = (float) (width - childLeft) / childWidth; in onLayout()
1217 child.layout(childLeft, lp.topMargin, childLeft + childWidth, in onLayout()
1226 childLeft + childWidth, in onLayout()
1242 child.layout(childLeft, childTop, childLeft + childWidth, in onLayout()
1566 final int childWidth = child.getWidth(); in closeDrawers() local
1570 -childWidth, child.getTop()); in closeDrawers()
[all …]
DSlidingPaneLayout.java552 final int childWidth = child.getMeasuredWidth(); in onMeasure() local
559 widthRemaining -= childWidth; in onMeasure()
693 final int childWidth = child.getMeasuredWidth(); in onLayout() local
702 lp.dimWhenOffset = xStart + lpMargin + range + childWidth / 2 > width - paddingEnd; in onLayout()
717 childLeft = childRight - childWidth; in onLayout()
720 childRight = childLeft + childWidth; in onLayout()
958 int childWidth = mSlideableView.getWidth(); in onPanelDragged() local
959 final int newStart = isLayoutRtl ? getWidth() - newLeft - childWidth : newLeft; in onPanelDragged()
1069 int childWidth = mSlideableView.getWidth(); in smoothSlideTo() local
1070 x = (int) (getWidth() - (startBound + slideOffset * mSlideRange + childWidth)); in smoothSlideTo()
[all …]
/frameworks/support/design/src/android/support/design/widget/
DCoordinatorLayout.java933 Rect anchorRect, Rect out, LayoutParams lp, int childWidth, int childHeight) { in getDesiredAnchoredChildRectWithoutConstraints() argument
981 left -= childWidth; in getDesiredAnchoredChildRectWithoutConstraints()
987 left -= childWidth / 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
1014 width - getPaddingRight() - childWidth - lp.rightMargin)); in constrainChildRect()
1019 out.set(left, top, left + childWidth, top + childHeight); in constrainChildRect()
1033 final int childWidth = child.getMeasuredWidth(); in getDesiredAnchoredChildRect() local
1036 childWidth, childHeight); in getDesiredAnchoredChildRect()
1037 constrainChildRect(lp, out, childWidth, childHeight); in getDesiredAnchoredChildRect()
[all …]
DSwipeDismissBehavior.java253 final int childWidth = child.getWidth();
259 ? mOriginalCapturedViewLeft - childWidth
260 : mOriginalCapturedViewLeft + childWidth;
/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java225 final int childWidth = getDrawable().getIntrinsicWidth(); in getIntrinsicWidth() local
226 if (childWidth < 0) { in getIntrinsicWidth()
229 return childWidth + mState.mInsetLeft + mState.mInsetRight; in getIntrinsicWidth()
/frameworks/support/design/src/android/support/design/internal/
DBottomNavigationMenuView.java125 final int childWidth = Math.min(maxAvailable, mActiveItemMaxWidth); in onMeasure() local
126 int extra = width - childWidth * count; in onMeasure()
128 mTempChildWidths[i] = childWidth; in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java73 int childWidth = (width - (mNumColumns - 1) * mHorizontalSpacing) / mNumColumns; in onMeasure() local
74 int childWidthSpec = MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY); in onMeasure()

12