/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceSystemFallbackTest.java | 95 GLYPH_3EM_WIDTH = paint.measureText("a"); 96 GLYPH_1EM_WIDTH = paint.measureText("b"); 99 GLYPH_2EM_WIDTH = paint.measureText("a"); 230 assertEquals(GLYPH_3EM_WIDTH, paint.measureText("a"), 0.0f); in testBuildSystemFallback_NamedFamily() 231 assertEquals(GLYPH_1EM_WIDTH, paint.measureText("b"), 0.0f); in testBuildSystemFallback_NamedFamily() 232 assertEquals(GLYPH_1EM_WIDTH, paint.measureText("c"), 0.0f); in testBuildSystemFallback_NamedFamily() 237 assertEquals(GLYPH_1EM_WIDTH, paint.measureText("a"), 0.0f); in testBuildSystemFallback_NamedFamily() 238 assertEquals(GLYPH_3EM_WIDTH, paint.measureText("b"), 0.0f); in testBuildSystemFallback_NamedFamily() 239 assertEquals(GLYPH_1EM_WIDTH, paint.measureText("c"), 0.0f); in testBuildSystemFallback_NamedFamily() 244 assertEquals(GLYPH_1EM_WIDTH, paint.measureText("a"), 0.0f); in testBuildSystemFallback_NamedFamily() [all …]
|
D | PaintTest.java | 208 assertEquals(advance, p.measureText(str, start, end), 1.0f); in assertGetTextRunAdvances() 279 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi() 281 width += p.measureText(bidiText, 4, 7); in testMeasureTextBidi() 283 width += p.measureText(bidiText, 7, bidiText.length()); in testMeasureTextBidi() 284 assertEquals(width, p.measureText(bidiText), 1.0f); in testMeasureTextBidi() 289 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi() 290 width += p.measureText(bidiText, 4, 7); in testMeasureTextBidi() 291 width += p.measureText(bidiText, 7, bidiText.length()); in testMeasureTextBidi() 292 assertEquals(width, p.measureText(bidiText), 1.0f); in testMeasureTextBidi() 297 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | PaintMeasureDrawPerfTest.java | 82 if (mCached) mTextPaint.measureText(text); in timeMeasure() 90 mTextPaint.measureText(text); in timeMeasure() 105 if (mCached) mTextPaint.measureText(text); in timeDraw()
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | PaintMeasureTextTest.java | 78 paint.measureText(mText); in testMeasureTextPerf() 90 paint.measureText(mText); in testMeasureTextPerf()
|
/frameworks/layoutlib/bridge/src/android/graphics/text/ |
D | MeasuredText_Builder_Delegate.java | 105 private static float measureText(long nativePaint, char[] text, int index, int count, in measureText() method in MeasuredText_Builder_Delegate 127 measureText(mNativePaint, builder.mText, mStart, mEnd - mStart, builder.mWidths, in addTo()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 72 float MinikinUtils::measureText(const Paint* paint, minikin::Bidi bidiFlags, in measureText() function in android::MinikinUtils 81 return minikin::Layout::measureText(textBuf, range, bidiFlags, minikinPaint, startHyphen, in measureText()
|
D | MinikinUtils.h | 51 ANDROID_API static float measureText(const Paint* paint, minikin::Bidi bidiFlags,
|
/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 | 2167 public float measureText(char[] text, int index, int count) { in measureText() method in Paint 2199 public float measureText(String text, int start, int end) { in measureText() method in Paint 2228 public float measureText(String text) { in measureText() method in Paint 2232 return measureText(text, 0, text.length()); in measureText() 2243 public float measureText(CharSequence text, int start, int end) { in measureText() method in Paint 2255 return measureText((String)text, start, end); in measureText() 2259 return measureText(text.toString(), start, end); in measureText() 2262 return ((GraphicsOperations)text).measureText(start, end, this); in measureText() 2267 float result = measureText(buf, 0, end - start); in measureText()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | LabelView.java | 140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
|
D | TextViewFallbackLineSpacingTest.java | 105 final int em = (int) Math.ceil(textView.getPaint().measureText("a")); in testFallbackLineSpacing()
|
D | TextViewTest.java | 189 float wordWidth = paint.measureText(word, 0, word.length()); in testHyphenationWidth() 221 float withoutHyphenLength = paint.measureText(sb, start, end); in testHyphenationWidth()
|
/frameworks/rs/ |
D | rsScriptC_LibGL.cpp | 247 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc() 256 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
|
/frameworks/minikin/tests/unittest/ |
D | LayoutTest.cpp | 432 EXPECT_EQ(1.0f, Layout::measureText(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 442 EXPECT_EQ(6.0f, Layout::measureText(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 454 Layout::measureText(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
D | PerfTimeline.java | 105 mTextWidth = mTextPaint.measureText(mExampleString); in invalidateTextPaintAndMeasurements()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 662 RectF bounds = delegate.measureText(text, start, end - start + 1, null, 0, bidiFlags); in nBreakText() 967 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, bidiFlags); in nGetTextAdvances() 1034 delegate.measureText(text, index, count, null, 0, bidiFlags).roundOut(bounds); in nGetCharArrayBounds() 1325 /*package*/ RectF measureText(char[] text, int index, int count, float[] advances, in measureText() method in Paint_Delegate 1331 /*package*/ RectF measureText(char[] text, int index, int count, float[] advances, in measureText() method in Paint_Delegate
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ScaledTextActivity.java | 132 float width = mPaint.measureText(TEXT); in onDraw()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 338 assertTrue("wid " + i + " pass " + j, p.measureText(out1) <= i); in testEllipsize() 341 assertTrue("wid " + i + " pass " + j, p.measureText(keep1) == p.measureText(out1)); in testEllipsize() 349 final float wordWidth = paint.measureText("MMMM"); in testEllipsize_multiCodepoint()
|
D | StaticLayoutTest.java | 558 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() 593 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() 608 final float textWidth = mDefaultPaint.measureText(text); in testEllipsis_singleLine() 736 final float wordWidth = paint.measureText(longWord); in testLocaleSpanAffectsHyphenation()
|
D | StaticLayoutDirectionsTest.java | 138 float width = b.paint.measureText(b.text, 0, 5); // exclude 'c' in testTrailingWhitespace()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 79 static float measureText(const U16StringPiece& str, const Range& range, Bidi bidiFlags,
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | CustomSurfaceView.java | 138 int textWidth = (int)(paint.measureText(mName) + 0.5f); in invalidateSurface()
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 122 MinikinUtils::measureText(&paint, static_cast<minikin::Bidi>(bidiFlags), typeface, text, in breakText() 213 const float advance = MinikinUtils::measureText(paint, in doTextAdvances() 252 MinikinUtils::measureText(paint, bidiFlags, typeface, text, start, count, start + count, in doTextRunCursor() 523 return MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, in doRunAdvance() 527 MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, bufSize, in doRunAdvance() 547 MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, bufSize, in doOffsetForAdvance()
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 60 float Layout::measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in measureText() function in minikin::Layout
|