Home
last modified time | relevance | path

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

12345

/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()
DDialogTitle.java46 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
47 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
69 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DFaceUnlockView.java55 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
58 int viewWidth = resolveMeasured(widthMeasureSpec, minimumWidth); in onMeasure()
DScrollingTabContainerView.java87 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
88 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
96 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f); in onMeasure()
98 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2; in onMeasure()
112 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) { in onMeasure()
122 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
409 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
410 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DActionBarOverlayLayout.java244 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
254 measureChildWithMargins(mActionBarTop, widthMeasureSpec, 0, heightMeasureSpec, 0);
264 measureChildWithMargins(mActionBarBottom, widthMeasureSpec, 0, heightMeasureSpec, 0);
327 measureChildWithMargins(mContent, widthMeasureSpec, 0, heightMeasureSpec, 0);
343 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
DPrintDialogFrame.java36 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
37 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
40 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
47 final int receivedWidth = MeasureSpec.getSize(widthMeasureSpec); 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.java153 int widthMeasureSpec, int totalWidth, in measureChildBeforeLayout() argument
156 widthMeasureSpec = MeasureSpec.makeMeasureSpec( in measureChildBeforeLayout()
163 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout()
167 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument
168 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.UNSPECIFIED) { in measureHorizontal()
169 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
178 int extraWidth = getMeasuredWidth() - MeasureSpec.getSize(widthMeasureSpec); in measureHorizontal()
209 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
DSpace.java89 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
91 getDefaultSize2(getSuggestedMinimumWidth(), widthMeasureSpec), in onMeasure() local
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()
DAbsoluteLayout.java56 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
63 measureChildren(widthMeasureSpec, heightMeasureSpec); in onMeasure()
91 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, 0), in onMeasure()
DRatingBar.java279 protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
280 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
286 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, 0), in onMeasure()
DAbsSpinner.java165 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
166 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
209 measureChild(view, widthMeasureSpec, heightMeasureSpec); in onMeasure()
230 widthSize = resolveSizeAndState(preferredWidth, widthMeasureSpec, 0); in onMeasure()
234 mWidthMeasureSpec = widthMeasureSpec; in onMeasure()
DAnalogClock.java134 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
136 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
137 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
154 setMeasuredDimension(resolveSizeAndState((int) (mDialWidth * scale), widthMeasureSpec, 0), in onMeasure() local
DLinearLayout.java586 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
588 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure()
590 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure()
630 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument
641 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureVertical()
696 child, i, widthMeasureSpec, 0, heightMeasureSpec, in measureVertical()
828 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in measureVertical()
916 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in measureVertical()
958 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument
969 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureHorizontal()
[all …]
/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/appcompat/src/android/support/v7/internal/widget/
DScrollingTabContainerView.java78 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
79 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
87 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f); in onMeasure()
89 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2; in onMeasure()
103 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) { in onMeasure()
113 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
356 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
357 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DAbsSpinnerICS.java146 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
147 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
193 measureChild(view, widthMeasureSpec, heightMeasureSpec); in onMeasure()
214 widthSize = resolveSize(preferredWidth, widthMeasureSpec); in onMeasure()
218 mWidthMeasureSpec = widthMeasureSpec; 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/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()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DActionMenuItemView.java208 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
215 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
217 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
218 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
DActionMenuView.java93 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
96 mFormatItems = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY; in onMeasure()
104 final int widthSize = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
111 onMeasureExactFormat(widthMeasureSpec, heightMeasureSpec); in onMeasure()
120 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
124 private void onMeasureExactFormat(int widthMeasureSpec, int heightMeasureSpec) { in onMeasureExactFormat() argument
127 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasureExactFormat()
/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java120 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
121 setMeasuredDimension(measureWidth(widthMeasureSpec), in onMeasure()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java254 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
266 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
268 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
269 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()

12345