Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/text/
DGraphicsOperations.java46 float measureText(int start, int end, Paint p); in measureText() method
DSpannableStringBuilder.java1077 public float measureText(int start, int end, Paint p) { in measureText() method in SpannableStringBuilder
1083 ret = p.measureText(mText, start, end - start); in measureText()
1085 ret = p.measureText(mText, start + mGapLength, end - start); in measureText()
1090 ret = p.measureText(buf, 0, end - start); in measureText()
DStaticLayout.java766 float ellipsisWidth = paint.measureText( in calculateEllipsis()
DTextUtils.java1086 float ellipsiswid = paint.measureText(ellipsis); in ellipsize()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1217 public float measureText(char[] text, int index, int count) { in measureText() method in Paint
1249 public float measureText(String text, int start, int end) { in measureText() method in Paint
1279 public float measureText(String text) { in measureText() method in Paint
1306 public float measureText(CharSequence text, int start, int end) { in measureText() method in Paint
1318 return measureText((String)text, start, end); in measureText()
1322 return measureText(text.toString(), start, end); in measureText()
1325 return ((GraphicsOperations)text).measureText(start, end, this); in measureText()
1330 float result = measureText(buf, 0, end - start); in measureText()
/frameworks/base/core/tests/coretests/src/android/widget/
DLabelView.java140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
/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/libs/rs/
DrsScriptC_LibGL.cpp309 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc()
317 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
DrsFont.h156 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
DrsFont.cpp758 void FontState::measureText(const char *text, uint32_t len, Font::Rect *bounds) { in measureText() function in FontState
/frameworks/base/services/java/com/android/server/wm/
DWatermark.java90 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp358 SkScalar width = paint->measureText(textArray + index, count << 1); in measureText_CII()
388 width = SkScalarToFloat(paint->measureText(textArray + start, count << 1)); in measureText_StringII()
411 width = SkScalarToFloat(paint->measureText(textArray, textLength << 1)); in measureText_String()
808 paint.measureText(text, count << 1, &r); in doTextBounds()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java574 return delegate.measureText(text, index, count); in native_measureText()
612 float res = delegate.measureText(text, start, end - start + 1); in native_breakText()
1180 /*package*/ float measureText(char[] text, int index, int count) { in measureText() method in Paint_Delegate
DCanvas_Delegate.java981 float m = paintDelegate.measureText(text, index, count); in native_drawText()
/frameworks/ex/chips/src/com/android/ex/chips/
DRecipientEditTextView.java412 int width = Math.max(deleteWidth * 2, (int) Math.floor(paint.measureText(ellipsizedText, 0, in createSelectedChip()
461 int width = Math.max(iconWidth * 2, (int) Math.floor(paint.measureText(ellipsizedText, 0, in createUnselectedChip()
1500 int width = (int)morePaint.measureText(moreText) + mMoreItem.getPaddingLeft() in createMoreChip()
/frameworks/base/libs/hwui/
DOpenGLRenderer.cpp2076 length = paint->measureText(text, bytesCount); in drawText()
2080 length = paint->measureText(text, bytesCount); in drawText()
2360 underlineWidth = paintCopy.measureText(text, bytesCount); in drawTextDecorations()
/frameworks/base/core/java/android/widget/
DTextView.java409 p.measureText("H");
3368 public float measureText(int start, int end, Paint p) { in measureText() method in TextView.CharWrapper
3369 return p.measureText(mChars, start + mStart, end - start); in measureText()
/frameworks/base/api/
Dcurrent.txt8314 method public float measureText(char[], int, int);
8315 method public float measureText(java.lang.String, int, int);
8316 method public float measureText(java.lang.String);
8317 method public float measureText(java.lang.CharSequence, int, int);
D14.txt8314 method public float measureText(char[], int, int);
8315 method public float measureText(java.lang.String, int, int);
8316 method public float measureText(java.lang.String);
8317 method public float measureText(java.lang.CharSequence, int, int);