/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 57 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 62 final int widthMode = getMode(widthMeasureSpec); in onMeasure() 64 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure() 69 widthMeasureSpec = MeasureSpec.makeMeasureSpec(width, EXACTLY); in onMeasure() 77 widthMeasureSpec = MeasureSpec.makeMeasureSpec(weightedMin, EXACTLY); in onMeasure() 80 widthMeasureSpec = MeasureSpec.makeMeasureSpec(weightedMax, EXACTLY); in onMeasure() 88 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | PreferenceImageView.java | 49 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 50 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() 52 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 56 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, 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 123 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, 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 163 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY || in onMeasure() 174 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure() 205 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure() 216 measureAndGetHeight(mTopPanel, widthMeasureSpec, heightMeasureSpec)); in onMeasure() [all …]
|
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 129 if (requiresMatchParentRemeasureForVerticalLinearLayout(widthMeasureSpec)) { in isOptimizationPossible() 136 if (isHorizontal && MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY) { in isOptimizationPossible() 178 private boolean requiresMatchParentRemeasureForVerticalLinearLayout(int widthMeasureSpec) { in requiresMatchParentRemeasureForVerticalLinearLayout() argument 188 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY; in requiresMatchParentRemeasureForVerticalLinearLayout() 307 private void onMeasureOptimized(@NonNull View weightedChildView, int widthMeasureSpec, in onMeasureOptimized() argument [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 113 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in tryOnMeasure() 119 topPanel.measure(widthMeasureSpec, MeasureSpec.UNSPECIFIED); in tryOnMeasure() 128 buttonPanel.measure(widthMeasureSpec, MeasureSpec.UNSPECIFIED); in tryOnMeasure() 146 middlePanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure() 169 buttonPanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure() 189 middlePanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure() [all …]
|
D | ButtonBarLayout.java | 64 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 65 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 82 if (!isStacked() && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { in onMeasure() 88 initialWidthMeasureSpec = widthMeasureSpec; in onMeasure() 105 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
D | DialogViewAnimator.java | 42 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 44 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY || in onMeasure() 64 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure() 102 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure() 119 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in onMeasure()
|
D | MessagingLinearLayout.java | 75 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 78 trackMeasureSpecs(widthMeasureSpec, 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() 192 widthMeasureSpec), in onMeasure() local 260 private void trackMeasureSpecs(int widthMeasureSpec, int heightMeasureSpec) { in trackMeasureSpecs() argument 265 final int availableWidth = MeasureSpec.getSize(widthMeasureSpec); in trackMeasureSpecs() 266 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in trackMeasureSpecs()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | VariableDateView.kt | 64 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure() 65 val availableWidth = MeasureSpec.getSize(widthMeasureSpec) - paddingStart - paddingEnd in onMeasure() 66 if (MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.UNSPECIFIED && !freezeSwitching) { in onMeasure() 67 onMeasureListener?.onMeasureAction(availableWidth, widthMeasureSpec) in onMeasure() 69 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure() 77 fun onMeasureAction(availableWidth: Int, widthMeasureSpec: Int)
|
/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() 59 widthMeasureSpec = MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.EXACTLY); in onMeasure() 64 child.measure(widthMeasureSpec, 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() 44 lastWidthSpec == widthMeasureSpec && in onMeasure() 52 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure() 53 lastWidthSpec = widthMeasureSpec in onMeasure()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | ButtonBarLayout.java | 46 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 47 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 53 int initialWidthMeasureSpec = widthMeasureSpec; in onMeasure() 54 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { in onMeasure() 73 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyboardShortcutAppItemLayout.java | 45 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 46 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { in onMeasure() 49 int totalMeasuredWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 58 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 112 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in tryOnMeasure() 118 topPanel.measure(widthMeasureSpec, MeasureSpec.UNSPECIFIED); in tryOnMeasure() 127 buttonPanel.measure(widthMeasureSpec, MeasureSpec.UNSPECIFIED); in tryOnMeasure() 145 middlePanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure() 168 buttonPanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure() 188 middlePanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure() [all …]
|
D | ButtonBarLayout.java | 62 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 63 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 80 if (!isStacked() && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { in onMeasure() 86 initialWidthMeasureSpec = widthMeasureSpec; in onMeasure() 103 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
|
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/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() 51 val widthMode = MeasureSpec.getMode(widthMeasureSpec) in onMeasure() 56 val width = MeasureSpec.getSize(widthMeasureSpec) in onMeasure() 64 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
|
/frameworks/base/core/java/android/widget/ |
D | TableLayout.java | 435 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 437 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure() 454 int widthMeasureSpec, int totalWidth, 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() 472 shrinkAndStretchColumns(widthMeasureSpec); 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() [all …]
|
D | DayPickerViewPager.java | 53 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 60 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY || in onMeasure() 70 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure() 99 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure() 117 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, 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() 45 val width = MeasureSpec.getSize(widthMeasureSpec) - paddingHorizontal in onMeasure() 46 val widthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.getMode(widthMeasureSpec)) in onMeasure() 57 super.onMeasure(widthMeasureSpec, 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 88 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() 90 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 143 width = View.resolveSizeAndState(width, widthMeasureSpec, 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 88 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() 90 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 143 width = View.resolveSizeAndState(width, widthMeasureSpec, 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() 51 MeasureSpec.makeMeasureSpec(widthMeasureSpec, MeasureSpec.UNSPECIFIED) in onMeasure() 52 } else widthMeasureSpec 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/packages/PrintSpooler/src/com/android/printspooler/widget/ |
D | PrintOptionsLayout.java | 54 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument 55 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() 56 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() 93 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in onMeasure() 121 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, childState), in onMeasure()
|