/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
PseudoGridView.java | 68 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.UNSPECIFIED) { 71 int width = MeasureSpec.getSize(widthMeasureSpec); 74 int childWidthSpec = MeasureSpec.makeMeasureSpec(childWidth, MeasureSpec.EXACTLY); 75 int childHeightSpec = MeasureSpec.UNSPECIFIED; 88 int maxHeightSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.EXACTLY);
|
QSIconView.java | 59 final int w = MeasureSpec.getSize(widthMeasureSpec); 61 mIcon.measure(MeasureSpec.makeMeasureSpec(w, getIconMeasureMode()), iconSpec); 106 return MeasureSpec.EXACTLY; 117 return MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY);
|
SignalTileView.java | 73 int hs = MeasureSpec.makeMeasureSpec(mIconFrame.getMeasuredHeight(), MeasureSpec.EXACTLY); 74 int ws = MeasureSpec.makeMeasureSpec(mIconFrame.getMeasuredHeight(), MeasureSpec.AT_MOST); 88 return MeasureSpec.AT_MOST;
|
QSContainer.java | 104 mQSPanel.measure(widthMeasureSpec, MeasureSpec.makeMeasureSpec( 105 MeasureSpec.getSize(heightMeasureSpec), MeasureSpec.UNSPECIFIED)); 109 super.onMeasure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), 110 MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY)); 116 MeasureSpec.makeMeasureSpec(mSizePoint.y, MeasureSpec.EXACTLY));
|
/frameworks/support/percent/tests/java/android/support/percent/ |
PercentFrameTest.java | 191 View.MeasureSpec.makeMeasureSpec(mContainerWidth, View.MeasureSpec.EXACTLY), 192 View.MeasureSpec.makeMeasureSpec(mContainerHeight, View.MeasureSpec.EXACTLY)); 233 View.MeasureSpec.makeMeasureSpec(mContainerWidth, View.MeasureSpec.EXACTLY), 234 View.MeasureSpec.makeMeasureSpec(mContainerHeight, View.MeasureSpec.EXACTLY));
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
MenuPopup.java | 25 import android.view.View.MeasureSpec; 144 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 145 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
/frameworks/base/core/java/com/android/internal/widget/ |
ButtonBarLayout.java | 70 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 87 if (!isStacked() && MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY) { 88 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST);
|
ActionBarView.java | [all...] |
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
CardPresenter.java | 25 import android.view.View.MeasureSpec; 58 v.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); 61 v.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED);
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/ |
MenuPopup.java | 26 import android.view.View.MeasureSpec; 146 final int widthMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 147 final int heightMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
|
/frameworks/base/core/java/android/app/ |
MediaRouteButton.java | 329 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 330 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); 331 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 332 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 341 case MeasureSpec.EXACTLY: 344 case MeasureSpec.AT_MOST: 348 case MeasureSpec.UNSPECIFIED: 355 case MeasureSpec.EXACTLY: 358 case MeasureSpec.AT_MOST: 362 case MeasureSpec.UNSPECIFIED [all...] |
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
CardView.java | 190 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 192 case MeasureSpec.EXACTLY: 193 case MeasureSpec.AT_MOST: 195 widthMeasureSpec = MeasureSpec.makeMeasureSpec(Math.max(minWidth, 196 MeasureSpec.getSize(widthMeasureSpec)), widthMode); 200 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 202 case MeasureSpec.EXACTLY: 203 case MeasureSpec.AT_MOST: 205 heightMeasureSpec = MeasureSpec.makeMeasureSpec(Math.max(minHeight, 206 MeasureSpec.getSize(heightMeasureSpec)), heightMode) [all...] |
/frameworks/base/core/java/android/widget/ |
TabWidget.java | 150 widthMeasureSpec = MeasureSpec.makeMeasureSpec( 151 totalWidth + mImposedTabWidths[childIndex], MeasureSpec.EXACTLY); 152 heightMeasureSpec = MeasureSpec.makeMeasureSpec(mImposedTabsHeight, 153 MeasureSpec.EXACTLY); 162 if (MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.UNSPECIFIED) { 168 final int width = MeasureSpec.getSize(widthMeasureSpec); 169 final int unspecifiedWidth = MeasureSpec.makeSafeMeasureSpec(width, 170 MeasureSpec.UNSPECIFIED);
|
LinearLayout.java | 702 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 703 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 736 if (heightMode == MeasureSpec.EXACTLY && useExcessSpace) { 798 if (widthMode != MeasureSpec.EXACTLY && lp.width == LayoutParams.MATCH_PARENT) { 833 (heightMode == MeasureSpec.AT_MOST || heightMode == MeasureSpec.UNSPECIFIED)) { [all...] |
ActionMenuView.java | 143 mFormatItems = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY; 151 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 173 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 174 int widthSize = MeasureSpec.getSize(widthMeasureSpec); 175 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 372 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), 377 if (heightMode != MeasureSpec.EXACTLY) { 393 * @param parentHeightMeasureSpec MeasureSpec used by the parent vie [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ActionBarContainer.java | 253 MeasureSpec.getMode(heightMeasureSpec) == MeasureSpec.AT_MOST && mHeight >= 0) { 254 heightMeasureSpec = MeasureSpec.makeMeasureSpec( 255 Math.min(mHeight, MeasureSpec.getSize(heightMeasureSpec)), MeasureSpec.AT_MOST); 261 final int mode = MeasureSpec.getMode(heightMeasureSpec); 263 && mode != MeasureSpec.EXACTLY) { 272 final int maxHeight = mode == MeasureSpec.AT_MOST ? 273 MeasureSpec.getSize(heightMeasureSpec) : Integer.MAX_VALUE;
|
ActionMenuView.java | 144 mFormatItems = MeasureSpec.getMode(widthMeasureSpec) == MeasureSpec.EXACTLY; 152 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 174 final int heightMode = MeasureSpec.getMode(heightMeasureSpec); 175 int widthSize = MeasureSpec.getSize(widthMeasureSpec); 176 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 373 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), 378 if (heightMode != MeasureSpec.EXACTLY) { 394 * @param parentHeightMeasureSpec MeasureSpec used by the parent vie [all...] |
/packages/apps/Settings/src/com/android/settings/display/ |
ConversationMessageView.java | 98 final int horizontalSpace = MeasureSpec.getSize(widthMeasureSpec); 100 final int unspecifiedMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 101 int iconMeasureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); 104 iconMeasureSpec = MeasureSpec.makeMeasureSpec( 106 MeasureSpec.EXACTLY); 117 final int messageContentWidthMeasureSpec = MeasureSpec.makeMeasureSpec(maxLeftoverSpace, 118 MeasureSpec.AT_MOST);
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
ScrollToPositionWithAutoMeasure.java | 19 import static android.view.View.MeasureSpec.AT_MOST; 20 import static android.view.View.MeasureSpec.EXACTLY; 21 import static android.view.View.MeasureSpec.makeMeasureSpec;
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
CircledImageView.java | 312 int widthMode = MeasureSpec.getMode(widthMeasureSpec); 313 int widthSize = MeasureSpec.getSize(widthMeasureSpec); 314 int heightMode = MeasureSpec.getMode(heightMeasureSpec); 315 int heightSize = MeasureSpec.getSize(heightMeasureSpec); 320 if (widthMode == MeasureSpec.EXACTLY) { 322 } else if (widthMode == MeasureSpec.AT_MOST) { 328 if (heightMode == MeasureSpec.EXACTLY) { 330 } else if (heightMode == MeasureSpec.AT_MOST) { 336 super.onMeasure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY) [all...] |
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
FingerprintLocationAnimationVideoView.java | 48 // Width is driven by measurespec, height is derrived from aspect ratio 49 int originalWidth = MeasureSpec.getSize(widthMeasureSpec); 51 super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(height, MeasureSpec.EXACTLY));
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
ListViewTest.java | 50 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY); 53 listView.measure(measureSpec, measureSpec); 60 listView.measure(measureSpec, measureSpec); 82 int measureSpec = View.MeasureSpec.makeMeasureSpec(100, View.MeasureSpec.EXACTLY) [all...] |
TextViewPerformanceTest.java | 50 mLabelView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); 61 mTextView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
PrintOptionsLayout.java | 54 final int widthMode = MeasureSpec.getMode(widthMeasureSpec); 55 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); 88 childWidthMeasureSpec = MeasureSpec.makeMeasureSpec( 90 MeasureSpec.EXACTLY);
|
/frameworks/support/design/src/android/support/design/widget/ |
HeaderScrollingViewBehavior.java | 76 int availableHeight = View.MeasureSpec.getSize(parentHeightMeasureSpec); 84 final int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(height, 86 ? View.MeasureSpec.EXACTLY 87 : View.MeasureSpec.AT_MOST);
|