Home
last modified time | relevance | path

Searched refs:targetWidth (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Gallery/src/com/android/camera/
DUtil.java152 int targetWidth, in transform() argument
156 int deltaX = source.getWidth() - targetWidth; in transform()
165 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, in transform()
174 deltaXHalf + Math.min(targetWidth, source.getWidth()), in transform()
176 int dstX = (targetWidth - src.width()) / 2; in transform()
181 targetWidth - dstX, in transform()
193 float viewAspect = (float) targetWidth / targetHeight; in transform()
203 float scale = targetWidth / bitmapWidthF; in transform()
224 int dx1 = Math.max(0, b1.getWidth() - targetWidth); in transform()
231 targetWidth, in transform()
/packages/apps/Camera2/src/com/android/camera/
DThumbnail.java25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { in createVideoThumbnailBitmap() argument
26 return createVideoThumbnailBitmap(null, fd, targetWidth); in createVideoThumbnailBitmap()
29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { in createVideoThumbnailBitmap() argument
30 return createVideoThumbnailBitmap(filePath, null, targetWidth); in createVideoThumbnailBitmap()
34 int targetWidth) { in createVideoThumbnailBitmap() argument
60 if (width > targetWidth) { in createVideoThumbnailBitmap()
61 float scale = (float) targetWidth / width; in createVideoThumbnailBitmap()
/packages/apps/Camera/src/com/android/camera/
DThumbnail.java25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { in createVideoThumbnailBitmap() argument
26 return createVideoThumbnailBitmap(null, fd, targetWidth); in createVideoThumbnailBitmap()
29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { in createVideoThumbnailBitmap() argument
30 return createVideoThumbnailBitmap(filePath, null, targetWidth); in createVideoThumbnailBitmap()
34 int targetWidth) { in createVideoThumbnailBitmap() argument
60 if (width > targetWidth) { in createVideoThumbnailBitmap()
61 float scale = (float) targetWidth / width; in createVideoThumbnailBitmap()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DBitmapUtil.java126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { in getRoundedBitmap() argument
131 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight, in getRoundedBitmap()
137 canvas.drawOval(0, 0, targetWidth, targetHeight, paint); in getRoundedBitmap()
148 final float scaleBy = Math.min((float) inputWidth / targetWidth, in getRoundedBitmap()
151 final int xCropAmountHalved = (int) (scaleBy * targetWidth / 2); in getRoundedBitmap()
160 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemUtils.java105 int targetWidth = imageWidth; in loadImageThumbnailFromStream() local
108 while (targetHeight > heightBound || targetWidth > widthBound || in loadImageThumbnailFromStream()
109 targetHeight > GL11.GL_MAX_TEXTURE_SIZE || targetWidth > GL11.GL_MAX_TEXTURE_SIZE || in loadImageThumbnailFromStream()
110 targetHeight * targetWidth > maximumPixels) { in loadImageThumbnailFromStream()
112 targetWidth = imageWidth / sampleSize; in loadImageThumbnailFromStream()
123 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) { in loadImageThumbnailFromStream()
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java256 public static Bitmap createVideoThumbnail(FileDescriptor fd, int targetWidth) { in createVideoThumbnail() argument
257 return createVideoThumbnail(null, fd, targetWidth); in createVideoThumbnail()
260 public static Bitmap createVideoThumbnail(String filePath, int targetWidth) { in createVideoThumbnail() argument
261 return createVideoThumbnail(filePath, null, targetWidth); in createVideoThumbnail()
264 … private static Bitmap createVideoThumbnail(String filePath, FileDescriptor fd, int targetWidth) { in createVideoThumbnail() argument
290 if (width > targetWidth) { in createVideoThumbnail()
291 float scale = (float) targetWidth / width; in createVideoThumbnail()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DDecodedImageResource.java208 final int targetWidth = (int) (bitmapWidth * targetScale); in loadMediaBlocking() local
211 if (targetScale < 1.0f && targetWidth > 0 && targetHeight > 0 && in loadMediaBlocking()
212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) { in loadMediaBlocking()
214 Bitmap.createScaledBitmap(bitmap, targetWidth, targetHeight, false); in loadMediaBlocking()
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java188 final float targetWidth = mSweep.getIntrinsicWidth() - mSweepPadding.left in getTargetInset() local
190 return mSweepPadding.left + (targetWidth / 2) + mSweepOffset.x; in getTargetInset()
662 final int targetWidth = mSweep.getIntrinsicWidth() - mSweepPadding.left
664 mMargins.left = -(mSweepPadding.left + (targetWidth / 2));
DChartView.java89 final int targetWidth = (int) (mOptimalWidth + (slack * mOptimalWidthWeight)); in onMeasure() local
90 widthMeasureSpec = MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.EXACTLY); in onMeasure()
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java198 int targetWidth = HeaderGridView.this.getMeasuredWidth() in onMeasure() local
201 widthMeasureSpec = MeasureSpec.makeMeasureSpec(targetWidth, in onMeasure()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java593 List<Size> sizes, int targetWidth, in getOptimalVideoSnapshotPictureSize() argument
608 if (size.height() == targetHeight && size.width() == targetWidth) { in getOptimalVideoSnapshotPictureSize()
614 final double targetRatio = (double) targetWidth / targetHeight; in getOptimalVideoSnapshotPictureSize()