Home
last modified time | relevance | path

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

12

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DPaintTest.java81 assertEquals(advance, p.measureText(str, start, end), 1.0f); in assertGetTextRunAdvances()
171 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi()
173 width += p.measureText(bidiText, 4, 7); in testMeasureTextBidi()
175 width += p.measureText(bidiText, 7, bidiText.length()); in testMeasureTextBidi()
176 assertEquals(width, p.measureText(bidiText), 1.0f); in testMeasureTextBidi()
181 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi()
182 width += p.measureText(bidiText, 4, 7); in testMeasureTextBidi()
183 width += p.measureText(bidiText, 7, bidiText.length()); in testMeasureTextBidi()
184 assertEquals(width, p.measureText(bidiText), 1.0f); in testMeasureTextBidi()
189 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi()
[all …]
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp63 float MinikinUtils::measureText(const Paint* paint, int bidiFlags, Typeface* typeface, in measureText() function in android::MinikinUtils
68 return Layout::measureText(buf, start, count, bufSize, bidiFlags, minikinStyle, minikinPaint, in measureText()
DMinikinUtils.h44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface,
/frameworks/base/core/java/android/text/
DGraphicsOperations.java46 float measureText(int start, int end, Paint p); in measureText() method
DSpannableStringBuilder.java1404 public float measureText(int start, int end, Paint p) { in measureText() method in SpannableStringBuilder
1410 ret = p.measureText(mText, start, end - start); in measureText()
1412 ret = p.measureText(mText, start + mGapLength, end - start); in measureText()
1417 ret = p.measureText(buf, 0, end - start); in measureText()
/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.java1699 public float measureText(char[] text, int index, int count) { in measureText() method in Paint
1731 public float measureText(String text, int start, int end) { in measureText() method in Paint
1760 public float measureText(String text) { in measureText() method in Paint
1764 return measureText(text, 0, text.length()); in measureText()
1775 public float measureText(CharSequence text, int start, int end) { in measureText() method in Paint
1787 return measureText((String)text, start, end); in measureText()
1791 return measureText(text.toString(), start, end); in measureText()
1794 return ((GraphicsOperations)text).measureText(start, end, this); in measureText()
1799 float result = measureText(buf, 0, end - start); in measureText()
/frameworks/minikin/libs/minikin/
DLineBreaker.cpp130 width = Layout::measureText(mTextBuf.data(), start, end - start, mTextBuf.size(), bidiFlags, in addStyleRun()
192 const float firstPartWidth = Layout::measureText(mTextBuf.data(), in addStyleRun()
198 const float secondPartWith = Layout::measureText(mTextBuf.data(), j, in addStyleRun()
/frameworks/base/tools/layoutlib/bridge/src/android/text/
DStaticLayout_Delegate.java97 measureText(nativePaint, builder.mText, start, end - start, builder.mWidths, in nAddStyleRun()
212 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.java247 int width = (int) paint.measureText(text, start, end); in draw()
281 return (int) paint.measureText(text, start, end); in getSize()
/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
/frameworks/rs/
DrsScriptC_LibGL.cpp251 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc()
260 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
DrsFont.h154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DLoadAverageService.java51 mLoadWidth = (int)mPaint.measureText(mLoadText); in onLoadChanged()
56 return (int)mPaint.measureText(name); in onMeasureProcessName()
/frameworks/minikin/include/minikin/
DLayout.h96 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java322 assertTrue("wid " + i + " pass " + j, p.measureText(out1) <= i); in testEllipsize()
325 assertTrue("wid " + i + " pass " + j, p.measureText(keep1) == p.measureText(out1)); in testEllipsize()
DStaticLayoutDirectionsTest.java128 float width = b.paint.measureText(b.text, 0, 5); // exclude 'c' in testTrailingWhitespace()
/frameworks/support/design/src/android/support/design/widget/
DCollapsingTextHelper.java362 mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length()) : 0; in calculateBaseOffsets()
394 ? mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length()) : 0; in calculateBaseOffsets()
571 final int w = Math.round(mTextPaint.measureText(mTextToDraw, 0, mTextToDraw.length())); in ensureExpandedTexture()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java647 RectF bounds = delegate.measureText(text, start, end - start + 1, null, 0, bidiFlags); in nBreakText()
983 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, bidiFlags); in nGetTextAdvances()
1054 delegate.measureText(text, index, count, null, 0, bidiFlags).roundOut(bounds); in nGetCharArrayBounds()
1299 /*package*/ RectF measureText(char[] text, int index, int count, float[] advances, in measureText() method in Paint_Delegate
1305 /*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/
DScaledTextActivity.java132 float width = mPaint.measureText(TEXT); in onDraw()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DCustomSurfaceView.java138 int textWidth = (int)(paint.measureText(mName) + 0.5f); in invalidateSurface()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java94 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()
/frameworks/base/libs/hwui/
DSkiaCanvasProxy.cpp253 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds); in onDrawText()
328 glyphs.paint.measureText(&glyphs.glyphIDs[i], sizeof(uint16_t), &glyphBounds); in onDrawPosText()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp500 const float advance = MinikinUtils::measureText(paint, bidiFlags, typeface, text, in doTextAdvances()
658 MinikinUtils::measureText(&paint, bidiFlags, typeface, text, 0, count, count, in breakText()
867 return MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, in doRunAdvance()
871 MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, bufSize, in doRunAdvance()
893 MinikinUtils::measureText(paint, bidiFlags, typeface, buf, start, count, bufSize, in doOffsetForAdvance()
/frameworks/base/media/java/android/media/
DCea708CaptionRenderer.java1923 float maxWindowWidth = paint.measureText(widestTextBuilder.toString()); in initWindow()
2003 float charWidth = paint.measureText(ch); in updateWidestChar()
2029 float width = paint.measureText(widestText); in updateTextSize()

12