/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
D | CellSpanTest.java | 67 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/ |
D | SmartReplyViewTest.java | 217 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/ |
D | ThumbsBar.java | 222 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()
|
D | HorizontalHoverCardSwitcher.java | 52 if (!isRtl && mCardLeft + view.getMeasuredWidth() > rightLimit) { in onViewSelected() 53 params.leftMargin = rightLimit - view.getMeasuredWidth(); in onViewSelected() 57 params.leftMargin = mCardRight - view.getMeasuredWidth(); in onViewSelected()
|
D | ControlBar.java | 105 int measuredWidth = first.getMeasuredWidth() + second.getMeasuredWidth(); 113 setMeasuredDimension(getMeasuredWidth() + totalExtraMargin, getMeasuredHeight());
|
/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 145 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/ |
D | MessagingLinearLayoutTest.java | 60 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/ |
D | FillContentLayoutTest.java | 48 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/ |
D | NumPadKey.java | 148 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/ |
D | KeyboardShortcutKeysLayout.java | 66 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/ |
D | NotificationHeaderView.java | 145 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/ |
D | TextViewPrecomputedTextPerfTest.java | 362 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/ |
D | FragmentBreadCrumbs.java | 218 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/ |
D | FixedSizeFrameLayout.java | 73 measureContents(getMeasuredWidth(), getMeasuredHeight()); in requestLayout() 92 int width = getMeasuredWidth(); in layoutContents()
|
/frameworks/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/ |
D | ErrorCatcher.java | 60 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/ |
D | FlowLayout.java | 59 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/ |
D | SmartReplyView.java | 52 (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/ |
D | BoxInsetLayout.java | 176 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/ |
D | BaseLayout.java | 87 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/ |
D | BaseLayout.java | 99 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/ |
D | ActionBarView.java | 956 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 …]
|
D | DialogViewAnimator.java | 71 maxWidth = Math.max(maxWidth, child.getMeasuredWidth() in onMeasure() 115 getMeasuredWidth() - getPaddingLeft() - getPaddingRight() in onMeasure()
|
/frameworks/base/core/java/android/widget/ |
D | Toolbar.java | 1549 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/ |
D | Toolbar.java | 1549 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/ |
D | QSIconViewImpl.java | 81 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()
|