Home
last modified time | relevance | path

Searched refs:unusedBitmap (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java210 Bitmap unusedBitmap = null; in getPreview() local
213 while ((unusedBitmap == null || !unusedBitmap.isMutable() || in getPreview()
214 unusedBitmap.getWidth() != mPreviewBitmapWidth || in getPreview()
215 unusedBitmap.getHeight() != mPreviewBitmapHeight) in getPreview()
217 unusedBitmap = mUnusedBitmaps.remove(0).get(); in getPreview()
219 if (unusedBitmap != null) { in getPreview()
221 c.setBitmap(unusedBitmap); in getPreview()
227 if (unusedBitmap == null) { in getPreview()
228 unusedBitmap = Bitmap.createBitmap(mPreviewBitmapWidth, mPreviewBitmapHeight, in getPreview()
235 preview = readFromDb(name, unusedBitmap); in getPreview()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java573 Bitmap unusedBitmap = null;
585 unusedBitmap = candidate;
586 mUnusedBitmaps.remove(unusedBitmap);
593 if (unusedBitmap == null) {
594 unusedBitmap = Bitmap.createBitmap(mPreviewWidth, mPreviewHeight, Config.ARGB_8888);
598 return unusedBitmap;
600 Bitmap preview = readFromDb(mKey, unusedBitmap, this);
611 … preview = generatePreview(launcher, mInfo, unusedBitmap, mPreviewWidth, mPreviewHeight);