Home
last modified time | relevance | path

Searched refs:widthSize (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DActionMenuView.java104 final int widthSize = MeasureSpec.getMode(widthMeasureSpec); in onMeasure() local
105 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) { in onMeasure()
106 mFormatItemsWidth = widthSize; in onMeasure()
127 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasureExactFormat() local
138 widthSize -= widthPadding; in onMeasureExactFormat()
141 final int cellCount = widthSize / mMinCellSize; in onMeasureExactFormat()
142 final int cellSizeRemaining = widthSize % mMinCellSize; in onMeasureExactFormat()
146 setMeasuredDimension(widthSize, 0); in onMeasureExactFormat()
358 setMeasuredDimension(widthSize, heightSize); in onMeasureExactFormat()
DActionMenuItemView.java218 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
220 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) in onMeasure()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuView.java103 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
104 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) { in onMeasure()
105 mFormatItemsWidth = widthSize; in onMeasure()
126 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasureExactFormat() local
137 widthSize -= widthPadding; in onMeasureExactFormat()
140 final int cellCount = widthSize / mMinCellSize; in onMeasureExactFormat()
141 final int cellSizeRemaining = widthSize % mMinCellSize; in onMeasureExactFormat()
145 setMeasuredDimension(widthSize, 0); in onMeasureExactFormat()
335 setMeasuredDimension(widthSize, heightSize); in onMeasureExactFormat()
DActionMenuItemView.java269 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
271 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) in onMeasure()
/frameworks/base/core/java/android/widget/
DImageView.java803 int widthSize; in onMeasure() local
813 widthSize = resolveAdjustedSize(w + pleft + pright, mMaxWidth, widthMeasureSpec); in onMeasure()
820 float actualAspect = (float)(widthSize - pleft - pright) / in onMeasure()
834 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec); in onMeasure()
837 if (newWidth <= widthSize) { in onMeasure()
838 widthSize = newWidth; in onMeasure()
845 int newHeight = (int)((widthSize - pleft - pright) / desiredAspect) + in onMeasure()
871 widthSize = resolveSizeAndState(w, widthMeasureSpec, 0); in onMeasure()
875 setMeasuredDimension(widthSize, heightSize); in onMeasure()
DAnalogClock.java137 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
144 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) { in onMeasure()
145 hScale = (float) widthSize / (float) mDialWidth; in onMeasure()
DAbsSpinner.java167 int widthSize; in onMeasure() local
230 widthSize = resolveSizeAndState(preferredWidth, widthMeasureSpec, 0); in onMeasure()
232 setMeasuredDimension(widthSize, heightSize); in onMeasure()
DGridView.java1023 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
1028 widthSize = mColumnWidth + mListPadding.left + mListPadding.right; in onMeasure()
1030 widthSize = mListPadding.left + mListPadding.right; in onMeasure()
1032 widthSize += getVerticalScrollbarWidth(); in onMeasure()
1035 int childWidth = widthSize - mListPadding.left - mListPadding.right; in onMeasure()
1094 if (ourSize > widthSize || didNotInitiallyFit) { in onMeasure()
1095 widthSize |= MEASURED_STATE_TOO_SMALL; in onMeasure()
1099 setMeasuredDimension(widthSize, heightSize); in onMeasure()
DLinearLayout.java1173 int widthSize = mTotalLength; in measureHorizontal() local
1176 widthSize = Math.max(widthSize, getSuggestedMinimumWidth()); in measureHorizontal()
1179 int widthSizeAndState = resolveSizeAndState(widthSize, widthMeasureSpec, 0); in measureHorizontal()
1180 widthSize = widthSizeAndState & MEASURED_SIZE_MASK; in measureHorizontal()
1184 int delta = widthSize - mTotalLength; in measureHorizontal()
DListView.java1137 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
1162 widthSize = mListPadding.left + mListPadding.right + childWidth + in onMeasure()
1165 widthSize |= (childState&MEASURED_STATE_MASK); in onMeasure()
1178 setMeasuredDimension(widthSize , heightSize); in onMeasure()
DRelativeLayout.java392 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
397 myWidth = widthSize; in onMeasure()
DNumberPicker.java764 final int widthSize = resolveSizeAndStateRespectingMinSize(mMinWidth, getMeasuredWidth(), in onMeasure() local
768 setMeasuredDimension(widthSize, heightSize); in onMeasure()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java189 final int widthSize = MeasureSpec.getSize(widthSpec); in onMeasure() local
191 int maxWidth = widthSize; in onMeasure()
211 int width = widthMode == MeasureSpec.EXACTLY ? widthSize : 0; in onMeasure()
222 width = Math.max(width, Math.min(child.getMeasuredWidth(), widthSize - wPadding)); in onMeasure()
DPagedView.java652 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
663 mViewport.set(0, 0, widthSize, heightSize); in onMeasure()
671 if (widthSize <= 0 || heightSize <= 0) { in onMeasure()
686 if (DEBUG) Log.d(TAG, "PagedView.onMeasure(): " + widthSize + ", " + heightSize); in onMeasure()
712 MeasureSpec.makeMeasureSpec(widthSize - horizontalPadding, childWidthMode); in onMeasure()
741 int spacing = Math.max(offset, widthSize - offset - in onMeasure()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DAbsSpinnerICS.java148 int widthSize; in onMeasure() local
214 widthSize = resolveSize(preferredWidth, widthMeasureSpec); in onMeasure()
216 setMeasuredDimension(widthSize, heightSize); in onMeasure()
DActionBarView.java1323 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
1328 width = Math.min(width, widthSize); in onMeasure()
1331 width = widthSize; in onMeasure()
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java424 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
437 final int childWidthSpec = MeasureSpec.makeMeasureSpec((int) (widthSize * 0.8f), in onMeasure()
446 setMeasuredDimension(widthSize, heightSize); in onMeasure()
449 setMeasuredDimension(widthSize, Math.max(minHeight, textHeight + padding)); in onMeasure()
DViewPager.java1404 int widthSize = childWidthSize;
1409 widthSize = lp.width;
1418 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode);
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java617 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
622 "Using fallback spec of EXACTLY " + widthSize); in onMeasure()
631 setMeasuredDimension(widthSize, heightSize); in onMeasure()
634 final int colCount = widthSize / mMinColWidth; in onMeasure()
775 final int widthSize = colWidth * span + itemMargin * (span - 1); in layoutChildren() local
778 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY); in layoutChildren()
905 final int widthSize = colWidth * span + itemMargin * (span - 1); in fillUp() local
906 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY); in fillUp()
1019 final int widthSize = colWidth * span + itemMargin * (span - 1); in fillDown() local
1020 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY); in fillDown()
/frameworks/base/core/java/android/app/
DMediaRouteButton.java323 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
336 width = widthSize; in onMeasure()
339 width = Math.min(widthSize, minWidth + getPaddingLeft() + getPaddingRight()); in onMeasure()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteButton.java422 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
435 width = widthSize; in onMeasure()
438 width = Math.min(widthSize, minWidth + getPaddingLeft() + getPaddingRight()); in onMeasure()
/frameworks/support/v4/java/android/support/v4/widget/
DSlidingPaneLayout.java433 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
447 widthSize = 300; in onMeasure()
479 int widthRemaining = widthSize - getPaddingLeft() - getPaddingRight(); in onMeasure()
511 childWidthSpec = MeasureSpec.makeMeasureSpec(widthSize - horizontalMargin, in onMeasure()
514 childWidthSpec = MeasureSpec.makeMeasureSpec(widthSize - horizontalMargin, in onMeasure()
546 final int fixedPanelWidthLimit = widthSize - mOverhangSize; in onMeasure()
611 final int newWidth = widthSize - horizontalMargin; in onMeasure()
629 setMeasuredDimension(widthSize, layoutHeight); in onMeasure()
DDrawerLayout.java603 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
616 widthSize = 300; in onMeasure()
631 setMeasuredDimension(widthSize, heightSize); in onMeasure()
648 widthSize - lp.leftMargin - lp.rightMargin, MeasureSpec.EXACTLY); in onMeasure()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarView.java1490 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
1495 width = Math.min(width, widthSize); in onMeasure()
1498 width = widthSize; in onMeasure()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneWindow.java2263 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
2265 Math.min(w, widthSize), EXACTLY);

12