Home
last modified time | relevance | path

Searched refs:contextStart (Results 1 – 22 of 22) 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 …]
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 …]
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 …]
DCanvas.java2189 public void drawTextRun(@NonNull CharSequence text, int start, int end, int contextStart, in drawTextRun() argument
2191 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint); in drawTextRun()
2214 public void drawTextRun(@NonNull MeasuredText text, int start, int end, int contextStart, in drawTextRun() argument
2216 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.java820 private float getRunAdvance(TextPaint wp, int start, int end, int contextStart, int contextEnd,
823 return wp.getRunAdvance(mChars, start, end, contextStart, contextEnd, runIsRtl, offset);
828 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset);
856 int contextStart, int contextEnd, boolean runIsRtl,
878 totalWidth = getRunAdvance(wp, start, end, contextStart, contextEnd, runIsRtl, offset);
903 drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl,
913 wp, start, end, contextStart, contextEnd, runIsRtl, decorationStart);
915 wp, start, end, contextStart, contextEnd, runIsRtl, decorationEnd);
1248 int contextStart, int contextEnd, boolean runIsRtl, float x, int y) {
1252 int contextCount = contextEnd - contextStart;
[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/base/core/jni/android/graphics/
DPaint.cpp235 jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, in getTextAdvances__StringIIIII_FI() argument
240 jfloat result = doTextAdvances(env, paint, typeface, textArray + contextStart, in getTextAdvances__StringIIIII_FI()
241 start - contextStart, end - start, contextEnd - contextStart, bidiFlags, in getTextAdvances__StringIIIII_FI()
260 jint contextStart, jint contextCount, jint dir, jint offset, jint cursorOpt) { in getTextRunCursor___C() argument
265 contextStart, contextCount, dir, offset, cursorOpt); in getTextRunCursor___C()
271 jstring text, jint contextStart, jint contextEnd, jint dir, jint offset, in getTextRunCursor__String() argument
277 contextStart, contextEnd - contextStart, dir, offset, cursorOpt); in getTextRunCursor__String()
533 jint start, jint end, jint contextStart, jint contextEnd, jboolean isRtl, jint offset) { in getRunAdvance___CIIIIZI_F() argument
537 jfloat result = doRunAdvance(paint, typeface, textArray.get() + contextStart, in getRunAdvance___CIIIIZI_F()
538 start - contextStart, end - start, contextEnd - contextStart, isRtl, in getRunAdvance___CIIIIZI_F()
[all …]
/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.java13210 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { in drawTextRun() argument
13212 int contextCount = contextEnd - contextStart; in drawTextRun()
13213 c.drawTextRun(mChars, start + mStart, count, contextStart + mStart, in drawTextRun()
13225 public float getTextRunAdvances(int start, int end, int contextStart, in getTextRunAdvances() argument
13229 int contextCount = contextEnd - contextStart; in getTextRunAdvances()
13231 contextStart + mStart, contextCount, isRtl, advances, in getTextRunAdvances()
13235 public int getTextRunCursor(int contextStart, int contextEnd, boolean isRtl, in getTextRunCursor() argument
13237 int contextCount = contextEnd - contextStart; in getTextRunCursor()
13238 return p.getTextRunCursor(mChars, contextStart + mStart, in getTextRunCursor()
/frameworks/base/non-updatable-api/
Dcurrent.txt21359 field public int contextStart;
/frameworks/base/api/
Dcurrent.txt21359 field public int contextStart;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt30610 Landroid/icu/text/Transliterator$Position;->contextStart:I