Home
last modified time | relevance | path

Searched refs:desiredWidth (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DImageRequestDescriptor.java30 public final int desiredWidth; field in ImageRequestDescriptor
71 public ImageRequestDescriptor(final int desiredWidth, final int desiredHeight) { in ImageRequestDescriptor() argument
72 this(desiredWidth, desiredHeight, in ImageRequestDescriptor()
76 public ImageRequestDescriptor(final int desiredWidth, in ImageRequestDescriptor() argument
80 Assert.isTrue(desiredWidth == ImageRequest.UNSPECIFIED_SIZE || desiredWidth > 0); in ImageRequestDescriptor()
84 this.desiredWidth = desiredWidth; in ImageRequestDescriptor()
96 .append(desiredWidth).append(KEY_PART_DELIMITER) in getKey()
DUriImageRequestDescriptor.java32 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, final int desiredHeight) in UriImageRequestDescriptor() argument
34 this(uri, desiredWidth, desiredHeight, false, false, false, 0, 0); in UriImageRequestDescriptor()
37 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, final int desiredHeight, in UriImageRequestDescriptor() argument
40 this(uri, desiredWidth, desiredHeight, false, in UriImageRequestDescriptor()
44 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, in UriImageRequestDescriptor() argument
47 this(uri, desiredWidth, desiredHeight, UriImageRequest.UNSPECIFIED_SIZE, in UriImageRequestDescriptor()
58 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, in UriImageRequestDescriptor() argument
62 super(desiredWidth, desiredHeight, sourceWidth, sourceHeight, isStatic, in UriImageRequestDescriptor()
DAvatarGroupRequestDescriptor.java32 public AvatarGroupRequestDescriptor(final Uri uri, final int desiredWidth, in AvatarGroupRequestDescriptor() argument
34 this(convertToDescriptor(uri, desiredWidth, desiredHeight), desiredWidth, desiredHeight); in AvatarGroupRequestDescriptor()
38 final int desiredWidth, final int desiredHeight) { in AvatarGroupRequestDescriptor() argument
39 super(descriptors, desiredWidth, desiredHeight); in AvatarGroupRequestDescriptor()
44 final int desiredWidth, final int desiredHeight) { in convertToDescriptor() argument
50 Uri.parse(uriString), desiredWidth, desiredHeight); in convertToDescriptor()
73 final float width = desiredWidth; in generateDestRectArray()
DAvatarRequestDescriptor.java30 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, in AvatarRequestDescriptor() argument
32 this(uri, desiredWidth, desiredHeight, true /* cropToCircle */); in AvatarRequestDescriptor()
35 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, in AvatarRequestDescriptor() argument
37 this(uri, desiredWidth, desiredHeight, cropToCircle, false /* isWearBackground */); in AvatarRequestDescriptor()
40 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, in AvatarRequestDescriptor() argument
42 super(uri, desiredWidth, desiredHeight, false /* allowCompression */, true /* isStatic */, in AvatarRequestDescriptor()
DMessagePartImageRequestDescriptor.java36 final int desiredWidth, final int desiredHeight, boolean isStatic) { in MessagePartImageRequestDescriptor() argument
38 this(messagePart.getPartId(), messagePart.getContentUri(), desiredWidth, desiredHeight, in MessagePartImageRequestDescriptor()
43 final int desiredWidth, final int desiredHeight, final int sourceWidth, in MessagePartImageRequestDescriptor() argument
45 super(contentUri, desiredWidth, desiredHeight, sourceWidth, sourceHeight, in MessagePartImageRequestDescriptor()
DFileImageRequestDescriptor.java35 public FileImageRequestDescriptor(final String path, final int desiredWidth, in FileImageRequestDescriptor() argument
38 this(path, desiredWidth, desiredHeight, FileImageRequest.UNSPECIFIED_SIZE, in FileImageRequestDescriptor()
46 public FileImageRequestDescriptor(final String path, final int desiredWidth, in FileImageRequestDescriptor() argument
49 super(UriUtil.getUriForResourceFile(path), desiredWidth, desiredHeight, sourceWidth, in FileImageRequestDescriptor() local
DVideoThumbnailRequestDescriptor.java24 public VideoThumbnailRequestDescriptor(final long id, int desiredWidth, int desiredHeight, in VideoThumbnailRequestDescriptor() argument
26 super(UriUtil.getContentUriForMediaStoreId(id), desiredWidth, desiredHeight, sourceWidth, in VideoThumbnailRequestDescriptor() local
DCompositeImageRequestDescriptor.java30 final int desiredWidth, final int desiredHeight) { in CompositeImageRequestDescriptor() argument
31 super(desiredWidth, desiredHeight); in CompositeImageRequestDescriptor()
DImageRequest.java180 mDescriptor.desiredWidth, mDescriptor.desiredHeight); in loadBitmapInternal()
220 final int width = mDescriptor.desiredWidth; in postProcessOnBitmapResourceLoaded()
DFileImageRequest.java69 mDescriptor.desiredWidth, mDescriptor.desiredHeight); in loadBitmapInternal()
DCompositeImageRequest.java49 mDescriptor.desiredWidth, mDescriptor.desiredHeight); in CompositeImageRequest()
DSimSelectorAvatarRequest.java56 final int width = mDescriptor.desiredWidth; in loadMediaInternal()
DDecodedImageResource.java206 (float) descriptor.desiredWidth / bitmapWidth, in loadMediaBlocking()
DAvatarRequest.java91 final int width = mDescriptor.desiredWidth; in loadMediaInternal()
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/
DAvatarUtil.java280 int desiredWidth, int desiredHeight, boolean cropToCircle, int groupSize) { in generateDestRectArray() argument
281 float halfWidth = desiredWidth / 2F; in generateDestRectArray()
312 float diameter = (float) ((2 - Math.sqrt(2)) * ((float) desiredWidth - inset)); in generateDestRectArray()
316 /* left= */ (float) desiredWidth - diameter, in generateDestRectArray()
318 /* right= */ (float) desiredWidth - inset, in generateDestRectArray()
356 float quarterWidth = (float) desiredWidth / 4F; in generateDestRectArray()
378 /* right= */ (float) desiredWidth - inset, in generateDestRectArray()
394 /* right= */ (float) desiredWidth - inset, in generateDestRectArray()
406 /* right= */ (float) desiredWidth - inset, in generateDestRectArray()
/packages/apps/Messaging/src/com/android/messaging/ui/
DVideoThumbnailView.java302 int desiredWidth = 1; in onMeasure() local
309 desiredWidth = mVideoWidth; in onMeasure()
312 desiredWidth = mThumbnailImage.getMeasuredWidth(); in onMeasure()
321 MeasureSpec.getSize(widthMeasureSpec) / (float) desiredWidth, in onMeasure()
325 final float widthScale = Math.max(1, minimumWidth / (float) desiredWidth); in onMeasure()
328 desiredWidth = (int) (desiredWidth * scale); in onMeasure()
331 setMeasuredDimension(desiredWidth, desiredHeight); in onMeasure()
DAttachmentPreviewFactory.java128 final MessagePartData attachmentData, final int desiredWidth, final int desiredHeight) { in getImageRequestDescriptorForAttachment() argument
134 return new FileImageRequestDescriptor(filePath, desiredWidth, desiredHeight, in getImageRequestDescriptorForAttachment()
139 return new UriImageRequestDescriptor(uri, desiredWidth, desiredHeight, in getImageRequestDescriptorForAttachment()
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
DVideoScale.java110 int desiredWidth = viewHeight * videoWidth / videoHeight; in scaleVideoMaintainingAspectRatio() local
111 scaleWidth = (float) desiredWidth / (float) viewWidth; in scaleVideoMaintainingAspectRatio()
121 int desiredWidth = viewHeight * videoWidth / videoHeight; in scaleVideoMaintainingAspectRatio() local
122 scaleHeight = (float) desiredWidth / (float) viewWidth; in scaleVideoMaintainingAspectRatio()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DGalleryGridItemData.java74 public void bind(final Cursor cursor, final int desiredWidth, final int desiredHeight) { in bind() argument
104 desiredWidth, in bind()
111 desiredWidth, in bind()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheelContainer.java124 int desiredWidth = mShutterButton.getMeasuredWidth() in onMeasure() local
132 measuredWidth = desiredWidth; in onMeasure()
134 measuredWidth = Math.min(desiredWidth, MeasureSpec.getSize(widthSpec)); in onMeasure()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/view/
DScaleSpan.java54 float desiredWidth = StaticLayout.getDesiredWidth(text.toString(), start, end, textPaint); in getSize() local
55 return (int) desiredWidth; in getSize()
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DCircledImageView.java308 float desiredWidth = radius * 2; in onMeasure() local
322 width = (int) Math.min(desiredWidth, widthSize); in onMeasure()
324 width = (int) desiredWidth; in onMeasure()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java296 int desiredWidth = getDesiredWidth(); in onMeasure() local
303 width = Math.min(desiredWidth, MeasureSpec.getSize(widthMeasureSpec)); in onMeasure()
306 width = desiredWidth; in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java554 final int desiredWidth = displayMetrics.widthPixels - iconSize - iconSize; in updateMessageAttachments() local
562 desiredWidth, in updateMessageAttachments()
571 new UriImageRequestDescriptor(Uri.parse(youtubeThumbnailUrl), desiredWidth, in updateMessageAttachments()