/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/images/ |
D | BitmapUtils.java | 156 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromUriString() 161 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize); in decodeSampledBitmapFromUriString() 230 public final int inSampleSize; field in BitmapUtils.ScaledBitmapInfo 239 public ScaledBitmapInfo(@NonNull String id, @NonNull Bitmap bitmap, int inSampleSize) { in ScaledBitmapInfo() argument 242 this.inSampleSize = inSampleSize; in ScaledBitmapInfo() 253 if (inSampleSize <= 1) { in needToReload() 287 + inSampleSize 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/WallpaperPicker/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 106 int sampleSize = Math.max(options.inSampleSize, 1); in decodeRegion() 158 opts.inSampleSize = Utils.computeSampleSizeLarger(scale); in loadInBackground() 163 int expectedPixles = (width / opts.inSampleSize) * (height / opts.inSampleSize); in loadInBackground() 368 mOptions.inSampleSize = (1 << level); in getTile()
|
/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/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/Contacts/src/com/android/contacts/ |
D | DynamicShortcuts.java | 388 opts.inSampleSize = sampleSize; in decodeStreamForShortcut() 390 final int scaledWidth = sourceWidth / opts.inSampleSize; in decodeStreamForShortcut() 391 final int scaledHeight = sourceHeight / opts.inSampleSize; in decodeStreamForShortcut() 401 final int prescaledXOffset = ((scaledWidth - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut() 402 final int prescaledYOffset = ((scaledHeight - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut()
|
/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/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/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/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/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/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
D | InputStreamProvider.java | 122 options.inSampleSize = scaleDownSampleSize; in readCroppedBitmap() 135 options.inSampleSize = scaleDownSampleSize; in readCroppedBitmap()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | StreamableAsset.java | 271 options.inSampleSize = BitmapUtils.calculateInSampleSize( in doInBackground() 341 options.inSampleSize = BitmapUtils.calculateInSampleSize( in doInBackground()
|
/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/images/ |
D | ScaledBitmapInfoTest.java | 72 .that(actual.inSampleSize) in assertScaledBitmapSize()
|
/packages/apps/Dialer/java/com/android/dialer/contactphoto/ |
D | BitmapUtil.java | 86 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | LogoUtils.java | 91 bounds.inSampleSize = ratio; in getBitmapPartiallyResized()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripItemUtils.java | 128 opts.inSampleSize = sampleSize; in loadImageThumbnailFromStream()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | BitmapUtil.java | 87 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
|