HomeSort by relevance Sort by last modified time
    Searched refs:textPaint (Results 1 - 12 of 12) sorted by null

  /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 37 SkPaint textPaint;
38 textPaint.setAntiAlias(true);
42 textPaint.setColor(rand() % 0x1000000 | 0xFF000000);
43 textPaint.setTextSize(SkIntToScalar(rand() % 300));
45 SkIntToScalar(y), textPaint);
image.cpp 164 SkPaint textPaint;
166 canvas->drawText(kLabel1, strlen(kLabel1), 10, 60, textPaint);
167 canvas->drawText(kLabel2, strlen(kLabel2), 10, 140, textPaint);
168 canvas->drawText(kLabel3, strlen(kLabel3), 10, 220, textPaint);
169 canvas->drawText(kLabel4, strlen(kLabel4), 10, 300, textPaint);
170 canvas->drawText(kLabel5, strlen(kLabel5), 10, 380, textPaint);
171 canvas->drawText(kLabel6, strlen(kLabel6), 10, 460, textPaint);
172 canvas->drawText(kLabel7, strlen(kLabel7), 10, 540, textPaint);
174 canvas->drawText(kLabel8, strlen(kLabel8), 80, 10, textPaint);
175 canvas->drawText(kLabel9, strlen(kLabel9), 160, 10, textPaint);
    [all...]
simpleaaclip.cpp 157 SkPaint textPaint;
158 textPaint.setAntiAlias(true);
159 textPaint.setTextSize(SK_Scalar1*24);
165 textPaint);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
LabelMaker.java 139 * @param textPaint the paint of the label
142 public int add(GL10 gl, String text, Paint textPaint) {
143 return add(gl, null, text, textPaint);
151 * @param textPaint the paint of the label
154 public int add(GL10 gl, Drawable background, String text, Paint textPaint) {
155 return add(gl, background, text, textPaint, 0, 0);
171 * @param textPaint the paint of the label
174 public int add(GL10 gl, Drawable background, String text, Paint textPaint,
178 boolean drawText = (text != null) && (textPaint != null);
192 ascent = (int) Math.ceil(-textPaint.ascent())
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
SubtitleView.java 33 import android.text.TextPaint;
58 private TextPaint mTextPaint;
122 mTextPaint = new TextPaint();
292 final Paint textPaint = mTextPaint;
315 textPaint.setStrokeJoin(Join.ROUND);
316 textPaint.setStrokeWidth(mOutlineWidth);
317 textPaint.setColor(mEdgeColor);
318 textPaint.setStyle(Style.FILL_AND_STROKE);
324 textPaint.setShadowLayer(mShadowRadius, mShadowOffsetX, mShadowOffsetY, mEdgeColor);
327 textPaint.setColor(mForegroundColor)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ShortcutIntentBuilder.java 39 import android.text.TextPaint;
383 TextPaint textPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG | Paint.DEV_KERN_TEXT_FLAG);
384 textPaint.setTextSize(r.getDimension(R.dimen.shortcut_overlay_text_size));
385 textPaint.setColor(r.getColor(R.color.textColorIconOverlay));
386 textPaint.setShadowLayer(4f, 0, 2f, r.getColor(R.color.textColorIconOverlayShadow));
388 final FontMetricsInt fmi = textPaint.getFontMetricsInt();
402 overlay = TextUtils.ellipsize(overlay, textPaint, mIconSize - 2 * sidePadding,
404 final float textWidth = textPaint.measureText(overlay, 0, overlay.length())
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
GestureFloatingPreviewText.java 76 final Paint textPaint = getTextPaint();
78 textPaint.getTextBounds(TEXT_HEIGHT_REFERENCE_CHAR, 0, 1, textRect);
  /external/chromium_org/third_party/skia/src/pdf/
SkPDFDevice.cpp     [all...]
  /external/skia/src/pdf/
SkPDFDevice.cpp     [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
DynamicGrid.java 191 Paint textPaint = new Paint();
192 textPaint.setTextSize(iconTextSizePx);
193 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...]

Completed in 1488 milliseconds