/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 | 39 SkPaint textPaint; 40 textPaint.setAntiAlias(true); 44 textPaint.setColor(rand.nextBits(24) | 0xFF000000); 45 textPaint.setTextSize(rand.nextRangeScalar(0, 300)); 47 SkIntToScalar(y), textPaint);
|
image.cpp | 160 SkPaint textPaint; 162 canvas->drawText(kLabel1, strlen(kLabel1), 10, 60, textPaint); 163 canvas->drawText(kLabel2, strlen(kLabel2), 10, 140, textPaint); 164 canvas->drawText(kLabel3, strlen(kLabel3), 10, 220, textPaint); 165 canvas->drawText(kLabel4, strlen(kLabel4), 10, 300, textPaint); 166 canvas->drawText(kLabel5, strlen(kLabel5), 10, 380, textPaint); 167 canvas->drawText(kLabel6, strlen(kLabel6), 10, 460, textPaint); 168 canvas->drawText(kLabel7, strlen(kLabel7), 10, 540, textPaint); 170 canvas->drawText(kLabel8, strlen(kLabel8), 80, 10, textPaint); 171 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; 395 TextPaint textPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG | Paint.DEV_KERN_TEXT_FLAG); 396 textPaint.setTextSize(r.getDimension(R.dimen.shortcut_overlay_text_size)); 397 textPaint.setColor(r.getColor(R.color.textColorIconOverlay)); 398 textPaint.setShadowLayer(4f, 0, 2f, r.getColor(R.color.textColorIconOverlayShadow)); 400 final FontMetricsInt fmi = textPaint.getFontMetricsInt(); 414 overlay = TextUtils.ellipsize(overlay, textPaint, mIconSize - 2 * sidePadding, 416 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/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 | 325 Paint textPaint = new Paint(); 326 textPaint.setTextSize(iconTextSizePx); 327 FontMetrics fm = textPaint.getFontMetrics(); [all...] |