Home
last modified time | relevance | path

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

123456

/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()
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 …]
DPreferenceImageView.java48 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
49 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
51 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
55 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, 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
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()
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()
DMediaNotificationView.java62 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
67 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
68 int mode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
72 int size = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
124 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DNotificationActionListLayout.java70 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
72 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
114 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.UNSPECIFIED; in onMeasure()
116 final int innerWidth = MeasureSpec.getSize(widthMeasureSpec) - mPaddingLeft - mPaddingRight; in onMeasure()
147 measureChildWithMargins(c, widthMeasureSpec, usedWidthForChild, in onMeasure()
155 setMeasuredDimension(resolveSize(getSuggestedMinimumWidth(), widthMeasureSpec), in onMeasure() local
/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()
DHeadsUpStatusBarView.java101 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
103 int newSize = Math.min(MeasureSpec.getSize(widthMeasureSpec), mMaxWidth); in onMeasure()
104 widthMeasureSpec = MeasureSpec.makeMeasureSpec(newSize, in onMeasure()
105 MeasureSpec.getMode(widthMeasureSpec)); in onMeasure()
107 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()
DTabWidget.java157 void measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, in measureChildBeforeLayout() argument
160 widthMeasureSpec = MeasureSpec.makeMeasureSpec( in measureChildBeforeLayout()
167 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout()
171 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument
172 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.UNSPECIFIED) { in measureHorizontal()
173 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
178 final int width = MeasureSpec.getSize(widthMeasureSpec); in measureHorizontal()
216 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
DTableRow.java112 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
114 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure()
192 int widthMeasureSpec, int totalWidth, in measureChildBeforeLayout() argument
247 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec, in measureChildBeforeLayout()
288 int[] getColumnsWidths(int widthMeasureSpec, int heightMeasureSpec) { in getColumnsWidths() argument
304 … spec = getChildMeasureSpec(widthMeasureSpec, 0, LayoutParams.WRAP_CONTENT); in getColumnsWidths()
/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()
60 setMeasuredDimension(resolveSize(child.getMeasuredWidth(), widthMeasureSpec), in onMeasure() local
65 setMeasuredDimension(resolveSize(0, widthMeasureSpec), 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/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()
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()
266 measureChild(mEmbeddedContentContainer, widthMeasureSpec, hostHeightMeasureSpec); in onMeasure()
268 setMeasuredDimension(resolveSize(MeasureSpec.getSize(widthMeasureSpec), widthMeasureSpec), in onMeasure() local
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DImageFloatingTextViewTest.java120 int widthMeasureSpec = MeasureSpec.makeMeasureSpec(500, MeasureSpec.EXACTLY); in parametrizedTest() local
125 mTextView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest()
126 mView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest()
/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/SystemUI/src/com/android/systemui/qs/
DQSHeaderInfoLayout.kt74 override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { in onMeasure()
77 MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.AT_MOST), in onMeasure()
79 val width = MeasureSpec.getSize(widthMeasureSpec) in onMeasure()

123456