Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DUtilities.java71 int textureWidth = sIconTextureWidth; in createIconBitmap() local
75 if (sourceWidth > textureWidth && sourceHeight > textureHeight) { in createIconBitmap()
78 (sourceWidth - textureWidth) / 2, in createIconBitmap()
80 textureWidth, textureHeight); in createIconBitmap()
81 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) { in createIconBitmap()
135 int textureWidth = sIconTextureWidth; in createIconBitmap() local
138 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, in createIconBitmap()
143 final int left = (textureWidth-width) / 2; in createIconBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherIcons.java256 int textureWidth = iconBitmapSize; in createIconBitmap() local
259 Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, in createIconBitmap()
264 final int left = (textureWidth-width) / 2; in createIconBitmap()
277 canvas.scale(scale, scale, textureWidth / 2, textureHeight / 2); in createIconBitmap()