Home
last modified time | relevance | path

Searched refs:sPaint (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/lettertiles/
DLetterTileDrawable.java57 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/Messenger/src/com/android/car/messenger/core/ui/shared/
DLetterTileDrawable.java54 @NonNull private static final Paint sPaint = new Paint(); field in LetterTileDrawable
115 sPaint.setTypeface( in LetterTileDrawable()
119 sPaint.setTextAlign(Align.CENTER); in LetterTileDrawable()
120 sPaint.setAntiAlias(true); in LetterTileDrawable()
162 sPaint.setColor(mColor); in drawLetterTile()
164 sPaint.setAlpha(mPaint.getAlpha()); in drawLetterTile()
169 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() local
171 canvas.drawRect(bounds, sPaint); in drawLetterTile()
176 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile()
178 sPaint.getTextBounds(mLetters, 0, mLetters.length(), sRect); in drawLetterTile()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DTiledTexture.java55 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/
DCellLayout.java200 private static final Paint sPaint = new Paint(); field in CellLayout
361 mShortcutsAndWidgets.setLayerType(hasLayer ? LAYER_TYPE_HARDWARE : LAYER_TYPE_NONE, sPaint); in enableHardwareLayer()