Home
last modified time | relevance | path

Searched refs:measuredWidth (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/ui/view/
DChipChronometerTest.kt76 assertThat(textView.measuredWidth).isGreaterThan(0) in onMeasure_initialTextFitsInSpace_textDisplayed()
81 val initialTextLength = textView.measuredWidth in onMeasure_newTextLargerThanPreviousText_widthGetsLarger()
85 assertThat(textView.measuredWidth).isGreaterThan(initialTextLength) in onMeasure_newTextLargerThanPreviousText_widthGetsLarger()
91 val xlWidth = textView.measuredWidth in onMeasure_newTextSmallerThanPreviousText_widthDoesNotGetSmaller()
95 assertThat(textView.measuredWidth).isEqualTo(xlWidth) in onMeasure_newTextSmallerThanPreviousText_widthDoesNotGetSmaller()
102 assertThat(textView.measuredWidth).isEqualTo(0) in onMeasure_textDoesNotFit_textHidden()
111 assertThat(textView.measuredWidth).isEqualTo(0) in onMeasure_newTextFitsButPreviousTextDidNot_textHidden()
117 val xlWidth = textView.measuredWidth in resetBase_hadLongerTextThenSetBaseThenShorterText_widthIsShort()
122 assertThat(textView.measuredWidth).isLessThan(xlWidth) in resetBase_hadLongerTextThenSetBaseThenShorterText_widthIsShort()
123 assertThat(textView.measuredWidth).isGreaterThan(0) in resetBase_hadLongerTextThenSetBaseThenShorterText_widthIsShort()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DClockTest.kt57 val width1 = clockView.measuredWidth in testWidthDoesNotDecrease_sameCharLength()
62 val width2 = clockView.measuredWidth in testWidthDoesNotDecrease_sameCharLength()
73 val width1 = clockView.measuredWidth in testWidthDoesNotDecrease_narrowerFont_sameNumberOfChars()
78 val width2 = clockView.measuredWidth in testWidthDoesNotDecrease_narrowerFont_sameNumberOfChars()
89 val width1 = clockView.measuredWidth in testWidthIncreases_whenCharsChanges()
94 val width2 = clockView.measuredWidth in testWidthIncreases_whenCharsChanges()
105 val width1 = clockView.measuredWidth in testWidthDecreases_whenCharsChange_longToShort()
110 val width2 = clockView.measuredWidth in testWidthDecreases_whenCharsChange_longToShort()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaHostStatesManager.kt84 if (it.measuredWidth > result.measuredWidth) { in updateCarouselDimensions()
85 result.measuredWidth = it.measuredWidth in updateCarouselDimensions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DIgnorableChildLinearLayout.kt65 setMeasuredDimension(measuredWidth, measuredHeight - height) in onMeasure()
67 val width = lastView.measuredWidth + lp.leftMargin + lp.rightMargin in onMeasure()
68 setMeasuredDimension(measuredWidth - width, measuredHeight) in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DUniqueObjectHostView.kt76 if (child.measuredWidth == 0 || measuredWidth == 0 || child.requiresRemeasuring == true) { in addView()
92 left + measuredWidth - paddingHorizontal, in addView()
DTransitionLayout.kt150 if (child.measuredWidth != widgetState.measureWidth || in applyCurrentState()
157 child.layout(0, 0, child.measuredWidth, child.measuredHeight) in applyCurrentState()
219 child.layout(0, 0, child.measuredWidth, child.measuredHeight) in onLayout()
259 val previousWidth = measuredWidth in calculateViewState()
266 layout(layoutLeft, layoutTop, layoutLeft + measuredWidth, layoutTop + measuredHeight) in calculateViewState()
370 width = transitionLayout.measuredWidth in initFromLayout()
DMeasurementInput.kt25 var measuredWidth: Int, variable in com.android.systemui.util.animation.MeasurementOutput
/frameworks/base/core/java/android/app/
DMediaRouteButton.java290 int measuredWidth; in onMeasure() local
293 measuredWidth = widthSize; in onMeasure()
296 measuredWidth = Math.min(widthSize, width); in onMeasure()
300 measuredWidth = width; in onMeasure()
318 setMeasuredDimension(measuredWidth, measuredHeight); in onMeasure()
/frameworks/base/core/java/com/android/internal/widget/
DButtonBarLayout.java94 final int measuredWidth = getMeasuredWidthAndState(); in onMeasure() local
95 final int measuredWidthState = measuredWidth & MEASURED_STATE_MASK; in onMeasure()
DMessagingLinearLayout.java90 int measuredWidth = mPaddingLeft + mPaddingRight; in onMeasure() local
167 measuredWidth = Math.max(measuredWidth, in onMeasure()
191 resolveSize(Math.max(getSuggestedMinimumWidth(), measuredWidth), in onMeasure() local
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DButtonBarLayout.java92 final int measuredWidth = getMeasuredWidthAndState(); in onMeasure() local
93 final int measuredWidthState = measuredWidth & MEASURED_STATE_MASK; in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/view/
DChipBackgroundContainer.kt45 setMeasuredDimension(measuredWidth, chosenHeight) in onMeasure()
DChipChronometer.kt77 val desiredTextWidth = measuredWidth in onMeasure()
/frameworks/base/tests/InputScreenshotTest/src/android/input/screenshot/
DBitmap.kt32 measuredWidth, in View()
/frameworks/base/packages/SettingsLib/Spa/screenshot/src/com/android/settingslib/spa/screenshot/util/
DBitmap.kt32 measuredWidth, in View()
/frameworks/base/graphics/java/android/graphics/
DPaint.java2709 float maxWidth, float[] measuredWidth) { in breakText() argument
2722 measuredWidth); in breakText()
2728 mBidiFlags, measuredWidth); in breakText()
2730 if (measuredWidth != null) measuredWidth[0] *= mInvCompatScaling; in breakText()
2752 float maxWidth, float[] measuredWidth) { in breakText() argument
2765 measuredWidth); in breakText()
2774 result = breakText(buf, 0, end - start, maxWidth, measuredWidth); in breakText()
2776 result = breakText(buf, 0, -(end - start), maxWidth, measuredWidth); in breakText()
2800 float maxWidth, float[] measuredWidth) { in breakText() argument
2810 maxWidth, mBidiFlags, measuredWidth); in breakText()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/
DScreenDecorationsLogger.kt101 measuredWidth: Int, in onMeasureDimensions()
110 int1 = measuredWidth in onMeasureDimensions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNoRemeasureMotionLayout.kt48 setMeasuredDimension(measuredWidth, measuredHeight) in onMeasure()
DNeverExactlyLinearLayout.kt39 val newWidth = if (widthExactly) width else measuredWidth in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DBiometricCustomizedViewBinder.kt305 if (measuredWidth > 0) { in getListItemBulletRadius()
308 function(measuredWidth) in getListItemBulletRadius()
312 else function(measuredWidth) in getListItemBulletRadius()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DFaceScanningOverlay.kt184 val measuredWidth = resolveSizeAndState(mTotalBounds.width(), widthMeasureSpec, 0) in onMeasure() constant
191 measuredWidth, in onMeasure()
193 setMeasuredDimension(measuredWidth, measuredHeight) in onMeasure()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuView.java412 int measuredWidth = resolveSize(Integer.MAX_VALUE, widthMeasureSpec); in onMeasure() local
413 calculateItemFittingMetadata(measuredWidth); in onMeasure()
414 layoutItems(measuredWidth); in onMeasure()
423 setMeasuredDimension(measuredWidth, in onMeasure()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/
DBitmapUtils.kt65 val bitmap = Bitmap.createBitmap(view.measuredWidth, view.measuredHeight, config) in generateBitmapFromView()
/frameworks/base/core/java/android/widget/
DActionMenuPresenter.java696 final int measuredWidth = v.getMeasuredWidth(); in flagActionItems() local
697 widthLimit -= measuredWidth; in flagActionItems()
699 firstActionWidth = measuredWidth; in flagActionItems()
726 final int measuredWidth = v.getMeasuredWidth(); in flagActionItems() local
727 widthLimit -= measuredWidth; in flagActionItems()
729 firstActionWidth = measuredWidth; in flagActionItems()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/ribbon/ui/composable/
DRibbon.kt85 width = placeable.measuredWidth + leftPadding + rightPadding, in <lambda>()

123