Home
last modified time | relevance | path

Searched refs:textPaint (Results 1 – 7 of 7) sorted by relevance

/packages/apps/TV/src/com/android/exoplayer/text/
DSubtitleView.java270 final Paint textPaint = this.mTextPaint; in onDraw() local
297 textPaint.setStrokeJoin(Join.ROUND); in onDraw()
298 textPaint.setStrokeWidth(mOutlineWidth); in onDraw()
299 textPaint.setColor(mEdgeColor); in onDraw()
300 textPaint.setStyle(Style.FILL_AND_STROKE); in onDraw()
303 textPaint.setShadowLayer(mShadowRadius, mShadowOffset, mShadowOffset, mEdgeColor); in onDraw()
310 textPaint.setColor(mForegroundColor); in onDraw()
311 textPaint.setStyle(Style.FILL); in onDraw()
312 textPaint.setShadowLayer(mShadowRadius, -offset, -offset, colorUp); in onDraw()
314 textPaint.setShadowLayer(mShadowRadius, offset, offset, colorDown); in onDraw()
[all …]
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/
DAutoResizeTextView.java50 private final TextPaint textPaint = new TextPaint(); field in AutoResizeTextView
85 textPaint.set(getPaint()); in initialize()
219 textPaint.setTextSize(suggestedSizeInPx); in suggestedSizeFitsInSpace()
224 return textPaint.getFontSpacing() <= availableSpace.bottom in suggestedSizeFitsInSpace()
225 && textPaint.measureText(text) <= availableSpace.right; in suggestedSizeFitsInSpace()
230 textPaint, in suggestedSizeFitsInSpace()
/packages/apps/Terminal/src/com/android/terminal/
DTerminalView.java70 final Paint textPaint = new Paint(); field in TerminalView.TerminalMetrics
93 textPaint.setTypeface(Typeface.MONOSPACE); in setTextSize()
94 textPaint.setAntiAlias(true); in setTextSize()
95 textPaint.setTextSize(textSize); in setTextSize()
98 final FontMetrics fm = textPaint.getFontMetrics(); in setTextSize()
102 textPaint.getTextWidths("X", widths); in setTextSize()
DTerminalLineView.java68 m.textPaint.setColor(m.run.fg); in onDraw()
78 canvas.drawPosText(m.run.data, 0, m.run.dataSize, m.pos, m.textPaint); in onDraw()
/packages/apps/Contacts/src/com/android/contacts/
DShortcutIntentBuilder.java425 TextPaint textPaint = new TextPaint( in generatePhoneNumberIcon() local
427 textPaint.setTextSize(r.getDimension(R.dimen.shortcut_overlay_text_size)); in generatePhoneNumberIcon()
428 textPaint.setColor(r.getColor(R.color.textColorIconOverlay)); in generatePhoneNumberIcon()
429 textPaint.setShadowLayer(4f, 0, 2f, r.getColor(R.color.textColorIconOverlayShadow)); in generatePhoneNumberIcon()
431 final FontMetricsInt fmi = textPaint.getFontMetricsInt(); in generatePhoneNumberIcon()
443 overlay = TextUtils.ellipsize(overlay, textPaint, mIconSize, TruncateAt.END); in generatePhoneNumberIcon()
444 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); in generatePhoneNumberIcon()
446 - fmi.descent - textPadding, textPaint); in generatePhoneNumberIcon()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java913 Paint textPaint; in drawEvent() local
916 textPaint = mSolidBackgroundEventPaint; in drawEvent()
919 textPaint = mDeclinedEventPaint; in drawEvent()
923 textPaint = mFramedEventPaint; in drawEvent()
926 textPaint = mEventPaint; in drawEvent()
928 canvas.drawText(text.toString(), textX, textY, textPaint); in drawEvent() local
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureFloatingTextDrawingPreview.java79 final Paint textPaint = getTextPaint(); in GesturePreviewTextParams() local
81 textPaint.getTextBounds(TEXT_HEIGHT_REFERENCE_CHAR, 0, 1, textRect); in GesturePreviewTextParams()