OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:textPaint
(Results
1 - 10
of
10
) 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;
31
TextPaint
textPaint
;
33
textPaint
= new
TextPaint
();
34
assertEquals(DEFAULT_PAINT_FLAGS,
textPaint
.getFlags());
36
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
139
SkPaint
textPaint
;
141
canvas->drawText(kLabel1, strlen(kLabel1), 10, 60,
textPaint
);
142
canvas->drawText(kLabel2, strlen(kLabel2), 10, 140,
textPaint
);
143
canvas->drawText(kLabel3, strlen(kLabel3), 10, 220,
textPaint
);
145
canvas->drawText(kLabel4, strlen(kLabel4), 80, 10,
textPaint
);
146
canvas->drawText(kLabel5, strlen(kLabel5), 160, 10,
textPaint
);
147
canvas->drawText(kLabel6, strlen(kLabel6), 250, 10,
textPaint
);
148
canvas->drawText(kLabel7, strlen(kLabel7), 340, 10,
textPaint
);
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
...]
/packages/apps/Launcher2/src/com/android/launcher2/
StrokedTextView.java
96
final Paint
textPaint
= getPaint();
97
final int textWidth = (int)
textPaint
.measureText(text);
98
textPaint
.getTextBounds("x", 0, 1, textBounds);
/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/skia/src/pdf/
SkPDFDevice.cpp
878
SkPaint
textPaint
= calculate_text_paint(paint);
879
ScopedContentEntry content(this, d,
textPaint
, true);
888
textPaint
.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
890
SkDrawCacheProc glyphCacheProc =
textPaint
.getDrawCacheProc();
891
align_text(glyphCacheProc,
textPaint
, glyphIDs, numGlyphs, &x, &y);
893
set_text_transform(x, y,
textPaint
.getTextSkewX(),
897
updateFont(
textPaint
, glyphIDs[consumedGlyphCount], content.entry());
[
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
...]
Completed in 1541 milliseconds