Home
last modified time | relevance | path

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

/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DPlayheadView.java39 private final Paint mTextPaint; field in PlayheadView
60 mTextPaint = new Paint(); in PlayheadView()
61 mTextPaint.setAntiAlias(true); in PlayheadView()
62 mTextPaint.setColor(resources.getColor(R.color.playhead_tick_color)); in PlayheadView()
64 mTextPaint.setTextSize(mTimeTextSize); in PlayheadView()
137 final int y = (int) -mTextPaint.getFontMetrics().top; in onDraw()
141 int x = (int) ((getWidth() - mTextPaint.measureText(timeText)) / 2); in onDraw()
142 canvas.drawText(timeText, x, y, mTextPaint); in onDraw()
177 final int x = (int) (i - mTextPaint.measureText(timeText) / 2); in onDraw()
178 canvas.drawText(timeText, x, y, mTextPaint); in onDraw()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryChart.java122 final TextPaint mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG); field in BatteryHistoryChart
200 mTextPaint.density = getResources().getDisplayMetrics().density; in BatteryHistoryChart()
201 mTextPaint.setCompatibilityScaling( in BatteryHistoryChart()
291 mTextPaint.setColor(textColor.getDefaultColor()); in BatteryHistoryChart()
292 mTextPaint.setTextSize(textSize); in BatteryHistoryChart()
312 mTextPaint.setShadowLayer(r, dx, dy, shadowcolor); in BatteryHistoryChart()
324 mTextPaint.setTypeface(tf); in setTypeface()
328 mTextPaint.setFakeBoldText((need & Typeface.BOLD) != 0); in setTypeface()
329 mTextPaint.setTextSkewX((need & Typeface.ITALIC) != 0 ? -0.25f : 0); in setTypeface()
331 mTextPaint.setFakeBoldText(false); in setTypeface()
[all …]