/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/chromium_org/third_party/skia/gm/ |
imageblur.cpp | 45 SkPaint textPaint; 46 textPaint.setAntiAlias(true); 50 textPaint.setColor(rand.nextBits(24) | 0xFF000000); 51 textPaint.setTextSize(rand.nextRangeScalar(0, 300)); 53 SkIntToScalar(y), textPaint);
|
imageblurtiled.cpp | 51 SkPaint textPaint; 52 textPaint.setAntiAlias(true); 53 textPaint.setTextSize(SkIntToScalar(100)); 58 SkIntToScalar(posY), textPaint);
|
imageresizetiled.cpp | 56 SkPaint textPaint; 57 textPaint.setAntiAlias(true); 58 textPaint.setTextSize(SkIntToScalar(100)); 63 SkIntToScalar(posY), textPaint);
|
image.cpp | 159 SkPaint textPaint; 160 textPaint.setAntiAlias(true); 161 textPaint.setTextSize(8); 163 canvas->drawText(kLabel1, strlen(kLabel1), 10, 60, textPaint); 164 canvas->drawText(kLabel2, strlen(kLabel2), 10, 140, textPaint); 165 canvas->drawText(kLabel3, strlen(kLabel3), 10, 220, textPaint); 166 canvas->drawText(kLabel4, strlen(kLabel4), 10, 300, textPaint); 167 canvas->drawText(kLabel5, strlen(kLabel5), 10, 380, textPaint); 168 canvas->drawText(kLabel6, strlen(kLabel6), 10, 460, textPaint); 169 canvas->drawText(kLabel7, strlen(kLabel7), 10, 540, textPaint); [all...] |
simpleaaclip.cpp | 159 SkPaint textPaint; 160 textPaint.setAntiAlias(true); 161 textPaint.setTextSize(SK_Scalar1*24); 167 textPaint);
|
/external/skia/gm/ |
imageblur.cpp | 45 SkPaint textPaint; 46 textPaint.setAntiAlias(true); 50 textPaint.setColor(rand.nextBits(24) | 0xFF000000); 51 textPaint.setTextSize(rand.nextRangeScalar(0, 300)); 53 SkIntToScalar(y), textPaint);
|
imageblurtiled.cpp | 51 SkPaint textPaint; 52 textPaint.setAntiAlias(true); 53 textPaint.setTextSize(SkIntToScalar(100)); 58 SkIntToScalar(posY), textPaint);
|
imageresizetiled.cpp | 56 SkPaint textPaint; 57 textPaint.setAntiAlias(true); 58 textPaint.setTextSize(SkIntToScalar(100)); 63 SkIntToScalar(posY), textPaint);
|
image.cpp | 159 SkPaint textPaint; 160 textPaint.setAntiAlias(true); 161 textPaint.setTextSize(8); 163 canvas->drawText(kLabel1, strlen(kLabel1), 10, 60, textPaint); 164 canvas->drawText(kLabel2, strlen(kLabel2), 10, 140, textPaint); 165 canvas->drawText(kLabel3, strlen(kLabel3), 10, 220, textPaint); 166 canvas->drawText(kLabel4, strlen(kLabel4), 10, 300, textPaint); 167 canvas->drawText(kLabel5, strlen(kLabel5), 10, 380, textPaint); 168 canvas->drawText(kLabel6, strlen(kLabel6), 10, 460, textPaint); 169 canvas->drawText(kLabel7, strlen(kLabel7), 10, 540, textPaint); [all...] |
simpleaaclip.cpp | 159 SkPaint textPaint; 160 textPaint.setAntiAlias(true); 161 textPaint.setTextSize(SK_Scalar1*24); 167 textPaint);
|
/frameworks/base/core/java/com/android/internal/widget/ |
SubtitleView.java | 32 import android.text.TextPaint; 62 private TextPaint mTextPaint; 128 mTextPaint = new TextPaint(); 301 final Paint textPaint = mTextPaint; 325 textPaint.setStrokeJoin(Join.ROUND); 326 textPaint.setStrokeWidth(mOutlineWidth); 327 textPaint.setColor(mEdgeColor); 328 textPaint.setStyle(Style.FILL_AND_STROKE); 334 textPaint.setShadowLayer(mShadowRadius, mShadowOffsetX, mShadowOffsetY, mEdgeColor); 342 textPaint.setColor(mForegroundColor) [all...] |
/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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ShortcutIntentBuilder.java | 42 import android.text.TextPaint; 380 TextPaint textPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG | Paint.DEV_KERN_TEXT_FLAG); 381 textPaint.setTextSize(r.getDimension(R.dimen.shortcut_overlay_text_size)); 382 textPaint.setColor(r.getColor(R.color.textColorIconOverlay)); 383 textPaint.setShadowLayer(4f, 0, 2f, r.getColor(R.color.textColorIconOverlayShadow)); 385 final FontMetricsInt fmi = textPaint.getFontMetricsInt(); 397 overlay = TextUtils.ellipsize(overlay, textPaint, mIconSize, TruncateAt.END); 398 final float textWidth = textPaint.measureText(overlay, 0, overlay.length()) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
GestureFloatingTextDrawingPreview.java | 77 final Paint textPaint = getTextPaint(); 79 textPaint.getTextBounds(TEXT_HEIGHT_REFERENCE_CHAR, 0, 1, textRect);
|
/frameworks/base/media/java/android/media/ |
ClosedCaptionRenderer.java | 30 import android.text.TextPaint; 1074 public void updateDrawState(TextPaint ds) { [all...] |
/external/chromium_org/third_party/skia/samplecode/ |
SampleRegion.cpp | 370 SkPaint textPaint; 371 textPaint.setAntiAlias(true); 372 textPaint.setTextSize(SK_Scalar1*24); 383 canvas->drawText(gOps[op].fName, strlen(gOps[op].fName), SkIntToScalar(75), SkIntToScalar(50), textPaint);
|
/external/skia/samplecode/ |
SampleRegion.cpp | 370 SkPaint textPaint; 371 textPaint.setAntiAlias(true); 372 textPaint.setTextSize(SK_Scalar1*24); 383 canvas->drawText(gOps[op].fName, strlen(gOps[op].fName), SkIntToScalar(75), SkIntToScalar(50), textPaint);
|
/external/chromium_org/third_party/skia/src/pdf/ |
SkPDFDevice.cpp | [all...] |
/external/skia/src/pdf/ |
SkPDFDevice.cpp | [all...] |
/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...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
DeviceProfile.java | 385 Paint textPaint = new Paint(); 386 textPaint.setTextSize(iconTextSizePx); 387 FontMetrics fm = textPaint.getFontMetrics(); [all...] |