Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DImageRequestDescriptor.java31 public final int desiredHeight; field in ImageRequestDescriptor
71 public ImageRequestDescriptor(final int desiredWidth, final int desiredHeight) { in ImageRequestDescriptor() argument
72 this(desiredWidth, desiredHeight, in ImageRequestDescriptor()
77 final int desiredHeight, final int sourceWidth, final int sourceHeight, in ImageRequestDescriptor() argument
81 Assert.isTrue(desiredHeight == ImageRequest.UNSPECIFIED_SIZE || desiredHeight > 0); in ImageRequestDescriptor()
85 this.desiredHeight = desiredHeight; in ImageRequestDescriptor()
97 .append(desiredHeight).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()
45 final int desiredHeight, final boolean allowCompression, boolean isStatic, in UriImageRequestDescriptor() argument
47 this(uri, desiredWidth, desiredHeight, UriImageRequest.UNSPECIFIED_SIZE, in UriImageRequestDescriptor()
59 final int desiredHeight, final int sourceWidth, final int sourceHeight, in UriImageRequestDescriptor() argument
62 super(desiredWidth, desiredHeight, sourceWidth, sourceHeight, isStatic, in UriImageRequestDescriptor()
DAvatarGroupRequestDescriptor.java33 final int desiredHeight) { 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()
74 final float height = desiredHeight; in generateDestRectArray()
DAvatarRequestDescriptor.java31 final int desiredHeight) { in AvatarRequestDescriptor() argument
32 this(uri, desiredWidth, desiredHeight, true /* cropToCircle */); in AvatarRequestDescriptor()
36 final int desiredHeight, final boolean cropToCircle) { in AvatarRequestDescriptor() argument
37 this(uri, desiredWidth, desiredHeight, cropToCircle, false /* isWearBackground */); in AvatarRequestDescriptor()
41 final int desiredHeight, boolean cropToCircle, boolean isWearBackground) { 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.java36 final int desiredHeight, final boolean canUseThumbnail, final boolean canCompress, in FileImageRequestDescriptor() argument
38 this(path, desiredWidth, desiredHeight, FileImageRequest.UNSPECIFIED_SIZE, in FileImageRequestDescriptor()
47 final int desiredHeight, final int sourceWidth, final int sourceHeight, 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()
221 final int height = mDescriptor.desiredHeight; in postProcessOnBitmapResourceLoaded()
DFileImageRequest.java69 mDescriptor.desiredWidth, mDescriptor.desiredHeight); in loadBitmapInternal()
DCompositeImageRequest.java49 mDescriptor.desiredWidth, mDescriptor.desiredHeight); in CompositeImageRequest()
DSimSelectorAvatarRequest.java57 final int height = mDescriptor.desiredHeight; in loadMediaInternal()
DDecodedImageResource.java207 (float) descriptor.desiredHeight / bitmapHeight); in loadMediaBlocking()
DAvatarRequest.java92 final int height = mDescriptor.desiredHeight; 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
282 float halfHeight = desiredHeight / 2F; in generateDestRectArray()
317 /* top= */ (float) desiredHeight - diameter, in generateDestRectArray()
319 /* bottom= */ (float) desiredHeight - inset); in generateDestRectArray()
358 float radius = cropToCircle ? (halfHeight - inset) / 2 : (float) desiredHeight / 4F; in generateDestRectArray()
359 float imageTwoCenterY = (float) desiredHeight - radius; in generateDestRectArray()
373 /* bottom= */ (float) desiredHeight - 2 * inset); in generateDestRectArray()
379 /* bottom= */ (float) desiredHeight - 2 * inset); in generateDestRectArray()
401 /* bottom= */ (float) desiredHeight - inset); in generateDestRectArray()
407 /* bottom= */ (float) desiredHeight - inset); in generateDestRectArray()
/packages/apps/Messaging/src/com/android/messaging/ui/
DVideoThumbnailView.java303 int desiredHeight = 1; in onMeasure() local
310 desiredHeight = mVideoHeight; in onMeasure()
313 desiredHeight = mThumbnailImage.getMeasuredHeight(); in onMeasure()
322 MeasureSpec.getSize(heightMeasureSpec) / (float) desiredHeight); in onMeasure()
326 final float heightScale = Math.max(1, minimumHeight / (float) desiredHeight); in onMeasure()
329 desiredHeight = (int) (desiredHeight * 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/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerPanel.java131 int desiredHeight = Math.min(mCurrentDesiredHeight, requestedHeight); in onMeasure() local
132 if (mExpanded && desiredHeight == 0) { in onMeasure()
136 desiredHeight = 1; in onMeasure()
137 } else if (!mExpanded && desiredHeight == 0) { in onMeasure()
151 requestedHeight - desiredHeight); in onMeasure()
157 final int tabAdjustedDesiredHeight = desiredHeight - tabStripHeight; in onMeasure()
164 setMeasuredDimension(mViewPager.getMeasuredWidth(), desiredHeight); in onMeasure() local
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/
DVideoScale.java106 int desiredHeight = viewWidth * videoHeight / videoWidth; in scaleVideoMaintainingAspectRatio() local
107 scaleWidth = (float) desiredHeight / (float) viewHeight; in scaleVideoMaintainingAspectRatio()
117 int desiredHeight = viewWidth * videoHeight / videoWidth; in scaleVideoMaintainingAspectRatio() local
118 scaleHeight = (float) desiredHeight / (float) viewHeight; 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
105 desiredHeight, in bind()
112 desiredHeight, in bind()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheelContainer.java126 int desiredHeight = mShutterButton.getMeasuredHeight() in onMeasure() local
139 measuredHeight = desiredHeight; in onMeasure()
141 measuredHeight = Math.min(desiredHeight, MeasureSpec.getSize(heightSpec)); in onMeasure()
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DCircledImageView.java309 float desiredHeight = radius * 2; in onMeasure() local
330 height = (int) Math.min(desiredHeight, heightSize); in onMeasure()
332 height = (int) desiredHeight; in onMeasure()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java283 int desiredHeight = getDesiredHeight(); in onMeasure() local
290 height = Math.min(desiredHeight, MeasureSpec.getSize(heightMeasureSpec)); in onMeasure()
293 height = desiredHeight; in onMeasure()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java3006 int desiredHeight = in getAllDayEventAnimator() local
3009 if (currentHeight == desiredHeight) { in getAllDayEventAnimator()
3015 currentHeight, desiredHeight); in getAllDayEventAnimator()
3029 int desiredHeight = mShowAllAllDayEvents ? maxADHeight : in getAllDayAnimator() local
3034 currentHeight, desiredHeight); in getAllDayAnimator()