/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
BaseWrapContentTest.java | 95 lp.wSpec = View.MeasureSpec.makeMeasureSpec(25, View.MeasureSpec.UNSPECIFIED); 96 lp.hSpec = View.MeasureSpec.makeMeasureSpec(50, View.MeasureSpec.AT_MOST); 98 lp.hSpec = View.MeasureSpec.makeMeasureSpec(25, View.MeasureSpec.UNSPECIFIED); 99 lp.wSpec = View.MeasureSpec.makeMeasureSpec(50, View.MeasureSpec.AT_MOST); 131 wrapContent.hSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED) [all...] |
StaggeredGridLayoutManagerWrapContentTest.java | 108 lp.wSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); 128 lp.hSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
ModeOptionsOverlay.java | 172 super.onMeasure(MeasureSpec.makeMeasureSpec( 173 (int) uncoveredPreviewRect.width(), MeasureSpec.EXACTLY), 174 MeasureSpec.makeMeasureSpec((int) uncoveredPreviewRect.height(), 175 MeasureSpec.EXACTLY)
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
DetailsHelper.java | 21 import android.view.View.MeasureSpec; 60 view.measure(MeasureSpec.UNSPECIFIED, 61 MeasureSpec.makeMeasureSpec(bottom - top, MeasureSpec.AT_MOST));
|
PopupList.java | 23 import android.view.View.MeasureSpec; 146 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), 147 MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST));
|
/packages/apps/Settings/src/com/android/settings/widget/ |
SlidingTabLayout.java | 75 final int width = MeasureSpec.makeMeasureSpec( 76 mTitleView.getMeasuredWidth() / titleCount, MeasureSpec.EXACTLY); 77 final int height = MeasureSpec.makeMeasureSpec( 78 mIndicatorView.getMeasuredHeight(), MeasureSpec.EXACTLY);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
NotificationContentView.java | 143 int heightMode = MeasureSpec.getMode(heightMeasureSpec); 144 boolean hasFixedHeight = heightMode == MeasureSpec.EXACTLY; 145 boolean isHeightLimited = heightMode == MeasureSpec.AT_MOST; 147 int width = MeasureSpec.getSize(widthMeasureSpec); 149 maxSize = MeasureSpec.getSize(heightMeasureSpec); 160 ? MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED) 161 : MeasureSpec.makeMeasureSpec(size, MeasureSpec.AT_MOST); 169 heightSpec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactListItemView.java | 457 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), 458 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); 471 MeasureSpec.makeMeasureSpec(nameTextWidth, MeasureSpec.EXACTLY), 472 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); 478 MeasureSpec.makeMeasureSpec(effectiveWidth, MeasureSpec.EXACTLY) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewCellLayout.java | 171 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 172 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 174 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 175 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 177 if (widthSpecMode == MeasureSpec.UNSPECIFIED || heightSpecMode == MeasureSpec.UNSPECIFIED) { 198 // Initial values correspond to widthSpecMode == MeasureSpec.EXACTLY 201 if (widthSpecMode == MeasureSpec.AT_MOST) { 213 MeasureSpec.makeMeasureSpec(newWidth - getPaddingLeft() - 214 getPaddingRight(), MeasureSpec.EXACTLY) [all...] |
ShortcutAndWidgetContainer.java | 99 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 100 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 120 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width, MeasureSpec.EXACTLY); 121 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height, 122 MeasureSpec.EXACTLY);
|
/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/base/core/java/android/widget/ |
TableRow.java | 196 int measureMode = MeasureSpec.EXACTLY; 209 measureMode = MeasureSpec.AT_MOST; 215 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec( 306 spec = MeasureSpec.makeSafeMeasureSpec( 307 MeasureSpec.getSize(heightMeasureSpec), 308 MeasureSpec.UNSPECIFIED); 311 spec = MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY);
|
AnalogClock.java | 148 int widthMode = MeasureSpec.getMode(widthMeasureSpec); 149 int widthSize = MeasureSpec.getSize(widthMeasureSpec); 150 int heightMode = MeasureSpec.getMode(heightMeasureSpec); 151 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 156 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) { 160 if (heightMode != MeasureSpec.UNSPECIFIED && heightSize < mDialHeight) {
|
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...] |
/frameworks/base/core/java/com/android/internal/widget/ |
WatchListDecorLayout.java | 120 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec( 121 width, MeasureSpec.EXACTLY); 134 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec( 135 height, MeasureSpec.EXACTLY); 163 MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY || 164 MeasureSpec.getMode(heightMeasureSpec) != MeasureSpec.EXACTLY;
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/layout/ |
ScaledLayout.java | 124 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 125 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 168 int childWidthSpec = MeasureSpec.makeMeasureSpec( 169 (int) (width * (scaleEndCol - scaleStartCol)), MeasureSpec.EXACTLY); 170 int childHeightSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 190 childHeightSpec = MeasureSpec.makeMeasureSpec( 191 (int) (height * (scaleEndRow - scaleStartRow)), MeasureSpec.EXACTLY);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
VideoViewTest.java | 35 import android.view.View.MeasureSpec; 280 int resolvedSize = mVideoView.resolveAdjustedSize(desiredSize, MeasureSpec.UNSPECIFIED); 283 final int specSize = MeasureSpec.getSize(MeasureSpec.AT_MOST); 284 resolvedSize = mVideoView.resolveAdjustedSize(desiredSize, MeasureSpec.AT_MOST); 287 resolvedSize = mVideoView.resolveAdjustedSize(desiredSize, MeasureSpec.EXACTLY);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
ShortcutAndWidgetContainer.java | 103 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 104 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 165 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width, MeasureSpec.EXACTLY); 166 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY);
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
LineWrapLayout.java | 48 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec) - startPadding - endPadding; 50 final boolean isFixedSize = (widthMode == MeasureSpec.EXACTLY); 55 int childWidthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST); 70 currChild.measure(childWidthSpec, MeasureSpec.UNSPECIFIED);
|
/frameworks/base/core/java/android/view/ |
NotificationHeaderView.java | 132 final int givenWidth = MeasureSpec.getSize(widthMeasureSpec); 133 final int givenHeight = MeasureSpec.getSize(heightMeasureSpec); 134 int wrapContentWidthSpec = MeasureSpec.makeMeasureSpec(givenWidth, 135 MeasureSpec.AT_MOST); 136 int wrapContentHeightSpec = MeasureSpec.makeMeasureSpec(givenHeight, 137 MeasureSpec.AT_MOST); 159 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST); 168 int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST) [all...] |
/frameworks/support/core-ui/java/android/support/v4/view/ |
PagerTitleStrip.java | 297 final int childWidthSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); 300 final int childHeightSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); 428 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 429 if (widthMode != MeasureSpec.EXACTLY) { 437 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 447 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 448 if (heightMode == MeasureSpec.EXACTLY) { 449 height = MeasureSpec.getSize(heightMeasureSpec) [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouteButton.java | 426 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 427 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); 428 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 429 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 438 case MeasureSpec.EXACTLY: 441 case MeasureSpec.AT_MOST: 445 case MeasureSpec.UNSPECIFIED: 452 case MeasureSpec.EXACTLY: 455 case MeasureSpec.AT_MOST: 459 case MeasureSpec.UNSPECIFIED [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
NavigationView.java | 213 switch (MeasureSpec.getMode(widthSpec)) { 214 case MeasureSpec.EXACTLY: 217 case MeasureSpec.AT_MOST: 218 widthSpec = MeasureSpec.makeMeasureSpec( 219 Math.min(MeasureSpec.getSize(widthSpec), mMaxWidth), MeasureSpec.EXACTLY); 221 case MeasureSpec.UNSPECIFIED: 222 widthSpec = MeasureSpec.makeMeasureSpec(mMaxWidth, MeasureSpec.EXACTLY);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
FrameworkActionBar.java | 36 import android.view.View.MeasureSpec; 201 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 202 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderDrawable.java | 34 import android.view.View.MeasureSpec; 139 int w_spec = MeasureSpec.makeMeasureSpec(w, MeasureSpec.EXACTLY); 140 int h_spec = MeasureSpec.makeMeasureSpec(h, MeasureSpec.EXACTLY);
|