/frameworks/base/core/jni/ |
D | android_text_StaticLayout.cpp | 46 jfieldID widths; member 78 const jfloat* widths, const jint* flags) { in recycleCopy() argument 86 env->SetObjectField(recycle, gLineBreaks_fieldID.widths, recycleWidths); in recycleCopy() 91 env->SetFloatArrayRegion(recycleWidths, 0, nBreaks, widths); in recycleCopy() 178 jint start, jint end, jfloatArray widths) { in nAddMeasuredRun() argument 180 env->GetFloatArrayRegion(widths, start, end - start, b->charWidths() + start); in nAddMeasuredRun() 190 static void nGetWidths(JNIEnv* env, jclass, jlong nativePtr, jfloatArray widths) { in nGetWidths() argument 192 env->SetFloatArrayRegion(widths, 0, b->size(), b->charWidths()); in nGetWidths() 218 gLineBreaks_fieldID.widths = GetFieldIDOrDie(env, gLineBreaks_class, "widths", "[F"); in register_android_text_StaticLayout()
|
/frameworks/layoutlib/bridge/src/android/text/ |
D | StaticLayout_Delegate.java | 105 … /*package*/ static void nAddMeasuredRun(long nativeBuilder, int start, int end, float[] widths) { in nAddMeasuredRun() argument 108 System.arraycopy(widths, start, builder.mWidths, start, end - start); in nAddMeasuredRun() 181 private static List<Primitive> computePrimitives(@NonNull char[] text, @NonNull float[] widths, in computePrimitives() argument 191 primitives.add(PrimitiveType.GLUE.getNewPrimitive(i, widths[i])); in computePrimitives() 199 if (widths[i] != 0) { in computePrimitives() 208 primitives.add(PrimitiveType.BOX.getNewPrimitive(i, widths[i])); in computePrimitives() 218 float[] widths, int bidiFlags) { in measureText() argument 221 .renderText(index, index + count, bidiFlags, widths, 0, false); in measureText()
|
D | OptimizingLineBreaker.java | 52 breakInfo.widths = new float[]{p.width}; in computeBreaks() 130 breakInfo.widths[count] = opt[idx].mWidth; in computeBreaks() 141 float[] widths = new float[size]; in resize() local 146 System.arraycopy(lineBreaks.widths, 0, widths, 0, toCopy); in resize() 150 lineBreaks.widths = widths; in resize()
|
D | GreedyLineBreaker.java | 167 lineBreaks.widths = new float[mWidthsList.size()]; 178 lineBreaks.widths[i] = b;
|
/frameworks/base/core/java/android/text/ |
D | MeasuredText.java | 173 float[] widths = null; in addStyleRun() local 175 widths = mWidths; in addStyleRun() 180 if (widths != null) { in addStyleRun() 181 width = paint.getTextRunAdvances(mChars, p, len, p, len, isRtl, widths, p); in addStyleRun() 183 mBuilder.addMeasuredRun(p, p + len, widths); in addStyleRun() 196 if (widths != null) { in addStyleRun() 198 paint.getTextRunAdvances(mChars, q, i - q, q, i - q, isRtl, widths, q); in addStyleRun() 200 mBuilder.addMeasuredRun(q, i, widths); in addStyleRun()
|
D | StaticLayout.java | 381 /* package */ void addMeasuredRun(int start, int end, float[] widths) { 382 nAddMeasuredRun(mNativePtr, start, end, widths); 686 float[] widths = measured.mWidths; 773 nGetWidths(b.mNativePtr, widths); 775 lineBreaks.widths, lineBreaks.flags, lineBreaks.breaks.length); 778 float[] lineWidths = lineBreaks.widths; 796 width += widths[j]; 854 chs, widths, paraStart, ellipsize, ellipsizedWidth, 909 float[] widths, int widthStart, TextUtils.TruncateAt ellipsize, 966 calculateEllipsis(start, end, widths, widthStart, [all …]
|
D | GraphicsOperations.java | 50 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() argument
|
D | SpannableStringBuilder.java | 1474 public int getTextWidths(int start, int end, float[] widths, Paint p) { in getTextWidths() argument 1480 ret = p.getTextWidths(mText, start, end - start, widths); in getTextWidths() 1482 ret = p.getTextWidths(mText, start + mGapLength, end - start, widths); in getTextWidths() 1487 ret = p.getTextWidths(buf, 0, end - start, widths); in getTextWidths()
|
D | TextUtils.java | 1443 float[] widths = mt.mWidths; in commaEllipsize() local 1447 w += widths[i]; in commaEllipsize()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 89 float[] widths = new float[testCase.mText.length()]; in testHintingWidth() local 92 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() local 94 testCase.mWidthWithoutHinting, widths); in testHintingWidth() 97 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() local 99 testCase.mWidthWithHinting, widths); in testHintingWidth() 228 final float[] widths = new float[count]; in assertGetTextRunAdvances() local 229 p.getTextWidths(str, start, end, widths); in assertGetTextRunAdvances() 231 assertEquals(advanceArrays[0][i], widths[i], 1.0f); in assertGetTextRunAdvances()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2134 float[] widths) { in getTextWidths() argument 2139 || count > widths.length) { in getTextWidths() 2148 mBidiFlags, widths, 0); in getTextWidths() 2155 mBidiFlags, widths, 0); in getTextWidths() 2158 widths[i] *= mInvCompatScaling; in getTextWidths() 2174 float[] widths) { in getTextWidths() argument 2181 if (end - start > widths.length) { in getTextWidths() 2189 return getTextWidths((String) text, start, end, widths); in getTextWidths() 2193 return getTextWidths(text.toString(), start, end, widths); in getTextWidths() 2197 widths, this); in getTextWidths() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | TableLayout.java | 506 final int[] widths = row.getColumnsWidths(widthMeasureSpec, heightMeasureSpec); in findLargestCells() local 507 final int newLength = widths.length; in findLargestCells() 513 System.arraycopy(widths, 0, mMaxWidths, 0, newLength); in findLargestCells() 525 System.arraycopy(widths, oldMaxWidths.length, in findLargestCells() 536 maxWidths[j] = Math.max(maxWidths[j], widths[j]); in findLargestCells()
|
D | TextView.java | 10534 final float[] widths = new float[offsetEnd - offsetStart]; in populateCharacterBounds() local 10535 mLayout.getPaint().getTextWidths(mText, offsetStart, offsetEnd, widths); in populateCharacterBounds() 10539 final float charWidth = widths[offset - offsetStart]; in populateCharacterBounds() 11781 public int getTextWidths(int start, int end, float[] widths, Paint p) { in getTextWidths() argument 11782 return p.getTextWidths(mChars, start + mStart, end - start, widths); in getTextWidths()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutLineBreakingTest.java | 422 int[] widths = new int[] { 0, 4, 10 }; in testNarrowWidth() local 430 for (int width: widths) { in testNarrowWidth() 438 int[] widths = new int[] { 1, 4 }; in testNarrowWidthZeroWidth() local 439 for (int width: widths) { in testNarrowWidthZeroWidth()
|
/frameworks/support/compat/tests/java/android/support/v4/graphics/ |
D | TypefaceCompatTest.java | 105 final float[] widths = { in getSelectedFontResourceId() local 111 for (int i = 0; i < widths.length; ++i) { in getSelectedFontResourceId() 112 if (maxValue < widths[i]) { in getSelectedFontResourceId() 114 maxValue = widths[i]; in getSelectedFontResourceId()
|
/frameworks/base/media/java/android/media/ |
D | MediaCodecInfo.java | 1742 Range<Integer> counts = null, widths = null, heights = null; in parseFromInfo() local 1756 widths = sizeRanges.first; in parseFromInfo() 1764 if (widths != null) { in parseFromInfo() 1766 Math.min(widths.getUpper(), heights.getUpper()); in parseFromInfo() 1767 widths = heights = widths.extend(heights); in parseFromInfo() 1820 if (widths != null) { in parseFromInfo() 1821 mWidthRange = SIZE_RANGE.intersect(widths); in parseFromInfo() 1858 if (widths != null) { in parseFromInfo() 1859 mWidthRange = mWidthRange.intersect(widths); in parseFromInfo()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 859 float[] widths = new float[1]; in createChipBitmap() local 860 paint.getTextWidths(" ", widths); in createChipBitmap() 866 - widths[0] in createChipBitmap()
|
/frameworks/av/media/libstagefright/codec2/tests/ |
D | C2Param_test.cpp | 716 auto widths = C2NumbersInfo::alloc_shared(5); 717 widths->flexCount(); 718 widths->m.mNumbers[4] = 1;
|
/frameworks/native/vulkan/api/ |
D | vulkan.api | 3393 … lineWidthRange /// range (min,max) of supported line widths 3395 … lineWidthGranularity /// granularity of supported line widths
|