Searched refs:widthSize (Results 1 - 25 of 40) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/widget/
H A DButtonBarLayout.java63 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
66 if (widthSize > mLastWidthSize && isStacked()) {
71 mLastWidthSize = widthSize;
81 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST);
H A DPreferenceImageView.java49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
52 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) {
H A DResolverDrawerLayout.java793 int widthSize = sourceWidth;
799 widthSize = Math.min(widthSize, mMaxWidth);
802 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DButtonBarLayout.java68 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
71 if (widthSize > mLastWidthSize && isStacked()) {
76 mLastWidthSize = widthSize;
86 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST);
H A DActionMenuView.java156 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
157 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) {
158 mFormatItemsWidth = widthSize;
179 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
188 widthSize -= widthPadding;
191 final int cellCount = widthSize / mMinCellSize;
192 final int cellSizeRemaining = widthSize % mMinCellSize;
196 setMeasuredDimension(widthSize, 0);
386 setMeasuredDimension(widthSize, heightSize);
H A DContentFrameLayout.java117 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
119 Math.min(w, widthSize), EXACTLY);
H A DLinearLayoutCompat.java1145 int widthSize = mTotalLength;
1148 widthSize = Math.max(widthSize, getSuggestedMinimumWidth());
1151 int widthSizeAndState = View.resolveSizeAndState(widthSize, widthMeasureSpec, 0);
1152 widthSize = widthSizeAndState & View.MEASURED_SIZE_MASK;
1157 int delta = widthSize - mTotalLength;
1252 // TODO: Should we update widthSize with the new total length?
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DButtonBarLayout.java48 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
66 if (getMeasuredWidth() > widthSize) {
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintOptionsLayout.java56 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
58 final int columnWidth = (widthSize != 0)
59 ? (widthSize - mPaddingLeft - mPaddingRight) / mColumnCount : 0;
/frameworks/support/preference/src/main/java/androidx/preference/internal/
H A DPreferenceImageView.java93 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
96 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) {
/frameworks/base/core/java/android/widget/
H A DActionMenuView.java152 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
153 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) {
154 mFormatItemsWidth = widthSize;
175 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
184 widthSize -= widthPadding;
187 final int cellCount = widthSize / mMinCellSize;
188 final int cellSizeRemaining = widthSize % mMinCellSize;
192 setMeasuredDimension(widthSize, 0);
382 setMeasuredDimension(widthSize, heightSize);
H A DAnalogClock.java148 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
155 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) {
156 hScale = (float) widthSize / (float) mDialWidth;
H A DImageView.java1098 int widthSize;
1108 widthSize = resolveAdjustedSize(w + pleft + pright, mMaxWidth, widthMeasureSpec);
1115 final float actualAspect = (float)(widthSize - pleft - pright) /
1129 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec);
1132 if (newWidth <= widthSize) {
1133 widthSize = newWidth;
1140 int newHeight = (int)((widthSize - pleft - pright) / desiredAspect) +
1166 widthSize = resolveSizeAndState(w, widthMeasureSpec, 0);
1170 setMeasuredDimension(widthSize, heightSize);
H A DAbsSpinner.java178 int widthSize;
241 widthSize = resolveSizeAndState(preferredWidth, widthMeasureSpec, 0);
243 setMeasuredDimension(widthSize, heightSize);
H A DGridView.java1049 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
1054 widthSize = mColumnWidth + mListPadding.left + mListPadding.right;
1056 widthSize = mListPadding.left + mListPadding.right;
1058 widthSize += getVerticalScrollbarWidth();
1061 int childWidth = widthSize - mListPadding.left - mListPadding.right;
1122 if (ourSize > widthSize || didNotInitiallyFit) {
1123 widthSize |= MEASURED_STATE_TOO_SMALL;
1127 setMeasuredDimension(widthSize, heightSize);
H A DListPopupWindow.java1180 final int widthSize;
1184 widthSize = mDropDownWidth;
1187 widthSize = 0;
1189 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode);
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java212 final int widthSize = MeasureSpec.getSize(widthSpec);
214 int maxWidth = widthSize;
234 int width = widthMode == MeasureSpec.EXACTLY ? widthSize : 0;
245 width = Math.max(width, Math.min(child.getMeasuredWidth(), widthSize - wPadding));
/frameworks/base/core/java/android/app/
H A DMediaRouteButton.java280 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
293 measuredWidth = widthSize;
296 measuredWidth = Math.min(widthSize, width);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenuItemView.java285 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
287 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth)
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
H A DActionMenuItemView.java278 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
280 final int targetWidth = widthMode == MeasureSpec.AT_MOST ? Math.min(widthSize, mMinWidth)
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java617 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
622 "Using fallback spec of EXACTLY " + widthSize);
631 setMeasuredDimension(widthSize, heightSize);
634 final int colCount = widthSize / mMinColWidth;
775 final int widthSize = colWidth * span + itemMargin * (span - 1);
778 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);
905 final int widthSize = colWidth * span + itemMargin * (span - 1);
906 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);
1019 final int widthSize = colWidth * span + itemMargin * (span - 1);
1020 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpe
[all...]
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
H A DMediaRouteButton.java440 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
453 measuredWidth = widthSize;
456 measuredWidth = Math.min(widthSize, width);
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
H A DMediaRouteButton.java425 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
438 measuredWidth = widthSize;
441 measuredWidth = Math.min(widthSize, width);
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
H A DPagerTitleStrip.java429 final int widthSize = MeasureSpec.getSize(widthMeasureSpec);
430 final int widthPadding = (int) (widthSize * 0.2f);
451 setMeasuredDimension(widthSize, measuredHeight);
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DCircledImageView.java324 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
332 width = widthSize;
334 width = (int) Math.min(desiredWidth, widthSize);

Completed in 134 milliseconds

12