Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/
DGraphicsOperations.java46 float measureText(int start, int end, Paint p); in measureText() method
DSpannableStringBuilder.java1157 public float measureText(int start, int end, Paint p) { in measureText() method in SpannableStringBuilder
1163 ret = p.measureText(mText, start, end - start); in measureText()
1165 ret = p.measureText(mText, start + mGapLength, end - start); in measureText()
1170 ret = p.measureText(buf, 0, end - start); in measureText()
DStaticLayout.java653 float ellipsisWidth = paint.measureText(
DTextUtils.java1130 float ellipsiswid = paint.measureText(ellipsis); in ellipsize()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1447 public float measureText(char[] text, int index, int count) { in measureText() method in Paint
1479 public float measureText(String text, int start, int end) { in measureText() method in Paint
1509 public float measureText(String text) { in measureText() method in Paint
1538 public float measureText(CharSequence text, int start, int end) { in measureText() method in Paint
1550 return measureText((String)text, start, end); in measureText()
1554 return measureText(text.toString(), start, end); in measureText()
1557 return ((GraphicsOperations)text).measureText(start, end, this); in measureText()
1562 float result = 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/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java607 RectF bounds = delegate.measureText(text, index, count, null, 0, bidiFlags); in native_measureText()
646 RectF bounds = delegate.measureText(text, start, end - start + 1, null, 0, bidiFlags); in native_breakText()
973 RectF bounds = delegate.measureText(text, index, count, widths, 0, bidiFlags); in native_getTextWidths()
1010 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, isRtl); in native_getTextRunAdvances()
1081 delegate.measureText(text, index, count, null, 0, bidiFlags).roundOut(bounds); in nativeGetCharArrayBounds()
1199 /*package*/ RectF measureText(char[] text, int index, int count, float[] advances, in measureText() method in Paint_Delegate
1205 /*package*/ RectF measureText(char[] text, int index, int count, float[] advances, in measureText() method in Paint_Delegate
DCanvas_Delegate.java975 RectF bounds = paintDelegate.measureText(text, index, count, null, 0, in drawText()
/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStreamingTextView.java241 int width = (int) paint.measureText(text, start, end); in draw()
275 return (int) paint.measureText(text, start, end); in getSize()
/frameworks/rs/
DrsScriptC_LibGL.cpp255 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc()
264 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
DrsFont.h154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
DrsFont.cpp787 void FontState::measureText(const char *text, uint32_t len, Font::Rect *bounds) { in measureText() function in FontState
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java320 assertTrue("wid " + i + " pass " + j, p.measureText(out1) <= i); in testEllipsize()
323 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/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/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DScaledTextActivity.java132 float width = mPaint.measureText(TEXT); in onDraw()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java92 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()
/frameworks/base/libs/hwui/font/
DFont.cpp325 float textWidth = SkScalarToFloat(paint->measureText(text, len)); in render()
/frameworks/base/core/java/android/widget/
DNumberPicker.java1284 final float digitWidth = mSelectorWheelPaint.measureText(formatNumberWithLocale(i)); in tryComputeMaxWidth()
1299 final float textWidth = mSelectorWheelPaint.measureText(mDisplayedValues[i]); in tryComputeMaxWidth()
DTextView.java600 p.measureText("H");
9272 public float measureText(int start, int end, Paint p) { in measureText() method in TextView.CharWrapper
9273 return p.measureText(mChars, start + mStart, end - start); in measureText()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java655 int textWidth = (int) paint.measureText(ellipsizedText, 0, ellipsizedText.length()); in createChipBitmap()
1981 final int width = (int) mWorkPaint.measureText(moreText) + mMoreItem.getPaddingLeft() in createMoreSpan()
/frameworks/base/api/
Dsystem-current.txt11324 method public float measureText(char[], int, int);
11325 method public float measureText(java.lang.String, int, int);
11326 method public float measureText(java.lang.String);
11327 method public float measureText(java.lang.CharSequence, int, int);
Dcurrent.txt11018 method public float measureText(char[], int, int);
11019 method public float measureText(java.lang.String, int, int);
11020 method public float measureText(java.lang.String);
11021 method public float measureText(java.lang.CharSequence, int, int);