Home
last modified time | relevance | path

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

12

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DButtonBarLayout.java67 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
69 if (widthSize > mLastWidthSize && isStacked()) { in onMeasure()
73 mLastWidthSize = widthSize; in onMeasure()
81 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST); in onMeasure()
103 stack = (childWidthTotal + getPaddingLeft() + getPaddingRight()) > widthSize; in onMeasure()
DActionMenuView.java152 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
153 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) { in onMeasure()
154 mFormatItemsWidth = widthSize; in onMeasure()
175 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasureExactFormat() local
184 widthSize -= widthPadding; in onMeasureExactFormat()
187 final int cellCount = widthSize / mMinCellSize; in onMeasureExactFormat()
188 final int cellSizeRemaining = widthSize % mMinCellSize; in onMeasureExactFormat()
192 setMeasuredDimension(widthSize, 0); in onMeasureExactFormat()
382 setMeasuredDimension(widthSize, heightSize); in onMeasureExactFormat()
DContentFrameLayout.java109 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
111 Math.min(w, widthSize), EXACTLY); in onMeasure()
DListPopupWindow.java1202 final int widthSize; in buildDropDown() local
1206 widthSize = mDropDownWidth; in buildDropDown()
1209 widthSize = 0; in buildDropDown()
1211 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode); in buildDropDown()
DLinearLayoutCompat.java1139 int widthSize = mTotalLength; in measureHorizontal() local
1142 widthSize = Math.max(widthSize, getSuggestedMinimumWidth()); in measureHorizontal()
1145 int widthSizeAndState = ViewCompat.resolveSizeAndState(widthSize, widthMeasureSpec, 0); in measureHorizontal()
1146 widthSize = widthSizeAndState & ViewCompat.MEASURED_SIZE_MASK; in measureHorizontal()
1151 int delta = widthSize - mTotalLength; in measureHorizontal()
/frameworks/base/core/java/com/android/internal/widget/
DButtonBarLayout.java70 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
73 if (widthSize > mLastWidthSize && isStacked()) { in onMeasure()
78 mLastWidthSize = widthSize; in onMeasure()
88 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST); in onMeasure()
DPreferenceImageView.java49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
52 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
DResolverDrawerLayout.java739 int widthSize = sourceWidth;
745 widthSize = Math.min(widthSize, mMaxWidth);
748 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);
/frameworks/base/core/java/android/widget/
DActionMenuView.java151 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
152 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) { in onMeasure()
153 mFormatItemsWidth = widthSize; in onMeasure()
174 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasureExactFormat() local
183 widthSize -= widthPadding; in onMeasureExactFormat()
186 final int cellCount = widthSize / mMinCellSize; in onMeasureExactFormat()
187 final int cellSizeRemaining = widthSize % mMinCellSize; in onMeasureExactFormat()
191 setMeasuredDimension(widthSize, 0); in onMeasureExactFormat()
381 setMeasuredDimension(widthSize, heightSize); in onMeasureExactFormat()
DImageView.java1046 int widthSize;
1056 widthSize = resolveAdjustedSize(w + pleft + pright, mMaxWidth, widthMeasureSpec);
1063 final float actualAspect = (float)(widthSize - pleft - pright) /
1077 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec);
1080 if (newWidth <= widthSize) {
1081 widthSize = newWidth;
1088 int newHeight = (int)((widthSize - pleft - pright) / desiredAspect) +
1114 widthSize = resolveSizeAndState(w, widthMeasureSpec, 0);
1118 setMeasuredDimension(widthSize, heightSize);
DAnalogClock.java149 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
156 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) { in onMeasure()
157 hScale = (float) widthSize / (float) mDialWidth; in onMeasure()
DAbsSpinner.java168 int widthSize; in onMeasure() local
231 widthSize = resolveSizeAndState(preferredWidth, widthMeasureSpec, 0); in onMeasure()
233 setMeasuredDimension(widthSize, heightSize); in onMeasure()
DListPopupWindow.java1154 final int widthSize; in buildDropDown() local
1158 widthSize = mDropDownWidth; in buildDropDown()
1161 widthSize = 0; in buildDropDown()
1163 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode); in buildDropDown()
DGridView.java1044 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
1049 widthSize = mColumnWidth + mListPadding.left + mListPadding.right; in onMeasure()
1051 widthSize = mListPadding.left + mListPadding.right; in onMeasure()
1053 widthSize += getVerticalScrollbarWidth(); in onMeasure()
1056 int childWidth = widthSize - mListPadding.left - mListPadding.right; in onMeasure()
1117 if (ourSize > widthSize || didNotInitiallyFit) { in onMeasure()
1118 widthSize |= MEASURED_STATE_TOO_SMALL; in onMeasure()
1122 setMeasuredDimension(widthSize, heightSize); in onMeasure()
DLinearLayout.java1240 int widthSize = mTotalLength; in measureHorizontal() local
1243 widthSize = Math.max(widthSize, getSuggestedMinimumWidth()); in measureHorizontal()
1246 int widthSizeAndState = resolveSizeAndState(widthSize, widthMeasureSpec, 0); in measureHorizontal()
1247 widthSize = widthSizeAndState & MEASURED_SIZE_MASK; in measureHorizontal()
1252 int remainingExcess = widthSize - mTotalLength in measureHorizontal()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java55 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
57 final int columnWidth = (widthSize != 0) in onMeasure()
58 ? (widthSize - mPaddingLeft - mPaddingRight) / mColumnCount : 0; in onMeasure()
/frameworks/support/v7/preference/src/android/support/v7/internal/widget/
DPreferenceImageView.java86 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
89 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java203 final int widthSize = MeasureSpec.getSize(widthSpec); in onMeasure() local
205 int maxWidth = widthSize; in onMeasure()
225 int width = widthMode == MeasureSpec.EXACTLY ? widthSize : 0; in onMeasure()
236 width = Math.max(width, Math.min(child.getMeasuredWidth(), widthSize - wPadding)); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DUserGridView.java118 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
124 int numColumns = Math.max(1, Math.min(itemCount, widthSize / columnWidth)); in onMeasure()
/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.java329 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
342 measuredWidth = widthSize; in onMeasure()
345 measuredWidth = Math.min(widthSize, width); in onMeasure()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteButton.java426 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
439 measuredWidth = widthSize; in onMeasure()
442 measuredWidth = Math.min(widthSize, width); in onMeasure()
/frameworks/support/core-ui/java/android/support/v4/view/
DPagerTitleStrip.java437 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
438 final int widthPadding = (int) (widthSize * 0.2f); in onMeasure()
459 setMeasuredDimension(widthSize, measuredHeight); in onMeasure()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java308 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
310 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) in onMeasure()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DActionMenuItemView.java288 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
290 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth) in onMeasure()

12