Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DUtilities.java72 int textureHeight = sIconTextureHeight; in createIconBitmap() local
75 if (sourceWidth > textureWidth && sourceHeight > textureHeight) { in createIconBitmap()
79 (sourceHeight - textureHeight) / 2, in createIconBitmap()
80 textureWidth, textureHeight); in createIconBitmap()
81 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) { in createIconBitmap()
136 int textureHeight = sIconTextureHeight; in createIconBitmap() local
138 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, in createIconBitmap()
144 final int top = (textureHeight-height) / 2; in createIconBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DLauncherIcons.java257 int textureHeight = iconBitmapSize; in createIconBitmap() local
259 Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, in createIconBitmap()
265 final int top = (textureHeight-height) / 2; in createIconBitmap()
277 canvas.scale(scale, scale, textureWidth / 2, textureHeight / 2); in createIconBitmap()