/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/ |
D | Size.kt | 51 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/ |
D | LocalImageResolver.java | 96 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 …]
|
D | DialogViewAnimator.java | 48 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()
|
D | PreferenceImageView.java | 53 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()
|
D | WatchListDecorLayout.java | 168 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()
|
D | NumericTextView.java | 219 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/ |
D | ImageLoader.kt | 103 @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/ |
D | KeyguardSecurityViewFlipper.java | 126 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/ |
D | DayPickerViewPager.java | 64 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()
|
D | AbsoluteLayout.java | 64 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()
|
D | FrameLayout.java | 188 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/ |
D | ControlsPopupMenu.kt | 44 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/ |
D | BottomSheetLayout.java | 81 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/ |
D | AlertDialogContent.kt | 132 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/ |
D | PhoneSizeSpecSource.kt | 146 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()
|
D | LegacySizeSpecSource.kt | 76 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/ |
D | GlobalActionsPopupMenu.java | 100 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/ |
D | UserSwitcherPopupMenu.kt | 76 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/ |
D | DisplayUtils.java | 63 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/ |
D | BigPictureIconManager.kt | 77 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/ |
D | DrawableSize.kt | 44 @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/ |
D | TvStreamConfig.java | 57 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/ |
D | MenuPopup.java | 140 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/ |
D | TextRenderer.cpp | 272 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/ |
D | ImageUtils.java | 138 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()
|