/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | BitmapUtil.java | 191 int targetX, targetY, targetSize; 195 targetSize = inputHeight; 199 targetSize = inputWidth; 203 Bitmap output = Bitmap.createBitmap(targetSize, targetSize, Bitmap.Config.ARGB_8888); 211 canvas.drawCircle(targetSize / 2, targetSize / 2, targetSize / 2, paint);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | ActionImage.java | 61 int targetSize = MediaItem.getTargetSize(mType); 66 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); 68 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true);
|
H A D | ImageCacheRequest.java | 38 Path path, long timeModified, int type, int targetSize) { 42 mTargetSize = targetSize; 101 public abstract Bitmap onDecodeOriginal(JobContext jc, int targetSize); argument 37 ImageCacheRequest(GalleryApp application, Path path, long timeModified, int type, int targetSize) argument
|
H A D | DecodeUtils.java | 100 JobContext jc, String filePath, Options options, int targetSize, int type) { 105 return decodeThumbnail(jc, fd, options, targetSize, type); 115 JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) { 128 // we want to make sure the shorter side >= "targetSize". 129 float scale = (float) targetSize / Math.min(w, h); 140 // For screen nail, we only want to keep the longer side >= targetSize. 141 float scale = (float) targetSize / Math.max(w, h); 153 float scale = (float) targetSize / (type == MediaItem.TYPE_MICROTHUMBNAIL 166 * larger than the <code>targetSize</code>. 169 Options options, int targetSize) { 99 decodeThumbnail( JobContext jc, String filePath, Options options, int targetSize, int type) argument 114 decodeThumbnail( JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) argument 168 decodeIfBigEnough(JobContext jc, byte[] data, Options options, int targetSize) argument [all...] |
H A D | UriImage.java | 193 int targetSize = MediaItem.getTargetSize(mType); 197 mFileDescriptor.getFileDescriptor(), options, targetSize, mType); 204 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); 206 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true);
|
H A D | LocalImage.java | 193 int targetSize = MediaItem.getTargetSize(type); 209 jc, thumbData, options, targetSize); 214 return DecodeUtils.decodeThumbnail(jc, mLocalFilePath, options, targetSize, type);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/common/ |
H A D | PictureSizeCalculator.java | 145 public Configuration computeConfiguration(Size targetSize, int imageFormat) argument 153 Size size = getSmallestSupportedSizeContainingTarget(supportedPictureSizes, targetSize); 154 Rect cropRegion = getPostCrop(AspectRatio.of(targetSize), size);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
H A D | LevenshteinDistance.java | 40 final int targetSize = target.length; 41 final int[][] editTab = new int[sourceSize+1][targetSize+1]; 42 final int[][] distTab = new int[sourceSize+1][targetSize+1]; 49 for (int i = 1; i <= targetSize; ++i) {
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
H A D | TaskPreviewChainedJpeg.java | 43 * @param targetSize Approximate viewable pixel demensions of the desired 49 Size targetSize, 52 targetSize , ThumbnailShape.MAINTAIN_ASPECT_NO_INSET); 45 TaskPreviewChainedJpeg(ImageToProcess image, Executor executor, ImageTaskManager imageTaskManager, CaptureSession captureSession, Size targetSize, LruResourcePool<Integer, ByteBuffer> byteBufferResourcePool) argument
|
H A D | TaskConvertImageToRGBPreview.java | 87 * @param targetSize Approximate viewable pixel dimensions of the desired 94 CaptureSession captureSession, Size targetSize, ThumbnailShape thumbnailShape) { 96 mTargetSize = targetSize; 135 * @param targetSize Target dimensions of the resultant image 138 protected int calculateBestSubsampleFactor(Size imageSize, Size targetSize) { argument 139 int maxSubsample = Math.min(imageSize.getWidth() / targetSize.getWidth(), 140 imageSize.getHeight() / targetSize.getHeight()); 92 TaskConvertImageToRGBPreview(ImageToProcess image, Executor executor, ImageTaskManager imageTaskManager, ProcessingPriority processingPriority, CaptureSession captureSession, Size targetSize, ThumbnailShape thumbnailShape) argument
|
H A D | ImageBackend.java | 556 CaptureSession session, Size targetSize, 554 createTaskConvertImageToRGBPreview( ImageToProcess image, Executor executor, ImageBackend imageBackend, CaptureSession session, Size targetSize, TaskConvertImageToRGBPreview.ThumbnailShape thumbnailShape) argument
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
H A D | SparseArrayBitmapPool.java | 78 int targetSize = mCapacityBytes - bytesNeeded; 80 while (mPoolNodesTail != null && mSizeBytes > targetSize) {
|
/packages/apps/Gallery2/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 188 * than the targetSize, but it will always be less than 2x the targetSize 190 private Bitmap decodePreview(String file, int targetSize) { argument 191 float scale = (float) targetSize / Math.max(mWidth, mHeight); 202 scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight()));
|
/packages/apps/FMRadio/src/com/android/fmradio/views/ |
H A D | FmScroller.java | 1566 float targetSize, float rate) { 1568 return targetSize; 1570 return targetSize + (currentHeight - targetHeight) * rate; 1565 getNewSize(int currentHeight, int targetHeight, float targetSize, float rate) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | PositionController.java | 1753 public boolean doAnimation(int targetSize, int kind) { argument 1754 if (mCurrentGap == targetSize && kind != ANIM_KIND_CAPTURE) { 1759 mToGap = targetSize;
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoTable.java | 584 int targetSize = Math.max(0, mOnTable.size() - mRedealCount); 585 while (mOnTable.size() > targetSize) {
|