Home
last modified time | relevance | path

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

123

/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()
DScrollingTabContainerView.java82 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
83 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
91 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f); in onMeasure()
93 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2; in onMeasure()
106 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) { in onMeasure()
116 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
381 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
382 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
DActionBarContainer.java172 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
173 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/frameworks/base/core/java/android/widget/
DTableLayout.java429 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
431 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure()
448 int widthMeasureSpec, int totalWidth, in measureChildBeforeLayout() argument
457 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout()
464 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument
465 findLargestCells(widthMeasureSpec); in measureVertical()
466 shrinkAndStretchColumns(widthMeasureSpec); in measureVertical()
468 super.measureVertical(widthMeasureSpec, heightMeasureSpec); in measureVertical()
477 private void findLargestCells(int widthMeasureSpec) { in findLargestCells() argument
500 final int[] widths = row.getColumnsWidths(widthMeasureSpec); in findLargestCells()
[all …]
DTabWidget.java155 int widthMeasureSpec, int totalWidth, in measureChildBeforeLayout() argument
158 widthMeasureSpec = MeasureSpec.makeMeasureSpec( in measureChildBeforeLayout()
165 widthMeasureSpec, totalWidth, heightMeasureSpec, totalHeight); in measureChildBeforeLayout()
169 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument
170 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.UNSPECIFIED) { in measureHorizontal()
171 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
180 int extraWidth = getMeasuredWidth() - MeasureSpec.getSize(widthMeasureSpec); in measureHorizontal()
211 super.measureHorizontal(widthMeasureSpec, heightMeasureSpec); in measureHorizontal()
DTableRow.java110 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
112 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure()
190 int widthMeasureSpec, int totalWidth, in measureChildBeforeLayout() argument
245 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec, in measureChildBeforeLayout()
286 int[] getColumnsWidths(int widthMeasureSpec) { in getColumnsWidths() argument
302 … spec = getChildMeasureSpec(widthMeasureSpec, 0, LayoutParams.WRAP_CONTENT); in getColumnsWidths()
DSpace.java89 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
91 getDefaultSize2(getSuggestedMinimumWidth(), widthMeasureSpec), in onMeasure() local
DRatingBar.java276 protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
277 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
283 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, 0), in onMeasure()
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()
DAbsSpinner.java164 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
165 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
206 measureChild(view, widthMeasureSpec, heightMeasureSpec); in onMeasure()
227 widthSize = resolveSizeAndState(preferredWidth, widthMeasureSpec, 0); in onMeasure()
231 mWidthMeasureSpec = widthMeasureSpec; in onMeasure()
DAnalogClock.java130 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
132 int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
133 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
150 setMeasuredDimension(resolveSizeAndState((int) (mDialWidth * scale), widthMeasureSpec, 0), in onMeasure() local
DLinearLayout.java551 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
553 measureVertical(widthMeasureSpec, heightMeasureSpec); in onMeasure()
555 measureHorizontal(widthMeasureSpec, heightMeasureSpec); in onMeasure()
595 void measureVertical(int widthMeasureSpec, int heightMeasureSpec) { in measureVertical() argument
606 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureVertical()
661 child, i, widthMeasureSpec, 0, heightMeasureSpec, in measureVertical()
793 final int childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in measureVertical()
881 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in measureVertical()
923 void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) { in measureHorizontal() argument
934 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in measureHorizontal()
[all …]
DSpinner.java269 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
270 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
271 if (mPopup != null && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.AT_MOST) { in onMeasure()
275 MeasureSpec.getSize(widthMeasureSpec)), in onMeasure()
478 final int widthMeasureSpec = in measureContentWidth() local
501 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureContentWidth()
DFrameLayout.java278 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
282 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY || in onMeasure()
293 measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0); in onMeasure()
324 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
343 childWidthMeasureSpec = getChildMeasureSpec(widthMeasureSpec, in onMeasure()
DActivityChooserView.java409 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
418 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure()
736 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); in measureContentWidth() local
742 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureContentWidth()
DSwitch.java306 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
307 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
309 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
359 super.onMeasure(widthMeasureSpec, heightMeasureSpec); 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()
DDisplayListLayersActivity.java120 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
121 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec) / 3, in onMeasure()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuView.java79 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
82 mFormatItems = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY; in onMeasure()
90 final int widthSize = MeasureSpec.getMode(widthMeasureSpec); in onMeasure()
97 onMeasureExactFormat(widthMeasureSpec, heightMeasureSpec); in onMeasure()
99 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
103 private void onMeasureExactFormat(int widthMeasureSpec, int heightMeasureSpec) { in onMeasureExactFormat() argument
106 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()
DListViewTest.java123 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
124 super.onMeasure(widthMeasureSpec, heightMeasureSpec); in onMeasure()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java175 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
186 measureChild(child, widthMeasureSpec, heightMeasureSpec); in onMeasure()
202 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, measuredChildState), in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNotificationRowLayout.java281 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
317 final int childWidthMS = widthMeasureSpec; in onMeasure()
331 getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec), in onMeasure() local
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java100 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { in onMeasure() argument
102 measureWidth(widthMeasureSpec), in onMeasure()

123