HomeSort by relevance Sort by last modified time
    Searched defs:textPaint (Results 1 - 25 of 35) sorted by null

1 2

  /cts/tests/tests/text/src/android/text/cts/
TextPaintTest.java 22 import android.text.TextPaint;
25 * Test {@link TextPaint}.
28 private static final int DEFAULT_PAINT_FLAGS = TextPaint.DEV_KERN_TEXT_FLAG
29 | TextPaint.EMBEDDED_BITMAP_TEXT_FLAG;
32 TextPaint textPaint;
34 textPaint = new TextPaint();
35 assertEquals(DEFAULT_PAINT_FLAGS, textPaint.getFlags());
37 textPaint = new TextPaint(TextPaint.DITHER_FLAG)
    [all...]
  /external/skia/gm/
imageblur.cpp 23 SkPaint textPaint;
24 textPaint.setAntiAlias(true);
25 sk_tool_utils::set_portable_typeface(&textPaint);
29 textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000));
30 textPaint.setTextSize(rand.nextRangeScalar(0, 300));
32 SkIntToScalar(y), textPaint);
imageresizetiled.cpp 40 SkPaint textPaint;
41 textPaint.setAntiAlias(true);
42 sk_tool_utils::set_portable_typeface(&textPaint);
43 textPaint.setTextSize(SkIntToScalar(100));
48 SkIntToScalar(posY), textPaint);
lcdoverlap.cpp 71 SkPaint textPaint;
72 textPaint.setColor(colors[i]);
73 textPaint.setXfermode(i % 2 == 0 ? xfermode : xfermode2);
74 canvas->drawTextBlob(fBlob, 0, 0, textPaint);
imageblur2.cpp 66 SkPaint textPaint;
67 textPaint.setAntiAlias(false);
68 textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000));
69 sk_tool_utils::set_portable_typeface(&textPaint);
70 textPaint.setTextSize(textSize);
77 textPaint);
imageblurtiled.cpp 52 SkPaint textPaint;
53 textPaint.setAntiAlias(true);
54 sk_tool_utils::set_portable_typeface(&textPaint);
55 textPaint.setTextSize(SkIntToScalar(100));
60 SkIntToScalar(posY), textPaint);
simpleaaclip.cpp 157 SkPaint textPaint;
158 textPaint.setAntiAlias(true);
159 sk_tool_utils::set_portable_typeface(&textPaint);
160 textPaint.setTextSize(SK_Scalar1*24);
166 textPaint);
image.cpp 151 SkPaint textPaint;
152 textPaint.setAntiAlias(true);
153 sk_tool_utils::set_portable_typeface(&textPaint);
154 textPaint.setTextSize(8);
156 canvas->drawText(kLabel1, strlen(kLabel1), 10, 60, textPaint);
157 canvas->drawText(kLabel2, strlen(kLabel2), 10, 140, textPaint);
158 canvas->drawText(kLabel3, strlen(kLabel3), 10, 220, textPaint);
159 canvas->drawText(kLabel4, strlen(kLabel4), 10, 300, textPaint);
160 canvas->drawText(kLabel5, strlen(kLabel5), 10, 380, textPaint);
161 canvas->drawText(kLabel6, strlen(kLabel6), 10, 460, textPaint);
    [all...]
  /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
