Searched refs:textPaint (Results 1 – 7 of 7) sorted by relevance
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/ |
D | SubtitleView.java | 270 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/ |
D | AutoResizeTextView.java | 48 private final TextPaint textPaint = new TextPaint(); field in AutoResizeTextView 81 textPaint.set(getPaint()); in initialize() 168 textPaint.setTextSize(suggestedSizeInPx); in suggestedSizeFitsInSpace() 173 return textPaint.getFontSpacing() <= availableSpace.bottom in suggestedSizeFitsInSpace() 174 && textPaint.measureText(text) <= availableSpace.right; in suggestedSizeFitsInSpace() 179 textPaint, in suggestedSizeFitsInSpace()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ShortcutIntentBuilder.java | 425 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/Car/Dialer/src/com/android/car/dialer/ui/view/ |
D | ScaleSpan.java | 51 TextPaint textPaint = new TextPaint(paint); in getSize() local 52 textPaint.setTextSize(Math.max(mStartTextSize, paint.getTextSize())); in getSize() 54 float desiredWidth = StaticLayout.getDesiredWidth(text.toString(), start, end, textPaint); in getSize()
|
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/widgets/countdown/ |
D | CountDownRenderer.java | 144 private static RectF measureText(String text, Paint textPaint) { in measureText() argument 146 textPaint.getTextBounds(text, 0, text.length(), textBounds); in measureText()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureFloatingTextDrawingPreview.java | 79 final Paint textPaint = getTextPaint(); in GesturePreviewTextParams() local 81 textPaint.getTextBounds(TEXT_HEIGHT_REFERENCE_CHAR, 0, 1, textRect); in GesturePreviewTextParams()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthWeekEventsView.java | 913 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
|