Home
last modified time | relevance | path

Searched refs:contextStart (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
DPaint.java2641 public int getTextRunCursor(@NonNull char[] text, @IntRange(from = 0) int contextStart, in getTextRunCursor()
2644 int contextEnd = contextStart + contextLength; in getTextRunCursor()
2645 if (((contextStart | contextEnd | offset | (contextEnd - contextStart) in getTextRunCursor()
2646 | (offset - contextStart) | (contextEnd - offset) in getTextRunCursor()
2652 return nGetTextRunCursor(mNativePaint, text, contextStart, contextLength, in getTextRunCursor()
2681 public int getTextRunCursor(@NonNull CharSequence text, @IntRange(from = 0) int contextStart, in getTextRunCursor()
2687 return getTextRunCursor(text.toString(), contextStart, contextEnd, in getTextRunCursor()
2692 contextStart, contextEnd, isRtl, offset, cursorOpt, this); in getTextRunCursor()
2695 int contextLen = contextEnd - contextStart; in getTextRunCursor()
2697 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in getTextRunCursor()
[all …]
DBaseRecordingCanvas.java501 public final void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument
510 if ((start | end | contextStart | contextEnd | start - contextStart | end - start in drawTextRun()
517 nDrawTextRun(mNativeCanvasWrapper, text.toString(), start, end, contextStart, in drawTextRun()
521 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
533 contextStart - paraStart, in drawTextRun()
539 int contextLen = contextEnd - contextStart; in drawTextRun()
542 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun()
543 nDrawTextRun(mNativeCanvasWrapper, buf, start - contextStart, len, in drawTextRun()
552 int contextStart, int contextEnd, float x, float y, boolean isRtl, in drawTextRun() argument
555 contextStart, contextEnd - contextStart, x, y, isRtl, paint.getNativeInstance(), in drawTextRun()
[all …]
DBaseCanvas.java535 public 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()
552 nDrawTextRun(mNativeCanvasWrapper, text.toString(), start, end, contextStart, in drawTextRun()
556 contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
568 contextStart - paraStart, in drawTextRun()
574 int contextLen = contextEnd - contextStart; in drawTextRun()
577 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); in drawTextRun()
578 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 …]
DCanvas.java2187 public void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument
2189 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
2212 public void drawTextRun(@NonNull MeasuredText text, int start, int end, int contextStart, in drawTextRun() argument
2214 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
/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
DSpannableStringBuilder.java1442 public void drawTextRun(BaseCanvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument
1446 int contextLen = contextEnd - contextStart; in drawTextRun()
1449 c.drawTextRun(mText, start, len, contextStart, contextLen, x, y, isRtl, p); in drawTextRun()
1450 } else if (contextStart >= mGapStart) { in drawTextRun()
1451 c.drawTextRun(mText, start + mGapLength, len, contextStart + mGapLength, in drawTextRun()
1455 getChars(contextStart, contextEnd, buf, 0); in drawTextRun()
1456 c.drawTextRun(buf, start - contextStart, len, 0, contextLen, x, y, isRtl, p); in drawTextRun()
1513 …public float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRt… in getTextRunAdvances() argument
1518 int contextLen = contextEnd - contextStart; in getTextRunAdvances()
1522 ret = p.getTextRunAdvances(mText, start, len, contextStart, contextLen, in getTextRunAdvances()
[all …]
DTextLine.java817 private float getRunAdvance(TextPaint wp, int start, int end, int contextStart, int contextEnd, in getRunAdvance() argument
820 return wp.getRunAdvance(mChars, start, end, contextStart, contextEnd, runIsRtl, offset); in getRunAdvance()
825 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset); in getRunAdvance()
853 int contextStart, int contextEnd, boolean runIsRtl, in handleText() argument
875 totalWidth = getRunAdvance(wp, start, end, contextStart, contextEnd, runIsRtl, offset); in handleText()
900 drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl, in handleText()
910 wp, start, end, contextStart, contextEnd, runIsRtl, decorationStart); in handleText()
912 wp, start, end, contextStart, contextEnd, runIsRtl, decorationEnd); in handleText()
1245 int contextStart, int contextEnd, boolean runIsRtl, float x, int y) { in drawTextRun() argument
1249 int contextCount = contextEnd - contextStart; in drawTextRun()
[all …]
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp54 size_t contextStart, size_t contextCount, in doLayout() argument
60 const minikin::Range contextRange(contextStart, contextStart + contextCount); in doLayout()
65 return minikin::Layout(textBuf.substr(contextRange), range - contextStart, bidiFlags, in doLayout()
DMinikinUtils.h48 size_t contextStart, size_t contextCount,
DCanvas.cpp151 void Canvas::drawText(const uint16_t* text, int textSize, int start, int count, int contextStart, in drawText() argument
158 start, count, contextStart, contextCount, mt); in drawText()
DCanvas.h286 void drawText(const uint16_t* text, int textSize, int start, int count, int contextStart,
/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()
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/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()
985 int contextStart, int contextLength, int flags, int offset, int cursorOpt) { in nGetTextRunCursor() argument
994 int contextStart, int contextEnd, int flags, int offset, int cursorOpt) { in nGetTextRunCursor() argument
1155 int end, int contextStart, int contextEnd, in nGetRunAdvance() argument
1160 nGetTextAdvances(nativePaint, text, start, count, contextStart, in nGetRunAdvance()
1161 contextEnd - contextStart, bidiFlags, advances, 0); in nGetRunAdvance()
1172 int end, int contextStart, int contextEnd, boolean isRtl, float advance) { in nGetOffsetForAdvance() argument
1176 nGetTextAdvances(nativePaint, text, start, count, contextStart, in nGetOffsetForAdvance()
1177 contextEnd - contextStart, bidiFlags, advances, 0); in nGetOffsetForAdvance()
DBaseCanvas_Delegate.java550 int start, int end, int contextStart, int contextEnd, in nDrawTextRun() argument
562 int start, int count, int contextStart, int contextCount, in nDrawTextRun() argument
/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/jni/
Dandroid_graphics_Canvas.cpp591 jint start, jint end, jint contextStart, jint contextEnd, in drawTextRunString() argument
601 contextStart, contextEnd - contextStart, // context range in drawTextRunString()
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java678 public void drawTextRun(CharSequence text, int start, int end, int contextStart, in drawTextRun() argument
/frameworks/base/core/java/android/widget/
DTextView.java13167 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { in drawTextRun() argument
13169 int contextCount = contextEnd - contextStart; in drawTextRun()
13170 c.drawTextRun(mChars, start + mStart, count, contextStart + mStart, in drawTextRun()
13182 public float getTextRunAdvances(int start, int end, int contextStart, in getTextRunAdvances() argument
13186 int contextCount = contextEnd - contextStart; in getTextRunAdvances()
13188 contextStart + mStart, contextCount, isRtl, advances, in getTextRunAdvances()
13192 public int getTextRunCursor(int contextStart, int contextEnd, boolean isRtl, in getTextRunCursor() argument
13194 int contextCount = contextEnd - contextStart; in getTextRunCursor()
13195 return p.getTextRunCursor(mChars, contextStart + mStart, in getTextRunCursor()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...