/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixel.java | 78 int maxHeight) { in createResizableModified() argument 80 maxHeight); in createResizableModified() 86 public static BipPixel createResizableFixed(int minWidth, int maxWidth, int maxHeight) { in createResizableFixed() argument 87 int minHeight = (minWidth * maxHeight) / maxWidth; in createResizableFixed() 89 maxWidth, maxHeight); in createResizableFixed() 95 private BipPixel(int type, int minWidth, int minHeight, int maxWidth, int maxHeight) { in BipPixel() argument 97 || isDimensionInvalid(minHeight) || isDimensionInvalid(maxHeight)) { in BipPixel() 105 mMaxHeight = maxHeight; in BipPixel() 116 int maxHeight = -1; in BipPixel() local 128 maxHeight = Integer.parseInt(m1.group(2)); in BipPixel() [all …]
|
/packages/apps/TV/src/com/android/tv/util/images/ |
D | ImageLoader.java | 143 Context context, final String uriString, final int maxWidth, final int maxHeight) { in prefetchBitmap() argument 146 doLoadBitmap(context, uriString, maxWidth, maxHeight, null, AsyncTask.SERIAL_EXECUTOR); in prefetchBitmap() 156 maxHeight, in prefetchBitmap() 189 int maxHeight, in loadBitmap() argument 195 context, uriString, maxWidth, maxHeight, callback, IMAGE_THREAD_POOL_EXECUTOR); in loadBitmap() 202 int maxHeight, in doLoadBitmap() argument 209 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap() 218 new LoadBitmapFromUriTask(context, imageCache, uriString, maxWidth, maxHeight)); in doLoadBitmap() 322 Context context, ImageCache imageCache, String key, int maxHeight, int maxWidth) { in LoadBitmapTask() argument 323 if (maxWidth == 0 || maxHeight == 0) { in LoadBitmapTask() [all …]
|
D | BitmapUtils.java | 60 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/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixelTest.java | 32 int maxHeight, String pixelStr) { in testParse() argument 38 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testParse() 52 private void testResizableModified(int minWidth, int minHeight, int maxWidth, int maxHeight, in testResizableModified() argument 54 BipPixel pixel = BipPixel.createResizableModified(minWidth, minHeight, maxWidth, maxHeight); in testResizableModified() 59 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testResizableModified() 63 private void testResizableFixed(int minWidth, int maxWidth, int maxHeight, in testResizableFixed() argument 65 int minHeight = (minWidth * maxHeight) / maxWidth; // spec defined in testResizableFixed() 66 BipPixel pixel = BipPixel.createResizableFixed(minWidth, maxWidth, maxHeight); in testResizableFixed() 71 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testResizableFixed()
|
/packages/apps/Dialer/java/com/android/dialer/widget/ |
D | MaxHeightScrollView.java | 28 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/ |
D | LogoUtils.java | 48 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/ |
D | PreferenceImageView.java | 60 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/ |
D | SharePopup.java | 172 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/ |
D | AttachmentPreviewFactory.java | 171 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()
|
D | VideoThumbnailView.java | 161 final int maxHeight = typedAttributes.getDimensionPixelSize( in VideoThumbnailView() local 163 if (maxHeight != ImageRequest.UNSPECIFIED_SIZE) { in VideoThumbnailView() 164 mThumbnailImage.setMaxHeight(maxHeight); in VideoThumbnailView()
|
D | MultiAttachmentLayout.java | 303 final int maxHeight = getResources().getDimensionPixelSize( in onMeasure() local 306 final int height = maxHeight; in onMeasure()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 932 final int maxWidth, final int maxHeight) { in getScaleFactorForMaxAllowedSize() argument 933 if (maxWidth <= 0 || maxHeight <= 0) { in getScaleFactorForMaxAllowedSize() 940 if (width <= maxWidth && height <= maxHeight) { in getScaleFactorForMaxAllowedSize() 945 return Math.min(maxWidth * 1.0f / width, maxHeight * 1.0f / height); in getScaleFactorForMaxAllowedSize() 987 final int maxHeight = mmsConfig.getMaxImageHeight(); in chooseBestPictureSize() local 991 maxWidth, maxHeight); in chooseBestPictureSize() 1000 final int maxPixels = maxWidth * maxHeight; in chooseBestPictureSize() 1003 Collections.sort(sizes, new SizeComparator(maxWidth, maxHeight, aspectRatio, maxPixels)); in chooseBestPictureSize() 1050 public SizeComparator(final int maxWidth, final int maxHeight, in SizeComparator() argument 1053 mMaxHeight = maxHeight; in SizeComparator()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 730 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/Gallery2/src/com/android/gallery3d/ui/ |
D | PopupList.java | 144 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/ |
D | AutoResizeTextView.java | 151 int maxHeight = getMeasuredHeight() - getPaddingBottom() - getPaddingTop(); in adjustTextSize() local 153 if (maxWidth <= 0 || maxHeight <= 0) { in adjustTextSize() 159 availableSpaceRect.bottom = maxHeight; in adjustTextSize()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | ChannelImpl.java | 598 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/apps/Dialer/java/com/android/dialer/dialpadview/ |
D | DialpadView.java | 611 int maxHeight = 0; in adjustDigitKeyHeights() local 618 maxHeight = Math.max(maxHeight, keyLayout.getHeight()); in adjustDigitKeyHeights() 635 maxHeight in adjustDigitKeyHeights()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 325 int maxHeight = (availableHeightPx - getTotalWorkspacePadding().y); in updateAvailableDimensions() local 326 if (usedHeight > maxHeight) { in updateAvailableDimensions() 327 float scale = maxHeight / usedHeight; in updateAvailableDimensions()
|
D | WidgetPreviewLoader.java | 452 int maxWidth, int maxHeight, Bitmap preview) { in generateShortcutPreview() argument 458 if (maxHeight < size || maxWidth < size) { in generateShortcutPreview()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | ConversationMessageView.java | 122 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/ |
D | ConversationMessageView.java | 122 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/ |
D | Utils.java | 945 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/ |
D | Utils.java | 950 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/ |
D | PrimaryImage.java | 560 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/ |
D | PendingAppWidgetHostView.java | 96 int maxHeight) { in updateAppWidgetSize() argument
|