Home
last modified time | relevance | path

Searched refs:sPaint (Results 1 – 6 of 6) 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/UnifiedEmail/src/com/android/mail/bitmap/
DContactDrawable.java40 private static final Paint sPaint = new Paint(); field in ContactDrawable
52 sPaint.setTypeface(Typeface.create("sans-serif-light", Typeface.NORMAL)); in ContactDrawable()
53 sPaint.setTextAlign(Align.CENTER); in ContactDrawable()
54 sPaint.setAntiAlias(true); in ContactDrawable()
94 sPaint.setColor(getTileColorPicker().pickColor(email)); in drawLetterTile()
95 sPaint.setAlpha(mBitmapPaint.getAlpha()); in drawLetterTile()
96 drawCircle(canvas, bounds, sPaint); in drawLetterTile()
104 sPaint.setTextSize(sTileLetterFontSize); in drawLetterTile()
105 sPaint.getTextBounds(sFirstChar, 0, 1, sRect); in drawLetterTile()
106 sPaint.setColor(sTileFontColor); in drawLetterTile()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DLetterTileDrawable.java47 private static final Paint sPaint = new Paint(); field in LetterTileDrawable
98 sPaint.setTypeface(Typeface.create("sans-serif-light", Typeface.NORMAL)); in LetterTileDrawable()
99 sPaint.setTextAlign(Align.CENTER); in LetterTileDrawable()
100 sPaint.setAntiAlias(true); in LetterTileDrawable()
139 sPaint.setColor(mColor); in drawLetterTile()
141 sPaint.setAlpha(mPaint.getAlpha()); in drawLetterTile()
146 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() local
148 canvas.drawRect(bounds, sPaint); in drawLetterTile()
157 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile()
159 sPaint.getTextBounds(sFirstChar, 0, 1, sRect); in drawLetterTile()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemView.java147 private static final TextPaint sPaint = new TextPaint(); field in ConversationItemView
231 sPaint.setAntiAlias(true);
962 sPaint.setTextSize(mCoordinates.dateFontSize); in calculateCoordinates()
963 sPaint.setTypeface(Typeface.DEFAULT); in calculateCoordinates()
967 mDateWidth = (int) sPaint.measureText( in calculateCoordinates()
1018 sPaint.setTextSize(mCoordinates.sendersFontSize); in calculateCoordinates()
1019 sPaint.setTypeface(Typeface.DEFAULT); in calculateCoordinates()
1028 mHeader.sendersDisplayLayout = new StaticLayout(mHeader.sendersDisplayText, sPaint, in calculateCoordinates()
1057 spans[0].updateDrawState(sPaint); in elideParticipants()
1059 totalWidth += sPaint.measureText(toHeader.toString()); in elideParticipants()
[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.java182 private final static Paint sPaint = new Paint(); field in CellLayout
360 mShortcutsAndWidgets.setLayerType(hasLayer ? LAYER_TYPE_HARDWARE : LAYER_TYPE_NONE, sPaint); in enableHardwareLayer()