/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | PaintTest.java | 42 int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) { 48 final float advance = p.getTextRunAdvances(str, start, end, contextStart, contextEnd, 53 contextEnd - contextStart, isRtl, advanceArrays[1], 0); 58 contextStart, contextEnd, isRtl, advanceArrays[2], 0); 60 contextStart, contextEnd, isRtl, advanceArrays[2], c); 65 contextStart, contextEnd - contextStart, isRtl, advanceArrays[3], 0); 67 count - c, contextStart, contextEnd - contextStart, isRtl, 80 if (compareWithOtherMethods && start == contextStart && end == contextEnd) { 83 str, start, end, contextStart, contextEnd, isRtl, end), 1.0f); 151 // end > contextEnd 41 assertGetTextRunAdvances(String str, int start, int end, int contextStart, int contextEnd, boolean isRtl, boolean compareWithOtherMethods) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | GraphicsOperations.java | 40 void drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, argument 57 float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, argument 64 int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, argument
|
H A D | TextLine.java | 696 int contextStart, int contextEnd, boolean runIsRtl, 715 ret = wp.getRunAdvance(mChars, start, end, contextStart, contextEnd, 720 delta + contextStart, delta + contextEnd, runIsRtl, delta + offset); 760 drawTextRun(c, wp, start, end, contextStart, contextEnd, runIsRtl, 948 * @param contextEnd the end of the context for the run 954 int contextStart, int contextEnd, boolean runIsRtl, float x, int y) { 958 int contextCount = contextEnd - contextStart; 964 delta + contextStart, delta + contextEnd, x, y, runIsRtl, wp); 695 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 953 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 | 1381 public void drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, argument 1385 int contextLen = contextEnd - contextStart; 1387 if (contextEnd <= mGapStart) { 1394 getChars(contextStart, contextEnd, buf, 0); 1452 public float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, argument 1457 int contextLen = contextEnd - contextStart; 1468 getChars(contextStart, contextEnd, buf, 0); 1484 * <code>contextStart</code>, <code>contextEnd</code> and <code>offset</code> are relative to 1489 * contextEnd.</p> 1492 * @param contextEnd th 1503 getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, Paint p) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 271 public void drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 523 jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint bidiFlags, 529 start - contextStart, end - start, contextEnd - contextStart, bidiFlags, 553 jint contextStart, jint contextEnd, jint dir, jint offset, jint cursorOpt) { 557 contextEnd - contextStart, dir, offset, cursorOpt); 878 jint contextEnd, jboolean isRtl, jint offset) { 883 start - contextStart, end - start, contextEnd - contextStart, isRtl, 900 jint contextEnd, jboolean isRtl, jfloat advance) { 905 start - contextStart, end - start, contextEnd - contextStart, isRtl, advance); 521 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 552 getTextRunCursor__String(JNIEnv* env, jobject clazz, jlong paintHandle, jstring text, jint contextStart, jint contextEnd, jint dir, jint offset, jint cursorOpt) argument 876 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 898 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 | 514 jint start, jint end, jint contextStart, jint contextEnd, 522 jint contextCount = contextEnd - contextStart; 513 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/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 958 int start, int end, int contextStart, int contextEnd, 957 native_drawTextRun(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 | 989 String text, int start, int end, int contextStart, int contextEnd, 991 // FIXME: support contextStart and contextEnd 997 contextStart, contextEnd - contextStart, bidiFlags, advances, advancesIndex); 1011 int contextStart, int contextEnd, int flags, int offset, int cursorOpt) { 1142 @NonNull char[] text, int start, int end, int contextStart, int contextEnd, 1148 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); 1159 char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, 1165 contextStart, contextEnd - contextStart, bidiFlags, advances, 0); 988 nGetTextAdvances(long native_object, long native_typeface, String text, int start, int end, int contextStart, int contextEnd, int bidiFlags, float[] advances, int advancesIndex) argument 1010 nGetTextRunCursor(Paint thisPaint, long native_object, String text, int contextStart, int contextEnd, int flags, int offset, int cursorOpt) argument 1141 nGetRunAdvance(long nativePaint, long nativeTypeface, @NonNull char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) argument 1158 nGetOffsetForAdvance(long nativePaint, long nativeTypeface, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 1733 * than offsets of the end position; {@code count = end - start, contextCount = contextEnd - 1772 * addition, the range {@code contextStart} to {@code contextEnd} is used as context for the 1776 * <p>All text outside the range {@code contextStart..contextEnd} is ignored. The text between 1781 * Paint's TextAlign value. Further, {@code 0 <= contextStart <= start <= end <= contextEnd 1794 * @param contextEnd the index of the end of the shaping context 1803 int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) { 1811 if ((start | end | contextStart | contextEnd | start - contextStart | end - start 1812 | contextEnd - end | text.length() - contextEnd) < 0) { 1819 contextEnd, 1802 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument 2127 native_drawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, long nativeTypeface) argument [all...] |
H A D | Paint.java | 2133 int contextStart, int contextEnd, boolean isRtl, float[] advances, 2138 if ((start | end | contextStart | contextEnd | advancesIndex | (end - start) 2139 | (start - contextStart) | (contextEnd - end) 2140 | (text.length() - contextEnd) 2148 contextStart, contextEnd, isRtl, advances, advancesIndex); 2153 contextStart, contextEnd, isRtl, advances, advancesIndex); 2157 contextStart, contextEnd, isRtl, advances, advancesIndex, this); 2163 int contextLen = contextEnd - contextStart; 2166 TextUtils.getChars(text, contextStart, contextEnd, buf, 0); 2203 * @param contextEnd th 2132 getTextRunAdvances(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex) argument 2214 getTextRunAdvances(String text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex) argument 2318 getTextRunCursor(CharSequence text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument 2365 getTextRunCursor(String text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument 2519 getRunAdvance(char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) argument 2549 getRunAdvance(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) argument 2599 getOffsetForAdvance(char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) argument 2626 getOffsetForAdvance(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) argument 2683 nGetTextAdvances(long paintPtr, long typefacePtr, String text, int start, int end, int contextStart, int contextEnd, int bidiFlags, float[] advances, int advancesIndex) argument 2689 nGetTextRunCursor(long paintPtr, String text, int contextStart, int contextEnd, int dir, int offset, int cursorOpt) argument 2715 nGetRunAdvance(long paintPtr, long typefacePtr, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) argument 2718 nGetOffsetForAdvance(long paintPtr, long typefacePtr, char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | TextView.java | 10160 int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) { 10162 int contextCount = contextEnd - contextStart; 10176 int contextEnd, boolean isRtl, float[] advances, int advancesIndex, 10179 int contextCount = contextEnd - contextStart; 10185 public int getTextRunCursor(int contextStart, int contextEnd, int dir, argument 10187 int contextCount = contextEnd - contextStart; 10159 drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) argument 10175 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex, Paint p) argument
|