Searched refs:textPaint (Results 1 - 7 of 7) sorted by relevance
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/ |
H A D | SubtitleView.java | 270 final Paint textPaint = this.mTextPaint; 297 textPaint.setStrokeJoin(Join.ROUND); 298 textPaint.setStrokeWidth(mOutlineWidth); 299 textPaint.setColor(mEdgeColor); 300 textPaint.setStyle(Style.FILL_AND_STROKE); 303 textPaint.setShadowLayer(mShadowRadius, mShadowOffset, mShadowOffset, mEdgeColor); 310 textPaint.setColor(mForegroundColor); 311 textPaint.setStyle(Style.FILL); 312 textPaint.setShadowLayer(mShadowRadius, -offset, -offset, colorUp); 314 textPaint [all...] |
/packages/apps/Dialer/java/com/android/incallui/autoresizetext/ |
H A D | AutoResizeTextView.java | 50 private final TextPaint textPaint = new TextPaint(); field in class:AutoResizeTextView 86 textPaint.set(getPaint()); 220 textPaint.setTextSize(suggestedSizeInPx); 225 return textPaint.getFontSpacing() <= availableSpace.bottom 226 && textPaint.measureText(text) <= availableSpace.right; 231 textPaint,
|
/packages/apps/Terminal/src/com/android/terminal/ |
H A D | TerminalView.java | 70 final Paint textPaint = new Paint(); field in class:TerminalView.TerminalMetrics 93 textPaint.setTypeface(Typeface.MONOSPACE); 94 textPaint.setAntiAlias(true); 95 textPaint.setTextSize(textSize); 98 final FontMetrics fm = textPaint.getFontMetrics(); 102 textPaint.getTextWidths("X", widths);
|
H A D | TerminalLineView.java | 68 m.textPaint.setColor(m.run.fg); 78 canvas.drawPosText(m.run.data, 0, m.run.dataSize, m.pos, m.textPaint);
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ShortcutIntentBuilder.java | 425 TextPaint textPaint = new TextPaint( 427 textPaint.setTextSize(r.getDimension(R.dimen.shortcut_overlay_text_size)); 428 textPaint.setColor(r.getColor(R.color.textColorIconOverlay)); 429 textPaint.setShadowLayer(4f, 0, 2f, r.getColor(R.color.textColorIconOverlayShadow)); 431 final FontMetricsInt fmi = textPaint.getFontMetricsInt(); 443 overlay = TextUtils.ellipsize(overlay, textPaint, mIconSize, TruncateAt.END); 444 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()); 446 - fmi.descent - textPadding, textPaint);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | GestureFloatingTextDrawingPreview.java | 79 final Paint textPaint = getTextPaint(); 81 textPaint.getTextBounds(TEXT_HEIGHT_REFERENCE_CHAR, 0, 1, textRect);
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | MonthWeekEventsView.java | 913 Paint textPaint; 916 textPaint = mSolidBackgroundEventPaint; 919 textPaint = mDeclinedEventPaint; 923 textPaint = mFramedEventPaint; 926 textPaint = mEventPaint; 928 canvas.drawText(text.toString(), textX, textY, textPaint);
|
Completed in 243 milliseconds