/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | ImageRequestDescriptor.java | 36 public final int sourceHeight; field in ImageRequestDescriptor 77 final int desiredHeight, final int sourceWidth, final int sourceHeight, in ImageRequestDescriptor() argument 83 Assert.isTrue(sourceHeight == ImageRequest.UNSPECIFIED_SIZE || sourceHeight > 0); in ImageRequestDescriptor() 87 this.sourceHeight = sourceHeight; in ImageRequestDescriptor() 111 public void updateSourceDimensions(final int sourceWidth, final int sourceHeight) { in updateSourceDimensions() argument
|
D | MessagePartImageRequestDescriptor.java | 44 final int sourceHeight, boolean isStatic) { in MessagePartImageRequestDescriptor() argument 45 super(contentUri, desiredWidth, desiredHeight, sourceWidth, sourceHeight, in MessagePartImageRequestDescriptor() 60 updatedWidth != sourceWidth && updatedHeight != sourceHeight) { in updateSourceDimensions()
|
D | VideoThumbnailRequestDescriptor.java | 26 int desiredHeight, int sourceWidth, int sourceHeight) { in VideoThumbnailRequestDescriptor() argument 28 sourceHeight, false /* canCompress */, false /* isStatic */, in VideoThumbnailRequestDescriptor() local
|
D | FileImageRequestDescriptor.java | 47 final int desiredHeight, final int sourceWidth, final int sourceHeight, in FileImageRequestDescriptor() argument 50 sourceHeight, canCompress, isStatic, false /* cropToCircle */, in FileImageRequestDescriptor() local
|
D | UriImageRequestDescriptor.java | 59 final int desiredHeight, final int sourceWidth, final int sourceHeight, in UriImageRequestDescriptor() argument 62 super(desiredWidth, desiredHeight, sourceWidth, sourceHeight, isStatic, in UriImageRequestDescriptor()
|
D | ImageRequest.java | 139 mDescriptor.sourceHeight == UNSPECIFIED_SIZE; in loadBitmapInternal() 175 options.outHeight = mDescriptor.sourceHeight; in loadBitmapInternal()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | IconFactory.java | 48 int sourceHeight = sourceImage.getHeight(); in createIcon() local 50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { in createIcon() 75 int sourceHeight = sourceImage.getHeight(); in drawIcon() local 79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { in drawIcon() 89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight); in drawIcon() 93 float hScale = sourceHeight / (float) iconHeight; in drawIcon() 100 float borderH = (sourceHeight - ih) / 2.0f; in drawIcon()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | PlaceholderInsetDrawable.java | 44 final int sourceWidth, final int sourceHeight) { in fromDrawable() argument 49 final int insetVertical = drawableHeight < 0 || drawableHeight > sourceHeight ? in fromDrawable() 50 0 : (sourceHeight - drawableHeight) / 2; in fromDrawable() 52 insetHorizontal, insetVertical, sourceWidth, sourceHeight); in fromDrawable() 57 final int sourceWidth, final int sourceHeight) { in PlaceholderInsetDrawable() argument 60 mSourceHeight = sourceHeight; in PlaceholderInsetDrawable()
|
D | AsyncImageView.java | 165 descriptor.sourceHeight != ImageRequest.UNSPECIFIED_SIZE) { in maybeSetupPlaceholderDrawable() 171 descriptor.sourceWidth, descriptor.sourceHeight)); in maybeSetupPlaceholderDrawable()
|
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | BitmapUtilTests.java | 103 private byte[] createJpegRawData(int sourceWidth, int sourceHeight) throws IOException { in createJpegRawData() argument 104 return createRawData(Bitmap.CompressFormat.JPEG, sourceWidth, sourceHeight); in createJpegRawData() 107 private byte[] createPngRawData(int sourceWidth, int sourceHeight) throws IOException { in createPngRawData() argument 108 return createRawData(Bitmap.CompressFormat.PNG, sourceWidth, sourceHeight); in createPngRawData() 112 int sourceHeight) throws IOException { in createRawData() argument 114 Bitmap b = Bitmap.createBitmap(sourceWidth, sourceHeight, Bitmap.Config.ARGB_8888); in createRawData()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | GalleryGridItemData.java | 75 int sourceHeight = cursor.getInt(INDEX_HEIGHT); in bind() local 81 if (sourceHeight <= 0) { in bind() 82 sourceHeight = ImageRequest.UNSPECIFIED_SIZE; in bind() 93 sourceHeight, in bind() 115 mImageData.uri, mImageData.sourceWidth, mImageData.sourceHeight); in constructMessagePartData()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | DynamicShortcuts.java | 379 final int sourceHeight = bitmapDecoder.getHeight(); in decodeStreamForShortcut() local 386 BitmapUtil.findOptimalSampleSize(sourceHeight, mIconSize)); in decodeStreamForShortcut() 391 final int scaledHeight = sourceHeight / opts.inSampleSize; in decodeStreamForShortcut() 406 sourceWidth - prescaledXOffset, sourceHeight - prescaledYOffset in decodeStreamForShortcut()
|
/packages/services/BuiltInPrintService/jni/plugins/ |
D | lib_pclm.c | 187 page_info->sourceHeight = (float) pixel_height / job_info->standard_scale; in _start_page() 191 page_info->sourceWidth, page_info->sourceHeight); in _start_page()
|
D | wprint_image.c | 310 float sourceHeight, sourceWidth; in wprint_image_set_output_properties() local 315 sourceHeight = image_output_height * 1.0f; in wprint_image_set_output_properties() 322 rw = (targetHeight * sourceWidth) / sourceHeight; in wprint_image_set_output_properties() 334 image_info->scaled_height = (int) floorf(targetWidth * sourceHeight / sourceWidth); in wprint_image_set_output_properties()
|
D | lib_pwg.c | 243 page_info->sourceHeight = (float) pixel_height / job_info->standard_scale; in _start_page() 247 page_info->sourceWidth, page_info->sourceHeight); in _start_page()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ImageUtils.java | 828 final int sourceHeight = source.getHeight(); in scaleCenterCrop() local 834 final float yScale = (float) newHeight / sourceHeight; in scaleCenterCrop() 839 final float scaledHeight = scale * sourceHeight; in scaleCenterCrop()
|
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/ |
D | common_defines.h | 161 float sourceHeight; member
|