Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/com/android/internal/widget/
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 …]
DPreferenceImageView.java48 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
59 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
61 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
65 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); in onMeasure()
69 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
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()
DImageFloatingTextView.java120 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
121 int availableHeight = MeasureSpec.getSize(heightMeasureSpec) - mPaddingTop - mPaddingBottom; in onMeasure()
128 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
144 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DActionBarContainer.java285 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
287 MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST && mHeight >= 0) { in onMeasure()
288 heightMeasureSpec = MeasureSpec.makeMeasureSpec( in onMeasure()
289 Math.min(mHeight, MeasureSpec.getSize(heightMeasureSpec)), MeasureSpec.AT_MOST); in onMeasure()
291 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
306 final int mode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
308 MeasureSpec.getSize(heightMeasureSpec) : Integer.MAX_VALUE; in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSHeaderInfoLayout.kt74 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure()
78 heightMeasureSpec) in onMeasure()
94 heightMeasureSpec) in onMeasure()
100 heightMeasureSpec) in onMeasure()
105 heightMeasureSpec) in onMeasure()
109 heightMeasureSpec) in onMeasure()
DAutoSizingList.java64 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
65 int requestedHeight = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
73 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DTileLayout.java101 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
108 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); in onMeasure()
139 public boolean updateMaxRows(int heightMeasureSpec, int tilesCount) { in updateMaxRows() argument
140 final int availableHeight = MeasureSpec.getSize(heightMeasureSpec) - mCellMarginTop in updateMaxRows()
/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/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/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
DErrorCatcher.java53 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
58 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure()
61 resolveSize(child.getMeasuredHeight(), heightMeasureSpec)); in onMeasure() local
66 resolveSize(0, 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/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()
DTabWidget.java158 int heightMeasureSpec, int totalHeight) { in measureChildBeforeLayout() argument
162 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mImposedTabsHeight, in measureChildBeforeLayout()
167 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout()
171 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument
173 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
182 super.measureHorizontal(unspecifiedWidth, heightMeasureSpec); in measureHorizontal()
216 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
/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()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java223 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
226 measureChild(mStaticContent, widthMeasureSpec, heightMeasureSpec); in onMeasure()
229 measureChild(mSummaryContent, widthMeasureSpec, heightMeasureSpec); in onMeasure()
232 measureChild(mDynamicContent, widthMeasureSpec, heightMeasureSpec); in onMeasure()
234 measureChild(mPrintButton, widthMeasureSpec, heightMeasureSpec); in onMeasure()
245 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
269 resolveSize(heightSize, heightMeasureSpec)); in onMeasure()

123456