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];
425 currentTextWidth = widths[here - paraStart];
432 chs, widths, paraStart, ellipsize, ellipsizedWidth,
481 widths, paraStart, ellipsize,
609 float[] widths, int widthStart, TextUtils.TruncateAt ellipsize,
720 calculateEllipsis(start, end, widths, widthStart,
731 float[] widths, in
601 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
730 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.cpp413 static int dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArray widths) { argument
417 if (count < 0 || !widths) {
424 size_t widthsLength = env->GetArrayLength(widths);
430 AutoJavaFloatArray autoWidths(env, widths, count);
439 static int getTextWidths___CII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, int index, int count, jfloatArray widths) { argument
441 count = dotextwidths(env, paint, textArray + index, count, widths);
448 int start, int end, jfloatArray widths) {
450 int count = dotextwidths(env, paint, textArray + start, end - start, widths);
447 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.java1524 * Return the advance widths for the characters in the string.
1529 * @param widths array to receive the advance widths of the characters.
1531 * @return the actual number of widths returned.
1534 float[] widths) {
1539 || count > widths.length) {
1547 return native_getTextWidths(mNativePaint, text, index, count, widths);
1552 int res = native_getTextWidths(mNativePaint, text, index, count, widths);
1555 widths[i] *= mInvCompatScaling;
1561 * Return the advance widths fo
1533 getTextWidths(char[] text, int index, int count, float[] widths) argument
1570 getTextWidths(CharSequence text, int start, int end, float[] widths) argument
1614 getTextWidths(String text, int start, int end, float[] widths) argument
1650 getTextWidths(String text, float[] widths) argument
2203 native_getTextWidths(int native_object, char[] text, int index, int count, float[] widths) argument
2205 native_getTextWidths(int native_object, String text, int start, int end, float[] widths) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DTextView.java8543 public int getTextWidths(int start, int end, float[] widths, Paint p) { argument
8544 return p.getTextWidths(mChars, start + mStart, end - start, widths);

Completed in 2329 milliseconds