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

123

/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 DScrollingTabContainerView.java83 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
84 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
92 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f);
94 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2;
107 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) {
117 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
382 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
383 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.java429 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
431 measureVertical(widthMeasureSpec, heightMeasureSpec);
448 int widthMeasureSpec, int totalWidth,
457 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight);
464 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { argument
465 findLargestCells(widthMeasureSpec);
466 shrinkAndStretchColumns(widthMeasureSpec);
468 super.measureVertical(widthMeasureSpec, heightMeasureSpec);
475 * @param widthMeasureSpec the measure constraint imposed by our parent
477 private void findLargestCells(int widthMeasureSpec) { argument
447 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
546 shrinkAndStretchColumns(int widthMeasureSpec) argument
[all...]
H A DTabWidget.java155 int widthMeasureSpec, int totalWidth,
158 widthMeasureSpec = MeasureSpec.makeMeasureSpec(
165 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight);
169 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { argument
170 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.UNSPECIFIED) {
171 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec);
180 int extraWidth = getMeasuredWidth() - MeasureSpec.getSize(widthMeasureSpec);
211 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec);
154 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.java276 protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
277 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
283 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, 0),
H A DTableRow.java110 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
112 measureHorizontal(widthMeasureSpec, heightMeasureSpec);
190 int widthMeasureSpec, int totalWidth,
245 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec,
280 * @param widthMeasureSpec the width constraint imposed by our parent
286 int[] getColumnsWidths(int widthMeasureSpec) { argument
302 spec = getChildMeasureSpec(widthMeasureSpec, 0, LayoutParams.WRAP_CONTENT);
189 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
H A DAnalogClock.java130 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
132 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
133 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
150 setMeasuredDimension(resolveSizeAndState((int) (mDialWidth * scale), widthMeasureSpec, 0),
H A DAbsSpinner.java159 * the widthMeasureSpec as Spinnners can't have their width set to
164 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
165 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
206 measureChild(view, widthMeasureSpec, heightMeasureSpec);
227 widthSize = resolveSizeAndState(preferredWidth, widthMeasureSpec, 0);
231 mWidthMeasureSpec = widthMeasureSpec;
H A DLinearLayout.java551 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
553 measureVertical(widthMeasureSpec, heightMeasureSpec);
555 measureHorizontal(widthMeasureSpec, heightMeasureSpec);
588 * @param widthMeasureSpec Horizontal space requirements as imposed by the parent.
595 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { argument
606 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
661 child, i, widthMeasureSpec, 0, heightMeasureSpec,
793 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec,
881 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
916 * @param widthMeasureSpec Horizonta
923 measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) argument
1305 forceUniformHeight(int count, int widthMeasureSpec) argument
1366 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
[all...]
H A DFrameLayout.java278 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
282 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY ||
293 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0);
324 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
343 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec,
H A DSpinner.java284 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
285 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
286 if (mPopup != null && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.AT_MOST) {
290 MeasureSpec.getSize(widthMeasureSpec)),
496 final int widthMeasureSpec =
519 itemView.measure(widthMeasureSpec, heightMeasureSpec);
/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);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
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/base/core/java/com/android/internal/view/menu/
H A DActionMenuItemView.java238 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
239 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
241 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
242 final int specSize = MeasureSpec.getSize(widthMeasureSpec);
H A DActionMenuView.java79 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
82 mFormatItems = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY;
90 final int widthSize = MeasureSpec.getMode(widthMeasureSpec);
97 onMeasureExactFormat(widthMeasureSpec, heightMeasureSpec);
99 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
103 private void onMeasureExactFormat(int widthMeasureSpec, int heightMeasureSpec) { argument
106 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
/frameworks/base/core/java/android/app/
H A DFragmentBreadCrumbs.java175 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
186 measureChild(child, widthMeasureSpec, heightMeasureSpec);
202 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, measuredChildState),
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNotificationRowLayout.java281 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
317 final int childWidthMS = widthMeasureSpec;
331 getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec),
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTitleStrip.java247 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
248 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
250 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
/frameworks/base/core/java/android/webkit/
H A DHTML5VideoFullScreen.java33 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { argument
34 int width = getDefaultSize(mVideoWidth, widthMeasureSpec);

Completed in 553 milliseconds

123