Searched refs:widthMeasureSpec (Results 1 - 25 of 85) sorted by relevance

1234

/frameworks/base/core/java/com/android/internal/widget/
H A DWeightedLinearLayout.java57 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
62 final int widthMode = getMode(widthMeasureSpec);
64 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
69 widthMeasureSpec = MeasureSpec.makeMeasureSpec(width, EXACTLY);
77 widthMeasureSpec = MeasureSpec.makeMeasureSpec(weightedMin, EXACTLY);
80 widthMeasureSpec = MeasureSpec.makeMeasureSpec(weightedMax, EXACTLY);
88 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
H A DDialogTitle.java46 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
47 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
69 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
H A DFaceUnlockView.java55 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
58 int viewWidth = resolveMeasured(widthMeasureSpec, minimumWidth);
H A DScrollingTabContainerView.java85 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
86 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
94 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f);
96 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2;
110 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) {
120 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
381 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
382 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
/frameworks/base/core/java/android/widget/
H A DSpace.java89 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
91 getDefaultSize2(getSuggestedMinimumWidth(), widthMeasureSpec),
H A DTableLayout.java437 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
439 measureVertical(widthMeasureSpec, heightMeasureSpec);
456 int widthMeasureSpec, int totalWidth,
465 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight);
472 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { argument
473 findLargestCells(widthMeasureSpec);
474 shrinkAndStretchColumns(widthMeasureSpec);
476 super.measureVertical(widthMeasureSpec, heightMeasureSpec);
483 * @param widthMeasureSpec the measure constraint imposed by our parent
485 private void findLargestCells(int widthMeasureSpec) { argument
455 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
554 shrinkAndStretchColumns(int widthMeasureSpec) argument
[all...]
H A DTabWidget.java153 int widthMeasureSpec, int totalWidth,
156 widthMeasureSpec = MeasureSpec.makeMeasureSpec(
163 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight);
167 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { argument
168 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.UNSPECIFIED) {
169 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec);
178 int extraWidth = getMeasuredWidth() - MeasureSpec.getSize(widthMeasureSpec);
209 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec);
152 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
H A DAbsoluteLayout.java56 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
63 measureChildren(widthMeasureSpec, heightMeasureSpec);
91 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, 0),
H A DRatingBar.java279 protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
280 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
286 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, 0),
H A DTableRow.java112 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
114 measureHorizontal(widthMeasureSpec, heightMeasureSpec);
192 int widthMeasureSpec, int totalWidth,
247 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec,
282 * @param widthMeasureSpec the width constraint imposed by our parent
288 int[] getColumnsWidths(int widthMeasureSpec) { argument
304 spec = getChildMeasureSpec(widthMeasureSpec, 0, LayoutParams.WRAP_CONTENT);
191 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
H A DAnalogClock.java134 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
136 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
137 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
154 setMeasuredDimension(resolveSizeAndState((int) (mDialWidth * scale), widthMeasureSpec, 0),
H A DAbsSpinner.java160 * the widthMeasureSpec as Spinnners can't have their width set to
165 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
166 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
211 measureChild(view, widthMeasureSpec, heightMeasureSpec);
232 widthSize = resolveSizeAndState(preferredWidth, widthMeasureSpec, 0);
236 mWidthMeasureSpec = widthMeasureSpec;
H A DLinearLayout.java586 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
588 measureVertical(widthMeasureSpec, heightMeasureSpec);
590 measureHorizontal(widthMeasureSpec, heightMeasureSpec);
623 * @param widthMeasureSpec Horizontal space requirements as imposed by the parent.
630 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { argument
641 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
696 child, i, widthMeasureSpec, 0, heightMeasureSpec,
828 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec,
916 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
951 * @param widthMeasureSpec Horizonta
958 measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) argument
1340 forceUniformHeight(int count, int widthMeasureSpec) argument
1401 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
[all...]
H A DFrameLayout.java295 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
299 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY ||
310 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0);
341 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
360 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec,
H A DSpinner.java438 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
439 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
440 if (mPopup != null && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.AT_MOST) {
444 MeasureSpec.getSize(widthMeasureSpec)),
664 final int widthMeasureSpec =
687 itemView.measure(widthMeasureSpec, heightMeasureSpec);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTextPathActivity.java52 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
53 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), 3000);
H A DGradientsActivity.java105 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
106 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
130 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
131 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
155 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
156 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
179 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
180 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
H A DDisplayListLayersActivity.java120 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
121 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec) / 3,
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DSpace.java89 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
91 getDefaultSize2(getSuggestedMinimumWidth(), widthMeasureSpec),
/frameworks/base/core/tests/coretests/src/android/widget/
H A DLabelView.java120 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
121 setMeasuredDimension(measureWidth(widthMeasureSpec),
H A DListViewTest.java123 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
124 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DIconMerger.java54 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
55 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
H A DQuickSettingsContainerView.java62 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
64 int width = MeasureSpec.getSize(widthMeasureSpec);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenuItemView.java254 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
266 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
268 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
269 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
H A DActionMenuView.java93 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
96 mFormatItems = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY;
104 final int widthSize = MeasureSpec.getMode(widthMeasureSpec);
111 onMeasureExactFormat(widthMeasureSpec, heightMeasureSpec);
120 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
124 private void onMeasureExactFormat(int widthMeasureSpec, int heightMeasureSpec) { argument
127 int widthSize = MeasureSpec.getSize(widthMeasureSpec);

Completed in 867 milliseconds

1234