/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/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationUndoLayout.java | 78 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/ |
D | SmartReplyViewTest.java | 297 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/ |
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 | 47 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/ |
D | NumPadKey.java | 149 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/ |
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 | 154 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/ |
D | TextViewPrecomputedTextPerfTest.java | 346 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/ |
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/legacy/recents/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/ |
D | HardwareUiLayout.java | 498 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/ |
D | GlobalActionsColumnLayoutTest.java | 190 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/ |
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/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsColumnLayout.java | 147 dialogSize = wrapper.getMeasuredWidth(); in shouldSnapToPowerButton() 148 screenSize = getMeasuredWidth(); in shouldSnapToPowerButton()
|
/frameworks/base/core/java/android/widget/ |
D | Toolbar.java | 1671 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 …]
|
D | SlidingDrawer.java | 301 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()
|
D | ActionMenuView.java | 418 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()
|
D | AbsoluteLayout.java | 79 childRight = lp.x + child.getMeasuredWidth(); in onMeasure() 125 childLeft + child.getMeasuredWidth(), in onLayout()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImpl.java | 90 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/ |
D | SignalTileView.java | 108 left = right - indicator.getMeasuredWidth(); in layoutIndicator() 111 right = left + indicator.getMeasuredWidth(); in layoutIndicator()
|