Home
last modified time | relevance | path

Searched refs:targetSize (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java100 JobContext jc, String filePath, Options options, int targetSize, int type) { in decodeThumbnail() argument
105 return decodeThumbnail(jc, fd, options, targetSize, type); in decodeThumbnail()
115 JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) { in decodeThumbnail() argument
129 float scale = (float) targetSize / Math.min(w, h); in decodeThumbnail()
141 float scale = (float) targetSize / Math.max(w, h); in decodeThumbnail()
153 float scale = (float) targetSize / (type == MediaItem.TYPE_MICROTHUMBNAIL in decodeThumbnail()
169 Options options, int targetSize) { in decodeIfBigEnough() argument
176 if (options.outWidth < targetSize || options.outHeight < targetSize) { in decodeIfBigEnough()
180 options.outWidth, options.outHeight, targetSize); in decodeIfBigEnough()
DActionImage.java61 int targetSize = MediaItem.getTargetSize(mType); in run() local
66 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); in run()
68 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true); in run()
DUriImage.java193 int targetSize = MediaItem.getTargetSize(mType); in run() local
197 mFileDescriptor.getFileDescriptor(), options, targetSize, mType); in run()
204 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); in run()
206 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true); in run()
DImageCacheRequest.java38 Path path, long timeModified, int type, int targetSize) { in ImageCacheRequest() argument
42 mTargetSize = targetSize; in ImageCacheRequest()
101 public abstract Bitmap onDecodeOriginal(JobContext jc, int targetSize); in onDecodeOriginal() argument
DLocalImage.java193 int targetSize = MediaItem.getTargetSize(type); in onDecodeOriginal() local
209 jc, thumbData, options, targetSize); in onDecodeOriginal()
214 return DecodeUtils.decodeThumbnail(jc, mLocalFilePath, options, targetSize, type); in onDecodeOriginal()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java83 HashSet<String> validPackages, Point sourceSize, Point targetSize) { in GridSizeMigrationTask() argument
91 mTrgX = targetSize.x; in GridSizeMigrationTask()
92 mTrgY = targetSize.y; in GridSizeMigrationTask()
928 Point targetSize = new Point(idp.numColumns, idp.numRows);
930 .migrate(sourceSize, targetSize)) {
1023 public boolean migrate(Point sourceSize, Point targetSize) throws Exception {
1025 if (!targetSize.equals(sourceSize)) {
1026 if (sourceSize.x < targetSize.x) {
1028 sourceSize.x = targetSize.x;
1030 if (sourceSize.y < targetSize.y) {
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DLevenshteinDistance.java40 final int targetSize = target.length; in LevenshteinDistance() local
41 final int[][] editTab = new int[sourceSize+1][targetSize+1]; in LevenshteinDistance()
42 final int[][] distTab = new int[sourceSize+1][targetSize+1]; in LevenshteinDistance()
49 for (int i = 1; i <= targetSize; ++i) { in LevenshteinDistance()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DPictureSizeCalculator.java146 public Configuration computeConfiguration(Size targetSize, int imageFormat) in computeConfiguration() argument
154 Size size = getSmallestSupportedSizeContainingTarget(supportedPictureSizes, targetSize); in computeConfiguration()
155 Rect cropRegion = getPostCrop(AspectRatio.of(targetSize), size); in computeConfiguration()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java397 final int targetSize = Math.min(targetWidth, targetHeight); in decodeStreamForShortcut() local
401 final int prescaledXOffset = ((scaledWidth - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut()
402 final int prescaledYOffset = ((scaledHeight - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut()
411 return BitmapUtil.getRoundedBitmap(bitmap, targetSize, targetSize); in decodeStreamForShortcut()
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java190 private Bitmap decodePreview(String file, int targetSize) { in decodePreview() argument
191 float scale = (float) targetSize / Math.max(mWidth, mHeight); in decodePreview()
202 scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight())); in decodePreview()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskConvertImageToRGBPreview.java94 CaptureSession captureSession, Size targetSize, ThumbnailShape thumbnailShape) { in TaskConvertImageToRGBPreview() argument
96 mTargetSize = targetSize; in TaskConvertImageToRGBPreview()
138 protected int calculateBestSubsampleFactor(Size imageSize, Size targetSize) { in calculateBestSubsampleFactor() argument
139 int maxSubsample = Math.min(imageSize.getWidth() / targetSize.getWidth(), in calculateBestSubsampleFactor()
140 imageSize.getHeight() / targetSize.getHeight()); in calculateBestSubsampleFactor()
DTaskPreviewChainedJpeg.java49 Size targetSize, in TaskPreviewChainedJpeg() argument
52 targetSize , ThumbnailShape.MAINTAIN_ASPECT_NO_INSET); in TaskPreviewChainedJpeg()
DImageBackend.java556 CaptureSession session, Size targetSize, in createTaskConvertImageToRGBPreview() argument
/packages/apps/Gallery2/src/com/android/photos/data/
DSparseArrayBitmapPool.java78 int targetSize = mCapacityBytes - bytesNeeded; in freeUpCapacity() local
80 while (mPoolNodesTail != null && mSizeBytes > targetSize) { in freeUpCapacity()
/packages/modules/ExtServices/src/android/ext/services/resolver/
DLRResolverRankerService.java90 final int targetSize = targets.size(); in onTrainRankingModel() local
91 for (int i = 0; i < targetSize; ++i) { in onTrainRankingModel()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java1753 public boolean doAnimation(int targetSize, int kind) { in doAnimation() argument
1754 if (mCurrentGap == targetSize && kind != ANIM_KIND_CAPTURE) { in doAnimation()
1759 mToGap = targetSize; in doAnimation()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java584 int targetSize = Math.max(0, mOnTable.size() - mRedealCount); in onPostExecute() local
585 while (mOnTable.size() > targetSize) { in onPostExecute()