Searched refs:MeasureSpec (Results 1 - 25 of 32) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/widget/
H A DLabelView.java132 int specMode = MeasureSpec.getMode(measureSpec);
133 int specSize = MeasureSpec.getSize(measureSpec);
135 if (specMode == MeasureSpec.EXACTLY) {
142 if (specMode == MeasureSpec.AT_MOST) {
158 int specMode = MeasureSpec.getMode(measureSpec);
159 int specSize = MeasureSpec.getSize(measureSpec);
162 if (specMode == MeasureSpec.EXACTLY) {
169 if (specMode == MeasureSpec.AT_MOST) {
H A DListViewTest.java48 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY);
80 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY);
H A DTextViewPerformanceTest.java50 mLabelView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240);
61 mTextView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240);
/frameworks/base/core/java/com/android/internal/widget/
H A DWeightedLinearLayout.java25 import static android.view.View.MeasureSpec.*;
66 widthMeasureSpec = MeasureSpec.makeMeasureSpec(width, EXACTLY);
67 heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, EXACTLY);
72 widthMeasureSpec = MeasureSpec.makeMeasureSpec((int) (screenWidth * widthWeight),
H A DSlidingTab.java397 tab.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
398 View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));
399 text.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
400 View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));
472 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec);
473 int widthSpecSize = MeasureSpec
[all...]
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java254 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec);
255 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec);
257 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec);
258 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec);
260 if (widthSpecMode == MeasureSpec.UNSPECIFIED || heightSpecMode == MeasureSpec.UNSPECIFIED) {
269 mContent.measure(MeasureSpec.makeMeasureSpec(widthSpecSize, MeasureSpec.EXACTLY),
270 MeasureSpec.makeMeasureSpec(height, MeasureSpec
[all...]
H A DAnalogClock.java131 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
132 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
133 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
134 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
139 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) {
143 if (heightMode != MeasureSpec.UNSPECIFIED && heightSize < mDialHeight) {
H A DLinearLayout.java336 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
337 final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
364 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) {
423 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) {
452 if (useLargestChild && heightMode == MeasureSpec.AT_MOST) {
518 if ((lp.height != 0) || (heightMode != MeasureSpec.EXACTLY)) {
527 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY));
532 MeasureSpec.makeMeasureSpec(share > 0 ? share : 0,
533 MeasureSpec
[all...]
H A DTableRow.java195 int measureMode = MeasureSpec.EXACTLY;
208 measureMode = MeasureSpec.AT_MOST;
214 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(
303 spec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
306 spec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY);
H A DRelativeLayout.java312 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
313 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
314 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
315 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
318 if (widthMode != MeasureSpec.UNSPECIFIED) {
322 if (heightMode != MeasureSpec.UNSPECIFIED) {
326 if (widthMode == MeasureSpec.EXACTLY) {
330 if (heightMode == MeasureSpec.EXACTLY) {
354 final boolean isWrapContentWidth = widthMode != MeasureSpec.EXACTLY;
355 final boolean isWrapContentHeight = heightMode != MeasureSpec
[all...]
H A DImageView.java632 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec);
633 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec);
635 resizeWidth = widthSpecMode != MeasureSpec.EXACTLY;
636 resizeHeight = heightSpecMode != MeasureSpec.EXACTLY;
715 int specMode = MeasureSpec.getMode(measureSpec);
716 int specSize = MeasureSpec.getSize(measureSpec);
718 case MeasureSpec.UNSPECIFIED:
724 case MeasureSpec.AT_MOST:
730 case MeasureSpec.EXACTLY:
H A DGridView.java913 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
914 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
915 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
916 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
918 if (widthMode == MeasureSpec.UNSPECIFIED) {
947 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), 0, p.height);
949 MeasureSpec.makeMeasureSpec(mColumnWidth, MeasureSpec.EXACTLY), 0, p.width);
959 if (heightMode == MeasureSpec
[all...]
H A DVideoView.java133 int specMode = MeasureSpec.getMode(measureSpec);
134 int specSize = MeasureSpec.getSize(measureSpec);
137 case MeasureSpec.UNSPECIFIED:
144 case MeasureSpec.AT_MOST:
152 case MeasureSpec.EXACTLY:
H A DListView.java1091 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
1092 int heightMode = MeasureSpec.getMode(heightMeasureSpec);
1093 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
1094 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
1100 if (mItemCount > 0 && (widthMode == MeasureSpec.UNSPECIFIED ||
1101 heightMode == MeasureSpec.UNSPECIFIED)) {
1115 if (widthMode == MeasureSpec.UNSPECIFIED) {
1120 if (heightMode == MeasureSpec.UNSPECIFIED) {
1125 if (heightMode == MeasureSpec.AT_MOST) {
1149 childHeightSpec = MeasureSpec
[all...]
H A DHorizontalScrollView.java308 final int widthMode = MeasureSpec.getMode(widthMeasureSpec);
309 if (widthMode == MeasureSpec.UNSPECIFIED) {
323 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY);
1059 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
1072 final int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(
1073 lp.leftMargin + lp.rightMargin, MeasureSpec.UNSPECIFIED);
H A DScrollView.java302 final int heightMode = MeasureSpec.getMode(heightMeasureSpec);
303 if (heightMode == MeasureSpec.UNSPECIFIED) {
318 MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY);
1058 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
1071 final int childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(
1072 lp.topMargin + lp.bottomMargin, MeasureSpec.UNSPECIFIED);
H A DAbsSpinner.java165 int widthMode = MeasureSpec.getMode(widthMeasureSpec);
218 if (widthMode == MeasureSpec.UNSPECIFIED) {
/frameworks/base/core/tests/coretests/src/android/util/
H A DInternalSelectionView.java107 int specMode = MeasureSpec.getMode(measureSpec);
108 int specSize = MeasureSpec.getSize(measureSpec);
111 if (specMode == MeasureSpec.EXACTLY) {
114 } else if (specMode == MeasureSpec.AT_MOST) {
122 int specMode = MeasureSpec.getMode(measureSpec);
123 int specSize = MeasureSpec.getSize(measureSpec);
128 if (specMode == MeasureSpec.EXACTLY) {
131 } else if (specMode == MeasureSpec.AT_MOST) {
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderDrawable.java37 import android.view.View.MeasureSpec;
96 int w_spec = MeasureSpec.makeMeasureSpec(w, MeasureSpec.EXACTLY);
97 int h_spec = MeasureSpec.makeMeasureSpec(h, MeasureSpec.EXACTLY);
H A DRenderSessionImpl.java67 import android.view.View.MeasureSpec;
351 MeasureSpec.UNSPECIFIED // this lets us know the actual needed size
352 : MeasureSpec.EXACTLY;
354 MeasureSpec.UNSPECIFIED // this lets us know the actual needed size
355 : MeasureSpec.EXACTLY;
374 mMeasuredScreenWidth, MeasureSpec.EXACTLY,
375 mMeasuredScreenHeight, MeasureSpec.EXACTLY);
406 mMeasuredScreenWidth, MeasureSpec.EXACTLY,
407 mMeasuredScreenHeight, MeasureSpec.EXACTLY);
486 * to create measure specs with {@link MeasureSpec#makeMeasureSpe
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboardView.java577 if (MeasureSpec.getSize(widthMeasureSpec) < width + 10) {
578 width = MeasureSpec.getSize(widthMeasureSpec);
889 mPreviewText.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
890 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
1052 MeasureSpec.makeMeasureSpec(getWidth(), MeasureSpec.AT_MOST),
1053 MeasureSpec.makeMeasureSpec(getHeight(), MeasureSpec
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebTextView.java812 mWidthSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY);
813 mHeightSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuView.java418 child.measure(MeasureSpec.makeMeasureSpec((int) itemWidth, MeasureSpec.EXACTLY),
419 MeasureSpec.makeMeasureSpec((int) itemHeight, MeasureSpec.EXACTLY));
/frameworks/base/core/java/android/view/
H A DViewGroup.java3073 * account both the MeasureSpec requirements for this view and its padding.
3093 * account both the MeasureSpec requirements for this view and its padding.
3114 * account both the MeasureSpec requirements for this view and its padding
3142 * Does the hard part of measureChildren: figuring out the MeasureSpec to
3143 * pass to a particular child. This method figures out the right MeasureSpec
3146 * The goal is to combine information from our MeasureSpec with the
3148 * if the this view knows its size (because its MeasureSpec has a mode of
3158 * @return a MeasureSpec integer for the child
3161 int specMode = MeasureSpec.getMode(spec);
3162 int specSize = MeasureSpec
[all...]
H A DViewRoot.java38 import android.view.View.MeasureSpec;
1105 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(width,
1106 MeasureSpec.EXACTLY);
1111 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(height,
1112 MeasureSpec.EXACTLY);
1328 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.EXACTLY);
1332 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.AT_MOST);
1336 measureSpec = MeasureSpec
[all...]

Completed in 209 milliseconds

12