Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DPaint.java3078 int contextEnd = contextStart + contextLength; in getTextRunCursor() local
3079 if (((contextStart | contextEnd | offset | (contextEnd - contextStart) in getTextRunCursor()
3080 | (offset - contextStart) | (contextEnd - offset) in getTextRunCursor()
3081 | (text.length - contextEnd) | cursorOpt) < 0) in getTextRunCursor()
3116 @IntRange(from = 0) int contextEnd, boolean isRtl, @IntRange(from = 0) int offset, in getTextRunCursor()
3121 return getTextRunCursor(text.toString(), contextStart, contextEnd, in getTextRunCursor()
3126 contextStart, contextEnd, isRtl, offset, cursorOpt, this); in getTextRunCursor()
3129 int contextLen = contextEnd - contextStart; in getTextRunCursor()
3131 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in getTextRunCursor()
3165 @IntRange(from = 0) int contextEnd, boolean isRtl, @IntRange(from = 0) int offset, in getTextRunCursor()
[all …]
DBaseRecordingCanvas.java537 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) { in drawTextRun() argument
545 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun()
546 | contextEnd - end | text.length() - contextEnd) < 0) { in drawTextRun()
553 contextEnd, x, y, isRtl, paint.getNativeInstance()); in drawTextRun()
556 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
569 contextEnd - paraStart, in drawTextRun()
574 int contextLen = contextEnd - contextStart; in drawTextRun()
577 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun()
587 int contextStart, int contextEnd, float x, float y, boolean isRtl, in drawTextRun() argument
590 contextStart, contextEnd - contextStart, x, y, isRtl, paint.getNativeInstance(), in drawTextRun()
[all …]
DBaseCanvas.java598 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) { in drawTextRun() argument
606 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun()
607 | contextEnd - end | text.length() - contextEnd) < 0) { in drawTextRun()
615 contextEnd, x, y, isRtl, paint.getNativeInstance()); in drawTextRun()
618 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
631 contextEnd - paraStart, in drawTextRun()
636 int contextLen = contextEnd - contextStart; in drawTextRun()
639 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun()
648 int contextStart, int contextEnd, float x, float y, boolean isRtl, in drawTextRun() argument
651 contextStart, contextEnd - contextStart, x, y, isRtl, paint.getNativeInstance(), in drawTextRun()
[all …]
DCanvas.java2320 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) {
2321 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint);
2345 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) {
2346 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint);
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DDrawTextRun.java42 int contextEnd, in DrawTextRun() argument
50 mContextEnd = contextEnd; in DrawTextRun()
77 int contextEnd = buffer.readInt(); in read() local
81 DrawTextRun op = new DrawTextRun(text, start, end, contextStart, contextEnd, x, y, rtl); in read()
101 int contextEnd, in apply() argument
110 buffer.writeInt(contextEnd); in apply()
DDrawText.java45 int contextEnd, in DrawText() argument
53 mContextEnd = contextEnd; in DrawText()
80 int contextEnd = buffer.readInt(); in read() local
84 DrawText op = new DrawText(text, start, end, contextStart, contextEnd, x, y, rtl); in read()
116 int contextEnd, in apply() argument
125 buffer.writeInt(contextEnd); in apply()
/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.java1196 int contextStart, int contextEnd, boolean runIsRtl, FontMetricsInt fmi) { in expandMetricsFromPaint() argument
1205 int contextCount = contextEnd - contextStart; in expandMetricsFromPaint()
1251 private float getRunAdvance(TextPaint wp, int start, int end, int contextStart, int contextEnd, in getRunAdvance() argument
1263 float r = wp.getRunCharacterAdvance(mChars, start, end, contextStart, contextEnd, in getRunAdvance()
1275 delta + contextStart, delta + contextEnd, runIsRtl, in getRunAdvance()
1321 int contextStart, int contextEnd, boolean runIsRtl, in handleText() argument
1361 totalWidth = getRunAdvance(wp, start, end, contextStart, contextEnd, runIsRtl, offset, in handleText()
1384 shapeTextRun(consumer, wp, start, end, contextStart, contextEnd, runIsRtl, leftX); in handleText()
1388 expandMetricsFromPaint(wp, start, end, contextStart, contextEnd, runIsRtl, fmi); in handleText()
1404 drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl, in handleText()
[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/java/com/android/internal/widget/remotecompose/core/
DPaintContext.java103 int contextEnd, in drawTextRun() argument
DRemoteComposeBuffer.java442 int contextEnd, in addDrawTextRun() argument
449 contextStart, contextEnd, x, y, rtl); in addDrawTextRun()
469 int contextEnd, in addDrawTextRun() argument
475 contextStart, contextEnd, x, y, rtl); in addDrawTextRun()
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java186 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { in assertGetTextRunAdvances() argument
190 final int contextCount = contextEnd - contextStart; in assertGetTextRunAdvances()
208 if (compareWithOtherMethods && start == contextStart && end == contextEnd) { in assertGetTextRunAdvances()
/frameworks/base/libs/hwui/jni/
DPaint.cpp229 jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, in getTextAdvances__StringIIIII_FI() argument
235 start - contextStart, end - start, contextEnd - contextStart, bidiFlags, in getTextAdvances__StringIIIII_FI()
265 jstring text, jint contextStart, jint contextEnd, jint dir, jint offset, in getTextRunCursor__String() argument
271 contextStart, contextEnd - contextStart, dir, offset, cursorOpt); in getTextRunCursor__String()
547 jint start, jint end, jint contextStart, jint contextEnd, jboolean isRtl, jint offset) { in getRunAdvance___CIIIIZI_F() argument
552 start - contextStart, end - start, contextEnd - contextStart, in getRunAdvance___CIIIIZI_F()
559 jint contextStart, jint contextEnd, in getRunCharacterAdvance___CIIIIZI_FI_F() argument
569 start - contextStart, end - start, contextEnd - contextStart, in getRunCharacterAdvance___CIIIIZI_FI_F()
591 jcharArray text, jint start, jint end, jint contextStart, jint contextEnd, in getOffsetForAdvance___CIIIIZF_I() argument
597 start - contextStart, end - start, contextEnd - contextStart, isRtl, advance); in getOffsetForAdvance___CIIIIZF_I()
Dandroid_graphics_Canvas.cpp702 jint start, jint end, jint contextStart, jint contextEnd, in drawTextRunString() argument
712 contextStart, contextEnd - contextStart, // context range in drawTextRunString()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java279 public void drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument
346 int contextEnd, float x, float y, boolean isRtl, Paint paint) { in drawTextRun() argument
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/platform/
DAndroidPaintContext.java204 int contextEnd, in drawTextRun() argument
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java1105 int contextEnd, float x, float y, boolean isRtl, Paint paint) { in drawTextRun() argument
/frameworks/base/core/java/android/widget/
DTextView.java16120 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { in drawTextRun() argument
16122 int contextCount = contextEnd - contextStart; in drawTextRun()
16136 int contextEnd, boolean isRtl, float[] advances, int advancesIndex, in getTextRunAdvances() argument
16139 int contextCount = contextEnd - contextStart; in getTextRunAdvances()
16145 public int getTextRunCursor(int contextStart, int contextEnd, boolean isRtl, in getTextRunCursor() argument
16147 int contextCount = contextEnd - contextStart; in getTextRunCursor()