Home
last modified time | relevance | path

Searched refs:widthMeasureSpec (Results 1 – 25 of 138) 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()
DPreferenceImageView.java46 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
47 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
53 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); in onMeasure()
67 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DDialogTitle.java49 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
50 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
72 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DFaceUnlockView.java53 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
56 int viewWidth = resolveMeasured(widthMeasureSpec, minimumWidth); in onMeasure()
DScrollingTabContainerView.java86 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
87 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
95 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f); in onMeasure()
97 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2; in onMeasure()
111 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) { in onMeasure()
121 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
408 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
409 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/frameworks/base/core/java/android/widget/
DTableLayout.java437 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
439 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure()
456 int widthMeasureSpec, int totalWidth, in measureChildBeforeLayout() argument
465 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout()
472 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument
473 findLargestCells(widthMeasureSpec); in measureVertical()
474 shrinkAndStretchColumns(widthMeasureSpec); in measureVertical()
476 super.measureVertical(widthMeasureSpec, heightMeasureSpec); in measureVertical()
485 private void findLargestCells(int widthMeasureSpec) { in findLargestCells() argument
508 final int[] widths = row.getColumnsWidths(widthMeasureSpec); in findLargestCells()
[all …]
DTabWidget.java156 int widthMeasureSpec, int totalWidth, in measureChildBeforeLayout() argument
159 widthMeasureSpec = MeasureSpec.makeMeasureSpec( in measureChildBeforeLayout()
166 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout()
170 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument
171 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.UNSPECIFIED) { in measureHorizontal()
172 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
181 int extraWidth = getMeasuredWidth() - MeasureSpec.getSize(widthMeasureSpec); in measureHorizontal()
212 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) { in getColumnsWidths() argument
304 … spec = getChildMeasureSpec(widthMeasureSpec, 0, LayoutParams.WRAP_CONTENT); in getColumnsWidths()
DSpace.java95 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
97 getDefaultSize2(getSuggestedMinimumWidth(), widthMeasureSpec), in onMeasure() local
DRatingBar.java283 protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
284 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
290 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, 0), in onMeasure()
DAbsoluteLayout.java59 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
66 measureChildren(widthMeasureSpec, heightMeasureSpec); in onMeasure()
94 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, 0), 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()
DTextPathActivity.java52 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
53 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), 3000); in onMeasure()
/frameworks/support/v7/cardview/src/android/support/v7/widget/
DCardView.java175 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
177 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
182 widthMeasureSpec = MeasureSpec.makeMeasureSpec(Math.max(minWidth, in onMeasure()
183 MeasureSpec.getSize(widthMeasureSpec)), widthMode); in onMeasure()
196 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
198 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java53 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
54 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
55 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
92 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in onMeasure()
120 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, childState), in onMeasure()
DPrintContentView.java222 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
225 measureChild(mStaticContent, widthMeasureSpec, heightMeasureSpec); in onMeasure()
228 measureChild(mSummaryContent, widthMeasureSpec, heightMeasureSpec); in onMeasure()
231 measureChild(mDynamicContent, widthMeasureSpec, heightMeasureSpec); in onMeasure()
233 measureChild(mPrintButton, widthMeasureSpec, heightMeasureSpec); in onMeasure()
265 measureChild(mEmbeddedContentContainer, widthMeasureSpec, hostHeightMeasureSpec); in onMeasure()
267 setMeasuredDimension(resolveSize(MeasureSpec.getSize(widthMeasureSpec), widthMeasureSpec), in onMeasure() local
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DSpeedBumpView.java68 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
69 measureChildren(widthMeasureSpec, heightMeasureSpec); in onMeasure()
71 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), height); in onMeasure()
DExpandableView.java52 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
76 getChildMeasureSpec(widthMeasureSpec, 0 /* padding */, layoutParams.width), in onMeasure()
88 widthMeasureSpec, 0 /* padding */, child.getLayoutParams().width), in onMeasure()
92 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DShadowOverlayContainer.java152 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
162 (MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.EXACTLY); in onMeasure()
164 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, 0, lp.width); in onMeasure()
187 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, 0, lp.width); in onMeasure()
DScaleFrameLayout.java152 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
155 getScaledMeasureSpec(widthMeasureSpec, mLayoutScaleX); in onMeasure()
162 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DResizingTextView.java196 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
211 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
264 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DSpace.java89 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
91 getDefaultSize2(getSuggestedMinimumWidth(), widthMeasureSpec), in onMeasure() local
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DAbsSpinnerCompat.java146 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
147 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
191 measureChild(view, widthMeasureSpec, heightMeasureSpec); in onMeasure()
212 widthSize = ViewCompat.resolveSizeAndState(preferredWidth, widthMeasureSpec, 0); in onMeasure()
216 mWidthMeasureSpec = widthMeasureSpec; in onMeasure()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DLinearLayoutCompat.java545 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
547 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure()
549 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure()
589 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument
600 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureVertical()
657 child, i, widthMeasureSpec, 0, heightMeasureSpec, in measureVertical()
791 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in measureVertical()
880 setMeasuredDimension(ViewCompat.resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in measureVertical()
922 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument
933 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureHorizontal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DIconMerger.java49 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
50 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()

123456