/cts/tests/tests/widget/src/android/widget/cts/ |
HorizontalScrollViewTest.java | 36 import android.view.View.MeasureSpec; 301 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), 302 MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY)); 307 scrollView.measureChild(child, MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), 308 MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY)); 322 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY) [all...] |
ScrollViewTest.java | 41 import android.view.View.MeasureSpec; 323 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), 324 MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY)); 329 scrollView.measureChild(child, MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY), 330 MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY)); 344 child.measure(MeasureSpec.makeMeasureSpec(100, MeasureSpec.EXACTLY) [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:
|
/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);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowFrameLayout.java | 5 import android.view.View.MeasureSpec; 26 int width = MeasureSpec.getSize(widthMeasureSpec); 27 int height = MeasureSpec.getSize(heightMeasureSpec);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
IndicatorControlWheelContainer.java | 119 int freeSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 128 int widthMode = MeasureSpec.getMode(widthSpec); 129 int heightMode = MeasureSpec.getMode(heightSpec); 131 if (widthMode == MeasureSpec.UNSPECIFIED) { 133 } else if (widthMode == MeasureSpec.AT_MOST) { 134 measuredWidth = Math.min(desiredWidth, MeasureSpec.getSize(widthSpec)); 135 } else { // MeasureSpec.EXACTLY 136 measuredWidth = MeasureSpec.getSize(widthSpec); 138 if (heightMode == MeasureSpec.UNSPECIFIED) [all...] |
OneRowGridView.java | 43 widthMeasureSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
MessageBubbleBackground.java | 39 final int maxWidth = MeasureSpec.getSize(widthMeasureSpec) - widthPadding; 44 MeasureSpec.makeMeasureSpec(bubbleWidth + widthPadding, MeasureSpec.EXACTLY),
|
/packages/apps/Settings/src/com/android/settings/display/ |
MessageBubbleBackground.java | 39 final int maxWidth = MeasureSpec.getSize(widthMeasureSpec) - widthPadding; 44 MeasureSpec.makeMeasureSpec(bubbleWidth + widthPadding, MeasureSpec.EXACTLY),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
FixedSizeFrameLayout.java | 53 measureContents(MeasureSpec.getSize(widthMeasureSpec), 54 MeasureSpec.getSize(heightMeasureSpec)); 82 super.onMeasure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), 83 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST));
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
EllipsizeLayout.java | 47 * final measurement pass(MeasureSpec.EXACTLY). In this case only, this class 51 * the width measure specification to MeasureSpec.UNSPECIFIED.)</li> 64 && (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY)) { 71 final int parentWidth = MeasureSpec.getSize(widthMeasureSpec); 72 final int queryWidthMeasureSpec = MeasureSpec. 73 makeMeasureSpec(MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.UNSPECIFIED);
|
/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...] |
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
PercentFrameLayout.java | 58 MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), 59 MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)); 62 MeasureSpec.makeMeasureSpec(width * widthPercent / 100, MeasureSpec.AT_MOST); 64 MeasureSpec.makeMeasureSpec(height * heightPercent / 100, MeasureSpec.AT_MOST);
|
/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...] |
/cts/tests/tests/text/src/android/text/cts/ |
MyanmarTest.java | 76 measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), 77 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
|
/developers/build/prebuilts/gradle/ActivitySceneTransitionBasic/Application/src/main/java/com/example/android/activityscenetransitionbasic/ |
SquareFrameLayout.java | 47 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 48 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); 71 final int newMeasureSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
|
/developers/samples/android/ui/activityscenetransition/ActivitySceneTransitionBasic/Application/src/main/java/com/example/android/activityscenetransitionbasic/ |
SquareFrameLayout.java | 47 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 48 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); 71 final int newMeasureSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
|
/development/samples/browseable/ActivitySceneTransitionBasic/src/com.example.android.activityscenetransitionbasic/ |
SquareFrameLayout.java | 47 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 48 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); 71 final int newMeasureSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
IllustrationTest.java | 50 illustration.measure(View.MeasureSpec.makeMeasureSpec(300, View.MeasureSpec.EXACTLY), 51 View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED));
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
CenteredLinearLayout.java | 39 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); 40 int parentHeight = MeasureSpec.getSize(heightMeasureSpec); 45 int measureMode = MeasureSpec.getMode(widthMeasureSpec); 46 widthMeasureSpec = MeasureSpec.makeMeasureSpec(mMaxWidth, measureMode);
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
CameraPreview.java | 23 import android.view.View.MeasureSpec; 71 final int width = View.MeasureSpec.getSize(widthMeasureSpec); 72 return MeasureSpec.makeMeasureSpec(width, View.MeasureSpec.EXACTLY); 81 final int width = View.MeasureSpec.getSize(widthMeasureSpec); 89 return View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.EXACTLY);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewCellLayoutChildren.java | 79 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 80 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 82 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 83 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 85 if (widthSpecMode == MeasureSpec.UNSPECIFIED || heightSpecMode == MeasureSpec.UNSPECIFIED) { 98 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width, 99 MeasureSpec.EXACTLY); 100 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height, 101 MeasureSpec.EXACTLY) [all...] |
/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:
|