Home
last modified time | relevance | path

Searched refs:getMeasuredWidth (Results 1 – 25 of 191) sorted by relevance

12345678

/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
DCellSpanTest.java67 int spanWidth = mA.getMeasuredWidth() + mB.getMeasuredWidth(); in testSpanThenCell()
69 mSpanThenCell.getMeasuredWidth()); in testSpanThenCell()
74 int spanWidth = mB.getMeasuredWidth() + mC.getMeasuredWidth(); in testCellThenSpan()
76 mCellThenSpan.getMeasuredWidth()); in testCellThenSpan()
81 int spanWidth = mA.getMeasuredWidth() + mB.getMeasuredWidth() + in testSpan()
82 mC.getMeasuredWidth(); in testSpan()
83 assertEquals("span is broken", spanWidth, mSpan.getMeasuredWidth()); in testSpan()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java217 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_shortChoices()
222 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_shortChoices()
254 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_choiceWithTwoLines()
259 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithTwoLines()
293 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_choiceWithThreeLines()
298 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithThreeLines()
318 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_squeezeLongest()
335 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_squeezeLongest()
340 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testLayout_squeezeLongest()
342 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_squeezeLongest()
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DThumbsBar.java222 int width = getMeasuredWidth(); in onMeasure()
240 int heroLeft = getWidth() / 2 - heroView.getMeasuredWidth() / 2; in onLayout()
241 int heroRight = getWidth() / 2 + heroView.getMeasuredWidth() / 2; in onLayout()
249 child.layout(heroLeft - child.getMeasuredWidth(), in onLayout()
253 heroLeft -= child.getMeasuredWidth(); in onLayout()
260 heroRight + child.getMeasuredWidth(), in onLayout()
262 heroRight += child.getMeasuredWidth(); in onLayout()
DHorizontalHoverCardSwitcher.java52 if (!isRtl && mCardLeft + view.getMeasuredWidth() > rightLimit) { in onViewSelected()
53 params.leftMargin = rightLimit - view.getMeasuredWidth(); in onViewSelected()
57 params.leftMargin = mCardRight - view.getMeasuredWidth(); in onViewSelected()
DControlBar.java105 int measuredWidth = first.getMeasuredWidth() + second.getMeasuredWidth();
113 setMeasuredDimension(getMeasuredWidth() + totalExtraMargin, getMeasuredHeight());
/frameworks/base/test-runner/src/android/test/
DViewAsserts.java145 int firstRight = xy[0] + first.getMeasuredWidth(); in assertRightAligned()
148 int secondRight = xy[0] + second.getMeasuredWidth(); in assertRightAligned()
164 int firstRight = xy[0] + first.getMeasuredWidth(); in assertRightAligned()
167 int secondRight = xy[0] + second.getMeasuredWidth(); in assertRightAligned()
298 int center = (reference.getMeasuredWidth() - test.getMeasuredWidth()) / 2; in assertHorizontalCenterAligned()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DMessagingLinearLayoutTest.java60 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testSingleChild()
75 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeSmall()
91 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testSmallSmall()
107 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeLarge()
123 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeSmall_largeWrapsWith3indentbutNotFullHeight_andHitsMax()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DFillContentLayoutTest.java48 assertEquals(123, layout.getMeasuredWidth()); in testMeasureMinSize()
66 assertEquals(123, child.getMeasuredWidth()); in testMeasureChildIsSmallerThanMaxSize()
84 assertEquals(88, child.getMeasuredWidth()); in testMeasureChildIsSmallerThanParent()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DNumPadKey.java148 int left = centerX - mDigitText.getMeasuredWidth() / 2; in onLayout()
150 mDigitText.layout(left, top, left + mDigitText.getMeasuredWidth(), bottom); in onLayout()
154 left = centerX - mKlondikeText.getMeasuredWidth() / 2; in onLayout()
155 mKlondikeText.layout(left, top, left + mKlondikeText.getMeasuredWidth(), bottom); in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutKeysLayout.java66 int childWidth = child.getMeasuredWidth(); in onMeasure()
122 int currentChildWidth = currentChild.getMeasuredWidth(); in onLayout()
169 int currentChildWidth = currentChild.getMeasuredWidth(); in layoutChildrenOnRow()
184 ? getChildAt(j + 1).getMeasuredWidth() in layoutChildrenOnRow()
/frameworks/base/core/java/android/view/
DNotificationHeaderView.java145 totalWidth += lp.leftMargin + lp.rightMargin + child.getMeasuredWidth(); in onMeasure()
166 final int oldWidth = targetView.getMeasuredWidth(); in shrinkViewForOverflow()
180 int end = getMeasuredWidth(); in onLayout()
183 left += getMeasuredWidth() / 2 - mTotalWidth / 2; in onLayout()
195 int right = left + child.getMeasuredWidth(); in onLayout()
202 end = layoutLeft = layoutRight - child.getMeasuredWidth(); in onLayout()
210 end = layoutLeft = layoutRight - child.getMeasuredWidth(); in onLayout()
215 end = layoutLeft = layoutRight - child.getMeasuredWidth(); in onLayout()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewPrecomputedTextPerfTest.java362 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText()
364 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText()
388 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText_Selectable()
390 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText_Selectable()
416 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText()
418 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText()
445 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText_Selectable()
447 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText_Selectable()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java218 childLeft = childRight - child.getMeasuredWidth(); in onLayout()
222 childLeft = mPaddingLeft + (mRight - mLeft - child.getMeasuredWidth()) / 2; in onLayout()
223 childRight = childLeft + child.getMeasuredWidth(); in onLayout()
229 childRight = childLeft + child.getMeasuredWidth(); in onLayout()
257 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFixedSizeFrameLayout.java73 measureContents(getMeasuredWidth(), getMeasuredHeight()); in requestLayout()
92 int width = getMeasuredWidth(); in layoutContents()
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
DErrorCatcher.java60 setMeasuredDimension(resolveSize(child.getMeasuredWidth(), widthMeasureSpec), in onMeasure()
88 child.layout(0, 0, child.getMeasuredWidth(), child.getMeasuredHeight()); in onLayout()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFlowLayout.java59 final int childWidth = child.getMeasuredWidth(); in onMeasure()
100 final int childWidth = child.getMeasuredWidth(); in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java52 (v1, v2) -> ((v2.getMeasuredWidth() - v2.getPaddingLeft() - v2.getPaddingRight())
53 - (v1.getMeasuredWidth() - v1.getPaddingLeft() - v1.getPaddingRight()));
303 final int childWidth = child.getMeasuredWidth(); in onMeasure()
446 int oldWidth = button.getMeasuredWidth(); in squeezeButtonToTextWidth()
460 final int newWidth = button.getMeasuredWidth(); in squeezeButtonToTextWidth()
486 int newWidth = child.getMeasuredWidth(); in remeasureButtonsIfNecessary()
550 final int childWidth = child.getMeasuredWidth(); in onLayout()
/frameworks/support/wear/src/main/java/androidx/wear/widget/
DBoxInsetLayout.java176 maxWidth = Math.max(maxWidth, child.getMeasuredWidth() + marginLeft + marginRight); in onMeasure()
226 final int width = child.getMeasuredWidth(); in onLayout()
241 int desiredInset = calculateInset(getMeasuredWidth(), getMeasuredHeight()); in onLayout()
334 int maxAllowedWidth = getMeasuredWidth() - totalWidthMargin; in measureChild()
336 if (child.getMeasuredWidth() > maxAllowedWidth in measureChild()
/frameworks/av/packages/MediaComponents/src/com/android/widget/
DBaseLayout.java87 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure_impl()
128 final int width = Math.max(0, mInstance.getMeasuredWidth() in onMeasure_impl()
174 final int width = child.getMeasuredWidth(); in onLayout_impl()
/frameworks/support/media-widget/src/main/java/androidx/media/widget/
DBaseLayout.java99 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure()
142 final int width = Math.max(0, getMeasuredWidth() in onMeasure()
186 final int width = child.getMeasuredWidth(); in onLayout()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarView.java956 homeWidth = homeLayout.getMeasuredWidth(); in onMeasure()
964 rightOfCenter = Math.max(0, rightOfCenter - mMenuView.getMeasuredWidth()); in onMeasure()
972 rightOfCenter - mIndeterminateProgressView.getMeasuredWidth()); in onMeasure()
985 final int listNavWidth = mListNavLayout.getMeasuredWidth(); in onMeasure()
998 final int tabWidth = mTabScrollView.getMeasuredWidth(); in onMeasure()
1055 availableWidth -= horizontalMargin + customView.getMeasuredWidth(); in onMeasure()
1065 leftOfCenter = Math.max(0, leftOfCenter - mTitleLayout.getMeasuredWidth()); in onMeasure()
1152 menuStart += direction * mMenuView.getMeasuredWidth(); in onLayout()
1158 menuStart += direction * mIndeterminateProgressView.getMeasuredWidth(); in onLayout()
1174 final int navWidth = customView.getMeasuredWidth(); in onLayout()
[all …]
DDialogViewAnimator.java71 maxWidth = Math.max(maxWidth, child.getMeasuredWidth() in onMeasure()
115 getMeasuredWidth() - getPaddingLeft() - getPaddingRight() in onMeasure()
/frameworks/base/core/java/android/widget/
DToolbar.java1549 return child.getMeasuredWidth() + hMargins; in measureChildCollapseMargins()
1561 if (shouldLayout(child) && child.getMeasuredWidth() > 0 && in shouldCollapse()
1592 navWidth = mNavButtonView.getMeasuredWidth() + getHorizontalMargins(mNavButtonView); in onMeasure()
1601 navWidth = mCollapseButtonView.getMeasuredWidth() + in onMeasure()
1616 menuWidth = mMenuView.getMeasuredWidth() + getHorizontalMargins(mMenuView); in onMeasure()
1665 titleWidth = mTitleTextView.getMeasuredWidth() + getHorizontalMargins(mTitleTextView); in onMeasure()
1791 final boolean titleHasWidth = layoutTitle && mTitleTextView.getMeasuredWidth() > 0 in onLayout()
1792 || layoutSubtitle && mSubtitleTextView.getMeasuredWidth() > 0; in onLayout()
1828 final int titleLeft = titleRight - mTitleTextView.getMeasuredWidth(); in onLayout()
1837 final int subtitleLeft = subtitleRight - mSubtitleTextView.getMeasuredWidth(); in onLayout()
[all …]
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DToolbar.java1549 return child.getMeasuredWidth() + hMargins; in measureChildCollapseMargins()
1561 if (shouldLayout(child) && child.getMeasuredWidth() > 0 && in shouldCollapse()
1592 navWidth = mNavButtonView.getMeasuredWidth() + getHorizontalMargins(mNavButtonView); in onMeasure()
1602 navWidth = mCollapseButtonView.getMeasuredWidth() + in onMeasure()
1618 menuWidth = mMenuView.getMeasuredWidth() + getHorizontalMargins(mMenuView); in onMeasure()
1670 titleWidth = mTitleTextView.getMeasuredWidth() + getHorizontalMargins(mTitleTextView); in onMeasure()
1797 final boolean titleHasWidth = (layoutTitle && (mTitleTextView.getMeasuredWidth() > 0)) in onLayout()
1798 || (layoutSubtitle && mSubtitleTextView.getMeasuredWidth() > 0); in onLayout()
1834 final int titleLeft = titleRight - mTitleTextView.getMeasuredWidth(); in onLayout()
1843 final int subtitleLeft = subtitleRight - mSubtitleTextView.getMeasuredWidth(); in onLayout()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java81 final int w = getMeasuredWidth(); in onLayout()
83 final int iconLeft = (w - mIcon.getMeasuredWidth()) / 2; in onLayout()
217 child.layout(left, top, left + child.getMeasuredWidth(), top + child.getMeasuredHeight()); in layout()

12345678