Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/
DStyled.java112 ret = workPaint.measureText(tmp, tmpstart, tmpend); in drawUniformRun()
127 ret = workPaint.measureText(tmp, tmpstart, tmpend); in drawUniformRun()
136 ret = workPaint.measureText(tmp, tmpstart, tmpend); in drawUniformRun()
146 ret = workPaint.measureText(tmp, tmpstart, tmpend); in drawUniformRun()
260 ret = paint.measureText(tmp, 0, tmpend); in drawDirectionalRun()
267 ret = paint.measureText(text, start, end); in drawDirectionalRun()
426 public static float measureText(TextPaint paint, in measureText() method in Styled
DGraphicsOperations.java39 float measureText(int start, int end, Paint p); in measureText() method
DLayout.java88 float w = measureText(paint, workPaint, in getDesiredWidth()
564 float wid = measureText(mPaint, mWorkPaint, mText, start, offset, end, in getHorizontal()
569 wid -= measureText(mPaint, mWorkPaint, in getHorizontal()
572 wid += measureText(mPaint, mWorkPaint, in getHorizontal()
689 return measureText(mPaint, mWorkPaint, in getLineMax()
1436 Styled.measureText(paint, workPaint, text, in drawText()
1465 private static float measureText(TextPaint paint, in measureText() method in Layout
1518 h += Styled.measureText(paint, workPaint, text, in measureText()
1525 h -= Styled.measureText(paint, workPaint, text, in measureText()
1532 segw = Styled.measureText(paint, workPaint, text, in measureText()
[all …]
DBoringLayout.java212 mMax = (int) (FloatMath.ceil(Styled.measureText(paint, sTemp, in init()
283 wid = (int) (FloatMath.ceil(Styled.measureText(paint, sTemp, in isBoring()
DSpannableStringBuilder.java1061 public float measureText(int start, int end, Paint p) { in measureText() method in SpannableStringBuilder
1067 ret = p.measureText(mText, start, end - start); in measureText()
1069 ret = p.measureText(mText, start + mGapLength, end - start); in measureText()
1074 ret = p.measureText(buf, 0, end - start); in measureText()
DTextUtils.java1010 float wid = p.measureText(text, 0, len); in ellipsize()
1020 float ellipsiswid = p.measureText(sEllipsis); in ellipsize()
1069 float used = p.measureText(text, len - right, len); in ellipsize()
1120 float ellipsiswid = p.measureText(sEllipsis); in ellipsize()
1336 moreWid = p.measureText(format); in commaEllipsize()
DStaticLayout.java522 measureText(paint, mWorkPaint, in generate()
956 if (measureText(paint, workPaint, in getFit()
1137 float ellipsiswid = paint.measureText("\u2026"); in calculateEllipsis()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1000 public float measureText(char[] text, int index, int count) { in measureText() method in Paint
1019 public float measureText(String text, int start, int end) { in measureText() method in Paint
1036 public float measureText(String text) { in measureText() method in Paint
1055 public float measureText(CharSequence text, int start, int end) { in measureText() method in Paint
1057 return measureText((String)text, start, end); in measureText()
1061 return measureText(text.toString(), start, end); in measureText()
1064 return ((GraphicsOperations)text).measureText(start, end, this); in measureText()
1069 float result = measureText(buf, 0, end - start); in measureText()
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java310 assertTrue("wid " + i + " pass " + j, p.measureText(out1) <= i); in testEllipsize()
313 assertTrue("wid " + i + " pass " + j, p.measureText(keep1) == p.measureText(out1)); in testEllipsize()
/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
/frameworks/base/services/java/com/android/server/
DLoadAverageService.java50 mLoadWidth = (int)mPaint.measureText(mLoadText); in onLoadChanged()
55 return (int)mPaint.measureText(name); in onMeasureProcessName()
DWindowManagerService.java10106 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp333 SkScalar width = paint->measureText(textArray + index, count << 1); in measureText_CII()
354 jfloat width = SkScalarToFloat(paint->measureText(textArray + start, count << 1)); in measureText_StringII()
367 jfloat width = SkScalarToFloat(paint->measureText(textArray, textLength << 1)); in measureText_String()
498 paint.measureText(text, count << 1, &r); in doTextBounds()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java549 return delegate.measureText(text, index, count); in native_measureText()
587 float res = delegate.measureText(text, start, end - start + 1); in native_breakText()
1071 /*package*/ float measureText(char[] text, int index, int count) { in measureText() method in Paint_Delegate
DCanvas_Delegate.java999 float m = paintDelegate.measureText(text, index, count); in native_drawText()
/frameworks/base/core/java/android/widget/
DTextView.java314 p.measureText("H");
2830 public float measureText(int start, int end, Paint p) { in measureText() method in TextView.CharWrapper
2831 return p.measureText(mChars, start + mStart, end - start); in measureText()