Home
last modified time | relevance | path

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

123456

/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/src/com/android/systemui/statusbar/notification/row/
DNotificationUndoLayout.java78 int measuredWidth = getMeasuredWidth(); in onMeasure()
81 int requiredWidth = mConfirmationTextView.getMeasuredWidth() in onMeasure()
84 + mUndoView.getMeasuredWidth() in onMeasure()
112 int parentRight = getMeasuredWidth(); in onLayout()
123 confirmationLayoutParams.leftMargin + mConfirmationTextView.getMeasuredWidth(), in onLayout()
129 : parentRight - mUndoView.getMeasuredWidth() - undoLayoutParams.rightMargin; in onLayout()
133 undoViewLeft + mUndoView.getMeasuredWidth(), in onLayout()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java297 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_shortChoices()
302 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_shortChoices()
334 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_choiceWithTwoLines()
339 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithTwoLines()
373 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_choiceWithThreeLines()
378 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithThreeLines()
398 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_squeezeLongest()
415 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_squeezeLongest()
420 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testLayout_squeezeLongest()
422 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_squeezeLongest()
[all …]
/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.java47 assertThat(layout.getMeasuredWidth()).isEqualTo(123); in testMeasureMinSize()
66 assertThat(child.getMeasuredWidth()).isEqualTo(123); in testMeasureChildIsSmallerThanMaxSize()
85 assertThat(child.getMeasuredWidth()).isEqualTo(88); in testMeasureChildIsSmallerThanParent()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DNumPadKey.java149 int left = centerX - mDigitText.getMeasuredWidth() / 2; in onLayout()
151 mDigitText.layout(left, top, left + mDigitText.getMeasuredWidth(), bottom); in onLayout()
155 left = centerX - mKlondikeText.getMeasuredWidth() / 2; in onLayout()
156 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.java154 iconWidth += lp.leftMargin + lp.rightMargin + child.getMeasuredWidth(); in onMeasure()
156 totalWidth += lp.leftMargin + lp.rightMargin + child.getMeasuredWidth(); in onMeasure()
182 final int oldWidth = targetView.getMeasuredWidth(); in shrinkViewForOverflow()
196 int end = getMeasuredWidth(); in onLayout()
199 left += getMeasuredWidth() / 2 - mTotalWidth / 2; in onLayout()
217 if (end == getMeasuredWidth()) { in onLayout()
222 layoutLeft = layoutRight - child.getMeasuredWidth(); in onLayout()
226 int right = left + child.getMeasuredWidth(); in onLayout()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewPrecomputedTextPerfTest.java346 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText()
348 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText()
373 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText_Selectable()
375 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_RandomText_Selectable()
402 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText()
404 textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText()
432 textView.layout(0, 0, textView.getMeasuredWidth(), textView.getMeasuredHeight()); in testOnDraw_PrecomputedText_Selectable()
434 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/legacy/recents/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/
DHardwareUiLayout.java498 viewsTotalHeight = mList.getMeasuredWidth() + mSeparatedView.getMeasuredWidth(); in updatePaddingAndGravityIfTooTall()
500 screenHeight = getMeasuredWidth(); in updatePaddingAndGravityIfTooTall()
505 viewsTotalHeight = mList.getMeasuredWidth() + mSeparatedView.getMeasuredWidth(); in updatePaddingAndGravityIfTooTall()
507 screenHeight = getMeasuredWidth(); in updatePaddingAndGravityIfTooTall()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsColumnLayoutTest.java190 doReturn(1000).when(mColumnLayout).getMeasuredWidth(); in testShouldSnapToPowerButton_horizontal()
193 doReturn(500).when(wrapper).getMeasuredWidth(); in testShouldSnapToPowerButton_horizontal()
197 doReturn(600).when(mColumnLayout).getMeasuredWidth(); in testShouldSnapToPowerButton_horizontal()
/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/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsColumnLayout.java147 dialogSize = wrapper.getMeasuredWidth(); in shouldSnapToPowerButton()
148 screenSize = getMeasuredWidth(); in shouldSnapToPowerButton()
/frameworks/base/core/java/android/widget/
DToolbar.java1671 return child.getMeasuredWidth() + hMargins; in measureChildCollapseMargins()
1683 if (shouldLayout(child) && child.getMeasuredWidth() > 0 && in shouldCollapse()
1714 navWidth = mNavButtonView.getMeasuredWidth() + getHorizontalMargins(mNavButtonView); in onMeasure()
1723 navWidth = mCollapseButtonView.getMeasuredWidth() + in onMeasure()
1738 menuWidth = mMenuView.getMeasuredWidth() + getHorizontalMargins(mMenuView); in onMeasure()
1787 titleWidth = mTitleTextView.getMeasuredWidth() + getHorizontalMargins(mTitleTextView); in onMeasure()
1913 final boolean titleHasWidth = layoutTitle && mTitleTextView.getMeasuredWidth() > 0 in onLayout()
1914 || layoutSubtitle && mSubtitleTextView.getMeasuredWidth() > 0; in onLayout()
1950 final int titleLeft = titleRight - mTitleTextView.getMeasuredWidth(); in onLayout()
1959 final int subtitleLeft = subtitleRight - mSubtitleTextView.getMeasuredWidth(); in onLayout()
[all …]
DSlidingDrawer.java301 int width = widthSpecSize - handle.getMeasuredWidth() - mTopOffset; in onMeasure()
348 int childWidth = handle.getMeasuredWidth(); in onLayout()
360 content.layout(0, mTopOffset + childHeight, content.getMeasuredWidth(), in onLayout()
367 mTopOffset + childWidth + content.getMeasuredWidth(), in onLayout()
672 content.layout(0, mTopOffset + childHeight, content.getMeasuredWidth(), in prepareContent()
680 mTopOffset + childWidth + content.getMeasuredWidth(), in prepareContent()
DActionMenuView.java418 final int measuredWidth = child.getMeasuredWidth(); in measureChildForCells()
458 overflowWidth = v.getMeasuredWidth(); in onLayout()
480 final int size = v.getMeasuredWidth() + p.leftMargin + p.rightMargin; in onLayout()
493 final int width = v.getMeasuredWidth(); in onLayout()
515 int width = v.getMeasuredWidth(); in onLayout()
531 int width = v.getMeasuredWidth(); in onLayout()
DAbsoluteLayout.java79 childRight = lp.x + child.getMeasuredWidth(); in onMeasure()
125 childLeft + child.getMeasuredWidth(), in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java90 final int w = getMeasuredWidth(); in onLayout()
92 final int iconLeft = (w - mIcon.getMeasuredWidth()) / 2; in onLayout()
230 child.layout(left, top, left + child.getMeasuredWidth(), top + child.getMeasuredHeight()); in layout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DSignalTileView.java108 left = right - indicator.getMeasuredWidth(); in layoutIndicator()
111 right = left + indicator.getMeasuredWidth(); in layoutIndicator()

123456