/frameworks/base/graphics/java/android/graphics/text/ |
D | TextRunShaper.java | 66 @NonNull char[] text, int start, int count, int contextStart, int contextCount, in shapeTextRun() argument 71 nativeShapeTextRun(text, start, count, contextStart, contextCount, isRtl, in shapeTextRun() 96 @NonNull CharSequence text, int start, int count, int contextStart, int contextCount, in shapeTextRun() argument 103 (String) text, start, count, contextStart, contextCount, isRtl, in shapeTextRun() 108 TextUtils.getChars(text, contextStart, contextStart + contextCount, buf, 0); in shapeTextRun() 111 buf, start - contextStart, count, in shapeTextRun() 118 char[] text, int start, int count, int contextStart, int contextCount, in nativeShapeTextRun() argument 122 String text, int start, int count, int contextStart, int contextCount, in nativeShapeTextRun() argument
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2161 @IntRange(from = 0) int contextStart, @IntRange(from = 0) int contextCount, in getFontMetricsInt() 2174 if (contextStart < 0 || contextStart >= text.length()) { in getFontMetricsInt() 2177 if (contextCount < 0 || contextStart + contextCount > text.length()) { in getFontMetricsInt() 2190 nGetFontMetricsIntForText(mNativePaint, (String) text, start, count, contextStart, in getFontMetricsInt() 2195 TextUtils.getChars(text, contextStart, contextStart + contextCount, buf, 0); in getFontMetricsInt() 2196 nGetFontMetricsIntForText(mNativePaint, buf, start - contextStart, count, 0, in getFontMetricsInt() 2224 @IntRange(from = 0) int contextStart, @IntRange(from = 0) int contextCount, in getFontMetricsInt() 2236 if (contextStart < 0 || contextStart >= text.length) { in getFontMetricsInt() 2239 if (contextCount < 0 || contextStart + contextCount > text.length) { in getFontMetricsInt() 2251 nGetFontMetricsIntForText(mNativePaint, text, start, count, contextStart, contextCount, in getFontMetricsInt() [all …]
|
D | BaseRecordingCanvas.java | 535 public final void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument 544 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun() 551 nDrawTextRun(mNativeCanvasWrapper, text.toString(), start, end, contextStart, in drawTextRun() 555 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun() 567 contextStart - paraStart, in drawTextRun() 573 int contextLen = contextEnd - contextStart; in drawTextRun() 576 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun() 577 nDrawTextRun(mNativeCanvasWrapper, buf, start - contextStart, len, in drawTextRun() 586 int contextStart, int contextEnd, float x, float y, boolean isRtl, in drawTextRun() argument 589 contextStart, contextEnd - contextStart, x, y, isRtl, paint.getNativeInstance(), in drawTextRun() [all …]
|
D | BaseCanvas.java | 596 public void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument 605 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun() 613 nDrawTextRun(mNativeCanvasWrapper, text.toString(), start, end, contextStart, in drawTextRun() 617 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun() 629 contextStart - paraStart, in drawTextRun() 635 int contextLen = contextEnd - contextStart; in drawTextRun() 638 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun() 639 nDrawTextRun(mNativeCanvasWrapper, buf, start - contextStart, len, in drawTextRun() 647 int contextStart, int contextEnd, float x, float y, boolean isRtl, in drawTextRun() argument 650 contextStart, contextEnd - contextStart, x, y, isRtl, paint.getNativeInstance(), in drawTextRun() [all …]
|
D | Canvas.java | 2249 public void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, 2251 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint); 2274 public void drawTextRun(@NonNull MeasuredText text, int start, int end, int contextStart, 2276 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint);
|
/frameworks/base/core/java/android/text/ |
D | GraphicsOperations.java | 39 void drawTextRun(BaseCanvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument 55 float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, in getTextRunAdvances() argument 61 int getTextRunCursor(int contextStart, int contextEnd, boolean isRtl, int offset, in getTextRunCursor() argument
|
D | TextLine.java | 855 int contextStart, int contextEnd, boolean runIsRtl, FontMetricsInt fmi) { 864 int contextCount = contextEnd - contextStart; 866 wp.getFontMetricsInt(mChars, start, count, contextStart, contextCount, runIsRtl, 870 wp.getFontMetricsInt(mText, mStart + start, count, mStart + contextStart, 910 private float getRunAdvance(TextPaint wp, int start, int end, int contextStart, int contextEnd, 913 return wp.getRunAdvance(mChars, start, end, contextStart, contextEnd, runIsRtl, offset); 918 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset); 947 int contextStart, int contextEnd, boolean runIsRtl, 970 totalWidth = getRunAdvance(wp, start, end, contextStart, contextEnd, runIsRtl, offset); 983 shapeTextRun(consumer, wp, start, end, contextStart, contextEnd, runIsRtl, leftX); [all …]
|
D | SpannableStringBuilder.java | 1443 public void drawTextRun(BaseCanvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument 1447 int contextLen = contextEnd - contextStart; in drawTextRun() 1450 c.drawTextRun(mText, start, len, contextStart, contextLen, x, y, isRtl, p); in drawTextRun() 1451 } else if (contextStart >= mGapStart) { in drawTextRun() 1452 c.drawTextRun(mText, start + mGapLength, len, contextStart + mGapLength, in drawTextRun() 1456 getChars(contextStart, contextEnd, buf, 0); in drawTextRun() 1457 c.drawTextRun(buf, start - contextStart, len, 0, contextLen, x, y, isRtl, p); in drawTextRun() 1514 …public float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRt… in getTextRunAdvances() argument 1519 int contextLen = contextEnd - contextStart; in getTextRunAdvances() 1523 ret = p.getTextRunAdvances(mText, start, len, contextStart, contextLen, in getTextRunAdvances() [all …]
|
/frameworks/base/libs/hwui/jni/text/ |
D | TextShaper.cpp | 50 int contextStart, int contextCount, minikin::Bidi bidiFlags, in shapeTextRun() argument 56 text, textSize, start, count, contextStart, contextCount, nullptr); in shapeTextRun() 78 jint start, jint count, jint contextStart, jint contextCount, jboolean isRtl, in TextShaper_shapeTextRunChars() argument 87 contextStart, contextCount, in TextShaper_shapeTextRunChars() 94 jint start, jint count, jint contextStart, jint contextCount, jboolean isRtl, in TextShaper_shapeTextRunString() argument 103 contextStart, contextCount, in TextShaper_shapeTextRunString()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 185 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { in assertGetTextRunAdvances() argument 189 final int contextCount = contextEnd - contextStart; in assertGetTextRunAdvances() 193 contextStart, contextCount, isRtl, advanceArrays[0], 0); in assertGetTextRunAdvances() 196 contextStart, contextCount, isRtl, advanceArrays[1], 0); in assertGetTextRunAdvances() 198 contextStart, contextCount, isRtl, advanceArrays[1], c); in assertGetTextRunAdvances() 207 if (compareWithOtherMethods && start == contextStart && end == contextEnd) { in assertGetTextRunAdvances() 210 chars, start, count, contextStart, contextCount, isRtl, end), 1.0f); in assertGetTextRunAdvances()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 55 size_t contextStart, size_t contextCount, in doLayout() argument 61 const minikin::Range contextRange(contextStart, contextStart + contextCount); in doLayout() 66 return minikin::Layout(textBuf.substr(contextRange), range - contextStart, bidiFlags, in doLayout()
|
D | MinikinUtils.h | 48 size_t contextStart, size_t contextCount,
|
D | Canvas.cpp | 161 void Canvas::drawText(const uint16_t* text, int textSize, int start, int count, int contextStart, in drawText() argument 173 start, count, contextStart, contextCount, mt); in drawText()
|
D | Canvas.h | 256 void drawText(const uint16_t* text, int textSize, int start, int count, int contextStart,
|
/frameworks/base/libs/hwui/jni/ |
D | Paint.cpp | 220 jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, in getTextAdvances__StringIIIII_FI() argument 225 jfloat result = doTextAdvances(env, paint, typeface, textArray + contextStart, in getTextAdvances__StringIIIII_FI() 226 start - contextStart, end - start, contextEnd - contextStart, bidiFlags, in getTextAdvances__StringIIIII_FI() 245 jint contextStart, jint contextCount, jint dir, jint offset, jint cursorOpt) { in getTextRunCursor___C() argument 250 contextStart, contextCount, dir, offset, cursorOpt); in getTextRunCursor___C() 256 jstring text, jint contextStart, jint contextEnd, jint dir, jint offset, in getTextRunCursor__String() argument 262 contextStart, contextEnd - contextStart, dir, offset, cursorOpt); in getTextRunCursor__String() 513 jint start, jint end, jint contextStart, jint contextEnd, jboolean isRtl, jint offset) { in getRunAdvance___CIIIIZI_F() argument 517 jfloat result = doRunAdvance(paint, typeface, textArray.get() + contextStart, in getRunAdvance___CIIIIZI_F() 518 start - contextStart, end - start, contextEnd - contextStart, isRtl, in getRunAdvance___CIIIIZI_F() [all …]
|
D | android_graphics_Canvas.cpp | 640 jint start, jint end, jint contextStart, jint contextEnd, in drawTextRunString() argument 650 contextStart, contextEnd - contextStart, // context range in drawTextRunString()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
D | NopCanvas.java | 275 public void drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | LayoutTest.java | 678 public void drawTextRun(CharSequence text, int start, int end, int contextStart, in drawTextRun() argument
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 13959 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { in drawTextRun() argument 13961 int contextCount = contextEnd - contextStart; in drawTextRun() 13962 c.drawTextRun(mChars, start + mStart, count, contextStart + mStart, in drawTextRun() 13974 public float getTextRunAdvances(int start, int end, int contextStart, in getTextRunAdvances() argument 13978 int contextCount = contextEnd - contextStart; in getTextRunAdvances() 13980 contextStart + mStart, contextCount, isRtl, advances, in getTextRunAdvances() 13984 public int getTextRunCursor(int contextStart, int contextEnd, boolean isRtl, in getTextRunCursor() argument 13986 int contextCount = contextEnd - contextStart; in getTextRunCursor() 13987 return p.getTextRunCursor(mChars, contextStart + mStart, in getTextRunCursor()
|