Home
last modified time | relevance | path

Searched refs:maxWidth (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/
DSize.kt51 maxWidth = width, in <lambda>()
81 maxWidth = width, in size()
99 private val maxWidth: Density.() -> Int = SizeUnspecified, constant in com.android.compose.modifiers.SizeModifier
106 val maxWidth = constant
107 if (maxWidth != SizeUnspecified) {
108 maxWidth().coerceAtLeast(0)
120 minWidth().coerceAtMost(maxWidth).coerceAtLeast(0).let { in <lambda>()
137 maxWidth = maxWidth,
155 constraints.minWidth.coerceAtMost(targetConstraints.maxWidth) in measure()
158 if (maxWidth != SizeUnspecified) { in measure()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java96 public static Drawable resolveImage(@Nullable Icon icon, Context context, int maxWidth, in resolveImage() argument
107 Drawable result = resolveImage(uri, context, maxWidth, maxHeight); in resolveImage()
120 Drawable result = resolveImage(res, icon.getResId(), maxWidth, maxHeight); in resolveImage()
127 return resolveBitmapImage(icon, context, maxWidth, maxHeight); in resolveImage()
145 public static Drawable resolveImage(Uri uri, Context context, int maxWidth, int maxHeight) { in resolveImage() argument
148 return resolveImage(source, maxWidth, maxHeight); in resolveImage()
157 public static Drawable resolveImage(@DrawableRes int resId, Context context, int maxWidth, in resolveImage() argument
160 return resolveImage(source, maxWidth, maxHeight); in resolveImage()
164 private static Drawable resolveImage(Resources res, @DrawableRes int resId, int maxWidth, in resolveImage() argument
167 return resolveImage(source, maxWidth, maxHeight); in resolveImage()
[all …]
DDialogViewAnimator.java48 int maxWidth = 0; in onMeasure() local
71 maxWidth = Math.max(maxWidth, child.getMeasuredWidth() in onMeasure()
88 maxWidth += getPaddingLeft() + getPaddingRight(); in onMeasure()
93 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
99 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
102 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
DPreferenceImageView.java53 final int maxWidth = getMaxWidth(); in onMeasure() local
54 if (maxWidth != Integer.MAX_VALUE in onMeasure()
55 && (maxWidth < widthSize || widthMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
56 widthMeasureSpec = MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST); in onMeasure()
DWatchListDecorLayout.java168 int maxWidth = 0; in onMeasure() local
176 maxWidth = Math.max(maxWidth, in onMeasure()
191 maxWidth += getPaddingLeftWithForeground() + getPaddingRightWithForeground(); in onMeasure()
196 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
202 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
205 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
DNumericTextView.java219 int maxWidth = 0; in updateMinimumWidth() local
226 if (width > maxWidth) { in updateMinimumWidth()
227 maxWidth = width; in updateMinimumWidth()
232 setMinWidth(maxWidth); in updateMinimumWidth()
233 setMinimumWidth(maxWidth); in updateMinimumWidth()
DSubtitleView.java243 private boolean computeMeasurements(int maxWidth) { in computeMeasurements() argument
244 if (mHasMeasurements && maxWidth == mLastMeasuredWidth) { in computeMeasurements()
250 maxWidth -= paddingX; in computeMeasurements()
251 if (maxWidth <= 0) { in computeMeasurements()
259 mLastMeasuredWidth = maxWidth; in computeMeasurements()
260 mLayout = StaticLayout.Builder.obtain(mText, 0, mText.length(), mTextPaint, maxWidth) in computeMeasurements()
DActionBarOverlayLayout.java377 int maxWidth = 0;
385 maxWidth = Math.max(maxWidth,
395 maxWidth = Math.max(maxWidth,
465 maxWidth = Math.max(maxWidth,
472 maxWidth += getPaddingLeft() + getPaddingRight();
477 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth());
479 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState),
DAlertDialogLayout.java196 int maxWidth = 0; in tryOnMeasure() local
200 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in tryOnMeasure()
204 maxWidth += getPaddingLeft() + getPaddingRight(); in tryOnMeasure()
206 final int widthSizeAndState = resolveSizeAndState(maxWidth, widthMeasureSpec, childState); in tryOnMeasure()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java116 int maxWidth = widthSize; in onMeasure() local
125 if (lp.maxWidth > 0 && lp.maxWidth < maxWidth) { in onMeasure()
126 maxWidth = lp.maxWidth; in onMeasure()
135 maxWidth = Math.max(0, maxWidth - wPadding); in onMeasure()
144 final int childWidthSpec = makeChildMeasureSpec(maxWidth, lp.width); in onMeasure()
177 public int maxWidth; field in KeyguardSecurityViewFlipper.LayoutParams
189 maxWidth = other.maxWidth; in LayoutParams()
198 maxWidth = a.getDimensionPixelSize( in LayoutParams()
210 encoder.addProperty("layout:maxWidth", maxWidth); in encodeProperties()
/frameworks/base/core/java/android/widget/
DDayPickerViewPager.java64 int maxWidth = 0; in onMeasure() local
72 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
85 maxWidth += getPaddingLeft() + getPaddingRight(); in onMeasure()
90 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
96 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
99 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
DAbsoluteLayout.java64 int maxWidth = 0; in onMeasure() local
82 maxWidth = Math.max(maxWidth, childRight); in onMeasure()
88 maxWidth += mPaddingLeft + mPaddingRight; in onMeasure()
93 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
95 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, 0), in onMeasure()
DFrameLayout.java188 int maxWidth = 0; in onMeasure() local
196 maxWidth = Math.max(maxWidth, in onMeasure()
211 maxWidth += getPaddingLeftWithForeground() + getPaddingRightWithForeground(); in onMeasure()
216 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
222 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); in onMeasure()
225 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, childState), in onMeasure()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/
DExampleFeature.kt48 val maxWidth = maxWidth in ExampleFeature() constant
49 if (maxWidth < 600.dp) { in ExampleFeature()
53 MaxWidthTile(maxWidth) in ExampleFeature()
59 MaxWidthTile(maxWidth) in ExampleFeature()
83 private fun MaxWidthTile(maxWidth: Dp, modifier: Modifier = Modifier) { in MaxWidthTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsPopupMenu.java100 int maxWidth = 0; in show() local
105 maxWidth = Math.max(w, maxWidth); in show()
108 int width = maxWidth; in show()
110 width = Math.max(maxWidth, (int) (parentWidth * 0.5)); in show()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipSizeSpecHandler.java129 int maxWidth, maxHeight; in getMaxSize() local
134 maxWidth = (int) (mOptimizedAspectRatio * shorterLength in getMaxSize()
137 maxHeight = (int) (maxWidth / aspectRatio); in getMaxSize()
140 maxWidth = shorterLength; in getMaxSize()
141 maxHeight = (int) (maxWidth / aspectRatio); in getMaxSize()
144 maxWidth = (int) (maxHeight * aspectRatio); in getMaxSize()
148 return new Size(maxWidth, maxHeight); in getMaxSize()
267 final int maxWidth, maxHeight; in getMaxSize() local
270 maxWidth = (int) Math.max(getDefaultSize(aspectRatio).getWidth(), in getMaxSize()
272 maxHeight = (int) (maxWidth / aspectRatio); in getMaxSize()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/
DUserSwitcherPopupMenu.kt76 var maxWidth = 0 in findMaxWidth() variable
87 maxWidth = Math.max(child.getMeasuredWidth(), maxWidth) in findMaxWidth()
90 return maxWidth in findMaxWidth()
/frameworks/base/core/java/android/util/
DDisplayUtils.java63 int maxWidth = 0; in getMaximumResolutionDisplayMode() local
66 if (mode.getPhysicalWidth() > maxWidth) { in getMaximumResolutionDisplayMode()
67 maxWidth = mode.getPhysicalWidth(); in getMaximumResolutionDisplayMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/
DDrawableSize.kt44 @Px maxWidth: Int, in downscaleToSize()
62 if (originalWidth < maxWidth && originalHeight < maxHeight) { in downscaleToSize()
65 "to $maxWidth x $maxHeight") in downscaleToSize()
75 val scaleWidth = maxWidth.toFloat() / originalWidth.toFloat() in downscaleToSize()
/frameworks/base/media/java/android/media/tv/
DTvStreamConfig.java55 maxWidth(source.readInt()).
137 public Builder maxWidth(int maxWidth) { in maxWidth() method in TvStreamConfig.Builder
138 mMaxWidth = maxWidth; in maxWidth()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopup.java140 int maxWidth = 0; in measureIndividualMenuWidth() local
164 } else if (itemWidth > maxWidth) { in measureIndividualMenuWidth()
165 maxWidth = itemWidth; in measureIndividualMenuWidth()
169 return maxWidth; in measureIndividualMenuWidth()
/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp272 const size_t maxWidth = (mScreenWidth - mBorderWidth) - xpos; in drawWrappedString() local
273 if (maxWidth < 1) { in drawWrappedString()
279 if (stringWidth <= maxWidth) { in drawWrappedString()
318 char* TextRenderer::breakString(const char* str, float maxWidth) const { in breakString()
320 ALOGV("breakString '%s' %.3f", str, maxWidth); in breakString()
329 if (stringWidth <= maxWidth) { in breakString()
337 if (stringWidth < maxWidth) { in breakString()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java138 public static Bitmap buildScaledBitmap(Drawable drawable, int maxWidth, in buildScaledBitmap() argument
140 return buildScaledBitmap(drawable, maxWidth, maxHeight, false); in buildScaledBitmap()
150 public static Bitmap buildScaledBitmap(Drawable drawable, int maxWidth, in buildScaledBitmap() argument
158 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) && in buildScaledBitmap()
168 float ratio = Math.min((float) maxWidth / (float) originalWidth, in buildScaledBitmap()
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java249 int maxWidth = 0; in onMeasure() local
257 maxWidth = Math.max(maxWidth, child.getMeasuredWidth()); in onMeasure()
265 maxWidth += mPaddingLeft + mPaddingRight; in onMeasure()
270 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); in onMeasure()
272 setMeasuredDimension(resolveSizeAndState(maxWidth, widthMeasureSpec, measuredChildState), in onMeasure()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DFillContentLayout.java44 private int maxWidth; field in FillContentLayout
65 maxWidth = a.getDimensionPixelSize(R.styleable.SuwFillContentLayout_android_maxWidth, -1); in init()
93 Math.min(maxWidth, parentWidth), in measureIllustrationChild()

1234