Searched refs:mTextPaint (Results 1 - 4 of 4) sorted by relevance
/packages/apps/Camera/src/com/android/camera/ui/ |
H A D | ZoomRenderer.java | 40 private Paint mTextPaint; field in class:ZoomRenderer 64 mTextPaint = new Paint(mPaint); 65 mTextPaint.setStyle(Paint.Style.FILL); 66 mTextPaint.setTextSize(res.getDimensionPixelSize(R.dimen.zoom_font_size)); 67 mTextPaint.setTextAlign(Paint.Align.LEFT); 68 mTextPaint.setAlpha(192); 121 mTextPaint.getTextBounds(txt, 0, txt.length(), mTextBounds); 123 mTextPaint);
|
H A D | Switch.java | 86 private TextPaint mTextPaint; field in class:Switch 121 mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG); 124 mTextPaint.density = dm.density; 152 if (ts != mTextPaint.getTextSize()) { 153 mTextPaint.setTextSize(ts); 200 int actual_width = (int) Math.ceil(Layout.getDesiredWidth(text, mTextPaint)); 201 StaticLayout l = new StaticLayout(text, 0, text.length(), mTextPaint, 413 mTextPaint.setColor(mTextColors.getColorForState(getDrawableState(), 416 mTextPaint.drawableState = getDrawableState();
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | BatteryHistoryChart.java | 139 final TextPaint mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG); field in class:BatteryHistoryChart 456 mainTextAttrs.apply(context, mTextPaint); 459 mDateLinePaint.set(mTextPaint); 470 mTextPaint.setShadowLayer(r, dx, dy, shadowcolor); 614 mMaxPercentLabelStringWidth = (int)mTextPaint.measureText(mMaxPercentLabelString); 615 mMinPercentLabelStringWidth = (int)mTextPaint.measureText(mMinPercentLabelString); 619 mTextAscent = (int)mTextPaint.ascent(); 620 mTextDescent = (int)mTextPaint.descent(); 738 mTextPaint.setStrokeWidth(mThinLineWidth); 1100 mDurationStringWidth = (int)mTextPaint [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | Switch.java | 80 private TextPaint mTextPaint; field in class:Switch 114 mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG); 117 mTextPaint.density = dm.density; 145 if (ts != mTextPaint.getTextSize()) { 146 mTextPaint.setTextSize(ts); 191 int actual_width = (int) Math.ceil(Layout.getDesiredWidth(text, mTextPaint)); 192 StaticLayout l = new StaticLayout(text, 0, text.length(), mTextPaint, 404 mTextPaint.setColor(mTextColors.getColorForState(getDrawableState(), 407 mTextPaint.drawableState = getDrawableState();
|
Completed in 305 milliseconds