PointLabelFormatter.java 29 private Paint textPaint;
56 return textPaint;
59 public void setTextPaint(Paint textPaint) {
60 this.textPaint = textPaint;
72 //textPaint.setStyle(Paint.Style.STROKE);
ValueMarker.java 43 private Paint textPaint;
55 textPaint = new Paint();
56 textPaint.setAntiAlias(true);
57 textPaint.setColor(Color.RED);
76 * @param textPaint
78 public ValueMarker(Number value, String text, PositionMetricType textPosition, Paint linePaint, Paint textPaint) {
82 this.textPaint = textPaint;
86 public ValueMarker(Number value, String text, PositionMetricType textPosition, int linePaint, int textPaint) {
89 this.textPaint.setColor(textPaint);
    [all...]
XYLegendWidget.java 49 private Paint textPaint;
60 textPaint = new Paint();
61 textPaint.setColor(Color.LTGRAY);
62 textPaint.setAntiAlias(true);
113 float centeredTextOriginY = getRectCenterY(cellRect) + (FontUtils.getFontHeight(textPaint)/2);
114 canvas.drawText(text, iconRect.right + 2, centeredTextOriginY, textPaint);
209 return textPaint;
212 public void setTextPaint(Paint textPaint) {
213 this.textPaint = textPaint;
    [all...]
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
ItemAlignmentFacetHelper.java 86 Paint textPaint = ((TextView)view).getPaint();
87 int titleViewTextHeight = -textPaint.getFontMetricsInt().top;
GuidanceStylingRelativeLayout.java 58 Paint textPaint = mTitleView.getPaint();
59 int titleViewTextHeight = -textPaint.getFontMetricsInt().top;
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
GestureFloatingTextDrawingPreview.java 79 final Paint textPaint = getTextPaint();
81 textPaint.getTextBounds(TEXT_HEIGHT_REFERENCE_CHAR, 0, 1, textRect);
  /frameworks/base/core/java/com/android/internal/widget/
SubtitleView.java 33 import android.text.TextPaint;
62 private TextPaint mTextPaint;
128 mTextPaint = new TextPaint();
302 final Paint textPaint = mTextPaint;
326 textPaint.setStrokeJoin(Join.ROUND);
327 textPaint.setStrokeWidth(mOutlineWidth);
328 textPaint.setColor(mEdgeColor);
329 textPaint.setStyle(Style.FILL_AND_STROKE);
335 textPaint.setShadowLayer(mShadowRadius, mShadowOffsetX, mShadowOffsetY, mEdgeColor);
343 textPaint.setColor(mForegroundColor)
    [all...]
  /packages/apps/TV/usbtuner/src/com/google/android/exoplayer/text/
SubtitleView.java 31 import android.text.TextPaint;
64 private TextPaint mTextPaint;
112 mTextPaint = new TextPaint();
259 final Paint textPaint = this.mTextPaint;
282 textPaint.setStrokeJoin(Join.ROUND);
283 textPaint.setStrokeWidth(mOutlineWidth);
284 textPaint.setColor(mEdgeColor);
285 textPaint.setStyle(Style.FILL_AND_STROKE);
288 textPaint.setShadowLayer(mShadowRadius, mShadowOffset, mShadowOffset, mEdgeColor);
295 textPaint.setColor(mForegroundColor)
    [all...]
  /external/skia/samplecode/
SampleRegion.cpp 366 SkPaint textPaint;
367 textPaint.setAntiAlias(true);
368 textPaint.setTextSize(SK_Scalar1*24);
379 canvas->drawText(gOps[op].fName, strlen(gOps[op].fName), SkIntToScalar(75), SkIntToScalar(50), textPaint);
  /packages/apps/Terminal/src/com/android/terminal/
TerminalView.java 70 final Paint textPaint = new Paint();
93 textPaint.setTypeface(Typeface.MONOSPACE);
94 textPaint.setAntiAlias(true);
95 textPaint.setTextSize(textSize);
98 final FontMetrics fm = textPaint.getFontMetrics();
102 textPaint.getTextWidths("X", widths);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ShortcutIntentBuilder.java 42 import android.text.TextPaint;
393 TextPaint textPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG | Paint.DEV_KERN_TEXT_FLAG);
394 textPaint.setTextSize(r.getDimension(R.dimen.shortcut_overlay_text_size));
395 textPaint.setColor(r.getColor(R.color.textColorIconOverlay));
396 textPaint.setShadowLayer(4f, 0, 2f, r.getColor(R.color.textColorIconOverlayShadow));
398 final FontMetricsInt fmi = textPaint.getFontMetricsInt();
410 overlay = TextUtils.ellipsize(overlay, textPaint, mIconSize, TruncateAt.END);
411 final float textWidth = textPaint.measureText(overlay, 0, overlay.length())
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
DeviceProfile.java 240 Paint textPaint = new Paint();
241 textPaint.setTextSize(iconTextSizePx);
242 FontMetrics fm = textPaint.getFontMetrics();
  /packages/apps/Calendar/src/com/android/calendar/month/
MonthWeekEventsView.java 38 import android.text.TextPaint;
126 protected TextPaint mEventPaint;
127 protected TextPaint mSolidBackgroundEventPaint;
128 protected TextPaint mFramedEventPaint;
129 protected TextPaint mDeclinedEventPaint;
130 protected TextPaint mEventExtrasPaint;
131 protected TextPaint mEventDeclinedExtrasPaint;
410 mEventPaint = new TextPaint();
416 mSolidBackgroundEventPaint = new TextPaint(mEventPaint);
418 mFramedEventPaint = new TextPaint(mSolidBackgroundEventPaint)
    [all...]
  /external/skia/src/pdf/
SkPDFDevice.cpp     [all...]
  /frameworks/base/media/java/android/media/
ClosedCaptionRenderer.java 28 import android.text.TextPaint;
649 public void updateDrawState(TextPaint ds) {
    [all...]
  /developers/build/prebuilts/androidtv/sample-inputs/app/libs/
exoplayer_dev-hls_20150123.jar 
  /prebuilts/sdk/current/support/v17/leanback/libs/
android-support-v17-leanback.jar 

Completed in 598 milliseconds

1 2