Home
last modified time | relevance | path

Searched refs:measureText (Results 1 – 25 of 64) sorted by relevance

123

/external/skia/gm/
Dtextblobrandomfont.cpp51 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
60 paint.measureText(bigtext1, strlen(bigtext1), &bounds); in onOnceBeforeDraw()
64 paint.measureText(bigtext2, strlen(bigtext2), &bounds); in onOnceBeforeDraw()
75 paint.measureText(emojiText, strlen(emojiText), &bounds); in onOnceBeforeDraw()
Dtextblobmixedsizes.cpp49 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
56 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
63 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
70 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
Dtextblobcolortrans.cpp37 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
47 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
Dmixedtextblobs.cpp56 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
75 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
87 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
Dfontcache.cpp18 return x + paint.measureText(text.c_str(), text.size()); in draw_string()
56 paint.measureText("\0", 1); in onDraw()
Dbitmapcopy.cpp89 SkScalar textWidth = paint.measureText(name, strlen(name)); in onDraw()
102 SkScalar textWidth = paint.measureText(name, strlen(name)); in onDraw()
Dshadertext2.cpp90 SkScalar w = fillPaint.measureText(kText, kTextLen);
118 SkScalar labelW = labelPaint.measureText(matrices[lm].fLabel,
180 SkScalar fillX = -outlinePaint.measureText(kFillLabel, strlen(kFillLabel)) - kPadX;
Dtextblobtransforms.cpp34 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
43 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
Dconstcolorprocessor.cpp141 labelPaint.measureText(inputLabel.c_str(), inputLabel.size(), in onDraw()
150 labelPaint.measureText(procLabel.c_str(), procLabel.size(), in onDraw()
Dbigtext.cpp38 (void)paint.measureText("/", 1, &r); in onDraw()
Dannotated_text.cpp17 (void)paint.measureText(text, byteLength, &bounds); in draw_url_annotated_text_with_box()
Dcomplexclip.cpp156 txtX += paint.measureText(aTxt, strlen(aTxt)); in onDraw()
160 txtX += paint.measureText(gOps[op].fName, strlen(gOps[op].fName)); in onDraw()
Dtextblobblockreordering.cpp32 paint.measureText(text, strlen(text), &bounds); in onOnceBeforeDraw()
Dverttext.cpp61 SkScalar total = paint.measureText(gText, gLen); in drawBaseline()
/external/skia/tests/
DPaintBreakTextTest.cpp16 const SkScalar width = paint.measureText(text, length); in test_monotonic()
50 const SkScalar width = paint.measureText(text, length); in test_eq_measure_text()
66 const SkScalar width = paint.measureText(text, kSize); in test_long_text()
DFontObjTest.cpp99 SkScalar width1 = paint.measureText(txt, strlen(txt)); in test_cachedfont()
102 SkScalar width2 = paint.measureText(txt, strlen(txt), &bounds); in test_cachedfont()
107 SkScalar font_width1 = font->measureText(txt, strlen(txt), kUTF8_SkTextEncoding); in test_cachedfont()
DTLSTest.cpp26 paint.measureText(text, len); in thread_main()
28 paint.measureText(text, len); in thread_main()
DFontHostTest.cpp296 SkScalar width1 = paint.measureText(txt, strlen(txt)); in test_advances()
299 SkScalar width2 = paint.measureText(txt, strlen(txt), &bounds); in test_advances()
/external/skia/src/animator/
DSkDrawPaint.cpp17 SK_FUNCTION(measureText)
44 SK_MEMBER_FUNCTION(measureText, Float),
155 case SK_FUNCTION(measureText): { in executeFunction()
162 … scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(), in executeFunction()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTextPaint.java10 public float measureText(String text) { in measureText() method in ShadowTextPaint
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DTextPaintTest.java17 assertEquals(4f, paint.measureText("1234")); in measureText_returnsStringLengthAsMeasurement()
/external/skia/samplecode/
DSampleComplexClip.cpp132 txtX += paint.measureText(aTxt, strlen(aTxt)); in onDrawContent()
136 txtX += paint.measureText(gOps[op].fName, strlen(gOps[op].fName)); in onDrawContent()
/external/skia/bench/
DPicturePlaybackBench.cpp82 const SkScalar textWidth = paint.measureText(text, len); in recordCanvas()
107 const SkScalar textWidth = paint.measureText(text, len); in recordCanvas()
/external/skia/include/core/
DSkPaint.h837 SkScalar measureText(const void* text, size_t length, SkRect* bounds) const;
847 SkScalar measureText(const void* text, size_t length) const { in measureText() function
848 return this->measureText(text, length, NULL); in measureText()
DSkFont.h146 SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding) const;

123