/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
ImageRequestDescriptor.java | 30 public final int desiredWidth; 71 public ImageRequestDescriptor(final int desiredWidth, final int desiredHeight) { 72 this(desiredWidth, desiredHeight, 76 public ImageRequestDescriptor(final int desiredWidth, 80 Assert.isTrue(desiredWidth == ImageRequest.UNSPECIFIED_SIZE || desiredWidth > 0); 84 this.desiredWidth = desiredWidth; 96 .append(desiredWidth).append(KEY_PART_DELIMITER)
|
UriImageRequestDescriptor.java | 32 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, final int desiredHeight) 34 this(uri, desiredWidth, desiredHeight, false, false, false, 0, 0); 37 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, final int desiredHeight, 40 this(uri, desiredWidth, desiredHeight, false, 44 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, 47 this(uri, desiredWidth, desiredHeight, UriImageRequest.UNSPECIFIED_SIZE, 58 public UriImageRequestDescriptor(final Uri uri, final int desiredWidth, 62 super(desiredWidth, desiredHeight, sourceWidth, sourceHeight, isStatic,
|
AvatarRequestDescriptor.java | 30 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, 32 this(uri, desiredWidth, desiredHeight, true /* cropToCircle */); 35 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, 37 this(uri, desiredWidth, desiredHeight, cropToCircle, false /* isWearBackground */); 40 public AvatarRequestDescriptor(final Uri uri, final int desiredWidth, 42 super(uri, desiredWidth, desiredHeight, false /* allowCompression */, true /* isStatic */,
|
AvatarGroupRequestDescriptor.java | 32 public AvatarGroupRequestDescriptor(final Uri uri, final int desiredWidth, 34 this(convertToDescriptor(uri, desiredWidth, desiredHeight), desiredWidth, desiredHeight); 38 final int desiredWidth, final int desiredHeight) { 39 super(descriptors, desiredWidth, desiredHeight); 44 final int desiredWidth, final int desiredHeight) { 50 Uri.parse(uriString), desiredWidth, desiredHeight); 73 final float width = desiredWidth;
|
VideoThumbnailRequestDescriptor.java | 25 public VideoThumbnailRequestDescriptor(final long id, String path, int desiredWidth, 27 super(UriUtil.getUriForResourceFile(path), desiredWidth, desiredHeight, sourceWidth,
|
FileImageRequestDescriptor.java | 35 public FileImageRequestDescriptor(final String path, final int desiredWidth, 38 this(path, desiredWidth, desiredHeight, FileImageRequest.UNSPECIFIED_SIZE, 46 public FileImageRequestDescriptor(final String path, final int desiredWidth, 49 super(UriUtil.getUriForResourceFile(path), desiredWidth, desiredHeight, sourceWidth,
|
MessagePartImageRequestDescriptor.java | 36 final int desiredWidth, final int desiredHeight, boolean isStatic) { 38 this(messagePart.getPartId(), messagePart.getContentUri(), desiredWidth, desiredHeight, 43 final int desiredWidth, final int desiredHeight, final int sourceWidth, 45 super(contentUri, desiredWidth, desiredHeight, sourceWidth, sourceHeight,
|
CompositeImageRequestDescriptor.java | 30 final int desiredWidth, final int desiredHeight) { 31 super(desiredWidth, desiredHeight);
|
FileImageRequest.java | 69 mDescriptor.desiredWidth, mDescriptor.desiredHeight);
|
CompositeImageRequest.java | 49 mDescriptor.desiredWidth, mDescriptor.desiredHeight);
|
ImageRequest.java | 180 mDescriptor.desiredWidth, mDescriptor.desiredHeight); 220 final int width = mDescriptor.desiredWidth;
|
DecodedImageResource.java | 206 (float) descriptor.desiredWidth / bitmapWidth,
|
SimSelectorAvatarRequest.java | 56 final int width = mDescriptor.desiredWidth;
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
TJDecompressor.java | 230 * @param desiredWidth desired width (in pixels) of the decompressed image. 244 public int getScaledWidth(int desiredWidth, int desiredHeight) { 247 if (desiredWidth < 0 || desiredHeight < 0) 250 if (desiredWidth == 0) 251 desiredWidth = jpegWidth; 258 if (scaledWidth <= desiredWidth && scaledHeight <= desiredHeight) 261 if (scaledWidth > desiredWidth || scaledHeight > desiredHeight) 271 * @param desiredWidth desired width (in pixels) of the decompressed image. 285 public int getScaledHeight(int desiredWidth, int desiredHeight) { 288 if (desiredWidth < 0 || desiredHeight < 0 [all...] |
/external/volley/src/main/java/com/android/volley/toolbox/ |
ImageRequest.java | 185 int desiredWidth = getResizedDimension(mMaxWidth, mMaxHeight, 195 findBestSampleSize(actualWidth, actualHeight, desiredWidth, desiredHeight); 200 if (tempBitmap != null && (tempBitmap.getWidth() > desiredWidth || 203 desiredWidth, desiredHeight, true); 228 * @param desiredWidth Desired width of the bitmap 233 int actualWidth, int actualHeight, int desiredWidth, int desiredHeight) { 234 double wr = (double) actualWidth / desiredWidth;
|
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/ |
VideoScale.java | 110 int desiredWidth = viewHeight * videoWidth / videoHeight; 111 scaleWidth = (float) desiredWidth / (float) viewWidth; 121 int desiredWidth = viewHeight * videoWidth / videoHeight; 122 scaleHeight = (float) desiredWidth / (float) viewWidth;
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
VideoThumbnailView.java | 302 int desiredWidth = 1; 309 desiredWidth = mVideoWidth; 312 desiredWidth = mThumbnailImage.getMeasuredWidth(); 321 MeasureSpec.getSize(widthMeasureSpec) / (float) desiredWidth, 325 final float widthScale = Math.max(1, minimumWidth / (float) desiredWidth); 328 desiredWidth = (int) (desiredWidth * scale); 331 setMeasuredDimension(desiredWidth, desiredHeight);
|
AttachmentPreviewFactory.java | 128 final MessagePartData attachmentData, final int desiredWidth, final int desiredHeight) { 134 return new FileImageRequestDescriptor(filePath, desiredWidth, desiredHeight, 139 return new UriImageRequestDescriptor(uri, desiredWidth, desiredHeight,
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
IndicatorControlWheelContainer.java | 124 int desiredWidth = mShutterButton.getMeasuredWidth() 132 measuredWidth = desiredWidth; 134 measuredWidth = Math.min(desiredWidth, MeasureSpec.getSize(widthSpec));
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
GalleryGridItemData.java | 67 public void bind(final Cursor cursor, final int desiredWidth, final int desiredHeight) { 90 desiredWidth,
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
InternalSelectionView.java | 108 int desiredWidth = 300 + getPaddingLeft() + getPaddingRight(); 113 return desiredWidth < specSize ? desiredWidth : specSize; 115 return desiredWidth;
|
/frameworks/base/core/tests/coretests/src/android/util/ |
InternalSelectionView.java | 115 int desiredWidth = 300 + mPaddingLeft + mPaddingRight; 120 return desiredWidth < specSize ? desiredWidth : specSize; 122 return desiredWidth;
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
TestWallpaper.java | 176 public void onDesiredSizeChanged(int desiredWidth, int desiredHeight) { 177 super.onDesiredSizeChanged(desiredWidth, desiredHeight); 178 mDesiredWidth = desiredWidth;
|
/frameworks/base/libs/input/ |
SpriteController.cpp | 157 int32_t desiredWidth = update.state.icon.bitmap.width(); 159 if (update.state.surfaceWidth < desiredWidth 166 status_t status = update.state.surfaceControl->setSize(desiredWidth, desiredHeight); 170 desiredWidth, desiredHeight); 172 update.state.surfaceWidth = desiredWidth;
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
CircledImageView.java | 309 float desiredWidth = radius * 2; 323 width = (int) Math.min(desiredWidth, widthSize); 325 width = (int) desiredWidth;
|