Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java219 assertEquals(advance, p.measureText(str, start, end), 1.0f); in assertGetTextRunAdvances()
309 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi()
311 width += p.measureText(bidiText, 4, 7); in testMeasureTextBidi()
313 width += p.measureText(bidiText, 7, bidiText.length()); in testMeasureTextBidi()
314 assertEquals(width, p.measureText(bidiText), 1.0f); in testMeasureTextBidi()
319 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi()
320 width += p.measureText(bidiText, 4, 7); in testMeasureTextBidi()
321 width += p.measureText(bidiText, 7, bidiText.length()); in testMeasureTextBidi()
322 assertEquals(width, p.measureText(bidiText), 1.0f); in testMeasureTextBidi()
327 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi()
[all …]
/frameworks/support/compat/ics/android/support/v4/graphics/
DPaintCompatApi14.java38 final float missingGlyphWidth = paint.measureText(TOFU_STRING); in hasGlyph()
39 final float width = paint.measureText(string); in hasGlyph()
67 sumWidth += paint.measureText(string, i, i + charCount); in hasGlyph()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DPaintMeasureTextTest.java77 paint.measureText(mText); in testMeasureTextPerf()
89 paint.measureText(mText); in testMeasureTextPerf()
/frameworks/support/compat/tests/java/android/support/v4/graphics/
DTypefaceCompatTest.java109 p.measureText("a"), p.measureText("b"), p.measureText("c"), p.measureText("d") in getSelectedFontResourceId()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp67 float MinikinUtils::measureText(const Paint* paint, int bidiFlags, Typeface* typeface, in measureText() function in android::MinikinUtils
72 return minikin::Layout::measureText(buf, start, count, bufSize, bidiFlags, minikinStyle, in measureText()
DMinikinUtils.h44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface,
/frameworks/base/core/java/android/text/
DGraphicsOperations.java45 float measureText(int start, int end, Paint p); in measureText() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDualTileLabel.java162 float width = mFirstLine.getPaint().measureText(mText); in updateText()
174 width = mFirstLine.getPaint().measureText(mText.substring(0, i)); in updateText()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1793 public float measureText(char[] text, int index, int count) { in measureText() method in Paint
1825 public float measureText(String text, int start, int end) { in measureText() method in Paint
1854 public float measureText(String text) { in measureText() method in Paint
1858 return measureText(text, 0, text.length()); in measureText()
1869 public float measureText(CharSequence text, int start, int end) { in measureText() method in Paint
1881 return measureText((String)text, start, end); in measureText()
1885 return measureText(text.toString(), start, end); in measureText()
1888 return ((GraphicsOperations)text).measureText(start, end, this); in measureText()
1893 float result = measureText(buf, 0, end - start); in measureText()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java188 float wordWidth = paint.measureText(word, 0, word.length()); in testHyphenationWidth()
219 float withoutHyphenLength = paint.measureText(sb, start, end); in testHyphenationWidth()
DLabelView.java140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
/frameworks/base/tools/layoutlib/bridge/src/android/text/
DStaticLayout_Delegate.java99 measureText(nativePaint, builder.mText, start, end - start, builder.mWidths, in nAddStyleRun()
216 private static float measureText(long nativePaint, char []text, int index, int count, in measureText() method in StaticLayout_Delegate
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStreamingTextView.java246 int width = (int) paint.measureText(text, start, end); in draw()
280 return (int) paint.measureText(text, start, end); in getSize()
/frameworks/rs/
DrsScriptC_LibGL.cpp247 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc()
256 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
DrsFont.h154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
/frameworks/minikin/include/minikin/
DLayout.h78 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
/frameworks/minikin/libs/minikin/
DLineBreaker.cpp122 width = Layout::measureText(mTextBuf.data(), start, end - start, mTextBuf.size(), bidiFlags, in addStyleRun()
193 const float firstPartWidth = Layout::measureText(mTextBuf.data(), in addStyleRun()
199 const float secondPartWidth = Layout::measureText(mTextBuf.data(), j, in addStyleRun()
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java333 assertTrue("wid " + i + " pass " + j, p.measureText(out1) <= i); in testEllipsize()
336 assertTrue("wid " + i + " pass " + j, p.measureText(keep1) == p.measureText(out1)); in testEllipsize()
DStaticLayoutDirectionsTest.java134 float width = b.paint.measureText(b.text, 0, 5); // exclude 'c' in testTrailingWhitespace()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DScaledTextActivity.java132 float width = mPaint.measureText(TEXT); in onDraw()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java636 RectF bounds = delegate.measureText(text, start, end - start + 1, null, 0, bidiFlags); in nBreakText()
949 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, bidiFlags); in nGetTextAdvances()
1021 delegate.measureText(text, index, count, null, 0, bidiFlags).roundOut(bounds); in nGetCharArrayBounds()
1282 /*package*/ RectF measureText(char[] text, int index, int count, float[] advances, in measureText() method in Paint_Delegate
1288 /*package*/ RectF measureText(char[] text, int index, int count, float[] advances, in measureText() method in Paint_Delegate
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DCustomSurfaceView.java138 int textWidth = (int)(paint.measureText(mName) + 0.5f); in invalidateSurface()
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java400 mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length()) : 0; in calculateBaseOffsets()
432 ? mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length()) : 0; in calculateBaseOffsets()
629 final int w = Math.round(mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length())); in ensureExpandedTexture()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp115 MinikinUtils::measureText(&paint, bidiFlags, typeface, text, 0, count, count, in breakText()
207 const float advance = MinikinUtils::measureText(paint, bidiFlags, typeface, text, in doTextAdvances()
247 MinikinUtils::measureText(paint, bidiFlags, typeface, text, start, count, start + count, in doTextRunCursor()
505 return MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, in doRunAdvance()
509 MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, bufSize, in doRunAdvance()
531 MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, bufSize, in doOffsetForAdvance()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java94 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()

12