Home
last modified time | relevance | path

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

12345

/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()
149 public static Drawable resolveImage(Uri uri, Context context, int maxWidth, int maxHeight) { in resolveImage() argument
152 return resolveImage(source, maxWidth, maxHeight); in resolveImage()
161 public static Drawable resolveImage(@DrawableRes int resId, Context context, int maxWidth, in resolveImage() argument
164 return resolveImage(source, maxWidth, maxHeight); in resolveImage()
168 private static Drawable resolveImage(Resources res, @DrawableRes int resId, int maxWidth, in resolveImage() argument
171 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/
DImageLoader.kt103 @Px maxWidth: Int = DEFAULT_MAX_SAFE_BITMAP_SIZE_PX, in <lambda>()
107 withContext(backgroundDispatcher) { loadBitmapSync(source, maxWidth, maxHeight, allocator) } in <lambda>()
127 @Px maxWidth: Int = DEFAULT_MAX_SAFE_BITMAP_SIZE_PX, in <lambda>()
134 maxWidth, in <lambda>()
162 @Px maxWidth: Int = DEFAULT_MAX_SAFE_BITMAP_SIZE_PX, in <lambda>()
168 configureDecoderForMaximumSize(decoder, info.size, maxWidth, maxHeight) in <lambda>()
198 @Px maxWidth: Int = DEFAULT_MAX_SAFE_BITMAP_SIZE_PX, in <lambda>()
203 loadDrawableSync(source, maxWidth, maxHeight, allocator) in <lambda>()
226 @Px maxWidth: Int = DEFAULT_MAX_SAFE_BITMAP_SIZE_PX, in <lambda>()
231 loadDrawableSync(icon, context, maxWidth, maxHeight, allocator) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityViewFlipper.java126 int maxWidth = widthSize; in onMeasure() local
135 if (lp.maxWidth > 0 && lp.maxWidth < maxWidth) { in onMeasure()
136 maxWidth = lp.maxWidth; in onMeasure()
145 maxWidth = Math.max(0, maxWidth - wPadding); in onMeasure()
154 final int childWidthSpec = makeChildMeasureSpec(maxWidth, lp.width); in onMeasure()
187 public int maxWidth; field in KeyguardSecurityViewFlipper.LayoutParams
199 maxWidth = other.maxWidth; in LayoutParams()
208 maxWidth = a.getDimensionPixelSize( in LayoutParams()
220 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/src/com/android/systemui/controls/ui/
DControlsPopupMenu.kt44 private val maxWidth: Int = resources.getDimensionPixelSize(R.dimen.control_popup_max_width) constant
94 val maxWidth = maxWidth.coerceAtMost(paddedWidth) in updateWidth() constant
97 width = maxWidth in updateWidth()
100 width = listView!!.measureDesiredWidth(maxWidth).coerceAtMost(maxWidth) in updateWidth()
121 private fun ListView.measureDesiredWidth(maxWidth: Int): Int { in ListView()
126 MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.AT_MOST), in ListView()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DBottomSheetLayout.java81 int maxWidth = screenWidth; in onMeasure() local
84 maxWidth -= 2 * pxOffset; in onMeasure()
87 maxWidth = in onMeasure()
88 Math.min(maxWidth, getContext().getResources().getDimensionPixelSize( in onMeasure()
91 super.onMeasure(MeasureSpec.makeMeasureSpec(maxWidth, MeasureSpec.EXACTLY), in onMeasure()
100 + ", maxWidth: " + maxWidth / displayMetrics.density + ", getMeasuredWidth(): " in onMeasure()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/dialog/ui/composable/
DAlertDialogContent.kt132 val maxWidth = constraints.maxWidth in AlertDialogButtons() constant
157 if (requiredWidth <= maxWidth) { in AlertDialogButtons()
160 layout(maxWidth, height) { in AlertDialogButtons()
161 positive?.let { it.placeRelative(maxWidth - it.width, 0) } in AlertDialogButtons()
165 negative.placeRelative(maxWidth - negative.width, 0) in AlertDialogButtons()
168 maxWidth - in AlertDialogButtons()
189 layout(maxWidth, height) { in AlertDialogButtons()
192 placeRelative(maxWidth - width, y) in AlertDialogButtons()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPhoneSizeSpecSource.kt146 var maxWidth: Int in getMaxSize() variable
152 maxWidth = Math.round(mOptimizedAspectRatio * shorterLength + in getMaxSize()
155 maxWidth = Math.min(maxWidth, shorterLength) in getMaxSize()
156 maxHeight = Math.round(maxWidth / aspectRatio) in getMaxSize()
159 maxWidth = shorterLength in getMaxSize()
160 maxHeight = Math.round(maxWidth / aspectRatio) in getMaxSize()
163 maxWidth = Math.round(maxHeight * aspectRatio) in getMaxSize()
166 return Size(maxWidth, maxHeight) in getMaxSize()
DLegacySizeSpecSource.kt76 val maxWidth = Math.max(getDefaultSize(aspectRatio).width, in getMaxSize() constant
78 val maxHeight = (maxWidth / aspectRatio).toInt() in getMaxSize()
79 Size(maxWidth, maxHeight) in getMaxSize()
83 val maxWidth = (maxHeight * aspectRatio).toInt() in getMaxSize() constant
84 Size(maxWidth, maxHeight) in getMaxSize()
/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/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/statusbar/notification/row/
DBigPictureIconManager.kt77 private var maxWidth = getMaxWidth() in <lambda>() variable
110 maxWidth = getMaxWidth() in <lambda>()
147 return imageLoader.loadDrawableSync(icon, context, maxWidth, maxHeight)?.let { drawable -> in <lambda>()
175 ?.resizeToMax(maxWidth, maxHeight) // match the dimensions of the fully loaded drawable in <lambda>()
267 private fun Size.resizeToMax(maxWidth: Int, maxHeight: Int): Size { in Size()
268 if (width <= maxWidth && height <= maxHeight) { in Size()
274 if (maxWidth <= 0) { in Size()
277 maxWidth.toFloat() / width.toFloat() in Size()
/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.java57 maxWidth(source.readInt()).
139 public Builder maxWidth(int maxWidth) { in maxWidth() method in TvStreamConfig.Builder
140 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()

12345