Searched defs:widths (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/core/java/android/text/
H A DGraphicsOperations.java24 * draw/measure/widths calculations from an internal array.
51 public int getTextWidths(int start, int end, float[] widths, Paint p); argument
H A DStaticLayout.java241 float[] widths = measured.mWidths;
334 w += widths[j - paraStart];
337 w += widths[j - paraStart];
340 w += widths[j - paraStart];
407 currentTextWidth = widths[here - paraStart];
414 chs, widths, paraStart, ellipsize, ellipsizedWidth,
463 widths, paraStart, ellipsize,
591 float[] widths, int widthStart, TextUtils.TruncateAt ellipsize,
702 calculateEllipsis(start, end, widths, widthStart,
713 float[] widths, in
583 out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseHt, int[] chooseHtv, Paint.FontMetricsInt fm, boolean hasTabOrEmoji, boolean needMultiply, byte[] chdirs, int dir, boolean easy, int bufEnd, boolean includePad, boolean trackPad, char[] chs, float[] widths, int widthStart, TextUtils.TruncateAt ellipsize, float ellipsisWidth, float textWidth, TextPaint paint, boolean moreChars) argument
712 calculateEllipsis(int lineStart, int lineEnd, float[] widths, int widthStart, float avail, TextUtils.TruncateAt where, int line, float textWidth, TextPaint paint, boolean forceEllipsis) argument
[all...]
H A DSpannableStringBuilder.java1179 public int getTextWidths(int start, int end, float[] widths, Paint p) { argument
1185 ret = p.getTextWidths(mText, start, end - start, widths);
1187 ret = p.getTextWidths(mText, start + mGapLength, end - start, widths);
1192 ret = p.getTextWidths(buf, 0, end - start, widths);
/frameworks/base/core/jni/android/graphics/
H A DTextLayout.cpp123 size_t widths; local
140 widths = paint->getTextWidths(text, count << 1, scalarArray);
143 widths = paint->getTextWidths(text, count << 1, scalarArray);
147 if (widths < count) {
149 ALOGD("ICU -- count=%d", widths);
155 // leaving the remaining widths zero. Not nice.
156 for (size_t i = 0, p = 0; i < widths; ++i) {
H A DPaint.cpp455 static int dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArray widths) { argument
459 if (count < 0 || !widths) {
466 size_t widthsLength = env->GetArrayLength(widths);
472 AutoJavaFloatArray autoWidths(env, widths, count);
481 static int getTextWidths___CII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, int index, int count, jfloatArray widths) { argument
483 count = dotextwidths(env, paint, textArray + index, count, widths);
490 int start, int end, jfloatArray widths) {
492 int count = dotextwidths(env, paint, textArray + start, end - start, widths);
489 getTextWidths__StringII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, int start, int end, jfloatArray widths) argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java924 int count, float[] widths) {
941 if (widths != null) {
942 widths[i] = adv;
952 if (widths != null) {
953 widths[i] = 0.f;
966 int end, float[] widths) {
967 return native_getTextWidths(native_object, text.toCharArray(), start, end - start, widths);
923 native_getTextWidths(int native_object, char[] text, int index, int count, float[] widths) argument
965 native_getTextWidths(int native_object, String text, int start, int end, float[] widths) argument
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1540 * Return the advance widths for the characters in the string.
1545 * @param widths array to receive the advance widths of the characters.
1547 * @return the actual number of widths returned.
1550 float[] widths) {
1555 || count > widths.length) {
1563 return native_getTextWidths(mNativePaint, text, index, count, widths);
1568 int res = native_getTextWidths(mNativePaint, text, index, count, widths);
1571 widths[i] *= mInvCompatScaling;
1577 * Return the advance widths fo
1549 getTextWidths(char[] text, int index, int count, float[] widths) argument
1586 getTextWidths(CharSequence text, int start, int end, float[] widths) argument
1630 getTextWidths(String text, int start, int end, float[] widths) argument
1666 getTextWidths(String text, float[] widths) argument
2219 native_getTextWidths(int native_object, char[] text, int index, int count, float[] widths) argument
2221 native_getTextWidths(int native_object, String text, int start, int end, float[] widths) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DTextView.java8597 public int getTextWidths(int start, int end, float[] widths, Paint p) { argument
8598 return p.getTextWidths(mChars, start + mStart, end - start, widths);

Completed in 589 milliseconds