Searched refs:sourceWidth (Results 1 - 19 of 19) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/
H A DPlaceholderInsetDrawable.java44 final int sourceWidth, final int sourceHeight) {
47 final int insetHorizontal = drawableWidth < 0 || drawableWidth > sourceWidth ?
48 0 : (sourceWidth - drawableWidth) / 2;
52 insetHorizontal, insetVertical, sourceWidth, sourceHeight);
57 final int sourceWidth, final int sourceHeight) {
59 mSourceWidth = sourceWidth;
43 fromDrawable(final Drawable drawable, final int sourceWidth, final int sourceHeight) argument
55 PlaceholderInsetDrawable(final Drawable drawable, final int insetLeft, final int insetTop, final int insetRight, final int insetBottom, final int sourceWidth, final int sourceHeight) argument
H A DAsyncImageView.java164 if (descriptor.sourceWidth != ImageRequest.UNSPECIFIED_SIZE &&
171 descriptor.sourceWidth, descriptor.sourceHeight));
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DIconFactory.java47 int sourceWidth = sourceImage.getWidth();
50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
74 int sourceWidth = sourceImage.getWidth();
79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight);
92 float wScale = sourceWidth / (float) iconWidth;
99 float borderW = (sourceWidth - iw) / 2.0f;
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DImageRequestDescriptor.java35 public final int sourceWidth; field in class:ImageRequestDescriptor
77 final int desiredHeight, final int sourceWidth, final int sourceHeight,
82 Assert.isTrue(sourceWidth == ImageRequest.UNSPECIFIED_SIZE || sourceWidth > 0);
86 this.sourceWidth = sourceWidth;
111 public void updateSourceDimensions(final int sourceWidth, final int sourceHeight) { argument
76 ImageRequestDescriptor(final int desiredWidth, final int desiredHeight, final int sourceWidth, final int sourceHeight, final boolean isStatic, final boolean cropToCircle, final int circleBackgroundColor, int circleStrokeColor) argument
H A DVideoThumbnailRequestDescriptor.java26 int desiredHeight, int sourceWidth, int sourceHeight) {
27 super(UriUtil.getUriForResourceFile(path), desiredWidth, desiredHeight, sourceWidth,
25 VideoThumbnailRequestDescriptor(final long id, String path, int desiredWidth, int desiredHeight, int sourceWidth, int sourceHeight) argument
H A DMessagePartImageRequestDescriptor.java43 final int desiredWidth, final int desiredHeight, final int sourceWidth,
45 super(contentUri, desiredWidth, desiredHeight, sourceWidth, sourceHeight,
60 updatedWidth != sourceWidth && updatedHeight != sourceHeight) {
42 MessagePartImageRequestDescriptor(final String messagePartId, final Uri contentUri, final int desiredWidth, final int desiredHeight, final int sourceWidth, final int sourceHeight, boolean isStatic) argument
H A DFileImageRequestDescriptor.java47 final int desiredHeight, final int sourceWidth, final int sourceHeight,
49 super(UriUtil.getUriForResourceFile(path), desiredWidth, desiredHeight, sourceWidth,
46 FileImageRequestDescriptor(final String path, final int desiredWidth, final int desiredHeight, final int sourceWidth, final int sourceHeight, final boolean canUseThumbnail, final boolean canCompress, final boolean isStatic) argument
H A DUriImageRequestDescriptor.java59 final int desiredHeight, final int sourceWidth, final int sourceHeight,
62 super(desiredWidth, desiredHeight, sourceWidth, sourceHeight, isStatic,
58 UriImageRequestDescriptor(final Uri uri, final int desiredWidth, final int desiredHeight, final int sourceWidth, final int sourceHeight, final boolean allowCompression, final boolean isStatic, final boolean cropToCircle, final int circleBackgroundColor, int circleStrokeColor) argument
H A DImageRequest.java138 final boolean unknownSize = mDescriptor.sourceWidth == UNSPECIFIED_SIZE ||
174 options.outWidth = mDescriptor.sourceWidth;
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DBitmapUtilTests.java103 private byte[] createJpegRawData(int sourceWidth, int sourceHeight) throws IOException { argument
104 return createRawData(Bitmap.CompressFormat.JPEG, sourceWidth, sourceHeight);
107 private byte[] createPngRawData(int sourceWidth, int sourceHeight) throws IOException { argument
108 return createRawData(Bitmap.CompressFormat.PNG, sourceWidth, sourceHeight);
111 private byte[] createRawData(Bitmap.CompressFormat format, int sourceWidth, argument
114 Bitmap b = Bitmap.createBitmap(sourceWidth, sourceHeight, Bitmap.Config.ARGB_8888);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DUtilities.java73 int sourceWidth = icon.getWidth();
75 if (sourceWidth > textureWidth && sourceHeight > textureHeight) {
78 (sourceWidth - textureWidth) / 2,
81 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) {
115 int sourceWidth = icon.getIntrinsicWidth();
117 if (sourceWidth > 0 && sourceHeight > 0) {
119 if (width < sourceWidth || height < sourceHeight) {
121 final float ratio = (float) sourceWidth / sourceHeight;
122 if (sourceWidth > sourceHeight) {
124 } else if (sourceHeight > sourceWidth) {
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DGalleryGridItemData.java74 int sourceWidth = cursor.getInt(INDEX_WIDTH);
78 if (sourceWidth <= 0) {
79 sourceWidth = ImageRequest.UNSPECIFIED_SIZE;
92 sourceWidth,
115 mImageData.uri, mImageData.sourceWidth, mImageData.sourceHeight);
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/
H A Dcommon_defines.h162 float sourceWidth; member in struct:__anon173
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DLauncherIcons.java244 int sourceWidth = icon.getIntrinsicWidth();
246 if (sourceWidth > 0 && sourceHeight > 0) {
248 final float ratio = (float) sourceWidth / sourceHeight;
249 if (sourceWidth > sourceHeight) {
251 } else if (sourceHeight > sourceWidth) {
/packages/apps/Contacts/src/com/android/contacts/
H A DDynamicShortcuts.java369 final int sourceWidth = bitmapDecoder.getWidth();
376 BitmapUtil.findOptimalSampleSize(sourceWidth,
383 final int scaledWidth = sourceWidth / opts.inSampleSize;
399 sourceWidth - prescaledXOffset, sourceHeight - prescaledYOffset
/packages/services/BuiltInPrintService/jni/plugins/
H A Dlib_pclm.c188 page_info->sourceWidth = (float) pixel_width / job_info->standard_scale;
191 page_info->sourceWidth, page_info->sourceHeight);
H A Dlib_pwg.c245 page_info->sourceWidth = (float) pixel_width / job_info->standard_scale;
248 page_info->sourceWidth, page_info->sourceHeight);
H A Dwprint_image.c310 float sourceHeight, sourceWidth; local
314 sourceWidth = image_output_width * 1.0f;
322 rw = (targetHeight * sourceWidth) / sourceHeight;
334 image_info->scaled_height = (int) floorf(targetWidth * sourceHeight / sourceWidth);
/packages/apps/Messaging/src/com/android/messaging/util/
H A DImageUtils.java827 final int sourceWidth = source.getWidth();
833 final float xScale = (float) newWidth / sourceWidth;
838 final float scaledWidth = scale * sourceWidth;

Completed in 623 milliseconds