OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:textPaint
(Results
1 - 9
of
9
) 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
...]
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
PreviewPlacerView.java
161
final Paint
textPaint
= new Paint();
162
textPaint
.setAntiAlias(true);
163
textPaint
.setTextAlign(Align.CENTER);
164
textPaint
.setTextSize(gestureFloatingPreviewTextSize);
165
mTextPaint =
textPaint
;
167
textPaint
.getTextBounds(TEXT_HEIGHT_REFERENCE_CHAR, 0, 1, textRect);
/packages/apps/Contacts/src/com/android/contacts/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
...]
/external/skia/samplecode/
SampleAAClip2.cpp
156
SkPaint
textPaint
;
157
textPaint
.setAntiAlias(true);
158
textPaint
.setTextSize(SK_Scalar1*24);
165
canvas->drawText(gOps[op].fName, strlen(gOps[op].fName), SkIntToScalar(75), SkIntToScalar(50),
textPaint
);
SampleRegion.cpp
233
SkPaint
textPaint
;
234
textPaint
.setAntiAlias(true);
235
textPaint
.setTextSize(SK_Scalar1*24);
246
canvas->drawText(gOps[op].fName, strlen(gOps[op].fName), SkIntToScalar(75), SkIntToScalar(50),
textPaint
);
/external/skia/src/pdf/
SkPDFDevice.cpp
794
SkPaint
textPaint
= calculate_text_paint(paint);
795
ScopedContentEntry content(this, d,
textPaint
, true);
808
textPaint
.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
815
SkDrawCacheProc glyphCacheProc =
textPaint
.getDrawCacheProc();
816
align_text(glyphCacheProc,
textPaint
, glyphIDs, numGlyphs, &x, &y);
818
set_text_transform(x, y,
textPaint
.getTextSkewX(),
822
updateFont(
textPaint
, glyphIDs[consumedGlyphCount], content.entry());
843
SkPaint
textPaint
= calculate_text_paint(paint);
844
ScopedContentEntry content(this, d,
textPaint
, true);
859
textPaint
.setTextEncoding(SkPaint::kGlyphID_TextEncoding)
[
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 651 milliseconds