Home
last modified time | relevance | path

Searched refs:desiredWidth (Results 1 – 22 of 22) 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()
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
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()
DVideoThumbnailRequestDescriptor.java25 public VideoThumbnailRequestDescriptor(final long id, String path, int desiredWidth, in VideoThumbnailRequestDescriptor() argument
27 super(UriUtil.getUriForResourceFile(path), 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()
DDecodedImageResource.java206 (float) descriptor.desiredWidth / bitmapWidth, in loadMediaBlocking()
DSimSelectorAvatarRequest.java56 final int width = mDescriptor.desiredWidth; in loadMediaInternal()
DAvatarRequest.java91 final int width = mDescriptor.desiredWidth; in loadMediaInternal()
/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/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/Messaging/src/com/android/messaging/datamodel/data/
DGalleryGridItemData.java67 public void bind(final Cursor cursor, final int desiredWidth, final int desiredHeight) { in bind() argument
90 desiredWidth, in bind()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DCircledImageView.java309 float desiredWidth = radius * 2; in onMeasure() local
323 width = (int) Math.min(desiredWidth, widthSize); in onMeasure()
325 width = (int) desiredWidth; in onMeasure()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java294 int desiredWidth = getDesiredWidth(); in onMeasure() local
301 width = Math.min(desiredWidth, MeasureSpec.getSize(widthMeasureSpec)); in onMeasure()
304 width = desiredWidth; in onMeasure()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java553 final int desiredWidth = displayMetrics.widthPixels - iconSize - iconSize; in updateMessageAttachments() local
561 desiredWidth, in updateMessageAttachments()
570 new UriImageRequestDescriptor(Uri.parse(youtubeThumbnailUrl), desiredWidth, in updateMessageAttachments()