Home
last modified time | relevance | path

Searched refs:widthMeasureSpec (Results 1 – 25 of 186) sorted by relevance

12345678

/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java57 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()
DPreferenceImageView.java49 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()
DWatchListDecorLayout.java112 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 …]
DNotificationOptimizedLinearLayout.java88 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 …]
DAlertDialogLayout.java70 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 …]
DButtonBarLayout.java64 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()
DDialogViewAnimator.java42 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()
DMessagingLinearLayout.java75 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/
DVariableDateView.kt64 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/
DResolverViewPager.java54 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/
DNoRemeasureMotionLayout.kt42 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/
DButtonBarLayout.java46 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/
DKeyboardShortcutAppItemLayout.java45 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/
DAlertDialogLayout.java69 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 …]
DButtonBarLayout.java62 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()
DDialogTitle.java50 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/
DBlingyNotification.kt48 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/
DTableLayout.java435 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 …]
DDayPickerViewPager.java53 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/
DUniqueObjectHostView.kt42 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/
DFixedAspectSurfaceView.java86 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/
DFixedAspectSurfaceView.java86 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/
DIgnorableChildLinearLayout.kt49 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/
DGradientsActivity.java105 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/
DPrintOptionsLayout.java54 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()

12345678