/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DecodeUtils.java | 130 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodeThumbnail() 135 if ((w / options.inSampleSize) * (h / options.inSampleSize) > MAX_PIXEL_COUNT) { in decodeThumbnail() 136 options.inSampleSize = BitmapUtils.computeSampleSize( in decodeThumbnail() 142 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodeThumbnail() 179 options.inSampleSize = BitmapUtils.computeSampleSizeLarger( in decodeIfBigEnough() 252 if (options.inSampleSize < 1) options.inSampleSize = 1; in decodeUsingPool() 254 options.inBitmap = (options.inSampleSize == 1) in decodeUsingPool() 279 if (options.inSampleSize < 1) options.inSampleSize = 1; in decodeUsingPool() 281 options.inBitmap = (options.inSampleSize == 1) in decodeUsingPool()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | BitmapUtils.java | 113 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromUriString() 118 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize); in decodeSampledBitmapFromUriString() 198 public final int inSampleSize; field in BitmapUtils.ScaledBitmapInfo 207 public ScaledBitmapInfo(@NonNull String id, @NonNull Bitmap bitmap, int inSampleSize) { in ScaledBitmapInfo() argument 210 this.inSampleSize = inSampleSize; in ScaledBitmapInfo() 222 if (inSampleSize <= 1) { in needToReload() 245 return "ScaledBitmapInfo[" + id + "](in=" + inSampleSize + ", w=" + bitmap.getWidth() in toString()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | ImageRequest.java | 179 options.inSampleSize = ImageUtils.get().calculateInSampleSize(options, in loadBitmapInternal() 181 Assert.isTrue(options.inSampleSize > 0); in loadBitmapInternal() 203 final int sampledWidth = (options.outWidth + options.inSampleSize - 1) / in loadBitmapInternal() 204 options.inSampleSize; in loadBitmapInternal() 205 final int sampledHeight = (options.outHeight + options.inSampleSize - 1) / in loadBitmapInternal() 206 options.inSampleSize; in loadBitmapInternal()
|
D | FileImageRequest.java | 68 options.inSampleSize = ImageUtils.get().calculateInSampleSize(options, in loadBitmapInternal() 91 final int sampledWidth = options.outWidth / options.inSampleSize; in loadBitmapInternal() 92 final int sampledHeight = options.outHeight / options.inSampleSize; in loadBitmapInternal()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterRS.java | 183 public Allocation loadScaledResourceAlpha(int resource, int inSampleSize) { in loadScaledResourceAlpha() argument 186 options.inSampleSize = inSampleSize; in loadScaledResourceAlpha() 195 public Allocation loadScaledResourceAlpha(int resource, int w, int h, int inSampleSize) { in loadScaledResourceAlpha() argument 198 options.inSampleSize = inSampleSize; in loadScaledResourceAlpha()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | ImageLoader.java | 260 if (options.inSampleSize != 0) { in loadRegionBitmap() 314 options.inSampleSize = sampleSize; in loadDownsampledBitmap() 430 options.inSampleSize = sampleSize; in getScaleOneImageForPreset() 487 if (options.inSampleSize < 1) { in decodeResourceWithBackouts() 488 options.inSampleSize = 1; in decodeResourceWithBackouts() 505 options.inSampleSize *= 2; in decodeResourceWithBackouts()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ImageUtils.java | 197 int inSampleSize = 1; in calculateInSampleSize() local 209 while ((!checkHeight || (halfHeight / inSampleSize) > reqHeight) in calculateInSampleSize() 210 && (!checkWidth || (halfWidth / inSampleSize) > reqWidth)) { in calculateInSampleSize() 211 inSampleSize *= 2; in calculateInSampleSize() 215 return inSampleSize; in calculateInSampleSize() 459 mOptions.inSampleSize = 1; in ImageResizer() 684 mOptions.inSampleSize = mSampleSize; in recodeImage()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 126 int sampleSize = Math.max(options.inSampleSize, 1); in decodeRegion() 184 opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in loadInBackground() 189 int expectedPixles = (width / opts.inSampleSize) * (height / opts.inSampleSize); in loadInBackground() 465 mOptions.inSampleSize = (1 << level); in getTile()
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 138 mOptions.inSampleSize = (1 << level); in getTile() 163 mOptions.inSampleSize = (1 << level); in getTileWithoutReusingBitmap() 192 mOptions.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodePreview()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpBitmapFetch.java | 58 o.inSampleSize = 1; in getThumbnail() 93 o.inSampleSize = sampleSize; in getFullsize()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
D | ImageRequestTest.java | 66 assertEquals(1, options.getValue().inSampleSize); in testLoadImageUnspecifiedSize() 96 assertNotSame(1, options.getValue().inSampleSize); in testLoadImageWithDownsampling()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Thumbnail.java | 247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize, in createThumbnail() argument 251 options.inSampleSize = inSampleSize; in createThumbnail()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoSource.java | 169 options.inSampleSize = 1; in load() 184 options.inSampleSize *= 2; in load() 188 log(TAG, "decoding with inSampleSize " + options.inSampleSize); in load()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageViewAdapter.java | 119 options.inSampleSize = (1 << level); in getTile() 158 options.inSampleSize = (1 << level); in getTileWithoutReusingBitmap()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ThumbnailLoadTask.java | 135 opts.inSampleSize = Math.min(wDivider, hDivider); in loadBitmap() 138 opts.outWidth, opts.outHeight, mWidth, mHeight, opts.inSampleSize); in loadBitmap()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ZoomView.java | 129 options.inSampleSize = getSampleFactor(region.width(), region.height()); in doInBackground() 135 options.inSampleSize = getSampleFactor(region.height(), region.width()); in doInBackground()
|
/packages/apps/Gallery2/src/com/android/photos/drawables/ |
D | AutoThumbnailDrawable.java | 258 mOptions.inSampleSize = preferredSampleSize; 270 mOptions.inSampleSize = sampleSize;
|
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
D | PictureDecoder.java | 37 opts.inSampleSize = downSampleFactor; in decode()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | BitmapUtility.java | 35 opts.inSampleSize = 16; // 3264 / 16 = 204. in bitmapFromJpeg()
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
D | ScaledBitmapInfoTest.java | 49 assertEquals(actual.id + " inSampleSize", expectedInSampleSize, actual.inSampleSize); in assertScaledBitmapSize()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | BitmapUtil.java | 87 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
D | BitmapCropTask.java | 275 options.inSampleSize = scaleDownSampleSize; in cropBitmap() 288 options.inSampleSize = scaleDownSampleSize; in cropBitmap()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | LogoUtils.java | 104 bounds.inSampleSize = ratio; in getBitmapPartiallyResized()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripItemUtils.java | 128 opts.inSampleSize = sampleSize; in loadImageThumbnailFromStream()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | BitmapUtil.java | 56 opts.inSampleSize = Math.min(opts.outWidth / w, opts.outHeight / h); in decodeByteArray()
|