Searched refs:wantRegion (Results 1 - 2 of 2) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DTileImageViewAdapter.java94 Rect wantRegion = new Rect(x, y, x + t, y + t);
103 // We need to clear a reused bitmap, if wantRegion is not fully
106 .contains(wantRegion);
125 bitmap = regionDecoder.decodeRegion(wantRegion, options);
143 Rect wantRegion = new Rect(x, y, x + t, y + t);
152 Utils.assertTrue(overlapRegion.intersect(wantRegion));
170 if (wantRegion.equals(overlapRegion)) return bitmap;
175 (overlapRegion.left - wantRegion.left) >> level,
176 (overlapRegion.top - wantRegion.top) >> level, null);
/packages/apps/WallpaperPicker/src/com/android/photos/
H A DBitmapRegionTileSource.java47 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options); argument
75 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { argument
76 return mDecoder.decodeRegion(wantRegion, options);
100 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { argument
108 wantRegion.width() / sampleSize,
109 wantRegion.height() / sampleSize,
114 mTempCanvas.drawBitmap(mBuffer, -wantRegion.left, -wantRegion.top, mTempPaint);

Completed in 676 milliseconds