Home
last modified time | relevance | path

Searched refs:heightMeasureSpec (Results 1 – 25 of 176) sorted by relevance

12345678

/frameworks/base/core/java/com/android/internal/widget/
DNotificationMaxHeightFrameLayout.java61 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()
DPreferenceImageView.java49 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()
DWatchListDecorLayout.java112 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 …]
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
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()
DDialogViewAnimator.java42 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()
DDialogTitle.java51 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
52 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
74 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DWeightedLinearLayout.java57 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
64 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
88 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/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()
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/
DNoRemeasureMotionLayout.kt41 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure()
44 lastHeightSpec == heightMeasureSpec && in onMeasure()
51 super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure()
53 lastHeightSpec = heightMeasureSpec in onMeasure()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DFlowLayout.java36 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/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()
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/SystemUI/src/com/android/systemui/util/animation/
DUniqueObjectHostView.kt42 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()
DMeasurementInput.kt34 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/phone/ongoingcall/
DOngoingCallChronometer.kt71 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure()
80 heightMeasureSpec) in onMeasure()
96 setMeasuredDimension(minimumTextWidth, MeasureSpec.getSize(heightMeasureSpec)) in onMeasure()
/frameworks/base/tests/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/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DFixedAspectSurfaceView.java86 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/
DFixedAspectSurfaceView.java86 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/
DIgnorableChildLinearLayout.kt49 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure()
55 MeasureSpec.makeMeasureSpec(heightMeasureSpec, MeasureSpec.UNSPECIFIED) in onMeasure()
56 } else heightMeasureSpec in onMeasure()
/frameworks/base/core/java/android/widget/
DDayPickerViewPager.java53 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()
DTableLayout.java435 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()
DTableRow.java112 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
114 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure()
193 int heightMeasureSpec, int totalHeight) { in measureChildBeforeLayout() argument
219 int childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, in measureChildBeforeLayout()
248 totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout()
288 int[] getColumnsWidths(int widthMeasureSpec, int heightMeasureSpec) { in getColumnsWidths() argument
308 MeasureSpec.getSize(heightMeasureSpec), in getColumnsWidths()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DImageFloatingTextViewTest.java119 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutKeysLayout.java45 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
48 int height = MeasureSpec.getSize(heightMeasureSpec) - getPaddingTop() - getPaddingBottom(); in onMeasure()
54 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
79 if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.UNSPECIFIED) { in onMeasure()
81 } else if (MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DButtonBarLayout.java46 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
63 super.onMeasure(initialWidthMeasureSpec, heightMeasureSpec); in onMeasure()
73 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DZenRadioLayout.java39 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
40 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
66 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()

12345678