Home
last modified time | relevance | path

Searched refs:getMeasuredHeight (Results 1 – 25 of 162) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DMessagingLinearLayoutTest.java60 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testSingleChild()
63 assertEquals(150, mView.getMeasuredHeight()); in testSingleChild()
75 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeSmall()
79 assertEquals(205, mView.getMeasuredHeight()); in testLargeSmall()
91 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testSmallSmall()
95 assertEquals(105, mView.getMeasuredHeight()); in testSmallSmall()
107 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeLarge()
111 assertEquals(350, mView.getMeasuredHeight()); in testLargeLarge()
123 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeSmall_largeWrapsWith3indentbutNotFullHeight_andHitsMax()
127 assertEquals(355, mView.getMeasuredHeight());; in testLargeSmall_largeWrapsWith3indentbutNotFullHeight_andHitsMax()
[all …]
DImageFloatingTextViewTest.java131 mView.getMeasuredHeight() <= mTextView.getMeasuredHeight()); in parametrizedTest()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java238 mClosedOptionsOffsetY = mSummaryContent.getMeasuredHeight() in onMeasure()
239 - mDraggableContent.getMeasuredHeight(); in onMeasure()
250 params.height = heightSize - mStaticContent.getMeasuredHeight() in onMeasure()
251 - mSummaryContent.getMeasuredHeight() - mDynamicContent.getMeasuredHeight() in onMeasure()
252 + mDraggableContent.getMeasuredHeight(); in onMeasure()
257 if (mOldDraggableHeight != mDraggableContent.getMeasuredHeight()) { in onMeasure()
261 mOldDraggableHeight = mDraggableContent.getMeasuredHeight(); in onMeasure()
274 mStaticContent.layout(left, top, right, mStaticContent.getMeasuredHeight()); in onLayout()
277 mSummaryContent.layout(left, mStaticContent.getMeasuredHeight(), right, in onLayout()
278 mStaticContent.getMeasuredHeight() + mSummaryContent.getMeasuredHeight()); in onLayout()
[all …]
DPrintOptionsLayout.java107 rowHeight = Math.max(rowHeight, child.getMeasuredHeight() + childParams.topMargin in onMeasure()
162 final int childBottom = childTop + child.getMeasuredHeight(); in onLayout()
168 rowHeight = Math.max(rowHeight, child.getMeasuredHeight() in onLayout()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DAlertDialogLayout.java120 usedHeight += topPanel.getMeasuredHeight(); in tryOnMeasure()
129 buttonWantsHeight = buttonPanel.getMeasuredHeight() - buttonHeight; in tryOnMeasure()
146 middleHeight = middlePanel.getMeasuredHeight(); in tryOnMeasure()
170 usedHeight += buttonPanel.getMeasuredHeight(); in tryOnMeasure()
190 usedHeight += middlePanel.getMeasuredHeight(); in tryOnMeasure()
237 lp.height = child.getMeasuredHeight(); in forceUniformWidth()
285 final int totalLength = getMeasuredHeight(); in onLayout()
317 final int childHeight = child.getMeasuredHeight(); in onLayout()
/frameworks/base/core/java/com/android/internal/widget/
DAlertDialogLayout.java121 usedHeight += topPanel.getMeasuredHeight(); in tryOnMeasure()
130 buttonWantsHeight = buttonPanel.getMeasuredHeight() - buttonHeight; in tryOnMeasure()
147 middleHeight = middlePanel.getMeasuredHeight(); in tryOnMeasure()
171 usedHeight += buttonPanel.getMeasuredHeight(); in tryOnMeasure()
191 usedHeight += middlePanel.getMeasuredHeight(); in tryOnMeasure()
238 lp.height = child.getMeasuredHeight(); in forceUniformWidth()
284 final int totalLength = getMeasuredHeight(); in onLayout()
316 final int childHeight = child.getMeasuredHeight(); in onLayout()
DActionBarContainer.java96 bg.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in setPrimaryBackground()
131 mSplitBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in setSplitBackground()
275 return view == null || view.getVisibility() == GONE || view.getMeasuredHeight() == 0; in isCollapsed()
280 return view.getMeasuredHeight() + lp.topMargin + lp.bottomMargin; in getMeasuredHeightWithMargins()
325 final int containerHeight = getMeasuredHeight(); in onLayout()
327 final int tabHeight = tabContainer.getMeasuredHeight(); in onLayout()
335 mSplitBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in onLayout()
342 mBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in onLayout()
/frameworks/base/core/java/com/android/internal/app/
DResolverViewPager.java60 int height = getMeasuredHeight(); in onMeasure()
66 if (maxHeight < child.getMeasuredHeight()) { in onMeasure()
67 maxHeight = child.getMeasuredHeight(); in onMeasure()
/frameworks/base/test-runner/src/android/test/
DViewAsserts.java219 int firstBottom = xy[1] + first.getMeasuredHeight(); in assertBottomAligned()
222 int secondBottom = xy[1] + second.getMeasuredHeight(); in assertBottomAligned()
238 int firstBottom = xy[1] + first.getMeasuredHeight(); in assertBottomAligned()
241 int secondBottom = xy[1] + second.getMeasuredHeight(); in assertBottomAligned()
319 int center = (reference.getMeasuredHeight() - test.getMeasuredHeight()) / 2; in assertVerticalCenterAligned()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/
DFillContentLayoutTest.java48 assertThat(layout.getMeasuredHeight()).isEqualTo(123); in testMeasureMinSize()
67 assertThat(child.getMeasuredHeight()).isEqualTo(123); in testMeasureChildIsSmallerThanMaxSize()
86 assertThat(child.getMeasuredHeight()).isEqualTo(88); in testMeasureChildIsSmallerThanParent()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DFillInWrapTest.java53 mChild.getMeasuredHeight() < mContainer.getMeasuredHeight()); in testLayout()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java353 10 + expectedView.getMeasuredHeight()); in testLayout_shortChoices()
357 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_shortChoices()
390 10 + expectedView.getMeasuredHeight()); in testLayout_choiceWithTwoLines()
394 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithTwoLines()
429 10 + expectedView.getMeasuredHeight()); in testLayout_choiceWithThreeLines()
433 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithThreeLines()
471 10 + expectedView.getMeasuredHeight()); in testLayout_squeezeLongest()
477 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_squeezeLongest()
495 10 + expectedView.getMeasuredHeight()); in testMeasure_dropLongest()
501 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testMeasure_dropLongest()
[all …]
/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/packages/SettingsLib/src/com/android/settingslib/notification/
DZenRadioLayout.java59 if (radio.getLayoutParams().height != content.getMeasuredHeight()) { in onMeasure()
61 radio.getLayoutParams().height = content.getMeasuredHeight(); in onMeasure()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DBottomSheetLayout.java102 + getMeasuredHeight() / displayMetrics.density); in onMeasure()
104 setMeasuredDimension(getMeasuredWidth(), getMeasuredHeight()); in onMeasure()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DReachabilityEduLayout.java201 if (topAvailableSpace >= mMoveUpButton.getMeasuredHeight()) { in handleLetterboxVerticalPosition()
202 int newTopMargin = (verticalGap - mMoveUpButton.getMeasuredHeight()) / 2; in handleLetterboxVerticalPosition()
220 if (bottomAvailableSpace >= mMoveDownButton.getMeasuredHeight()) { in handleLetterboxVerticalPosition()
221 int newBottomMargin = (verticalGap - mMoveDownButton.getMeasuredHeight()) / 2; in handleLetterboxVerticalPosition()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFlowLayout.java60 lineHeight = Math.max(lineHeight, child.getMeasuredHeight()); in onMeasure()
101 final int childHeight = child.getMeasuredHeight(); in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java339 quickTileView.getMeasuredHeight(), tileView.getMeasuredHeight()); in updateAnimators()
340 mLastQQSTileHeight = quickTileView.getMeasuredHeight(); in updateAnimators()
410 this, mLastQQSTileHeight, tileView.getMeasuredHeight()); in updateAnimators()
500 int centerDiff = (tileView.getMeasuredHeight() - mLastQQSTileHeight) / 2; in createSecondaryPageAnimators()
507 secondaryLabelOffset = tileView.getSecondaryLabel().getMeasuredHeight() / 2; in createSecondaryPageAnimators()
536 this, mLastQQSTileHeight, tileView.getMeasuredHeight()); in createSecondaryPageAnimators()
587 float scaleCompensation = qsBrightness.getMeasuredHeight() * 0.5f; in animateBrightnessSlider()
843 v.setBottom(v.getTop() + v.getMeasuredHeight()); in resetViewsHeights()
DPseudoGridView.java92 maxHeight = Math.max(maxHeight, child.getMeasuredHeight()); in onMeasure()
97 if (child.getMeasuredHeight() != maxHeight) { in onMeasure()
124 int height = child.getMeasuredHeight(); in onLayout()
DTileLayout.java220 mCellHeight = record.tileView.getMeasuredHeight(); in onMeasure()
269 mEstimatedCellHeight = mTempTextView.getMeasuredHeight() * 2 + padding * 2; in estimateCellHeight()
301 final int bottom = top + record.tileView.getMeasuredHeight(); in layoutTileRecords()
312 mLastTileBottom = top + (int) (record.tileView.getMeasuredHeight() * scale); in layoutTileRecords()
/frameworks/base/core/java/android/widget/
DToolbar.java1684 child.getMeasuredHeight() > 0) { in shouldCollapse()
1715 height = Math.max(height, mNavButtonView.getMeasuredHeight() + in onMeasure()
1725 height = Math.max(height, mCollapseButtonView.getMeasuredHeight() + in onMeasure()
1739 height = Math.max(height, mMenuView.getMeasuredHeight() + in onMeasure()
1751 height = Math.max(height, mExpandedActionView.getMeasuredHeight() + in onMeasure()
1759 height = Math.max(height, mLogoView.getMeasuredHeight() + in onMeasure()
1775 height = Math.max(height, child.getMeasuredHeight() + getVerticalMargins(child)); in onMeasure()
1788 titleHeight = mTitleTextView.getMeasuredHeight() + getVerticalMargins(mTitleTextView); in onMeasure()
1796 titleHeight += mSubtitleTextView.getMeasuredHeight() + in onMeasure()
1900 titleHeight += lp.topMargin + mTitleTextView.getMeasuredHeight() + lp.bottomMargin; in onLayout()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsColumnLayout.java144 dialogSize = wrapper.getMeasuredHeight(); in shouldSnapToPowerButton()
145 screenSize = getMeasuredHeight(); in shouldSnapToPowerButton()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsColumnLayoutTest.java174 doReturn(1000).when(mColumnLayout).getMeasuredHeight(); in testShouldSnapToPowerButton_vertical()
177 doReturn(500).when(wrapper).getMeasuredHeight(); in testShouldSnapToPowerButton_vertical()
181 doReturn(600).when(mColumnLayout).getMeasuredHeight(); in testShouldSnapToPowerButton_vertical()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsDialogMeasureAdapter.java164 totalHeight += child.getMeasuredHeight(); in onMeasureInternalPortrait()
182 int newHeight = bodyContent.getMeasuredHeight() + currHeight; in measureDescription()
189 return bodyContent.getMeasuredHeight(); in measureDescription()
263 remeasuredHeight += child.getMeasuredHeight(); in onMeasureInternalLandscape()
272 return view != null && view.getVisibility() != View.GONE ? view.getMeasuredHeight() : 0; in getViewHeightPx()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridInVerticalTest.java46 assertTrue("Grid has 0 height", mGridView.getMeasuredHeight() > 0); in testPreconditions()

1234567