/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixel.java | 74 int minWidth, int minHeight, int maxWidth, int maxHeight) { in createResizableModified() argument 76 TYPE_RESIZE_MODIFIED_ASPECT_RATIO, minWidth, minHeight, maxWidth, maxHeight); in createResizableModified() 80 public static BipPixel createResizableFixed(int minWidth, int maxWidth, int maxHeight) { in createResizableFixed() argument 81 int minHeight = (minWidth * maxHeight) / maxWidth; in createResizableFixed() 83 TYPE_RESIZE_FIXED_ASPECT_RATIO, minWidth, minHeight, maxWidth, maxHeight); in createResizableFixed() 89 private BipPixel(int type, int minWidth, int minHeight, int maxWidth, int maxHeight) { in BipPixel() argument 93 || isDimensionInvalid(maxHeight)) { in BipPixel() 101 mMaxHeight = maxHeight; in BipPixel() 110 int maxHeight = -1; in BipPixel() local 122 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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixelTest.java | 35 int maxHeight, in testParse() argument 42 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testParse() 57 int minWidth, int minHeight, int maxWidth, int maxHeight, String pixelStr) { in testResizableModified() argument 58 BipPixel pixel = BipPixel.createResizableModified(minWidth, minHeight, maxWidth, maxHeight); in testResizableModified() 63 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testResizableModified() 67 private void testResizableFixed(int minWidth, int maxWidth, int maxHeight, String pixelStr) { in testResizableFixed() argument 68 int minHeight = (minWidth * maxHeight) / maxWidth; // spec defined in testResizableFixed() 69 BipPixel pixel = BipPixel.createResizableFixed(minWidth, maxWidth, maxHeight); in testResizableFixed() 74 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/modules/IntentResolver/java/src/com/android/intentresolver/ |
D | ResolverViewPager.java | 52 int maxHeight = 0; in onMeasure() local 57 if (maxHeight < child.getMeasuredHeight()) { in onMeasure() 58 maxHeight = child.getMeasuredHeight(); in onMeasure() 61 if (maxHeight > 0) { in onMeasure() 62 height = maxHeight; in onMeasure()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
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/modules/IntentResolver/java/src/com/android/intentresolver/widget/ |
D | ResolverDrawerLayout.java | 1036 if (lp.maxHeight != -1) { 1039 MeasureSpec.makeMeasureSpec(lp.maxHeight, MeasureSpec.AT_MOST), 1040 lp.maxHeight > remainingHeight ? lp.maxHeight - remainingHeight : 0); 1056 if (lp.maxHeight != -1) { 1059 MeasureSpec.makeMeasureSpec(lp.maxHeight, MeasureSpec.AT_MOST), 1060 lp.maxHeight > remainingHeight ? lp.maxHeight - remainingHeight : 0); 1215 public int maxHeight; 1232 maxHeight = a.getDimensionPixelSize( 1246 this.maxHeight = source.maxHeight;
|
/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/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/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/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/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/TV/src/com/android/tv/data/ |
D | ChannelImpl.java | 599 public void prefetchImage(Context context, int type, int maxWidth, int maxHeight) { in prefetchImage() argument 602 ImageLoader.prefetchBitmap(context, uriString, maxWidth, maxHeight); in prefetchImage() 625 int maxHeight, in loadBitmap() argument 628 ImageLoader.loadBitmap(context, uriString, maxWidth, maxHeight, callback); in loadBitmap()
|
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/ |
D | SecondaryDragLayer.java | 129 int maxHeight = in onMeasure() local 131 int appsHeight = Math.min(height - getPaddingTop() - getPaddingBottom(), maxHeight); in onMeasure()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ConversationMessageView.java | 124 final int maxHeight = Math.max(mContactIconView.getMeasuredHeight(), in onMeasure() local 126 setMeasuredDimension(horizontalSpace, maxHeight + getPaddingBottom() + getPaddingTop()); in onMeasure()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | DatabaseWidgetPreviewLoader.java | 256 ShortcutConfigActivityInfo info, int maxWidth, int maxHeight) { 262 if (maxHeight < size || maxWidth < size) {
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | SmartIconLoadPackagePermissionPreference.kt | 69 imageView.maxHeight = in onBindViewHolder()
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 994 unsigned int maxHeight, in addRollSupportedSizes() argument 1002 && SupportedMediaSizes[i].HeightInMicrometers / 10 <= maxHeight) { in addRollSupportedSizes() 1029 int minHeight = 0, maxHeight = 0; in parse_getMediaSupported() local 1050 minHeight = ippGetRange(attrptr3, 0, &maxHeight); in parse_getMediaSupported() 1063 if (minHeight > 0 && maxHeight > 0 in parse_getMediaSupported() 1067 addRollSupportedSizes(minWidth, maxWidth, minHeight, maxHeight, in parse_getMediaSupported()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | HeightRecordTest.java | 356 Length maxHeight = response.get(HEIGHT_MAX); in testAggregation_Height() local 359 assertThat(maxHeight).isNotNull(); in testAggregation_Height() 360 assertThat(maxHeight.getInMeters()).isEqualTo(1.5); in testAggregation_Height()
|
/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()
|