/packages/apps/Camera/src/com/android/camera/ |
PreviewFrameLayout.java | 64 int previewWidth = MeasureSpec.getSize(widthSpec); 65 int previewHeight = MeasureSpec.getSize(heightSpec); 85 super.onMeasure(MeasureSpec.makeMeasureSpec(previewWidth, MeasureSpec.EXACTLY), 86 MeasureSpec.makeMeasureSpec(previewHeight, MeasureSpec.EXACTLY));
|
/packages/apps/Calendar/src/com/android/calendar/ |
StickyHeaderListView.java | 285 v.measure(MeasureSpec.makeMeasureSpec(mListView.getWidth(), 286 MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(mListView.getHeight(), 287 MeasureSpec.AT_MOST));
|
/packages/apps/Email/src/com/android/email/view/ |
SizeBoundingFrameLayout.java | 83 int widthMode = MeasureSpec.getMode(widthMeasureSpec); 84 int heightMode = MeasureSpec.getMode(heightMeasureSpec); 85 int widthSize = MeasureSpec.getSize(widthMeasureSpec); 86 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 88 // Limit the size, unless MeasureSpec.EXACTLY 91 case MeasureSpec.AT_MOST: 94 case MeasureSpec.UNSPECIFIED: 95 widthMode = MeasureSpec.AT_MOST; 103 case MeasureSpec.AT_MOST: 106 case MeasureSpec.UNSPECIFIED [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
DisplayListLayersActivity.java | 121 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec) / 3, 122 MeasureSpec.getSize(heightMeasureSpec) / 3);
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDetailFragmentCarousel.java | 110 int screenWidth = MeasureSpec.getSize(widthMeasureSpec); 111 int screenHeight = MeasureSpec.getSize(heightMeasureSpec); 128 child.measure(MeasureSpec.makeMeasureSpec( 129 mMinFragmentWidth * MAX_FRAGMENT_VIEW_COUNT, MeasureSpec.EXACTLY), 130 MeasureSpec.makeMeasureSpec(screenHeight, MeasureSpec.EXACTLY)); 134 child.measure(MeasureSpec.makeMeasureSpec(screenWidth, MeasureSpec.EXACTLY), 135 MeasureSpec.makeMeasureSpec(screenHeight, MeasureSpec.EXACTLY)) [all...] |
ContactDetailTabCarousel.java | 120 int screenWidth = MeasureSpec.getSize(widthMeasureSpec); 133 child.measure(MeasureSpec.makeMeasureSpec(TAB_COUNT * tabWidth, MeasureSpec.EXACTLY), 134 MeasureSpec.makeMeasureSpec(tabHeight, MeasureSpec.EXACTLY));
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactListPinnedHeaderView.java | 103 MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), 104 MeasureSpec.makeMeasureSpec(mHeaderBackgroundHeight, MeasureSpec.EXACTLY)); 107 MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), 108 MeasureSpec.makeMeasureSpec(mHeaderBackgroundHeight, MeasureSpec.EXACTLY));
|
ContactListItemView.java | 356 MeasureSpec.makeMeasureSpec(effectiveWidth, MeasureSpec.EXACTLY), 357 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); 363 MeasureSpec.makeMeasureSpec(effectiveWidth, MeasureSpec.EXACTLY), 364 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); 393 mDataView.measure(MeasureSpec.makeMeasureSpec(dataWidth, MeasureSpec.EXACTLY) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewGridLayout.java | 65 MeasureSpec.getSize(widthMeasureSpec)); 66 int widthSpecMode = MeasureSpec.EXACTLY; 67 super.onMeasure(MeasureSpec.makeMeasureSpec(widthSpecSize, widthSpecMode),
|
PagedView.java | 443 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 444 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 445 if (widthMode != MeasureSpec.EXACTLY) { 454 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 455 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 473 childWidthMode = MeasureSpec.AT_MOST; 475 childWidthMode = MeasureSpec.EXACTLY; 480 childHeightMode = MeasureSpec.AT_MOST; 482 childHeightMode = MeasureSpec.EXACTLY; 486 MeasureSpec.makeMeasureSpec(widthSize - horizontalPadding, childWidthMode) [all...] |
/frameworks/base/core/java/android/widget/ |
LinearLayout.java | 606 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 607 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 638 if (heightMode == MeasureSpec.EXACTLY && lp.height == 0 && lp.weight > 0) { 697 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { 732 (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED)) { 799 if ((lp.height != 0) || (heightMode != MeasureSpec.EXACTLY)) { 808 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)); 813 MeasureSpec.makeMeasureSpec(share > 0 ? share : 0 [all...] |
Spinner.java | 286 if (mPopup != null && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.AT_MOST) { 290 MeasureSpec.getSize(widthMeasureSpec)), 497 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 499 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
AdapterViewAnimator.java | 570 int measureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 571 child.measure(measureSpec, measureSpec); 673 child.measure(MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY), 674 MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.EXACTLY)); 680 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec) [all...] |
CalendarView.java | [all...] |
SlidingDrawer.java | 254 int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec); 255 int widthSpecSize = MeasureSpec.getSize(widthMeasureSpec); 257 int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec); 258 int heightSpecSize = MeasureSpec.getSize(heightMeasureSpec); 260 if (widthSpecMode == MeasureSpec.UNSPECIFIED || heightSpecMode == MeasureSpec.UNSPECIFIED) { 269 mContent.measure(MeasureSpec.makeMeasureSpec(widthSpecSize, MeasureSpec.EXACTLY), 270 MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)) [all...] |
SearchView.java | 660 int widthMode = MeasureSpec.getMode(widthMeasureSpec); 661 int width = MeasureSpec.getSize(widthMeasureSpec); 664 case MeasureSpec.AT_MOST: 672 case MeasureSpec.EXACTLY: 678 case MeasureSpec.UNSPECIFIED: 683 widthMode = MeasureSpec.EXACTLY; 684 super.onMeasure(MeasureSpec.makeMeasureSpec(width, widthMode), heightMeasureSpec); [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
ActionMenuItemView.java | 241 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 242 final int specSize = MeasureSpec.getSize(widthMeasureSpec); 244 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(specSize, mMinWidth) 247 if (widthMode != MeasureSpec.EXACTLY && mMinWidth > 0 && oldMeasuredWidth < targetWidth) { 249 super.onMeasure(MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY),
|
ActionMenuView.java | 82 mFormatItems = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY; 90 final int widthSize = MeasureSpec.getMode(widthMeasureSpec); 105 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 106 int widthSize = MeasureSpec.getSize(widthMeasureSpec); 107 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 294 int heightSpec = MeasureSpec.makeMeasureSpec(heightSize - heightPadding, heightMode); 302 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), heightSpec); 306 if (heightMode != MeasureSpec.EXACTLY) [all...] |
IconMenuView.java | 361 child.measure(MeasureSpec.makeMeasureSpec((int) itemWidth, MeasureSpec.EXACTLY), 362 MeasureSpec.makeMeasureSpec((int) itemHeight, MeasureSpec.EXACTLY));
|
/frameworks/base/core/java/com/android/internal/widget/ |
AbsActionBarView.java | 211 child.measure(MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST),
|
ActionBarContextView.java | 323 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 324 if (widthMode != MeasureSpec.EXACTLY) { 329 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 330 if (heightMode == MeasureSpec.UNSPECIFIED) { 335 final int contentWidth = MeasureSpec.getSize(widthMeasureSpec); 338 mContentHeight : MeasureSpec.getSize(heightMeasureSpec); 343 final int childSpecHeight = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); 363 MeasureSpec.EXACTLY : MeasureSpec.AT_MOST [all...] |
ScrollingTabContainerView.java | 84 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 85 final boolean lockedExpanded = widthMode == MeasureSpec.EXACTLY; 90 (widthMode == MeasureSpec.EXACTLY || widthMode == MeasureSpec.AT_MOST)) { 92 mMaxTabWidth = (int) (MeasureSpec.getSize(widthMeasureSpec) * 0.4f); 94 mMaxTabWidth = MeasureSpec.getSize(widthMeasureSpec) / 2; 100 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mContentHeight, MeasureSpec.EXACTLY); 106 mTabLayout.measure(MeasureSpec.UNSPECIFIED, heightMeasureSpec); 107 if (mTabLayout.getMeasuredWidth() > MeasureSpec.getSize(widthMeasureSpec)) [all...] |
ActionBarView.java | 797 int widthMode = MeasureSpec.getMode(widthMeasureSpec); 798 if (widthMode != MeasureSpec.EXACTLY) { 803 int heightMode = MeasureSpec.getMode(heightMeasureSpec); 804 if (heightMode != MeasureSpec.AT_MOST) { 809 int contentWidth = MeasureSpec.getSize(widthMeasureSpec); 812 mContentHeight : MeasureSpec.getSize(heightMeasureSpec); 818 final int childSpecHeight = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); 830 homeWidthSpec = MeasureSpec.makeMeasureSpec(availableWidth, MeasureSpec.AT_MOST) [all...] |
/packages/apps/Calendar/src/com/android/calendar/month/ |
SimpleWeekView.java | 516 setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec), mHeight);
|
/frameworks/base/core/java/android/inputmethodservice/ |
KeyboardView.java | 591 if (MeasureSpec.getSize(widthMeasureSpec) < width + 10) { 592 width = MeasureSpec.getSize(widthMeasureSpec); [all...] |