Home
last modified time | relevance | path

Searched refs:mTextPaint (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/widget/
DDonutView.java59 private TextPaint mTextPaint; field in DonutView
124 mTextPaint = new TextPaint(); in DonutView()
125 mTextPaint.setColor(Utils.getColorAccentDefaultColor(getContext())); in DonutView()
126 mTextPaint.setAntiAlias(true); in DonutView()
127 mTextPaint.setTextSize( in DonutView()
129 mTextPaint.setTextAlign(Paint.Align.CENTER); in DonutView()
130 mTextPaint.setBidiFlags(bidiFlags); in DonutView()
177 final float totalHeight = getTextHeight(mTextPaint) + getTextHeight(mBigNumberPaint); in drawInnerText()
193 canvas.drawText(mFullString, centerX, startY - mTextPaint.descent(), mTextPaint); in drawInnerText()
204 mTextPaint.setTextSize( in setPercentage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDonutView.java59 private TextPaint mTextPaint; field in DonutView
124 mTextPaint = new TextPaint(); in DonutView()
125 mTextPaint.setColor(Utils.getColorAccentDefaultColor(getContext())); in DonutView()
126 mTextPaint.setAntiAlias(true); in DonutView()
127 mTextPaint.setTextSize( in DonutView()
129 mTextPaint.setTextAlign(Paint.Align.CENTER); in DonutView()
130 mTextPaint.setBidiFlags(bidiFlags); in DonutView()
177 final float totalHeight = getTextHeight(mTextPaint) + getTextHeight(mBigNumberPaint); in drawInnerText()
193 canvas.drawText(mFullString, centerX, startY - mTextPaint.descent(), mTextPaint); in drawInnerText()
204 mTextPaint.setTextSize( in setPercentage()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java59 private final TextPaint mTextPaint; field in SubtitleView
113 mTextPaint = new TextPaint(); in SubtitleView()
114 mTextPaint.setAntiAlias(true); in SubtitleView()
115 mTextPaint.setSubpixelText(true); in SubtitleView()
150 if (mTextPaint.getTextSize() != size) { in setTextSize()
151 mTextPaint.setTextSize(size); in setTextSize()
191 if (Objects.equals(mTextPaint.getTypeface(), (typeface))) { in setTypeface()
192 mTextPaint.setTypeface(typeface); in setTypeface()
254 mText, mTextPaint, maxWidth, mAlignment, mSpacingMult, mSpacingAdd, true); in computeMeasurements()
270 final Paint textPaint = this.mTextPaint; in onDraw()
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
DTestTvInputService.java97 private final Paint mTextPaint = new Paint(); field in TestTvInputService.SimpleSessionImpl
148 mTextPaint.setColor(Color.BLACK); in SimpleSessionImpl()
149 mTextPaint.setTextSize(150); in SimpleSessionImpl()
337 c.drawText(name, 100f, 200f, mTextPaint); in run()
338 c.drawText(now, 100f, 400f, mTextPaint); in run()