/frameworks/base/core/java/android/text/ |
H A D | GraphicsOperations.java | 39 void drawTextRun(BaseCanvas c, int start, int end, int contextStart, int contextEnd, argument 55 float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, argument 61 int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, argument
|
H A D | TextLine.java | 718 int contextStart, int contextEnd, boolean runIsRtl, 738 ret = wp.getRunAdvance(mChars, start, end, contextStart, contextEnd, 743 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset); 783 drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl, 986 * @param contextEnd the end of the context for the run 992 int contextStart, int contextEnd, boolean runIsRtl, float x, int y) { 996 int contextCount = contextEnd - contextStart; 1002 delta + contextStart, delta + contextEnd, x, y, runIsRtl, wp); 717 handleText(TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth, int offset) argument 991 drawTextRun(Canvas c, TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, float x, int y) argument
|
H A D | SpannableStringBuilder.java | 1427 public void drawTextRun(BaseCanvas c, int start, int end, int contextStart, int contextEnd, argument 1431 int contextLen = contextEnd - contextStart; 1433 if (contextEnd <= mGapStart) { 1440 getChars(contextStart, contextEnd, buf, 0); 1498 public float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, argument 1503 int contextLen = contextEnd - contextStart; 1514 getChars(contextStart, contextEnd, buf, 0); 1530 * <code>contextStart</code>, <code>contextEnd</code> and <code>offset</code> are relative to 1535 * contextEnd.</p> 1538 * @param contextEnd th 1549 getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, Paint p) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | PaintTest.java | 180 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { 186 final float advance = p.getTextRunAdvances(str, start, end, contextStart, contextEnd, 191 contextEnd - contextStart, isRtl, advanceArrays[1], 0); 196 contextStart, contextEnd, isRtl, advanceArrays[2], 0); 198 contextStart, contextEnd, isRtl, advanceArrays[2], c); 203 contextStart, contextEnd - contextStart, isRtl, advanceArrays[3], 0); 205 count - c, contextStart, contextEnd - contextStart, isRtl, 218 if (compareWithOtherMethods && start == contextStart && end == contextEnd) { 221 str, start, end, contextStart, contextEnd, isRtl, end), 1.0f); 289 // end > contextEnd 179 assertGetTextRunAdvances(String str, int start, int end, int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 275 public void drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, argument
|
/frameworks/base/core/java/android/view/ |
H A D | RecordingCanvas.java | 481 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) { 489 if ((start | end | contextStart | contextEnd | start - contextStart | end - start 490 | contextEnd - end | text.length() - contextEnd) < 0) { 497 contextEnd, x, y, isRtl, paint.getNativeInstance(), paint.mNativeTypeface); 500 contextStart, contextEnd, x, y, isRtl, paint); 502 int contextLen = contextEnd - contextStart; 505 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); 625 int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, 480 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument 624 nDrawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, long nativeTypeface) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BaseCanvas.java | 460 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) { 468 if ((start | end | contextStart | contextEnd | start - contextStart | end - start 469 | contextEnd - end | text.length() - contextEnd) < 0) { 477 contextEnd, x, y, isRtl, paint.getNativeInstance(), paint.mNativeTypeface); 480 contextStart, contextEnd, x, y, isRtl, paint); 482 int contextLen = contextEnd - contextStart; 485 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); 623 int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, 459 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument 622 nDrawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, long nativeTypeface) argument
|
H A D | Canvas.java | 1893 * position; {@code count = end - start, contextCount = contextEnd - 1917 * addition, the range {@code contextStart} to {@code contextEnd} is used as context for the 1921 * All text outside the range {@code contextStart..contextEnd} is ignored. The text between 1926 * Paint's TextAlign value. Further, {@code 0 <= contextStart <= start <= end <= contextEnd 1938 * @param contextEnd the index of the end of the shaping context 1946 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) { 1947 super.drawTextRun(text, start, end, contextStart, contextEnd, x, y, isRtl, paint); 1945 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument
|
H A D | Paint.java | 2219 int contextStart, int contextEnd, boolean isRtl, float[] advances, 2224 if ((start | end | contextStart | contextEnd | advancesIndex | (end - start) 2225 | (start - contextStart) | (contextEnd - end) 2226 | (text.length() - contextEnd) 2234 contextStart, contextEnd, isRtl, advances, advancesIndex); 2239 contextStart, contextEnd, isRtl, advances, advancesIndex); 2243 contextStart, contextEnd, isRtl, advances, advancesIndex, this); 2249 int contextLen = contextEnd - contextStart; 2252 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); 2289 * @param contextEnd th 2218 getTextRunAdvances(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex) argument 2300 getTextRunAdvances(String text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex) argument 2404 getTextRunCursor(CharSequence text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument 2451 getTextRunCursor(String text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument 2624 getRunAdvance(char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) argument 2654 getRunAdvance(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) argument 2704 getOffsetForAdvance(char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) argument 2731 getOffsetForAdvance(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) argument 2763 nGetTextAdvances(long paintPtr, long typefacePtr, String text, int start, int end, int contextStart, int contextEnd, int bidiFlags, float[] advances, int advancesIndex) argument 2768 nGetTextRunCursor(long paintPtr, long typefacePtr, String text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument 2780 nGetRunAdvance(long paintPtr, long typefacePtr, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) argument 2783 nGetOffsetForAdvance(long paintPtr, long typefacePtr, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BaseCanvas_Delegate.java | 499 int start, int end, int contextStart, int contextEnd, 498 nDrawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long paint, long typeface) argument
|
H A D | Paint_Delegate.java | 955 String text, int start, int end, int contextStart, int contextEnd, 957 // FIXME: support contextStart and contextEnd 963 contextStart, contextEnd - contextStart, bidiFlags, advances, advancesIndex); 978 String text, int contextStart, int contextEnd, int flags, int offset, int cursorOpt) { 1127 @NonNull char[] text, int start, int end, int contextStart, int contextEnd, 1133 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); 1144 char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, 1150 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); 954 nGetTextAdvances(long native_object, long native_typeface, String text, int start, int end, int contextStart, int contextEnd, int bidiFlags, float[] advances, int advancesIndex) argument 977 nGetTextRunCursor(Paint paint, long native_object, long typefacePtr, String text, int contextStart, int contextEnd, int flags, int offset, int cursorOpt) argument 1126 nGetRunAdvance(long nativePaint, long nativeTypeface, @NonNull char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) argument 1143 nGetOffsetForAdvance(long nativePaint, long nativeTypeface, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 230 jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, 236 start - contextStart, end - start, contextEnd - contextStart, bidiFlags, 267 jlong typefaceHandle, jstring text, jint contextStart, jint contextEnd, jint dir, 273 contextStart, contextEnd - contextStart, dir, offset, cursorOpt); 516 jint contextEnd, jboolean isRtl, jint offset) { 521 start - contextStart, end - start, contextEnd - contextStart, isRtl, 538 jint contextEnd, jboolean isRtl, jfloat advance) { 543 start - contextStart, end - start, contextEnd - contextStart, isRtl, advance); 228 getTextAdvances__StringIIIII_FI(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, jfloatArray advances, jint advancesIndex) argument 266 getTextRunCursor__String(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jstring text, jint contextStart, jint contextEnd, jint dir, jint offset, jint cursorOpt) argument 514 getRunAdvance___CIIIIZI_F(JNIEnv *env, jclass, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint start, jint end, jint contextStart, jint contextEnd, jboolean isRtl, jint offset) argument 536 getOffsetForAdvance___CIIIIZF_I(JNIEnv *env, jclass, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint start, jint end, jint contextStart, jint contextEnd, jboolean isRtl, jfloat advance) argument
|
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 512 jint start, jint end, jint contextStart, jint contextEnd, 520 jint contextCount = contextEnd - contextStart; 511 drawTextRunString(JNIEnv* env, jobject obj, jlong canvasHandle, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jfloat x, jfloat y, jboolean isRtl, jlong paintHandle, jlong typefaceHandle) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | TextView.java | 11695 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { 11697 int contextCount = contextEnd - contextStart; 11711 int contextEnd, boolean isRtl, float[] advances, int advancesIndex, 11714 int contextCount = contextEnd - contextStart; 11720 public int getTextRunCursor(int contextStart, int contextEnd, int dir, argument 11722 int contextCount = contextEnd - contextStart; 11694 drawTextRun(BaseCanvas c, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) argument 11710 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex, Paint p) argument
|