/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactTileAdapter.java | 589 final int width = MeasureSpec.getSize(widthMeasureSpec); 623 MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY), 624 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedView.java | 497 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 498 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 499 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 500 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 501 if (widthMode != MeasureSpec.EXACTLY) { 533 childWidthMode = MeasureSpec.AT_MOST; 535 childWidthMode = MeasureSpec.EXACTLY; 540 childHeightMode = MeasureSpec.AT_MOST; 542 childHeightMode = MeasureSpec.EXACTLY; 546 MeasureSpec.makeMeasureSpec(widthSize - horizontalPadding, childWidthMode) [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
MultiAttachmentLayout.java | 95 return MeasureSpec.makeMeasureSpec((endX - startX + 1) * cellWidth - padding * 2, 96 MeasureSpec.EXACTLY); 100 return MeasureSpec.makeMeasureSpec((endY - startY + 1) * cellHeight - padding * 2, 101 MeasureSpec.EXACTLY); 300 final int width = Math.min(MeasureSpec.getSize(widthMeasureSpec), maxWidth);
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
MediaPickerPanel.java | 127 int requestedHeight = MeasureSpec.getSize(heightMeasureSpec); 161 int viewPagerHeightMeasureSpec = MeasureSpec.makeMeasureSpec( 162 viewPagerHeight, MeasureSpec.EXACTLY); 312 final int measureSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE, MeasureSpec.AT_MOST); 313 measureChild(mTabStrip, measureSpec, measureSpec);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationItemViewCoordinates.java | 29 import android.view.View.MeasureSpec; 288 final int widthSpec = MeasureSpec.makeMeasureSpec(config.getWidth(), MeasureSpec.EXACTLY); 289 final int heightSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
/frameworks/base/core/java/android/widget/ |
ListPopupWindow.java | 38 import android.view.View.MeasureSpec; [all...] |
ActivityChooserView.java | 468 heightMeasureSpec = MeasureSpec.makeMeasureSpec(MeasureSpec.getSize(heightMeasureSpec), 469 MeasureSpec.EXACTLY); 802 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 803 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
FastScroller.java | 42 import android.view.View.MeasureSpec; 666 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(adjMaxWidth, MeasureSpec.AT_MOST); 667 final int heightMeasureSpec = MeasureSpec.makeSafeMeasureSpec( 668 adjMaxHeight, MeasureSpec.UNSPECIFIED); 707 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(adjMaxWidth, MeasureSpec.AT_MOST); 708 final int heightMeasureSpec = MeasureSpec.makeSafeMeasureSpec( 709 adjMaxHeight, MeasureSpec.UNSPECIFIED); 774 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST) [all...] |
SearchView.java | 789 int widthMode = MeasureSpec.getMode(widthMeasureSpec); 790 int width = MeasureSpec.getSize(widthMeasureSpec); 793 case MeasureSpec.AT_MOST: 801 case MeasureSpec.EXACTLY: 807 case MeasureSpec.UNSPECIFIED: 812 widthMode = MeasureSpec.EXACTLY; 814 int heightMode = MeasureSpec.getMode(heightMeasureSpec); 815 int height = MeasureSpec.getSize(heightMeasureSpec); 818 case MeasureSpec.AT_MOST: 819 case MeasureSpec.UNSPECIFIED [all...] |
GridView.java | [all...] |
StackView.java | [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ListPopupWindow.java | 41 import android.view.View.MeasureSpec; [all...] |
ActivityChooserView.java | 445 heightMeasureSpec = MeasureSpec.makeMeasureSpec(MeasureSpec.getSize(heightMeasureSpec), 446 MeasureSpec.EXACTLY); 773 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 774 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
AppCompatSpinner.java | 418 if (mPopup != null && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.AT_MOST) { 422 MeasureSpec.getSize(widthMeasureSpec)), 542 MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.UNSPECIFIED); 544 MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.UNSPECIFIED);
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
AllAppsContainerView.java | 298 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec( 299 getResources().getDisplayMetrics().widthPixels, MeasureSpec.AT_MOST); 300 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec( 301 getResources().getDisplayMetrics().heightPixels, MeasureSpec.AT_MOST); 325 MeasureSpec.getSize(widthMeasureSpec) - mContentPadding.right, 326 MeasureSpec.getSize(heightMeasureSpec) - mContentPadding.bottom); 332 MeasureSpec.getSize(widthMeasureSpec))
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
GridLayoutManager.java | 42 import android.view.View.MeasureSpec; [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
DrawerLayout.java | [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
RecentsView.java | 328 int width = MeasureSpec.getSize(widthMeasureSpec); 329 int height = MeasureSpec.getSize(heightMeasureSpec); 337 measureChild(mEmptyView, MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), 338 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST)); 345 MeasureSpec.makeMeasureSpec(buttonBounds.width(), MeasureSpec.AT_MOST), 346 MeasureSpec.makeMeasureSpec(buttonBounds.height(), MeasureSpec.AT_MOST)) [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
DotsPageIndicator.java | 283 switch (MeasureSpec.getMode(heightMeasureSpec)) { 284 case MeasureSpec.EXACTLY: 285 height = MeasureSpec.getSize(heightMeasureSpec); 287 case MeasureSpec.AT_MOST: 288 height = Math.min(desiredHeight, MeasureSpec.getSize(heightMeasureSpec)); 290 default: // MeasureSpec.UNSPECIFIED 296 switch (MeasureSpec.getMode(widthMeasureSpec)) { 297 case MeasureSpec.EXACTLY: 298 width = MeasureSpec.getSize(widthMeasureSpec); 300 case MeasureSpec.AT_MOST [all...] |
/packages/apps/TV/src/com/android/tv/ui/ |
ChannelBannerView.java | 660 mProgramTextView.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), 661 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); 669 mProgramTextView.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), 670 MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); 740 measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderSessionImpl.java | 74 import android.view.View.MeasureSpec; 224 MeasureSpec.UNSPECIFIED // this lets us know the actual needed size 225 : MeasureSpec.EXACTLY; 227 MeasureSpec.UNSPECIFIED // this lets us know the actual needed size 228 : MeasureSpec.EXACTLY; 248 mMeasuredScreenWidth, MeasureSpec.EXACTLY, 249 mMeasuredScreenHeight, MeasureSpec.EXACTLY); 336 mMeasuredScreenWidth, MeasureSpec.EXACTLY, 337 mMeasuredScreenHeight, MeasureSpec.EXACTLY); 375 width, MeasureSpec.EXACTLY [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
RadialPickerLayout.java | 148 int measuredWidth = MeasureSpec.getSize(widthMeasureSpec); 149 int widthMode = MeasureSpec.getMode(widthMeasureSpec); 150 int measuredHeight = MeasureSpec.getSize(heightMeasureSpec); 151 int heightMode = MeasureSpec.getMode(heightMeasureSpec); 154 super.onMeasure(MeasureSpec.makeMeasureSpec(minDimension, widthMode), 155 MeasureSpec.makeMeasureSpec(minDimension, heightMode)); [all...] |
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/ |
CarDrawerLayout.java | 670 int widthMode = MeasureSpec.getMode(widthMeasureSpec); 671 int heightMode = MeasureSpec.getMode(heightMeasureSpec); 672 int widthSize = MeasureSpec.getSize(widthMeasureSpec); 673 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 675 if (widthMode != MeasureSpec.EXACTLY || heightMode != MeasureSpec.EXACTLY) { 681 if (widthMode == MeasureSpec.UNSPECIFIED) { 684 else if (heightMode == MeasureSpec.UNSPECIFIED) { 689 "DrawerLayout must be measured with MeasureSpec.EXACTLY."); 698 final int contentWidthSpec = MeasureSpec.makeMeasureSpec [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
BoxInsetLayout.java | 202 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec( 203 getMeasuredWidth() - totalMargin, MeasureSpec.EXACTLY); 224 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec( 225 getMeasuredHeight() - totalMargin, MeasureSpec.EXACTLY);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
TableLayoutTest.java | 29 import android.view.View.MeasureSpec; 232 column0.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.EXACTLY); 234 column1.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.EXACTLY); 236 column2.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.EXACTLY); 611 mockTableLayout.onMeasure(MeasureSpec.EXACTLY, MeasureSpec.EXACTLY);
|