/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/support/v7/gridlayout/src/android/support/v7/widget/ |
ViewGroup.java | 44 * by a MeasureSpec. Will take the desired size, unless a different size 51 * @param measureSpec Constraints imposed by the parent 55 public static int resolveSizeAndState(int size, int measureSpec, int childMeasuredState) { 57 return View.resolveSizeAndState(size, measureSpec, childMeasuredState); 60 int specMode = MeasureSpec.getMode(measureSpec); 61 int specSize = MeasureSpec.getSize(measureSpec); 63 case MeasureSpec.UNSPECIFIED: 66 case MeasureSpec.AT_MOST [all...] |
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:
|
/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/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 | 44 import static android.view.View.MeasureSpec.EXACTLY; 45 import static android.view.View.MeasureSpec.makeMeasureSpec; [all...] |
VideoView.java | 111 //Log.i("@@@@", "onMeasure(" + MeasureSpec.toString(widthMeasureSpec) + ", " 112 // + MeasureSpec.toString(heightMeasureSpec) + ")"); 118 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 119 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 120 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 121 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 123 if (widthSpecMode == MeasureSpec.EXACTLY && heightSpecMode == MeasureSpec.EXACTLY) { 136 } else if (widthSpecMode == MeasureSpec.EXACTLY) { 140 if (heightSpecMode == MeasureSpec.AT_MOST && height > heightSpecSize) [all...] |
ImageView.java | 241 * legacy {@link android.view.View.MeasureSpec MeasureSpec} and 762 final int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 763 final int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 779 resizeWidth = widthSpecMode != MeasureSpec.EXACTLY; 780 resizeHeight = heightSpecMode != MeasureSpec.EXACTLY; 867 int measureSpec) { 869 int specMode = MeasureSpec.getMode(measureSpec); 870 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...] |
/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...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ListViewTest.java | 683 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); 686 listView.measure(measureSpec, measureSpec); 693 listView.measure(measureSpec, measureSpec); 709 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);
|
/packages/apps/Email/src/com/android/email/activity/ |
MessageListItem.java | 365 mViewWidth = MeasureSpec.getSize(widthMeasureSpec); 378 * @param measureSpec A measureSpec packed into an int 380 * @return The height of the view, honoring constraints from measureSpec 382 private int measureHeight(int measureSpec, int mode) { 384 int specMode = MeasureSpec.getMode(measureSpec); 385 int specSize = MeasureSpec.getSize(measureSpec); 387 if (specMode == MeasureSpec.EXACTLY) [all...] |
/sdk/testapps/gridlayoutTest/v7-gridlayout/libs/ |
android-support-v7-gridlayout.jar | |
/packages/apps/Launcher2/src/com/android/launcher2/ |
Folder.java | 166 int measureSpec = MeasureSpec.UNSPECIFIED; 167 mFolderName.measure(measureSpec, measureSpec); 875 int contentWidthSpec = MeasureSpec.makeMeasureSpec(mContent.getDesiredWidth(), 876 MeasureSpec.EXACTLY); 877 int contentHeightSpec = MeasureSpec.makeMeasureSpec(mContent.getDesiredHeight() [all...] |
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
GlowPadView.java | 341 private int resolveMeasured(int measureSpec, int desired) 344 int specSize = MeasureSpec.getSize(measureSpec); 345 switch (MeasureSpec.getMode(measureSpec)) { 346 case MeasureSpec.UNSPECIFIED: 349 case MeasureSpec.AT_MOST: 352 case MeasureSpec.EXACTLY: [all...] |