/external/robolectric/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 | 48 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); 51 listView.measure(measureSpec, measureSpec); 58 listView.measure(measureSpec, measureSpec); 80 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY) [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/support/v4/honeycomb/android/support/v4/view/ |
ViewCompatHC.java | 40 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { 41 return View.resolveSizeAndState(size, measureSpec, childMeasuredState);
|
/frameworks/base/core/java/android/widget/ |
Space.java | 69 private static int getDefaultSize2(int size, int measureSpec) { 71 int specMode = MeasureSpec.getMode(measureSpec); 72 int specSize = MeasureSpec.getSize(measureSpec); 75 case MeasureSpec.UNSPECIFIED: 78 case MeasureSpec.AT_MOST: 81 case MeasureSpec.EXACTLY:
|
AdapterViewAnimator.java | 582 int measureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 583 child.measure(measureSpec, measureSpec); 685 child.measure(MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY), 686 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)); 692 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec) [all...] |
NumberPicker.java | [all...] |
GridLayout.java | 46 import static android.view.View.MeasureSpec.EXACTLY; 47 import static android.view.View.MeasureSpec.makeMeasureSpec; [all...] |
VideoView.java | 137 //Log.i("@@@@", "onMeasure(" + MeasureSpec.toString(widthMeasureSpec) + ", " 138 // + MeasureSpec.toString(heightMeasureSpec) + ")"); 144 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 145 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 146 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 147 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 149 if (widthSpecMode == MeasureSpec.EXACTLY && heightSpecMode == MeasureSpec.EXACTLY) { 162 } else if (widthSpecMode == MeasureSpec.EXACTLY) { 166 if (heightSpecMode == MeasureSpec.AT_MOST && height > heightSpecSize) [all...] |
ImageView.java | 243 * legacy {@link android.view.View.MeasureSpec MeasureSpec} and 774 final int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 775 final int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 791 resizeWidth = widthSpecMode != MeasureSpec.EXACTLY; 792 resizeHeight = heightSpecMode != MeasureSpec.EXACTLY; 879 int measureSpec) { 881 int specMode = MeasureSpec.getMode(measureSpec); 882 int specSize = MeasureSpec.getSize(measureSpec) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
FaceUnlockView.java | 36 private int resolveMeasured(int measureSpec, int desired) 39 int specSize = MeasureSpec.getSize(measureSpec); 40 switch (MeasureSpec.getMode(measureSpec)) { 41 case MeasureSpec.UNSPECIFIED: 44 case MeasureSpec.AT_MOST: 47 case MeasureSpec.EXACTLY: 63 MeasureSpec.makeMeasureSpec(chosenSize, MeasureSpec.AT_MOST) [all...] |
SizeAdaptiveLayout.java | 152 MeasureSpec.toString(heightMeasureSpec)); 190 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 191 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); 218 if (heightMode != MeasureSpec.UNSPECIFIED && 228 if (heightMode == MeasureSpec.UNSPECIFIED || heightSize > tallestViewSize) { 239 int measureSpec = View.MeasureSpec.makeMeasureSpec(bottom - top, 240 View.MeasureSpec.EXACTLY); 241 mActiveChild = selectActiveChild(measureSpec); 387 this(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED) [all...] |
LockPatternView.java | 456 private int resolveMeasured(int measureSpec, int desired) 459 int specSize = MeasureSpec.getSize(measureSpec); 460 switch (MeasureSpec.getMode(measureSpec)) { 461 case MeasureSpec.UNSPECIFIED: 464 case MeasureSpec.AT_MOST: 467 case MeasureSpec.EXACTLY: [all...] |
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
Space.java | 69 private static int getDefaultSize2(int size, int measureSpec) { 71 int specMode = MeasureSpec.getMode(measureSpec); 72 int specSize = MeasureSpec.getSize(measureSpec); 75 case MeasureSpec.UNSPECIFIED: 78 case MeasureSpec.AT_MOST: 81 case MeasureSpec.EXACTLY:
|
GridLayout.java | 47 import static android.view.View.MeasureSpec.EXACTLY; 48 import static android.view.View.MeasureSpec.makeMeasureSpec; [all...] |
/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/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...] |
/frameworks/support/v4/java/android/support/v4/view/ |
ViewCompat.java | 226 public int resolveSizeAndState(int size, int measureSpec, int childMeasuredState); 336 public int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { 337 return View.resolveSize(size, measureSpec); 410 public int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { 411 return ViewCompatHC.resolveSizeAndState(size, measureSpec, childMeasuredState); [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ListViewTest.java | 686 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); 689 listView.measure(measureSpec, measureSpec); 696 listView.measure(measureSpec, measureSpec); 712 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY) [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
SizeAdaptiveLayoutTest.java | 156 int measureSpec = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.AT_MOST); 157 mSizeAdaptiveLayout.measure(500, measureSpec); 486 int measureSpec = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.AT_MOST); 487 mSizeAdaptiveLayout.measure(500, measureSpec);
|
/sdk/testapps/gridlayoutTest/v7-gridlayout/libs/ |
android-support-v7-gridlayout.jar | |
/packages/apps/Launcher2/src/com/android/launcher2/ |
Folder.java | 165 int measureSpec = MeasureSpec.UNSPECIFIED; 166 mFolderName.measure(measureSpec, measureSpec); 870 int contentWidthSpec = MeasureSpec.makeMeasureSpec(mContent.getDesiredWidth(), 871 MeasureSpec.EXACTLY); 872 int contentHeightSpec = MeasureSpec.makeMeasureSpec(mContent.getDesiredHeight(), 873 MeasureSpec.EXACTLY); 877 MeasureSpec.makeMeasureSpec(mFolderNameHeight, MeasureSpec.EXACTLY)) [all...] |