/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | ImageRequestDescriptor.java | 30 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()
|
D | UriImageRequestDescriptor.java | 32 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()
|
D | AvatarGroupRequestDescriptor.java | 32 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()
|
D | AvatarRequestDescriptor.java | 30 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()
|
D | MessagePartImageRequestDescriptor.java | 36 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()
|
D | FileImageRequestDescriptor.java | 35 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
|
D | VideoThumbnailRequestDescriptor.java | 24 public VideoThumbnailRequestDescriptor(final long id, int desiredWidth, int desiredHeight, in VideoThumbnailRequestDescriptor() argument 26 super(UriUtil.getContentUriForMediaStoreId(id), desiredWidth, desiredHeight, sourceWidth, in VideoThumbnailRequestDescriptor() local
|
D | CompositeImageRequestDescriptor.java | 30 final int desiredWidth, final int desiredHeight) { in CompositeImageRequestDescriptor() argument 31 super(desiredWidth, desiredHeight); in CompositeImageRequestDescriptor()
|
D | ImageRequest.java | 180 mDescriptor.desiredWidth, mDescriptor.desiredHeight); in loadBitmapInternal() 220 final int width = mDescriptor.desiredWidth; in postProcessOnBitmapResourceLoaded()
|
D | FileImageRequest.java | 69 mDescriptor.desiredWidth, mDescriptor.desiredHeight); in loadBitmapInternal()
|
D | CompositeImageRequest.java | 49 mDescriptor.desiredWidth, mDescriptor.desiredHeight); in CompositeImageRequest()
|
D | SimSelectorAvatarRequest.java | 56 final int width = mDescriptor.desiredWidth; in loadMediaInternal()
|
D | DecodedImageResource.java | 206 (float) descriptor.desiredWidth / bitmapWidth, in loadMediaBlocking()
|
D | AvatarRequest.java | 91 final int width = mDescriptor.desiredWidth; in loadMediaInternal()
|
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/ |
D | AvatarUtil.java | 280 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/ |
D | VideoThumbnailView.java | 302 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()
|
D | AttachmentPreviewFactory.java | 128 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/ |
D | VideoScale.java | 110 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/ |
D | GalleryGridItemData.java | 74 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/ |
D | IndicatorControlWheelContainer.java | 124 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/ |
D | ScaleSpan.java | 54 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/ |
D | CircledImageView.java | 308 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/ |
D | DotsPageIndicator.java | 296 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/ |
D | ConversationMessageView.java | 554 final int desiredWidth = displayMetrics.widthPixels - iconSize - iconSize; in updateMessageAttachments() local 562 desiredWidth, in updateMessageAttachments() 571 new UriImageRequestDescriptor(Uri.parse(youtubeThumbnailUrl), desiredWidth, in updateMessageAttachments()
|