/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | PaintTest.java | 81 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/ |
D | MinikinUtils.cpp | 63 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()
|
D | MinikinUtils.h | 44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface,
|
/frameworks/base/core/java/android/text/ |
D | GraphicsOperations.java | 46 float measureText(int start, int end, Paint p); in measureText() method
|
D | SpannableStringBuilder.java | 1404 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/ |
D | QSDualTileLabel.java | 162 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/ |
D | Paint.java | 1699 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/ |
D | LineBreaker.cpp | 130 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/ |
D | StaticLayout_Delegate.java | 97 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/ |
D | StreamingTextView.java | 247 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/ |
D | LabelView.java | 140 result = (int) mTextPaint.measureText(mText) + mPaddingLeft in measureWidth()
|
/frameworks/rs/ |
D | rsScriptC_LibGL.cpp | 251 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureTextAlloc() 260 rsc->mStateFont.measureText(text, textLen, &metrics); in rsrMeasureText()
|
D | rsFont.h | 154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | LoadAverageService.java | 51 mLoadWidth = (int)mPaint.measureText(mLoadText); in onLoadChanged() 56 return (int)mPaint.measureText(name); in onMeasureProcessName()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 96 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextUtilsTest.java | 322 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()
|
D | StaticLayoutDirectionsTest.java | 128 float width = b.paint.measureText(b.text, 0, 5); // exclude 'c' in testTrailingWhitespace()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CollapsingTextHelper.java | 362 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/ |
D | Paint_Delegate.java | 647 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/ |
D | ScaledTextActivity.java | 132 float width = mPaint.measureText(TEXT); in onDraw()
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | CustomSurfaceView.java | 138 int textWidth = (int)(paint.measureText(mName) + 0.5f); in invalidateSurface()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Watermark.java | 94 mTextWidth = (int)mTextPaint.measureText(mText); in Watermark()
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvasProxy.cpp | 253 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/ |
D | Paint.cpp | 500 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/ |
D | Cea708CaptionRenderer.java | 1923 float maxWindowWidth = paint.measureText(widestTextBuilder.toString()); in initWindow() 2003 float charWidth = paint.measureText(ch); in updateWidestChar() 2029 float width = paint.measureText(widestText); in updateTextSize()
|