Home
last modified time | relevance | path

Searched refs:maxHeight (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java139 Context context, final String uriString, final int maxWidth, final int maxHeight) { in prefetchBitmap() argument
142 doLoadBitmap(context, uriString, maxWidth, maxHeight, null, AsyncTask.SERIAL_EXECUTOR); in prefetchBitmap()
152 maxHeight, in prefetchBitmap()
185 int maxHeight, in loadBitmap() argument
191 context, uriString, maxWidth, maxHeight, callback, IMAGE_THREAD_POOL_EXECUTOR); in loadBitmap()
198 int maxHeight, in doLoadBitmap() argument
205 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap()
214 new LoadBitmapFromUriTask(context, imageCache, uriString, maxWidth, maxHeight)); in doLoadBitmap()
317 Context context, ImageCache imageCache, String key, int maxHeight, int maxWidth) { in LoadBitmapTask() argument
318 if (maxWidth == 0 || maxHeight == 0) { in LoadBitmapTask()
[all …]
DBitmapUtils.java60 public static Bitmap scaleBitmap(Bitmap bm, int maxWidth, int maxHeight) { in scaleBitmap() argument
61 Rect rect = calculateNewSize(bm, maxWidth, maxHeight); in scaleBitmap()
65 public static Bitmap getScaledMutableBitmap(Bitmap bm, int maxWidth, int maxHeight) { in getScaledMutableBitmap() argument
66 Bitmap scaledBitmap = scaleBitmap(bm, maxWidth, maxHeight); in getScaledMutableBitmap()
72 private static Rect calculateNewSize(Bitmap bm, int maxWidth, int maxHeight) { in calculateNewSize() argument
73 final double ratio = maxHeight / (double) maxWidth; in calculateNewSize()
80 rect.right = Math.round((float) bm.getWidth() * maxHeight / bm.getHeight()); in calculateNewSize()
81 rect.bottom = maxHeight; in calculateNewSize()
87 String id, Bitmap bm, int maxWidth, int maxHeight) { in createScaledBitmapInfo() argument
90 scaleBitmap(bm, maxWidth, maxHeight), in createScaledBitmapInfo()
[all …]
/packages/apps/Dialer/java/com/android/dialer/widget/
DMaxHeightScrollView.java28 private final int maxHeight; field in MaxHeightScrollView
42 maxHeight = -1; in MaxHeightScrollView()
49 maxHeight = array.getDimensionPixelSize(R.styleable.MaxHeightScrollView_maxHeight, -1); in MaxHeightScrollView()
57 if (maxHeight < 0) { in onMeasure()
61 widthMeasureSpec, MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST)); in onMeasure()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DLogoUtils.java48 int maxHeight = (int) context.getResources().getDimension(R.dimen.max_logo_height); in getOrganisationLogo() local
50 bitmap = getBitmapPartiallyResized(logoFile.getPath(), maxWidth, maxHeight); in getOrganisationLogo()
58 resizeBitmap(bitmap, maxWidth, maxHeight)); in getOrganisationLogo()
103 static Bitmap resizeBitmap(Bitmap bitmap, int maxWidth, int maxHeight) { in resizeBitmap() argument
106 double ratio = Math.max((double) width / maxWidth, (double) height / maxHeight); in resizeBitmap()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DPreferenceImageView.java60 final int maxHeight = getMaxHeight(); in onMeasure() local
61 if (maxHeight != Integer.MAX_VALUE in onMeasure()
62 && (maxHeight < heightSize || heightMode == MeasureSpec.UNSPECIFIED)) { in onMeasure()
63 heightMeasureSpec = MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST); in onMeasure()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSharePopup.java172 float maxHeight = mPreviewFrame.getHeight() - vPaddingRootView; in setOrientation() local
176 maxWidth = maxHeight; in setOrientation()
177 maxHeight = temp; in setOrientation()
179 float actualAspect = maxWidth / maxHeight; in setOrientation()
191 params.width = Math.round(maxHeight * desiredAspect); in setOrientation()
192 params.height = Math.round(maxHeight); in setOrientation()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java171 int maxHeight = imageView.getMaxHeight(); in createImagePreview() local
174 maxWidth = maxHeight = resources.getDimensionPixelSize( in createImagePreview()
180 if (maxHeight <= 0 || maxHeight == Integer.MAX_VALUE) { in createImagePreview()
181 maxHeight = ImageRequest.UNSPECIFIED_SIZE; in createImagePreview()
185 maxWidth, maxHeight)); in createImagePreview()
DVideoThumbnailView.java161 final int maxHeight = typedAttributes.getDimensionPixelSize( in VideoThumbnailView() local
163 if (maxHeight != ImageRequest.UNSPECIFIED_SIZE) { in VideoThumbnailView()
164 mThumbnailImage.setMaxHeight(maxHeight); in VideoThumbnailView()
DMultiAttachmentLayout.java298 final int maxHeight = getResources().getDimensionPixelSize( in onMeasure() local
301 final int height = maxHeight; in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java931 final int maxWidth, final int maxHeight) { in getScaleFactorForMaxAllowedSize() argument
932 if (maxWidth <= 0 || maxHeight <= 0) { in getScaleFactorForMaxAllowedSize()
939 if (width <= maxWidth && height <= maxHeight) { in getScaleFactorForMaxAllowedSize()
944 return Math.min(maxWidth * 1.0f / width, maxHeight * 1.0f / height); in getScaleFactorForMaxAllowedSize()
986 final int maxHeight = mmsConfig.getMaxImageHeight(); in chooseBestPictureSize() local
990 maxWidth, maxHeight); in chooseBestPictureSize()
999 final int maxPixels = maxWidth * maxHeight; in chooseBestPictureSize()
1002 Collections.sort(sizes, new SizeComparator(maxWidth, maxHeight, aspectRatio, maxPixels)); in chooseBestPictureSize()
1049 public SizeComparator(final int maxWidth, final int maxHeight, in SizeComparator() argument
1052 mMaxHeight = maxHeight; in SizeComparator()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraManager.java730 private final int maxHeight; field in CameraManager.SizeComparator
740 final int maxHeight, in SizeComparator() argument
744 this.maxHeight = maxHeight; in SizeComparator()
756 if ((left.width <= maxWidth && left.height <= maxHeight) in compare()
757 != (right.width <= maxWidth && right.height <= maxHeight)) { in compare()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java302 int maxHeight = (availableHeightPx - getTotalWorkspacePadding().y); in updateAvailableDimensions() local
303 if (usedHeight > maxHeight) { in updateAvailableDimensions()
304 float scale = maxHeight / usedHeight; in updateAvailableDimensions()
379 int maxHeight = availableHeightPx - totalWorkspacePadding.y - folderMargin; in updateAvailableFolderCellDimensions() local
380 float scaleY = maxHeight / usedHeight; in updateAvailableFolderCellDimensions()
DWidgetPreviewLoader.java455 int maxWidth, int maxHeight, Bitmap preview) { in generateShortcutPreview() argument
461 if (maxHeight < size || maxWidth < size) { in generateShortcutPreview()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPopupList.java144 int maxHeight = mPopupWindow.getMaxAvailableHeight(mAnchorView) - p.top - p.bottom; in updatePopupLayoutParams() local
147 MeasureSpec.makeMeasureSpec(maxHeight, MeasureSpec.AT_MOST)); in updatePopupLayoutParams()
149 mPopupHeight = Math.min(maxHeight, content.getMeasuredHeight() + p.left + p.right); in updatePopupLayoutParams()
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java151 int maxHeight = getMeasuredHeight() - getPaddingBottom() - getPaddingTop(); in adjustTextSize() local
153 if (maxWidth <= 0 || maxHeight <= 0) { in adjustTextSize()
159 availableSpaceRect.bottom = maxHeight; in adjustTextSize()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlTree.java328 int maxHeight = 0; in getTreeHeight() local
334 if (currentHeight > maxHeight) { in getTreeHeight()
335 maxHeight = currentHeight; in getTreeHeight()
347 return maxHeight; in getTreeHeight()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadView.java611 int maxHeight = 0; in adjustDigitKeyHeights() local
618 maxHeight = Math.max(maxHeight, keyLayout.getHeight()); in adjustDigitKeyHeights()
635 maxHeight in adjustDigitKeyHeights()
/packages/apps/TV/src/com/android/tv/data/
DChannelImpl.java598 public void prefetchImage(Context context, int type, int maxWidth, int maxHeight) { in prefetchImage() argument
601 ImageLoader.prefetchBitmap(context, uriString, maxWidth, maxHeight); in prefetchImage()
624 int maxHeight, in loadBitmap() argument
627 ImageLoader.loadBitmap(context, uriString, maxWidth, maxHeight, callback); in loadBitmap()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DConversationMessageView.java122 final int maxHeight = Math.max(mContactIconView.getMeasuredHeight(), in onMeasure() local
124 setMeasuredDimension(horizontalSpace, maxHeight + getPaddingBottom() + getPaddingTop()); in onMeasure()
/packages/apps/Settings/src/com/android/settings/display/
DConversationMessageView.java122 final int maxHeight = Math.max(mContactIconView.getMeasuredHeight(), in onMeasure() local
124 setMeasuredDimension(horizontalSpace, maxHeight + getPaddingBottom() + getPaddingTop()); in onMeasure()
/packages/apps/Settings/src/com/android/settings/
DUtils.java945 public static Drawable getSafeDrawable(Drawable original, int maxWidth, int maxHeight) { in getSafeDrawable() argument
949 if (actualWidth <= maxWidth && actualHeight <= maxHeight) { in getSafeDrawable()
954 float scaleHeight = ((float) maxHeight) / actualHeight; in getSafeDrawable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java950 public static Drawable getSafeDrawable(Drawable original, int maxWidth, int maxHeight) { in getSafeDrawable() argument
954 if (actualWidth <= maxWidth && actualHeight <= maxHeight) { in getSafeDrawable()
959 float scaleHeight = ((float) maxHeight) / actualHeight; in getSafeDrawable()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DMasterImage.java560 float maxHeight = mOriginalBounds.height() / (float) h; in setImageShowSize() local
561 mMaxScaleFactor = Math.max(3.f, Math.max(maxWidth, maxHeight)); in setImageShowSize()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAppWidgetHostView.java96 int maxHeight) { in updateAppWidgetSize() argument
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java185 final int maxHeight = Math.max(mContactIconView.getMeasuredHeight(), in onMeasure() local
187 setMeasuredDimension(horizontalSpace, maxHeight + getPaddingBottom() + getPaddingTop()); in onMeasure()

12