/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2315 int contextStart, int contextEnd, boolean isRtl, float[] advances, in getTextRunAdvances() argument 2320 if ((start | end | contextStart | contextEnd | advancesIndex | (end - start) in getTextRunAdvances() 2321 | (start - contextStart) | (contextEnd - end) in getTextRunAdvances() 2330 contextStart, contextEnd, isRtl, advances, advancesIndex); in getTextRunAdvances() 2335 contextStart, contextEnd, isRtl, advances, advancesIndex); in getTextRunAdvances() 2339 contextStart, contextEnd, isRtl, advances, advancesIndex, this); in getTextRunAdvances() 2345 int contextLen = contextEnd - contextStart; in getTextRunAdvances() 2348 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in getTextRunAdvances() 2349 float result = getTextRunAdvances(buf, start - contextStart, len, in getTextRunAdvances() 2396 public float getTextRunAdvances(String text, int start, int end, int contextStart, in getTextRunAdvances() argument [all …]
|
D | BaseCanvas.java | 459 public void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument 468 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun() 476 nDrawTextRun(mNativeCanvasWrapper, text.toString(), start, end, contextStart, in drawTextRun() 480 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun() 482 int contextLen = contextEnd - contextStart; in drawTextRun() 485 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun() 486 nDrawTextRun(mNativeCanvasWrapper, buf, start - contextStart, len, in drawTextRun() 623 int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, in nDrawTextRun() argument 627 int contextStart, int contextCount, float x, float y, boolean isRtl, long nativePaint, in nDrawTextRun() argument
|
D | Canvas.java | 1945 public void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument 1947 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 185 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { in assertGetTextRunAdvances() argument 191 final float advance = p.getTextRunAdvances(str, start, end, contextStart, contextEnd, in assertGetTextRunAdvances() 195 final float advance_c = p.getTextRunAdvances(chars, start, count, contextStart, in assertGetTextRunAdvances() 196 contextEnd - contextStart, isRtl, advanceArrays[1], 0); in assertGetTextRunAdvances() 201 contextStart, contextEnd, isRtl, advanceArrays[2], 0); in assertGetTextRunAdvances() 203 contextStart, contextEnd, isRtl, advanceArrays[2], c); in assertGetTextRunAdvances() 208 contextStart, contextEnd - contextStart, isRtl, advanceArrays[3], 0); in assertGetTextRunAdvances() 210 count - c, contextStart, contextEnd - contextStart, isRtl, in assertGetTextRunAdvances() 223 if (compareWithOtherMethods && start == contextStart && end == contextEnd) { in assertGetTextRunAdvances() 226 str, start, end, contextStart, contextEnd, isRtl, end), 1.0f); in assertGetTextRunAdvances()
|
/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, int dir, int offset, in getTextRunCursor() argument
|
D | SpannableStringBuilder.java | 1427 public void drawTextRun(BaseCanvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument 1431 int contextLen = contextEnd - contextStart; in drawTextRun() 1434 c.drawTextRun(mText, start, len, contextStart, contextLen, x, y, isRtl, p); in drawTextRun() 1435 } else if (contextStart >= mGapStart) { in drawTextRun() 1436 c.drawTextRun(mText, start + mGapLength, len, contextStart + mGapLength, in drawTextRun() 1440 getChars(contextStart, contextEnd, buf, 0); in drawTextRun() 1441 c.drawTextRun(buf, start - contextStart, len, 0, contextLen, x, y, isRtl, p); in drawTextRun() 1498 …public float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRt… in getTextRunAdvances() argument 1503 int contextLen = contextEnd - contextStart; in getTextRunAdvances() 1507 ret = p.getTextRunAdvances(mText, start, len, contextStart, contextLen, in getTextRunAdvances() [all …]
|
D | TextLine.java | 821 private float getRunAdvance(TextPaint wp, int start, int end, int contextStart, int contextEnd, in getRunAdvance() argument 824 return wp.getRunAdvance(mChars, start, end, contextStart, contextEnd, runIsRtl, offset); in getRunAdvance() 828 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset); in getRunAdvance() 853 int contextStart, int contextEnd, boolean runIsRtl, in handleText() argument 873 totalWidth = getRunAdvance(wp, start, end, contextStart, contextEnd, runIsRtl, offset); in handleText() 905 wp, start, end, contextStart, contextEnd, runIsRtl, decorationStart); in handleText() 907 wp, start, end, contextStart, contextEnd, runIsRtl, decorationEnd); in handleText() 940 drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl, in handleText() 1235 int contextStart, int contextEnd, boolean runIsRtl, float x, int y) { in drawTextRun() argument 1239 int contextCount = contextEnd - contextStart; in drawTextRun() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 230 jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, in getTextAdvances__StringIIIII_FI() argument 235 jfloat result = doTextAdvances(env, paint, typeface, textArray + contextStart, in getTextAdvances__StringIIIII_FI() 236 start - contextStart, end - start, contextEnd - contextStart, bidiFlags, in getTextAdvances__StringIIIII_FI() 255 jlong typefaceHandle, jcharArray text, jint contextStart, jint contextCount, jint dir, in getTextRunCursor___C() argument 261 contextStart, contextCount, dir, offset, cursorOpt); in getTextRunCursor___C() 267 jlong typefaceHandle, jstring text, jint contextStart, jint contextEnd, jint dir, in getTextRunCursor__String() argument 273 contextStart, contextEnd - contextStart, dir, offset, cursorOpt); in getTextRunCursor__String() 515 jlong typefaceHandle, jcharArray text, jint start, jint end, jint contextStart, in getRunAdvance___CIIIIZI_F() argument 520 jfloat result = doRunAdvance(paint, typeface, textArray + contextStart, in getRunAdvance___CIIIIZI_F() 521 start - contextStart, end - start, contextEnd - contextStart, isRtl, in getRunAdvance___CIIIIZI_F() [all …]
|
/frameworks/base/core/java/android/view/ |
D | RecordingCanvas.java | 480 public final void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument 489 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun() 496 nDrawTextRun(mNativeCanvasWrapper, text.toString(), start, end, contextStart, in drawTextRun() 500 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun() 502 int contextLen = contextEnd - contextStart; in drawTextRun() 505 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun() 506 nDrawTextRun(mNativeCanvasWrapper, buf, start - contextStart, len, in drawTextRun() 625 int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, in nDrawTextRun() argument 630 int contextStart, int contextCount, float x, float y, boolean isRtl, long nativePaint, in nDrawTextRun() argument
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 955 String text, int start, int end, int contextStart, int contextEnd, in nGetTextAdvances() argument 963 contextStart, contextEnd - contextStart, bidiFlags, advances, advancesIndex); in nGetTextAdvances() 968 char[] text, int contextStart, int contextLength, int flags, int offset, in nGetTextRunCursor() argument 978 String text, int contextStart, int contextEnd, int flags, int offset, int cursorOpt) { in nGetTextRunCursor() argument 1127 @NonNull char[] text, int start, int end, int contextStart, int contextEnd, in nGetRunAdvance() argument 1133 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); in nGetRunAdvance() 1144 char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, in nGetOffsetForAdvance() argument 1150 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); in nGetOffsetForAdvance()
|
D | BaseCanvas_Delegate.java | 498 int start, int end, int contextStart, int contextEnd, in nDrawTextRun() argument 511 int start, int count, int contextStart, int contextCount, in nDrawTextRun() argument
|
/frameworks/base/core/jni/ |
D | android_graphics_Canvas.cpp | 518 jint start, jint end, jint contextStart, jint contextEnd, in drawTextRunString() argument 526 jint contextCount = contextEnd - contextStart; in drawTextRunString() 528 get_canvas(canvasHandle)->drawText(jchars + contextStart, start - contextStart, count, 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 | 453 public void drawTextRun(CharSequence text, int start, int end, int contextStart, in drawTextRun() argument
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 11770 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { in drawTextRun() argument 11772 int contextCount = contextEnd - contextStart; in drawTextRun() 11773 c.drawTextRun(mChars, start + mStart, count, contextStart + mStart, in drawTextRun() 11785 public float getTextRunAdvances(int start, int end, int contextStart, in getTextRunAdvances() argument 11789 int contextCount = contextEnd - contextStart; in getTextRunAdvances() 11791 contextStart + mStart, contextCount, isRtl, advances, in getTextRunAdvances() 11795 public int getTextRunCursor(int contextStart, int contextEnd, int dir, in getTextRunCursor() argument 11797 int contextCount = contextEnd - contextStart; in getTextRunCursor() 11798 return p.getTextRunCursor(mChars, contextStart + mStart, in getTextRunCursor()
|