Home
last modified time | relevance | path

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

/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/ContactsCommon/src/com/android/contacts/common/lettertiles/
DLetterTileDrawable.java56 private static final Paint sPaint = new Paint(); field in LetterTileDrawable
86 sPaint.setTypeface(Typeface.create( in LetterTileDrawable()
88 sPaint.setTextAlign(Align.CENTER); in LetterTileDrawable()
89 sPaint.setAntiAlias(true); in LetterTileDrawable()
132 sPaint.setColor(mColor); in drawLetterTile()
134 sPaint.setAlpha(mPaint.getAlpha()); in drawLetterTile()
139 canvas.drawCircle(bounds.centerX(), bounds.centerY(), minDimension / 2, sPaint); in drawLetterTile() local
141 canvas.drawRect(bounds, sPaint); in drawLetterTile()
151 sPaint.setTextSize(mScale * sLetterToTileRatio * minDimension); in drawLetterTile()
153 sPaint.getTextBounds(sFirstChar, 0, 1, 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/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/Launcher2/src/com/android/launcher2/
DCellLayout.java167 private final static Paint sPaint = new Paint(); field in CellLayout
315 mShortcutsAndWidgets.setLayerType(LAYER_TYPE_HARDWARE, sPaint); in enableHardwareLayers()
319 mShortcutsAndWidgets.setLayerType(LAYER_TYPE_NONE, sPaint); in disableHardwareLayers()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java168 private final static Paint sPaint = new Paint(); field in CellLayout
344 mShortcutsAndWidgets.setLayerType(hasLayer ? LAYER_TYPE_HARDWARE : LAYER_TYPE_NONE, sPaint); in enableHardwareLayer()