/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowViewMeasureSpec.java | 9 * Shadow for {@code View.MeasureSpec} inner class. 13 @Implements(View.MeasureSpec.class) 20 public static int getMode (int measureSpec) { 21 return (measureSpec & MODE_MASK); 25 public static int getSize (int measureSpec) { 26 return (measureSpec & ~MODE_MASK); 35 public static String toString (int measureSpec) { 36 int mode = getMode(measureSpec); 37 int size = getSize(measureSpec); 39 StringBuilder sb = new StringBuilder("MeasureSpec: ") [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
LabelView.java | 127 * @param measureSpec A measureSpec packed into an int 128 * @return The width of the view, honoring constraints from measureSpec 130 private int measureWidth(int measureSpec) { 132 int specMode = MeasureSpec.getMode(measureSpec); 133 int specSize = MeasureSpec.getSize(measureSpec); 135 if (specMode == MeasureSpec.EXACTLY) { 142 if (specMode == MeasureSpec.AT_MOST) [all...] |
ListViewTest.java | 50 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); 53 listView.measure(measureSpec, measureSpec); 60 listView.measure(measureSpec, measureSpec); 82 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY) [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
IntrinsicSizeFrameLayout.java | 73 private int getIntrinsicMeasureSpec(int measureSpec, int intrinsicSize) { 76 return measureSpec; 78 final int mode = MeasureSpec.getMode(measureSpec); 79 final int size = MeasureSpec.getSize(measureSpec); 80 if (mode == MeasureSpec.UNSPECIFIED) { 82 return MeasureSpec.makeMeasureSpec(mIntrinsicHeight, MeasureSpec.EXACTLY); 83 } else if (mode == MeasureSpec.AT_MOST) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
LabelView.java | 134 * @param measureSpec A measureSpec packed into an int 135 * @return The width of the view, honoring constraints from measureSpec 137 private int measureWidth(int measureSpec) { 139 int specMode = MeasureSpec.getMode(measureSpec); 140 int specSize = MeasureSpec.getSize(measureSpec); 142 if (specMode == MeasureSpec.EXACTLY) { 149 if (specMode == MeasureSpec.AT_MOST) [all...] |
InternalSelectionView.java | 104 private int measureWidth(int measureSpec) { 105 int specMode = MeasureSpec.getMode(measureSpec); 106 int specSize = MeasureSpec.getSize(measureSpec); 109 if (specMode == MeasureSpec.EXACTLY) { 112 } else if (specMode == MeasureSpec.AT_MOST) { 119 private int measureHeight(int measureSpec) { 120 int specMode = MeasureSpec.getMode(measureSpec); [all...] |
/sdk/testapps/customViewTest/libWithCustomView/src/com/android/tests/libwithcustom/ |
LabelView.java | 133 * @param measureSpec A measureSpec packed into an int 134 * @return The width of the view, honoring constraints from measureSpec 136 private int measureWidth(int measureSpec) { 138 int specMode = MeasureSpec.getMode(measureSpec); 139 int specSize = MeasureSpec.getSize(measureSpec); 141 if (specMode == MeasureSpec.EXACTLY) { 148 if (specMode == MeasureSpec.AT_MOST) [all...] |
/frameworks/base/core/java/android/widget/ |
Space.java | 75 private static int getDefaultSize2(int size, int measureSpec) { 77 int specMode = MeasureSpec.getMode(measureSpec); 78 int specSize = MeasureSpec.getSize(measureSpec); 81 case MeasureSpec.UNSPECIFIED: 84 case MeasureSpec.AT_MOST: 87 case MeasureSpec.EXACTLY:
|
AdapterViewAnimator.java | 584 int measureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 585 child.measure(measureSpec, measureSpec); 687 child.measure(MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY), 688 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)); 694 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec) [all...] |
NumberPicker.java | [all...] |
VideoView.java | 141 //Log.i("@@@@", "onMeasure(" + MeasureSpec.toString(widthMeasureSpec) + ", " 142 // + MeasureSpec.toString(heightMeasureSpec) + ")"); 148 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 149 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 150 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 151 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 153 if (widthSpecMode == MeasureSpec.EXACTLY && heightSpecMode == MeasureSpec.EXACTLY) { 166 } else if (widthSpecMode == MeasureSpec.EXACTLY) { 170 if (heightSpecMode == MeasureSpec.AT_MOST && height > heightSpecSize) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
DrawingSpace.java | 51 private static int getDefaultSizeNonGreedy(int size, int measureSpec) { 53 int specMode = MeasureSpec.getMode(measureSpec); 54 int specSize = MeasureSpec.getSize(measureSpec); 57 case MeasureSpec.UNSPECIFIED: 60 case MeasureSpec.AT_MOST: 63 case MeasureSpec.EXACTLY:
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
Space.java | 59 private static int getDefaultSize2(int size, int measureSpec) { 61 int specMode = MeasureSpec.getMode(measureSpec); 62 int specSize = MeasureSpec.getSize(measureSpec); 65 case MeasureSpec.UNSPECIFIED: 68 case MeasureSpec.AT_MOST: 71 case MeasureSpec.EXACTLY:
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
MeasureHelper.java | 20 import android.view.View.MeasureSpec; 52 private static int getLength(int measureSpec, int prefered) { 53 int specLength = MeasureSpec.getSize(measureSpec); 54 switch(MeasureSpec.getMode(measureSpec)) { 55 case MeasureSpec.EXACTLY: return specLength; 56 case MeasureSpec.AT_MOST: return Math.min(prefered, specLength);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
ResizingSpace.java | 78 private static int getDefaultSize2(int size, int measureSpec) { 80 int specMode = MeasureSpec.getMode(measureSpec); 81 int specSize = MeasureSpec.getSize(measureSpec); 84 case MeasureSpec.UNSPECIFIED: 87 case MeasureSpec.AT_MOST: 90 case MeasureSpec.EXACTLY:
|
/frameworks/base/core/tests/coretests/src/android/util/ |
InternalSelectionView.java | 111 private int measureWidth(int measureSpec) { 112 int specMode = MeasureSpec.getMode(measureSpec); 113 int specSize = MeasureSpec.getSize(measureSpec); 116 if (specMode == MeasureSpec.EXACTLY) { 119 } else if (specMode == MeasureSpec.AT_MOST) { 126 private int measureHeight(int measureSpec) { 127 int specMode = MeasureSpec.getMode(measureSpec); [all...] |
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/ |
ColorsActivity.java | 173 private int measureWidth(int measureSpec) { 175 int specMode = MeasureSpec.getMode(measureSpec); 176 int specSize = MeasureSpec.getSize(measureSpec); 178 if (specMode == MeasureSpec.EXACTLY) { 184 if (specMode == MeasureSpec.AT_MOST) { 186 // measureSpec 194 private int measureHeight(int measureSpec) { 196 int specMode = MeasureSpec.getMode(measureSpec) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ScaleFrameLayout.java | 176 private static int getScaledMeasureSpec(int measureSpec, float scale) { 177 return scale == 1f ? measureSpec : MeasureSpec.makeMeasureSpec( 178 (int) (MeasureSpec.getSize(measureSpec) / scale + 0.5f), 179 MeasureSpec.getMode(measureSpec));
|
/frameworks/support/compat/honeycomb/android/support/v4/view/ |
ViewCompatHC.java | 42 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { 43 return View.resolveSizeAndState(size, measureSpec, childMeasuredState);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ListViewTest.java | 43 import android.view.View.MeasureSpec; 594 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); 597 listView.measure(measureSpec, measureSpec); 604 listView.measure(measureSpec, measureSpec); 621 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY) [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
AsyncImageView.java | 322 final int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 323 final int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 324 if (widthSpecMode == MeasureSpec.EXACTLY && heightSpecMode == MeasureSpec.EXACTLY) { 357 private static int resolveSize(int desiredSize, int maxSize, int measureSpec) { 358 final int specMode = MeasureSpec.getMode(measureSpec); 359 final int specSize = MeasureSpec.getSize(measureSpec); 361 case MeasureSpec.UNSPECIFIED [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
MediaPickerPanel.java | 127 int requestedHeight = MeasureSpec.getSize(heightMeasureSpec); 161 int viewPagerHeightMeasureSpec = MeasureSpec.makeMeasureSpec( 162 viewPagerHeight, MeasureSpec.EXACTLY); 312 final int measureSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE, MeasureSpec.AT_MOST); 313 measureChild(mTabStrip, measureSpec, measureSpec);
|
/frameworks/support/design/src/android/support/design/widget/ |
FloatingActionButton.java | 502 private static int resolveAdjustedSize(int desiredSize, int measureSpec) { 504 int specMode = MeasureSpec.getMode(measureSpec); 505 int specSize = MeasureSpec.getSize(measureSpec); 507 case MeasureSpec.UNSPECIFIED: 512 case MeasureSpec.AT_MOST: 518 case MeasureSpec.EXACTLY:
|
/sdk/testapps/gridlayoutTest/v7-gridlayout/libs/ |
android-support-v7-gridlayout.jar | |
/prebuilts/sdk/current/support/v7/gridlayout/libs/ |
android-support-v7-gridlayout.jar | |