/frameworks/base/core/java/com/android/internal/widget/ |
D | NotificationMaxHeightFrameLayout.java | 61 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 62 if (MeasureSpec.getSize(heightMeasureSpec) > mNotificationMaxHeight) { in onMeasure() 63 final int mode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 64 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mNotificationMaxHeight, mode); in onMeasure() 66 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | PreferenceImageView.java | 49 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 60 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 62 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 66 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); in onMeasure() 70 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | WatchListDecorLayout.java | 112 private void applyMeasureToChild(View child, int widthMeasureSpec, int heightMeasureSpec) { in applyMeasureToChild() argument 137 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, in applyMeasureToChild() 146 private int measureAndGetHeight(View child, int widthMeasureSpec, int heightMeasureSpec) { in measureAndGetHeight() argument 149 applyMeasureToChild(mBottomPanel, widthMeasureSpec, heightMeasureSpec); in measureAndGetHeight() 152 applyMeasureToChild(mBottomPanel, widthMeasureSpec, heightMeasureSpec); in measureAndGetHeight() 159 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 164 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY; in onMeasure() 174 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure() 206 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure() 216 measureAndGetHeight(mTopPanel, widthMeasureSpec, heightMeasureSpec)); in onMeasure() [all …]
|
D | AlertDialogLayout.java | 70 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 71 if (!tryOnMeasure(widthMeasureSpec, heightMeasureSpec)) { in onMeasure() 73 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 77 private boolean tryOnMeasure(int widthMeasureSpec, int heightMeasureSpec) { in tryOnMeasure() argument 111 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in tryOnMeasure() 112 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in tryOnMeasure() 207 final int heightSizeAndState = resolveSizeAndState(usedHeight, heightMeasureSpec, 0); in tryOnMeasure() 213 forceUniformWidth(count, heightMeasureSpec); in tryOnMeasure() 225 private void forceUniformWidth(int count, int heightMeasureSpec) { in forceUniformWidth() argument 241 measureChildWithMargins(child, uniformMeasureSpec, 0, heightMeasureSpec, 0); in forceUniformWidth()
|
D | NotificationOptimizedLinearLayout.java | 88 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 92 && isOptimizationPossible(widthMeasureSpec, heightMeasureSpec); in onMeasure() 95 onMeasureOptimized(weightedChildView, widthMeasureSpec, heightMeasureSpec); in onMeasure() 97 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 122 private boolean isOptimizationPossible(int widthMeasureSpec, int heightMeasureSpec) { in isOptimizationPossible() argument 308 int heightMeasureSpec) { in onMeasureOptimized() argument 323 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasureOptimized() 329 measureVerticalOptimized(weightedChildView, widthMeasureSpec, heightMeasureSpec); in onMeasureOptimized() 366 int heightMeasureSpec) { in measureVerticalOptimized() argument 369 final int availableHeight = MeasureSpec.getSize(heightMeasureSpec); in measureVerticalOptimized() [all …]
|
D | MessagingLinearLayout.java | 75 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 78 trackMeasureSpecs(widthMeasureSpec, heightMeasureSpec); in onMeasure() 82 int targetHeight = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 83 switch (MeasureSpec.getMode(heightMeasureSpec)) { in onMeasure() 131 measureChildWithMargins(previousView, widthMeasureSpec, 0, heightMeasureSpec, in onMeasure() 141 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, totalHeight in onMeasure() 180 measureChildWithMargins(previousView, widthMeasureSpec, 0, heightMeasureSpec, in onMeasure() 260 private void trackMeasureSpecs(int widthMeasureSpec, int heightMeasureSpec) { in trackMeasureSpecs() argument 267 final int availableHeight = MeasureSpec.getSize(heightMeasureSpec); in trackMeasureSpecs() 268 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in trackMeasureSpecs()
|
D | DialogViewAnimator.java | 42 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 45 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY; in onMeasure() 64 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure() 103 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure() 131 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, in onMeasure()
|
D | DialogTitle.java | 51 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 52 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 74 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | NotificationActionListLayout.java | 131 private int measureAndReturnEvenlyDividedWidth(int heightMeasureSpec, int innerWidth) { in measureAndReturnEvenlyDividedWidth() argument 160 child.measure(childWidthMeasureSpec, heightMeasureSpec); in measureAndReturnEvenlyDividedWidth() 167 private int measureAndGetUsedWidth(int widthMeasureSpec, int heightMeasureSpec, int innerWidth, in measureAndGetUsedWidth() argument 228 heightMeasureSpec, 0 /* usedHeight */); in measureAndGetUsedWidth() 248 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 253 usedWidth = measureAndReturnEvenlyDividedWidth(heightMeasureSpec, innerWidth); in onMeasure() 255 usedWidth = measureAndGetUsedWidth(widthMeasureSpec, heightMeasureSpec, innerWidth, in onMeasure() 258 usedWidth = measureAndGetUsedWidth(widthMeasureSpec, heightMeasureSpec, innerWidth, in onMeasure() 265 resolveSize(getSuggestedMinimumHeight(), heightMeasureSpec)); in onMeasure() local
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverViewPager.java | 54 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 55 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 56 if (MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.AT_MOST) { in onMeasure() 73 heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY); in onMeasure() 74 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NoRemeasureMotionLayout.kt | 42 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 45 lastHeightSpec == heightMeasureSpec && in onMeasure() 52 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure() 54 lastHeightSpec = heightMeasureSpec in onMeasure()
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | FlowLayout.java | 36 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 40 MeasureSpec.getSize(heightMeasureSpec) - getPaddingTop() - getPaddingBottom(); in onMeasure() 48 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure() 72 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.UNSPECIFIED) { in onMeasure() 74 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
|
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/ |
D | BlingyNotification.kt | 48 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 49 val image = image ?: return super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure() 52 val heightMode = MeasureSpec.getMode(heightMeasureSpec) in onMeasure() 60 height = minOf(MeasureSpec.getSize(heightMeasureSpec), height) in onMeasure() 64 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | AlertDialogLayout.java | 69 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 70 if (!tryOnMeasure(widthMeasureSpec, heightMeasureSpec)) { in onMeasure() 72 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 76 private boolean tryOnMeasure(int widthMeasureSpec, int heightMeasureSpec) { in tryOnMeasure() argument 110 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in tryOnMeasure() 111 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in tryOnMeasure() 206 final int heightSizeAndState = resolveSizeAndState(usedHeight, heightMeasureSpec, 0); in tryOnMeasure() 212 forceUniformWidth(count, heightMeasureSpec); in tryOnMeasure() 224 private void forceUniformWidth(int count, int heightMeasureSpec) { in forceUniformWidth() argument 240 measureChildWithMargins(child, uniformMeasureSpec, 0, heightMeasureSpec, 0); in forceUniformWidth()
|
D | DialogTitle.java | 50 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 51 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 73 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | UniqueObjectHostView.kt | 42 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 47 val height = MeasureSpec.getSize(heightMeasureSpec) - paddingVertical in onMeasure() 48 val heightSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.getMode(heightMeasureSpec)) in onMeasure() 57 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
|
D | MeasurementInput.kt | 34 var heightMeasureSpec: Int variable in com.android.systemui.util.animation.MeasurementInput 42 return View.MeasureSpec.getSize(heightMeasureSpec)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/ui/view/ |
D | ChipChronometer.kt | 69 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 76 super.onMeasure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), heightMeasureSpec) in onMeasure() 92 setMeasuredDimension(minimumTextWidth, MeasureSpec.getSize(heightMeasureSpec)) in onMeasure()
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | FixedAspectSurfaceView.java | 86 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 89 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 91 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 144 height = View.resolveSizeAndState(height, heightMeasureSpec, 0); in onMeasure()
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | FixedAspectSurfaceView.java | 86 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 89 int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure() 91 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() 144 height = View.resolveSizeAndState(height, heightMeasureSpec, 0); in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | IgnorableChildLinearLayout.kt | 49 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 55 MeasureSpec.makeMeasureSpec(heightMeasureSpec, MeasureSpec.UNSPECIFIED) in onMeasure() 56 } else heightMeasureSpec in onMeasure()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | GradientsActivity.java | 105 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 106 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 130 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 131 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 155 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 156 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 179 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 180 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerViewPager.java | 53 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 61 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY; in onMeasure() 70 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure() 100 resolveSizeAndState(maxHeight, heightMeasureSpec, in onMeasure() 127 childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, in onMeasure()
|
D | TableLayout.java | 435 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 437 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure() 455 int heightMeasureSpec, int totalHeight) { in measureChildBeforeLayout() argument 463 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout() 470 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument 471 findLargestCells(widthMeasureSpec, heightMeasureSpec); in measureVertical() 474 super.measureVertical(widthMeasureSpec, heightMeasureSpec); in measureVertical() 483 private void findLargestCells(int widthMeasureSpec, int heightMeasureSpec) { in findLargestCells() argument 506 final int[] widths = row.getColumnsWidths(widthMeasureSpec, heightMeasureSpec); in findLargestCells()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ImageFloatingTextViewTest.java | 119 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(500, MeasureSpec.AT_MOST); in parametrizedTest() local 125 mTextView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest() 126 mView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest()
|