/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 | 352 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_shortChoices() 357 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_shortChoices() 389 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_choiceWithTwoLines() 394 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithTwoLines() 428 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_choiceWithThreeLines() 433 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithThreeLines() 453 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testMeasure_squeezeLongest() 470 expectedView.layout(10, 10, 10 + expectedView.getMeasuredWidth(), in testLayout_squeezeLongest() 475 MeasureSpec.makeMeasureSpec(expectedView.getMeasuredWidth(), MeasureSpec.AT_MOST), in testLayout_squeezeLongest() 477 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_squeezeLongest() [all …]
|
/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/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/packages/SystemUI/src/com/android/keyguard/ |
D | NumPadKey.java | 187 int width = getMeasuredWidth(); in onMeasure() 193 setMeasuredDimension(getMeasuredWidth(), height); in onMeasure() 203 int left = centerX - mDigitText.getMeasuredWidth() / 2; in onLayout() 205 mDigitText.layout(left, top, left + mDigitText.getMeasuredWidth(), bottom); in onLayout() 209 left = centerX - mKlondikeText.getMeasuredWidth() / 2; in onLayout() 210 mKlondikeText.layout(left, top, left + mKlondikeText.getMeasuredWidth(), bottom); in onLayout()
|
D | NumPadButton.java | 66 int width = getMeasuredWidth(); in onMeasure() 72 setMeasuredDimension(getMeasuredWidth(), height); in onMeasure()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ConversationHeaderLinearLayout.java | 65 totalLength += child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin; in calculateTotalChildLength() 74 final int containerWidth = getMeasuredWidth(); in onMeasure() 96 if (child.getMeasuredWidth() == 0) { in onMeasure() 177 this.mStartWidth = this.mWidth = view.getMeasuredWidth(); in ViewInfo()
|
D | ActionBarContainer.java | 96 bg.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in setPrimaryBackground() 131 mSplitBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in setSplitBackground() 309 setMeasuredDimension(getMeasuredWidth(), in onMeasure() 335 mSplitBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in onLayout() 342 mBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in onLayout()
|
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/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/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/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/services/autofill/java/com/android/server/autofill/ui/ |
D | BottomSheetLayout.java | 101 + getMeasuredWidth() / displayMetrics.density + ", getMeasuredHeight(): " in onMeasure() 104 setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight()); in onMeasure()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/ |
D | ReachabilityEduLayout.java | 150 if (leftAvailableSpace >= mMoveLeftButton.getMeasuredWidth()) { in handleLetterboxHorizontalPosition() 151 int newLeftMargin = (horizontalGap - mMoveLeftButton.getMeasuredWidth()) / 2; in handleLetterboxHorizontalPosition() 169 if (rightAvailableSpace >= mMoveRightButton.getMeasuredWidth()) { in handleLetterboxHorizontalPosition() 170 int newRightMargin = (horizontalGap - mMoveRightButton.getMeasuredWidth()) / 2; in handleLetterboxHorizontalPosition()
|
/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/globalactions/ |
D | GlobalActionsColumnLayout.java | 147 dialogSize = wrapper.getMeasuredWidth(); in shouldSnapToPowerButton() 148 screenSize = getMeasuredWidth(); in shouldSnapToPowerButton()
|
/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/android/view/ |
D | NotificationTopLineView.java | 132 totalWidth += lp.leftMargin + lp.rightMargin + child.getMeasuredWidth(); in onMeasure() 228 int end = start + child.getMeasuredWidth(); in onLayout() 426 final int oldWidth = targetView.getMeasuredWidth(); in adjust() 448 int oldDividerWidth = targetDivider.getMeasuredWidth(); in adjust() 456 final int regrowCurrentSize = mRegrowView.getMeasuredWidth(); in adjust()
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
D | GridInVerticalTest.java | 45 assertTrue("Grid has 0 width", mGridView.getMeasuredWidth() > 0); in testPreconditions()
|
D | GridInHorizontalTest.java | 45 assertTrue("Grid has 0 width", mGridView.getMeasuredWidth() > 0); in testPreconditions()
|
/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 | DayPickerViewPager.java | 72 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure() 114 getMeasuredWidth() - getPaddingLeft() - getPaddingRight(), in onMeasure()
|
D | AbsoluteLayout.java | 79 childRight = lp.x + child.getMeasuredWidth(); in onMeasure() 125 childLeft + child.getMeasuredWidth(), in onLayout()
|