Home
last modified time | relevance | path

Searched refs:contextEnd (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
DPaint.java2690 int contextEnd = contextStart + contextLength; in getTextRunCursor() local
2691 if (((contextStart | contextEnd | offset | (contextEnd - contextStart) in getTextRunCursor()
2692 | (offset - contextStart) | (contextEnd - offset) in getTextRunCursor()
2693 | (text.length - contextEnd) | cursorOpt) < 0) in getTextRunCursor()
2728 @IntRange(from = 0) int contextEnd, boolean isRtl, @IntRange(from = 0) int offset, in getTextRunCursor()
2733 return getTextRunCursor(text.toString(), contextStart, contextEnd, in getTextRunCursor()
2738 contextStart, contextEnd, isRtl, offset, cursorOpt, this); in getTextRunCursor()
2741 int contextLen = contextEnd - contextStart; in getTextRunCursor()
2743 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in getTextRunCursor()
2777 @IntRange(from = 0) int contextEnd, boolean isRtl, @IntRange(from = 0) int offset, in getTextRunCursor()
[all …]
DBaseRecordingCanvas.java536 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) { in drawTextRun() argument
544 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun()
545 | contextEnd - end | text.length() - contextEnd) < 0) { in drawTextRun()
552 contextEnd, x, y, isRtl, paint.getNativeInstance()); in drawTextRun()
555 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
568 contextEnd - paraStart, in drawTextRun()
573 int contextLen = contextEnd - contextStart; in drawTextRun()
576 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); 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 …]
DBaseCanvas.java596 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) { in drawTextRun() argument
604 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun()
605 | contextEnd - end | text.length() - contextEnd) < 0) { in drawTextRun()
613 contextEnd, x, y, isRtl, paint.getNativeInstance()); in drawTextRun()
616 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
629 contextEnd - paraStart, in drawTextRun()
634 int contextLen = contextEnd - contextStart; in drawTextRun()
637 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun()
646 int contextStart, int contextEnd, float x, float y, boolean isRtl, in drawTextRun() argument
649 contextStart, contextEnd - contextStart, x, y, isRtl, paint.getNativeInstance(), in drawTextRun()
[all …]
DCanvas.java2242 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) {
2243 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint);
2267 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) {
2268 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint);
/frameworks/base/core/java/android/text/
DGraphicsOperations.java39 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
DTextLine.java876 private float getRunAdvance(TextPaint wp, int start, int end, int contextStart, int contextEnd,
879 return wp.getRunAdvance(mChars, start, end, contextStart, contextEnd, runIsRtl, offset);
884 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset);
913 int contextStart, int contextEnd, boolean runIsRtl,
936 totalWidth = getRunAdvance(wp, start, end, contextStart, contextEnd, runIsRtl, offset);
949 shapeTextRun(consumer, wp, start, end, contextStart, contextEnd, runIsRtl, leftX);
965 drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl,
975 wp, start, end, contextStart, contextEnd, runIsRtl, decorationStart);
977 wp, start, end, contextStart, contextEnd, runIsRtl, decorationEnd);
1312 int contextStart, int contextEnd, boolean runIsRtl, float x, int y) {
[all …]
DSpannableStringBuilder.java1443 public void drawTextRun(BaseCanvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument
1447 int contextLen = contextEnd - contextStart; in drawTextRun()
1449 if (contextEnd <= mGapStart) { in drawTextRun()
1456 getChars(contextStart, contextEnd, buf, 0); 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()
1530 getChars(contextStart, contextEnd, buf, 0); in getTextRunAdvances()
1565 public int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, in getTextRunCursor() argument
1567 return getTextRunCursor(contextStart, contextEnd, dir == 1, offset, cursorOpt, p); in getTextRunCursor()
1572 public int getTextRunCursor(int contextStart, int contextEnd, boolean isRtl, int offset, in getTextRunCursor() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java185 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { in assertGetTextRunAdvances() argument
189 final int contextCount = contextEnd - contextStart; in assertGetTextRunAdvances()
207 if (compareWithOtherMethods && start == contextStart && end == contextEnd) { in assertGetTextRunAdvances()
/frameworks/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java973 int contextStart, int contextEnd, int bidiFlags, float[] advances, int advancesIndex) { in nGetTextAdvances() argument
980 contextStart, contextEnd - contextStart, bidiFlags, advances, advancesIndex); in nGetTextAdvances()
994 int contextStart, int contextEnd, int flags, int offset, int cursorOpt) { in nGetTextRunCursor() argument
1155 int end, int contextStart, int contextEnd, in nGetRunAdvance() argument
1161 contextEnd - contextStart, bidiFlags, advances, 0); in nGetRunAdvance()
1172 int end, int contextStart, int contextEnd, boolean isRtl, float advance) { in nGetOffsetForAdvance() argument
1177 contextEnd - contextStart, bidiFlags, advances, 0); in nGetOffsetForAdvance()
DBaseCanvas_Delegate.java554 int start, int end, int contextStart, int contextEnd, in nDrawTextRun() argument
/frameworks/base/libs/hwui/jni/
DPaint.cpp220 jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, in getTextAdvances__StringIIIII_FI() argument
226 start - contextStart, end - start, contextEnd - contextStart, bidiFlags, in getTextAdvances__StringIIIII_FI()
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
518 start - contextStart, end - start, contextEnd - contextStart, isRtl, in getRunAdvance___CIIIIZI_F()
533 jcharArray text, jint start, jint end, jint contextStart, jint contextEnd, in getOffsetForAdvance___CIIIIZF_I() argument
539 start - contextStart, end - start, contextEnd - contextStart, isRtl, advance); in getOffsetForAdvance___CIIIIZF_I()
Dandroid_graphics_Canvas.cpp608 jint start, jint end, jint contextStart, jint contextEnd, in drawTextRunString() argument
618 contextStart, contextEnd - contextStart, // context range in drawTextRunString()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java275 public void drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java679 int contextEnd, float x, float y, boolean isRtl, Paint paint) { in drawTextRun() argument
/frameworks/base/core/java/android/widget/
DTextView.java13599 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { in drawTextRun() argument
13601 int contextCount = contextEnd - contextStart; in drawTextRun()
13615 int contextEnd, boolean isRtl, float[] advances, int advancesIndex, in getTextRunAdvances() argument
13618 int contextCount = contextEnd - contextStart; in getTextRunAdvances()
13624 public int getTextRunCursor(int contextStart, int contextEnd, boolean isRtl, in getTextRunCursor() argument
13626 int contextCount = contextEnd - contextStart; in getTextRunCursor()