Searched refs:sPaint (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Contacts/src/com/android/contacts/lettertiles/ |
D | LetterTileDrawable.java | 57 private static final Paint sPaint = new Paint(); field in LetterTileDrawable 90 sPaint.setTypeface(Typeface.create( in LetterTileDrawable() 92 sPaint.setTextAlign(Align.CENTER); in LetterTileDrawable() 93 sPaint.setAntiAlias(true); in LetterTileDrawable() 131 sPaint.setTextAlign(Align.CENTER); in drawBitmap() 132 sPaint.setAntiAlias(true); in drawBitmap() 133 sPaint.setAlpha(ALPHA); in drawBitmap() 135 canvas.drawBitmap(bitmap, sRect, destRect, sPaint); in drawBitmap() 140 sPaint.setColor(mColor); in drawLetterTile() 142 sPaint.setAlpha(mPaint.getAlpha()); in drawLetterTile() [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 48 private static final Paint sPaint = new Paint(); field in LetterTileDrawable 111 sPaint.setTypeface( in LetterTileDrawable() 114 sPaint.setTextAlign(Align.CENTER); in LetterTileDrawable() 115 sPaint.setAntiAlias(true); in LetterTileDrawable() 156 sPaint.setColor(mColor); in drawLetterTile() 158 sPaint.setAlpha(mPaint.getAlpha()); in drawLetterTile() 163 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() local 165 canvas.drawRect(bounds, sPaint); in drawLetterTile() 170 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile() 172 sPaint.getTextBounds(mLetters, 0, mLetters.length(), sRect); in drawLetterTile() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | TiledTexture.java | 55 private static Paint sPaint; field in TiledTexture 146 if (x > 0) sCanvas.drawLine(x - 1, 0, x - 1, TILE_SIZE, sPaint); in onGetBitmap() 147 if (y > 0) sCanvas.drawLine(0, y - 1, TILE_SIZE, y - 1, sPaint); in onGetBitmap() 148 if (r < CONTENT_SIZE) sCanvas.drawLine(r, 0, r, TILE_SIZE, sPaint); in onGetBitmap() 149 if (b < CONTENT_SIZE) sCanvas.drawLine(0, b, TILE_SIZE, b, sPaint); in onGetBitmap() 239 sPaint = null; in freeResources() 247 sPaint = new Paint(); in prepareResources() 248 sPaint.setXfermode(new PorterDuffXfermode(Mode.SRC)); in prepareResources() 249 sPaint.setColor(Color.TRANSPARENT); in prepareResources()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 182 private final static Paint sPaint = new Paint(); field in CellLayout 360 mShortcutsAndWidgets.setLayerType(hasLayer ? LAYER_TYPE_HARDWARE : LAYER_TYPE_NONE, sPaint); in enableHardwareLayer()
|