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.java1155 public float measureText(int start, int end, Paint p) { in measureText() method in SpannableStringBuilder
1161 ret = p.measureText(mText, start, end - start); in measureText()
1163 ret = p.measureText(mText, start + mGapLength, end - start); in measureText()
1168 ret = p.measureText(buf, 0, end - start); in measureText()
DStaticLayout.java724 float ellipsisWidth = paint.measureText( in calculateEllipsis()
DTextUtils.java1115 float ellipsiswid = paint.measureText(ellipsis); in ellipsize()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1286 public float measureText(char[] text, int index, int count) { in measureText() method in Paint
1318 public float measureText(String text, int start, int end) { in measureText() method in Paint
1348 public float measureText(String text) { in measureText() method in Paint
1377 public float measureText(CharSequence text, int start, int end) { in measureText() method in Paint
1389 return measureText((String)text, start, end); in measureText()
1393 return measureText(text.toString(), start, end); in measureText()
1396 return ((GraphicsOperations)text).measureText(start, end, this); in measureText()
1401 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/rs/
DrsScriptC_LibGL.cpp255 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc()
264 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
DrsFont.h155 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
DrsFont.cpp782 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/java/com/android/server/wm/
DWatermark.java92 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java579 return delegate.measureText(text, index, count, bidiFlags); in native_measureText()
618 float res = delegate.measureText(text, start, end - start + 1, bidiFlags); in native_breakText()
1188 /*package*/ float measureText(char[] text, int index, int count, int bidiFlags) { in measureText() method in Paint_Delegate
DCanvas_Delegate.java994 float m = paintDelegate.measureText(text, index, count, 0); in native_drawText()
/frameworks/base/libs/hwui/
DDisplayListRenderer.cpp430 if (length < 0.0f) length = paint->measureText(text, bytesCount); in drawText()
DOpenGLRenderer.cpp2868 if (length < 0.0f) length = paint->measureText(text, bytesCount); in drawText()
3245 underlineWidth = paintCopy.measureText(text, bytesCount); in drawTextDecorations()
/frameworks/base/libs/hwui/font/
DFont.cpp306 float textWidth = SkScalarToFloat(paint->measureText(text, len)); in render()
/frameworks/base/core/java/android/widget/
DNumberPicker.java1214 final float digitWidth = mSelectorWheelPaint.measureText(formatNumberWithLocale(i)); in tryComputeMaxWidth()
1229 final float textWidth = mSelectorWheelPaint.measureText(mDisplayedValues[i]); in tryComputeMaxWidth()
DTextView.java579 p.measureText("H");
8871 public float measureText(int start, int end, Paint p) { in measureText() method in TextView.CharWrapper
8872 return p.measureText(mChars, start + mStart, end - start); in measureText()
/frameworks/ex/chips/src/com/android/ex/chips/
DRecipientEditTextView.java546 int width = Math.max(deleteWidth * 2, (int) Math.floor(paint.measureText(ellipsizedText, 0, in createSelectedChip()
588 int width = Math.max(iconWidth * 2, (int) Math.floor(paint.measureText(ellipsizedText, 0, in createUnselectedChip()
1777 int width = (int)morePaint.measureText(moreText) + mMoreItem.getPaddingLeft() in createMoreSpan()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp769 paint.measureText(value->getGlyphs(), value->getGlyphsCount() << 1, &r); in doTextBounds()
/frameworks/base/api/
Dcurrent.txt9100 method public float measureText(char[], int, int);
9101 method public float measureText(java.lang.String, int, int);
9102 method public float measureText(java.lang.String);
9103 method public float measureText(java.lang.CharSequence, int, int);