/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2133 int contextStart, int contextEnd, boolean isRtl, float[] advances, in getTextRunAdvances() argument 2138 if ((start | end | contextStart | contextEnd | advancesIndex | (end - start) in getTextRunAdvances() 2139 | (start - contextStart) | (contextEnd - end) in getTextRunAdvances() 2148 contextStart, contextEnd, isRtl, advances, advancesIndex); in getTextRunAdvances() 2153 contextStart, contextEnd, isRtl, advances, advancesIndex); in getTextRunAdvances() 2157 contextStart, contextEnd, isRtl, advances, advancesIndex, this); in getTextRunAdvances() 2163 int contextLen = contextEnd - contextStart; in getTextRunAdvances() 2166 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in getTextRunAdvances() 2167 float result = getTextRunAdvances(buf, start - contextStart, len, in getTextRunAdvances() 2214 public float getTextRunAdvances(String text, int start, int end, int contextStart, in getTextRunAdvances() argument [all …]
|
D | Canvas.java | 1802 public void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument 1811 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun() 1818 native_drawTextRun(mNativeCanvasWrapper, text.toString(), start, end, contextStart, in drawTextRun() 1822 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun() 1824 int contextLen = contextEnd - contextStart; in drawTextRun() 1827 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun() 1828 native_drawTextRun(mNativeCanvasWrapper, buf, start - contextStart, len, in drawTextRun() 2128 int start, int end, int contextStart, int contextEnd, in native_drawTextRun() argument 2132 int start, int count, int contextStart, int contextCount, in native_drawTextRun() argument
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | PaintTest.java | 42 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { in assertGetTextRunAdvances() argument 48 final float advance = p.getTextRunAdvances(str, start, end, contextStart, contextEnd, in assertGetTextRunAdvances() 52 final float advance_c = p.getTextRunAdvances(chars, start, count, contextStart, in assertGetTextRunAdvances() 53 contextEnd - contextStart, isRtl, advanceArrays[1], 0); in assertGetTextRunAdvances() 58 contextStart, contextEnd, isRtl, advanceArrays[2], 0); in assertGetTextRunAdvances() 60 contextStart, contextEnd, isRtl, advanceArrays[2], c); in assertGetTextRunAdvances() 65 contextStart, contextEnd - contextStart, isRtl, advanceArrays[3], 0); in assertGetTextRunAdvances() 67 count - c, contextStart, contextEnd - contextStart, isRtl, in assertGetTextRunAdvances() 80 if (compareWithOtherMethods && start == contextStart && end == contextEnd) { in assertGetTextRunAdvances() 83 str, start, end, contextStart, contextEnd, isRtl, end), 1.0f); in assertGetTextRunAdvances()
|
/frameworks/base/core/java/android/text/ |
D | GraphicsOperations.java | 40 void drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument 57 float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, in getTextRunAdvances() argument 64 int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, in getTextRunCursor() argument
|
D | SpannableStringBuilder.java | 1381 public void drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument 1385 int contextLen = contextEnd - contextStart; in drawTextRun() 1388 c.drawTextRun(mText, start, len, contextStart, contextLen, x, y, isRtl, p); in drawTextRun() 1389 } else if (contextStart >= mGapStart) { in drawTextRun() 1390 c.drawTextRun(mText, start + mGapLength, len, contextStart + mGapLength, in drawTextRun() 1394 getChars(contextStart, contextEnd, buf, 0); in drawTextRun() 1395 c.drawTextRun(buf, start - contextStart, len, 0, contextLen, x, y, isRtl, p); in drawTextRun() 1452 …public float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRt… in getTextRunAdvances() argument 1457 int contextLen = contextEnd - contextStart; in getTextRunAdvances() 1461 ret = p.getTextRunAdvances(mText, start, len, contextStart, contextLen, in getTextRunAdvances() [all …]
|
D | TextLine.java | 696 int contextStart, int contextEnd, boolean runIsRtl, in handleText() argument 715 ret = wp.getRunAdvance(mChars, start, end, contextStart, contextEnd, in handleText() 720 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset); in handleText() 760 drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl, in handleText() 954 int contextStart, int contextEnd, boolean runIsRtl, float x, int y) { in drawTextRun() argument 958 int contextCount = contextEnd - contextStart; in drawTextRun() 959 c.drawTextRun(mChars, start, count, contextStart, contextCount, in drawTextRun() 964 delta + contextStart, delta + contextEnd, x, y, runIsRtl, wp); in drawTextRun()
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 523 jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, in getTextAdvances__StringIIIII_FI() argument 528 jfloat result = doTextAdvances(env, paint, typeface, textArray + contextStart, in getTextAdvances__StringIIIII_FI() 529 start - contextStart, end - start, contextEnd - contextStart, bidiFlags, in getTextAdvances__StringIIIII_FI() 543 jint contextStart, jint contextCount, jint dir, jint offset, jint cursorOpt) { in getTextRunCursor___C() argument 546 jint result = doTextRunCursor(env, paint, textArray, contextStart, contextCount, dir, in getTextRunCursor___C() 553 jint contextStart, jint contextEnd, jint dir, jint offset, jint cursorOpt) { in getTextRunCursor__String() argument 556 jint result = doTextRunCursor(env, paint, textArray, contextStart, in getTextRunCursor__String() 557 contextEnd - contextStart, dir, offset, cursorOpt); in getTextRunCursor__String() 892 jlong typefaceHandle, jcharArray text, jint start, jint end, jint contextStart, in getRunAdvance___CIIIIZI_F() argument 897 jfloat result = doRunAdvance(paint, typeface, textArray + contextStart, in getRunAdvance___CIIIIZI_F() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 989 String text, int start, int end, int contextStart, int contextEnd, in nGetTextAdvances() argument 997 contextStart, contextEnd - contextStart, bidiFlags, advances, advancesIndex); in nGetTextAdvances() 1002 int contextStart, int contextLength, int flags, int offset, int cursorOpt) { in nGetTextRunCursor() argument 1011 int contextStart, int contextEnd, int flags, int offset, int cursorOpt) { in nGetTextRunCursor() argument 1142 @NonNull char[] text, int start, int end, int contextStart, int contextEnd, in nGetRunAdvance() argument 1148 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); in nGetRunAdvance() 1159 char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, in nGetOffsetForAdvance() argument 1165 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); in nGetOffsetForAdvance()
|
D | Canvas_Delegate.java | 958 int start, int end, int contextStart, int contextEnd, in native_drawTextRun() argument 969 int start, int count, int contextStart, int contextCount, in native_drawTextRun() argument
|
/frameworks/base/core/jni/ |
D | android_graphics_Canvas.cpp | 514 jint start, jint end, jint contextStart, jint contextEnd, in drawTextRunString() argument 522 jint contextCount = contextEnd - contextStart; in drawTextRunString() 524 get_canvas(canvasHandle)->drawText(jchars + contextStart, start - contextStart, count, in drawTextRunString()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
D | NopCanvas.java | 271 public void drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 10161 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { in drawTextRun() argument 10163 int contextCount = contextEnd - contextStart; in drawTextRun() 10164 c.drawTextRun(mChars, start + mStart, count, contextStart + mStart, in drawTextRun() 10176 public float getTextRunAdvances(int start, int end, int contextStart, in getTextRunAdvances() argument 10180 int contextCount = contextEnd - contextStart; in getTextRunAdvances() 10182 contextStart + mStart, contextCount, isRtl, advances, in getTextRunAdvances() 10186 public int getTextRunCursor(int contextStart, int contextEnd, int dir, in getTextRunCursor() argument 10188 int contextCount = contextEnd - contextStart; in getTextRunCursor() 10189 return p.getTextRunCursor(mChars, contextStart + mStart, in getTextRunCursor()
|