/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 219 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/ |
D | PaintCompatApi14.java | 38 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/ |
D | PaintMeasureTextTest.java | 77 paint.measureText(mText); in testMeasureTextPerf() 89 paint.measureText(mText); in testMeasureTextPerf()
|
/frameworks/support/compat/tests/java/android/support/v4/graphics/ |
D | TypefaceCompatTest.java | 109 p.measureText("a"), p.measureText("b"), p.measureText("c"), p.measureText("d") in getSelectedFontResourceId()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 67 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()
|
D | MinikinUtils.h | 44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface,
|
/frameworks/base/core/java/android/text/ |
D | GraphicsOperations.java | 45 float measureText(int start, int end, Paint p); in measureText() method
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDualTileLabel.java | 162 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/ |
D | Paint.java | 1793 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/ |
D | TextViewTest.java | 188 float wordWidth = paint.measureText(word, 0, word.length()); in testHyphenationWidth() 219 float withoutHyphenLength = paint.measureText(sb, start, end); in testHyphenationWidth()
|
D | LabelView.java | 140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
D | StaticLayout_Delegate.java | 99 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/ |
D | StreamingTextView.java | 246 int width = (int) paint.measureText(text, start, end); in draw() 280 return (int) paint.measureText(text, start, end); in getSize()
|
/frameworks/rs/ |
D | rsScriptC_LibGL.cpp | 247 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc() 256 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
|
D | rsFont.h | 154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 78 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
|
/frameworks/minikin/libs/minikin/ |
D | LineBreaker.cpp | 122 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/ |
D | TextUtilsTest.java | 333 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()
|
D | StaticLayoutDirectionsTest.java | 134 float width = b.paint.measureText(b.text, 0, 5); // exclude 'c' in testTrailingWhitespace()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ScaledTextActivity.java | 132 float width = mPaint.measureText(TEXT); in onDraw()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 636 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/ |
D | CustomSurfaceView.java | 138 int textWidth = (int)(paint.measureText(mName) + 0.5f); in invalidateSurface()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CollapsingTextHelper.java | 400 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/ |
D | Paint.cpp | 115 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/ |
D | Watermark.java | 94 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()
|