/packages/apps/TV/src/com/android/tv/util/ |
D | ImageLoader.java | 141 final int maxHeight) { in prefetchBitmap() argument 144 doLoadBitmap(context, uriString, maxWidth, maxHeight, null, AsyncTask.SERIAL_EXECUTOR); in prefetchBitmap() 153 doLoadBitmap(appContext, uriString, maxWidth, maxHeight, null, in prefetchBitmap() 183 public static boolean loadBitmap(Context context, String uriString, int maxWidth, int maxHeight, in loadBitmap() argument 188 return doLoadBitmap(context, uriString, maxWidth, maxHeight, callback, in loadBitmap() 193 int maxWidth, int maxHeight, ImageLoaderCallback callback, Executor executor) { in doLoadBitmap() argument 198 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap() 205 new LoadBitmapFromUriTask(context, imageCache, uriString, maxWidth, maxHeight)); in doLoadBitmap() 304 public LoadBitmapTask(Context context, ImageCache imageCache, String key, int maxHeight, in LoadBitmapTask() argument 306 if (maxWidth == 0 || maxHeight == 0) { in LoadBitmapTask() [all …]
|
D | BitmapUtils.java | 53 public static Bitmap scaleBitmap(Bitmap bm, int maxWidth, int maxHeight) { in scaleBitmap() argument 54 Rect rect = calculateNewSize(bm, maxWidth, maxHeight); in scaleBitmap() 58 private static Rect calculateNewSize(Bitmap bm, int maxWidth, int maxHeight) { in calculateNewSize() argument 59 final double ratio = maxHeight / (double) maxWidth; in calculateNewSize() 66 rect.right = Math.round((float) bm.getWidth() * maxHeight / bm.getHeight()); in calculateNewSize() 67 rect.bottom = maxHeight; in calculateNewSize() 73 int maxHeight) { in createScaledBitmapInfo() argument 74 return new ScaledBitmapInfo(id, scaleBitmap(bm, maxWidth, maxHeight), in createScaledBitmapInfo() 75 calculateInSampleSize(bm.getWidth(), bm.getHeight(), maxWidth, maxHeight)); in createScaledBitmapInfo()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
D | TargetDrawable.java | 129 int maxHeight = 0; in resizeDrawables() local 135 maxHeight = Math.max(maxHeight, childDrawable.getIntrinsicHeight()); in resizeDrawables() 139 + maxWidth + "x" + maxHeight); in resizeDrawables() 140 d.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables() 146 + maxWidth + "x" + maxHeight); in resizeDrawables() 147 childDrawable.setBounds(0, 0, maxWidth, maxHeight); in resizeDrawables()
|
D | GlowPadView.java | 621 int maxHeight = mHandleDrawable.getHeight(); in internalSetTargetResources() local 626 maxHeight = Math.max(maxHeight, target.getHeight()); in internalSetTargetResources() 628 if (mMaxTargetWidth != maxWidth || mMaxTargetHeight != maxHeight) { in internalSetTargetResources() 630 mMaxTargetHeight = maxHeight; in internalSetTargetResources()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 931 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/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | LogoUtils.java | 65 int maxHeight = (int) context.getResources().getDimension(R.dimen.max_logo_height); in getOrganisationLogo() local 67 bitmap = getBitmapPartiallyResized(logoFile.getPath(), maxWidth, maxHeight); in getOrganisationLogo() 79 resizeBitmap(bitmap, maxWidth, maxHeight)); in getOrganisationLogo() 116 static Bitmap resizeBitmap(Bitmap bitmap, int maxWidth, int maxHeight) { in resizeBitmap() argument 119 double ratio = Math.max((double) width / maxWidth, (double) height / maxHeight); in resizeBitmap()
|
/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 | 298 final int maxHeight = getResources().getDimensionPixelSize( in onMeasure() local 301 final int height = maxHeight; in onMeasure()
|
/packages/apps/PackageInstaller/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/Launcher2/src/com/android/launcher2/ |
D | WidgetPreviewLoader.java | 460 int maxHeight = maxHeightForWidgetPreview(cellSpans[1]); in generateWidgetPreview() local 462 maxHeight, preview, null); in generateWidgetPreview() 620 ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) { in generateShortcutPreview() argument 625 tempBitmap.getHeight() != maxHeight) { in generateShortcutPreview() 626 tempBitmap = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview() 649 (preview.getWidth() != maxWidth || preview.getHeight() != maxHeight)) { in generateShortcutPreview() 652 preview = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview()
|
D | AppsCustomizePagedView.java | 724 int maxWidth, maxHeight; in beginDraggingWidget() local 726 maxHeight = Math.min((int) (previewDrawable.getIntrinsicHeight() * minScale), size[1]); in beginDraggingWidget() 731 spanY, maxWidth, maxHeight, null, previewSizeBeforeScale); in beginDraggingWidget()
|
/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/TV/src/com/android/tv/data/ |
D | Channel.java | 515 public void prefetchImage(Context context, int type, int maxWidth, int maxHeight) { in prefetchImage() argument 518 ImageLoader.prefetchBitmap(context, uriString, maxWidth, maxHeight); in prefetchImage() 537 public void loadBitmap(Context context, final int type, int maxWidth, int maxHeight, in loadBitmap() argument 540 ImageLoader.loadBitmap(context, uriString, maxWidth, maxHeight, callback); in loadBitmap()
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
D | HtmlTree.java | 328 int maxHeight = 0; in getTreeHeight() local 334 if (currentHeight > maxHeight) { in getTreeHeight() 335 maxHeight = currentHeight; in getTreeHeight() 347 return maxHeight; in getTreeHeight()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 197 int maxHeight = (availableHeightPx - workspacePadding.top - workspacePadding.bottom); in updateAvailableDimensions() local 198 if (usedHeight > maxHeight) { in updateAvailableDimensions() 199 scale = maxHeight / usedHeight; in updateAvailableDimensions()
|
D | WidgetPreviewLoader.java | 433 Launcher launcher, ResolveInfo info, int maxWidth, int maxHeight, Bitmap preview) { in generateShortcutPreview() argument 436 preview = Bitmap.createBitmap(maxWidth, maxHeight, Config.ARGB_8888); in generateShortcutPreview() 438 } else if (preview.getWidth() != maxWidth || preview.getHeight() != maxHeight) { in generateShortcutPreview()
|
D | Launcher.java | 3607 int maxHeight = (int) (searchDimens.y / density); in getOrCreateQsbBar() local 3608 int minHeight = maxHeight; in getOrCreateQsbBar() 3613 maxHeight = (int) Math.max(maxHeight, searchDimens.y / density); in getOrCreateQsbBar() 3618 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT, maxHeight); in getOrCreateQsbBar() 3623 Log.d(TAG, "QSB widget options: maxHeight=" + maxHeight + " minHeight=" + minHeight in getOrCreateQsbBar()
|
D | PendingAppWidgetHostView.java | 88 int maxHeight) { in updateAppWidgetSize() argument
|
D | CellLayout.java | 891 int maxHeight = mShortcutsAndWidgets.getMeasuredHeight(); in onMeasure() local 893 setMeasuredDimension(maxWidth, maxHeight); in onMeasure()
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/ |
D | LogoUtilsTest.java | 113 int maxHeight = (int) getContext().getResources().getDimension(R.dimen.max_logo_height); in testDefaultOrganisationLogo() local 119 expected = LogoUtils.resizeBitmap(expected, maxWidth, maxHeight); in testDefaultOrganisationLogo()
|
/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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | MasterImage.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/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 185 final int maxHeight = Math.max(mContactIconView.getMeasuredHeight(), in onMeasure() local 187 setMeasuredDimension(horizontalSpace, maxHeight + getPaddingBottom() + getPaddingTop()); in onMeasure()
|