Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DButtonBarLayout.java65 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
68 if (widthSize > mLastWidthSize && isStacked()) { in onMeasure()
73 mLastWidthSize = widthSize; in onMeasure()
83 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST); in onMeasure()
H A DPreferenceImageView.java52 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
55 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
H A DResolverDrawerLayout.java926 int widthSize = sourceWidth;
932 widthSize = Math.min(widthSize, mMaxWidth);
935 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);
/aosp12/frameworks/base/core/java/android/widget/
H A DActionMenuView.java154 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
155 if (mFormatItems && mMenu != null && widthSize != mFormatItemsWidth) { in onMeasure()
156 mFormatItemsWidth = widthSize; in onMeasure()
177 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasureExactFormat() local
186 widthSize -= widthPadding; in onMeasureExactFormat()
189 final int cellCount = widthSize / mMinCellSize; in onMeasureExactFormat()
190 final int cellSizeRemaining = widthSize % mMinCellSize; in onMeasureExactFormat()
194 setMeasuredDimension(widthSize, 0); in onMeasureExactFormat()
384 setMeasuredDimension(widthSize, heightSize); in onMeasureExactFormat()
H A DImageView.java1168 int widthSize; in onMeasure() local
1178 widthSize = resolveAdjustedSize(w + pleft + pright, mMaxWidth, widthMeasureSpec); in onMeasure()
1185 final float actualAspect = (float)(widthSize - pleft - pright) / in onMeasure()
1199 widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec); in onMeasure()
1202 if (newWidth <= widthSize) { in onMeasure()
1203 widthSize = newWidth; in onMeasure()
1210 int newHeight = (int)((widthSize - pleft - pright) / desiredAspect) + in onMeasure()
1236 widthSize = resolveSizeAndState(w, widthMeasureSpec, 0); in onMeasure()
1240 setMeasuredDimension(widthSize, heightSize); in onMeasure()
H A DAbsSpinner.java180 int widthSize; in onMeasure() local
243 widthSize = resolveSizeAndState(preferredWidth, widthMeasureSpec, 0); in onMeasure()
245 setMeasuredDimension(widthSize, heightSize); in onMeasure()
H A DListPopupWindow.java1218 final int widthSize; in buildDropDown() local
1222 widthSize = mDropDownWidth; in buildDropDown()
1225 widthSize = 0; in buildDropDown()
1227 final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, widthMode); in buildDropDown()
H A DGridView.java1065 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
1070 widthSize = mColumnWidth + mListPadding.left + mListPadding.right; in onMeasure()
1072 widthSize = mListPadding.left + mListPadding.right; in onMeasure()
1074 widthSize += getVerticalScrollbarWidth(); in onMeasure()
1077 int childWidth = widthSize - mListPadding.left - mListPadding.right; in onMeasure()
1138 if (ourSize > widthSize || didNotInitiallyFit) { in onMeasure()
1139 widthSize |= MEASURED_STATE_TOO_SMALL; in onMeasure()
1143 setMeasuredDimension(widthSize, heightSize); in onMeasure()
H A DLinearLayout.java1327 int widthSize = mTotalLength; in measureHorizontal() local
1330 widthSize = Math.max(widthSize, getSuggestedMinimumWidth()); in measureHorizontal()
1333 int widthSizeAndState = resolveSizeAndState(widthSize, widthMeasureSpec, 0); in measureHorizontal()
1334 widthSize = widthSizeAndState & MEASURED_SIZE_MASK; in measureHorizontal()
1339 int remainingExcess = widthSize - mTotalLength in measureHorizontal()
H A DAnalogClock.java640 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
647 if (widthMode != MeasureSpec.UNSPECIFIED && widthSize < mDialWidth) { in onMeasure()
648 hScale = (float) widthSize / (float) mDialWidth; in onMeasure()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/
H A DLineWrapLayout.java49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec) - startPadding - endPadding; in onMeasure() local
55 int childWidthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST); in onMeasure()
75 if ((x + childMeasuredWidth) > widthSize) { in onMeasure()
92 int width = isFixedSize ? widthSize : maxLineWidth; in onMeasure()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java124 final int widthSize = MeasureSpec.getSize(widthSpec); in onMeasure() local
126 int maxWidth = widthSize; in onMeasure()
148 int width = widthMode == MeasureSpec.EXACTLY ? widthSize : 0; in onMeasure()
159 width = Math.max(width, Math.min(child.getMeasuredWidth(), widthSize - wPadding)); in onMeasure()
/aosp12/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintOptionsLayout.java56 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
58 final int columnWidth = (widthSize != 0) in onMeasure()
59 ? (widthSize - mPaddingLeft - mPaddingRight) / mColumnCount : 0; in onMeasure()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
H A DPreferenceImageView.java49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
52 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
/aosp12/packages/apps/Settings/src/com/android/settings/widget/
H A DBottomLabelLayout.java48 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
57 initialWidthMeasureSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.AT_MOST); in onMeasure()
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DButtonBarLayout.java47 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
65 if (getMeasuredWidth() > widthSize) { in onMeasure()
/aosp12/frameworks/ex/widget/java/com/android/ex/widget/
H A 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()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
H A DGroupedTaskView.java217 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
219 setMeasuredDimension(widthSize, heightSize); in onMeasure()
224 mSnapshotView2, widthSize, heightSize, mSplitBoundsConfig, in onMeasure()
/aosp12/frameworks/base/core/java/android/app/
H A DMediaRouteButton.java280 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
293 measuredWidth = widthSize; in onMeasure()
296 measuredWidth = Math.min(widthSize, width); in onMeasure()
/aosp12/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
H A DCircledImageView.java312 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
320 width = widthSize; in onMeasure()
322 width = (int) Math.min(desiredWidth, widthSize); in onMeasure()
/aosp12/frameworks/base/core/java/com/android/internal/view/menu/
H A 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()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/
H A DPagedView.java640 private int getPageWidthSize(int widthSize) { in getPageWidthSize() argument
643 return (widthSize - mInsets.left - mInsets.right - getPaddingLeft() - getPaddingRight()) in getPageWidthSize()
657 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
667 if (widthSize <= 0 || heightSize <= 0) { in onMeasure()
674 if (DEBUG) Log.d(TAG, "PagedView.onMeasure(): " + widthSize + ", " + heightSize); in onMeasure()
677 getPageWidthSize(widthSize), MeasureSpec.EXACTLY); in onMeasure()
684 setMeasuredDimension(widthSize, heightSize); in onMeasure()
/aosp12/packages/apps/Gallery2/src/com/android/photos/views/
H A DGalleryThumbnailView.java128 int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure() local
133 "Using fallback spec of EXACTLY " + widthSize); in onMeasure()
140 setMeasuredDimension(widthSize, heightSize); in onMeasure()
/aosp12/packages/apps/DeskClock/src/com/android/alarmclock/
H A DDigitalAppWidgetProvider.kt492 val widthSize: Int = View.MeasureSpec.getSize(measuredSizes.mTargetWidthPx)
494 val widthMeasureSpec: Int = View.MeasureSpec.makeMeasureSpec(widthSize, UNSPECIFIED)
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DScrollAdapterView.java1156 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
1158 int clientWidthSize = widthSize - getPaddingLeft() - getPaddingRight();
1186 widthSize = widthMode == MeasureSpec.AT_MOST ? Math.min(size, widthSize) : size;
1201 setMeasuredDimension(widthSize, heightSize);
1205 int scrollMax = (mOrientation == HORIZONTAL ? heightSize : widthSize) -

12