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.
45 public int getTextWidths(int start, int end, float[] widths, Paint p); argument
H A DStyled.java170 * Returns the advance widths for a uniform left-to-right run of text with
181 * @param widths array to receive the advance widths of the characters. Must
184 * @return the actual number of widths returned
189 float[] widths, Paint.FontMetricsInt fmi) {
208 workPaint.getTextWidths(text, start, end, widths);
213 widths[0] = wid;
215 widths[i - start] = 0;
186 getTextWidths(TextPaint paint, TextPaint workPaint, Spanned text, int start, int end, float[] widths, Paint.FontMetricsInt fmi) argument
H A DSpannableStringBuilder.java1085 public int getTextWidths(int start, int end, float[] widths, Paint p) { argument
1091 ret = p.getTextWidths(mText, start, end - start, widths);
1094 widths);
1099 ret = p.getTextWidths(buf, 0, end - start, widths);
H A DStaticLayout.java143 float[] widths = mWidths;
217 if ((end - start) * 2 > widths.length) {
218 widths = new float[ArrayUtils.idealIntArraySize((end - start) * 2)];
219 mWidths = widths;
316 paint.getTextWidths(sub, i, next, widths);
317 System.arraycopy(widths, 0, widths,
326 widths, fm);
327 System.arraycopy(widths, 0, widths,
969 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 tab, boolean needMultiply, int pstart, byte[] chdirs, int dir, boolean easy, boolean last, boolean includepad, boolean trackpad, float[] widths, int widstart, int widoff, TextUtils.TruncateAt ellipsize, float ellipsiswidth, float textwidth, TextPaint paint) argument
1124 calculateEllipsis(int linestart, int lineend, float[] widths, int widstart, int widoff, float avail, TextUtils.TruncateAt where, int line, float textwidth, TextPaint paint) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp372 static int dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArray widths) { argument
373 AutoJavaFloatArray autoWidths(env, widths, count);
384 static int getTextWidths___CII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, int index, int count, jfloatArray widths) { argument
386 count = dotextwidths(env, paint, textArray + index, count, widths);
392 static int getTextWidths__StringII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, int start, int end, jfloatArray widths) { argument
394 int count = dotextwidths(env, paint, textArray + start, end - start, widths);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java894 int count, float[] widths) {
911 if (widths != null) {
912 widths[i] = adv;
922 if (widths != null) {
923 widths[i] = 0.f;
936 int end, float[] widths) {
937 return native_getTextWidths(native_object, text.toCharArray(), start, end - start, widths);
893 native_getTextWidths(int native_object, char[] text, int index, int count, float[] widths) argument
935 native_getTextWidths(int native_object, String text, int start, int end, float[] widths) argument
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1181 * Return the advance widths for the characters in the string.
1186 * @param widths array to receive the advance widths of the characters.
1188 * @return the actual number of widths returned.
1191 float[] widths) {
1193 || count > widths.length) {
1198 return native_getTextWidths(mNativePaint, text, index, count, widths);
1202 int res = native_getTextWidths(mNativePaint, text, index, count, widths);
1205 widths[i] *= mInvCompatScaling;
1211 * Return the advance widths fo
1190 getTextWidths(char[] text, int index, int count, float[] widths) argument
1220 getTextWidths(CharSequence text, int start, int end, float[] widths) argument
1251 getTextWidths(String text, int start, int end, float[] widths) argument
1280 getTextWidths(String text, float[] widths) argument
1403 native_getTextWidths(int native_object, char[] text, int index, int count, float[] widths) argument
1405 native_getTextWidths(int native_object, String text, int start, int end, float[] widths) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DTextView.java2834 public int getTextWidths(int start, int end, float[] widths, Paint p) { argument
2835 return p.getTextWidths(mChars, start + mStart, end - start, widths);

Completed in 115 milliseconds