Home
last modified time | relevance | path

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

/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
DMultiPaneChallengeLayout.java390 final int childWidth = child.getMeasuredWidth(); in layoutWithGravity() local
395 int right = left + childWidth; in layoutWithGravity()
425 padding.left + (adjustedWidth - childWidth) / 2 : padding.left; in layoutWithGravity()
426 right = left + childWidth; in layoutWithGravity()
429 padding.right += childWidth / 2; in layoutWithGravity()
434 ? width - padding.right - (adjustedWidth - childWidth) / 2 in layoutWithGravity()
436 left = right - childWidth; in layoutWithGravity()
439 padding.left += childWidth / 2; in layoutWithGravity()
444 left = (paddedWidth - childWidth) / 2; in layoutWithGravity()
445 right = left + childWidth; in layoutWithGravity()
DSlidingChallengeLayout.java931 final int childWidth = child.getMeasuredWidth();
933 final int left = center - childWidth / 2;
940 child.layout(left, bottom - childHeight, left + childWidth, bottom);
DPagedView.java726 final int childWidth = getScaledMeasuredWidth(child); in onLayout() local
732 childLeft += childWidth + mPageSpacing; in onLayout()
1723 int childWidth = getScaledMeasuredWidth(layout); in getPageNearestToCenterOfScreen() local
1724 int halfChildWidth = (childWidth / 2); in getPageNearestToCenterOfScreen()
/frameworks/base/core/java/com/android/internal/widget/
DAbsActionBarView.java230 int childWidth = child.getMeasuredWidth(); in positionChild() local
235 child.layout(x - childWidth, childTop, x, childTop + childHeight); in positionChild()
237 child.layout(x, childTop, x + childWidth, childTop + childHeight); in positionChild()
240 return (reverse ? -childWidth : childWidth); in positionChild()
DSizeAdaptiveLayout.java159 int childWidth = model.getMeasuredHeight(); in onMeasure() local
162 int resolvedWidth = resolveSizeAndState(childWidth, widthMeasureSpec, childState); in onMeasure()
272 final int childWidth = mActiveChild.getMeasuredWidth(); in onLayout() local
275 mActiveChild.layout(0, 0, 0 + childWidth, 0 + childHeight); in onLayout()
278 mModestyPanel.layout(0, mModestyPanelTop, 0 + childWidth, mModestyPanelTop + childHeight); in onLayout()
/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/android/widget/
DSlidingDrawer.java325 int childWidth = handle.getMeasuredWidth(); in onLayout() local
334 childLeft = (width - childWidth) / 2; in onLayout()
340 childLeft = mExpanded ? mTopOffset : width - childWidth + mBottomOffset; in onLayout()
343 content.layout(mTopOffset + childWidth, 0, in onLayout()
344 mTopOffset + childWidth + content.getMeasuredWidth(), in onLayout()
348 handle.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight); in onLayout()
649 final int childWidth = mHandle.getWidth(); in prepareContent() local
650 int width = mRight - mLeft - childWidth - mTopOffset; in prepareContent()
653 content.layout(childWidth + mTopOffset, 0, in prepareContent()
654 mTopOffset + childWidth + content.getMeasuredWidth(), in prepareContent()
DLinearLayout.java1060 final int childWidth = child.getMeasuredWidth(); in measureHorizontal() local
1062 mTotalLength += childWidth + lp.leftMargin + lp.rightMargin + in measureHorizontal()
1066 mTotalLength = Math.max(totalLength, totalLength + childWidth + lp.leftMargin + in measureHorizontal()
1071 largestChildWidth = Math.max(childWidth, largestChildWidth); in measureHorizontal()
1221 int childWidth = child.getMeasuredWidth() + share; in measureHorizontal() local
1222 if (childWidth < 0) { in measureHorizontal()
1223 childWidth = 0; in measureHorizontal()
1227 MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY), in measureHorizontal()
1488 final int childWidth = child.getMeasuredWidth(); in layoutVertical() local
1502 childLeft = paddingLeft + ((childSpace - childWidth) / 2) in layoutVertical()
[all …]
DTabWidget.java196 final int childWidth = child.getMeasuredWidth(); in measureHorizontal() local
198 final int newWidth = Math.max(0, childWidth - delta); in measureHorizontal()
201 extraWidth -= childWidth - newWidth; // delta may have been clamped in measureHorizontal()
DTableRow.java226 final int childWidth = child.getMeasuredWidth(); in measureChildBeforeLayout() local
227 lp.mOffset[LayoutParams.LOCATION_NEXT] = columnWidth - childWidth; in measureChildBeforeLayout()
DRelativeLayout.java545 final int childWidth = child.getMeasuredWidth(); in onMeasure() local
546 params.mLeft = width - mPaddingRight - childWidth; in onMeasure()
547 params.mRight = params.mLeft + childWidth; in onMeasure()
995 int childWidth = child.getMeasuredWidth(); in centerHorizontal() local
996 int left = (myWidth - childWidth) / 2; in centerHorizontal()
999 params.mRight = left + childWidth; in centerHorizontal()
DAdapterViewAnimator.java680 final int childWidth = getMeasuredWidth() - mPaddingLeft - mPaddingRight; in measureChildren() local
685 child.measure(MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY), in measureChildren()
DStackView.java1132 final int childWidth = Math.round(measuredWidth*(1-PERSPECTIVE_SHIFT_FACTOR_X))
1142 child.measure(MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.AT_MOST),
1161 if (maxWidth > 0 && count > 0 && maxWidth < childWidth) {
DHorizontalScrollView.java250 int childWidth = child.getWidth(); in canScroll() local
251 return getWidth() < childWidth + mPaddingLeft + mPaddingRight ; in canScroll()
DGridView.java1031 int childWidth = widthSize - mListPadding.left - mListPadding.right; in onMeasure() local
1032 boolean didNotInitiallyFit = determineColumns(childWidth); in onMeasure()
DListView.java1123 int childWidth = 0; in onMeasure() local
1134 childWidth = child.getMeasuredWidth(); in onMeasure()
1145 widthSize = mListPadding.left + mListPadding.right + childWidth + in onMeasure()
DGridLayout.java947 int childWidth, int childHeight) { in measureChildWithMargins2() argument
949 mPaddingLeft + mPaddingRight + getTotalMargin(child, true), childWidth); in measureChildWithMargins2()
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java891 int childWidth, int childHeight) { in measureChildWithMargins2() argument
893 mPaddingLeft + mPaddingRight + getTotalMargin(child, true), childWidth); in measureChildWithMargins2()