/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DecodeUtils.java | 100 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()
|
D | ActionImage.java | 61 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()
|
D | UriImage.java | 193 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()
|
D | ImageCacheRequest.java | 38 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
|
D | LocalImage.java | 193 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/ |
D | GridSizeMigrationTask.java | 85 Point targetSize) { in GridSizeMigrationTask() argument 94 mTrgX = targetSize.x; in GridSizeMigrationTask() 95 mTrgY = targetSize.y; in GridSizeMigrationTask() 959 Point targetSize = new Point(idp.numColumns, idp.numRows); 961 migrateForPreview).migrate(sourceSize, targetSize)) { 1061 public boolean migrate(Point sourceSize, Point targetSize) throws Exception { 1063 if (!targetSize.equals(sourceSize)) { 1064 if (sourceSize.x < targetSize.x) { 1066 sourceSize.x = targetSize.x; 1068 if (sourceSize.y < targetSize.y) { [all …]
|
D | GridSizeMigrationTaskV2.java | 88 DbReader destReader, int destHotseatSize, Point targetSize) { in GridSizeMigrationTaskV2() argument 101 mTrgX = targetSize.x; in GridSizeMigrationTaskV2() 102 mTrgY = targetSize.y; in GridSizeMigrationTaskV2() 183 Point targetSize = new Point(idp.numColumns, idp.numRows); in migrateGridIfNeeded() local 185 srcReader, destReader, idp.numDatabaseHotseatIcons, targetSize); in migrateGridIfNeeded()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistance.java | 40 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/ |
D | PictureSizeCalculator.java | 146 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/Gallery2/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 190 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/Contacts/src/com/android/contacts/ |
D | DynamicShortcuts.java | 397 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/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskPreviewChainedJpeg.java | 49 Size targetSize, in TaskPreviewChainedJpeg() argument 52 targetSize , ThumbnailShape.MAINTAIN_ASPECT_NO_INSET); in TaskPreviewChainedJpeg()
|
D | TaskConvertImageToRGBPreview.java | 94 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()
|
D | ImageBackend.java | 556 CaptureSession session, Size targetSize, in createTaskConvertImageToRGBPreview() argument
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | SparseArrayBitmapPool.java | 78 int targetSize = mCapacityBytes - bytesNeeded; in freeUpCapacity() local 80 while (mPoolNodesTail != null && mSizeBytes > targetSize) { in freeUpCapacity()
|
/packages/modules/ExtServices/java/src/android/ext/services/resolver/ |
D | LRResolverRankerService.java | 101 final int targetSize = targets.size(); in onTrainRankingModel() local 102 for (int i = 0; i < targetSize; ++i) { in onTrainRankingModel()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PositionController.java | 1753 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/ |
D | PhotoTable.java | 584 int targetSize = Math.max(0, mOnTable.size() - mRedealCount); in onPostExecute() local 585 while (mOnTable.size() > targetSize) { in onPostExecute()
|