/frameworks/minikin/include/minikin/ |
D | LineBreaker.h | 98 std::vector<float> widths; member 109 std::reverse(widths.begin(), widths.end()); in reverse()
|
D | MeasuredText.h | 255 std::vector<float> widths;
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 90 float[] widths = new float[testCase.mText.length()]; in testHintingWidth() local 93 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() local 95 testCase.mWidthWithoutHinting, widths); in testHintingWidth() 98 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() local 100 testCase.mWidthWithHinting, widths); in testHintingWidth() 213 final float[] widths = new float[count]; in assertGetTextRunAdvances() local 214 p.getTextWidths(str, start, end, widths); in assertGetTextRunAdvances() 216 assertEquals(advanceArrays[0][i], widths[i], 1.0f); in assertGetTextRunAdvances()
|
/frameworks/minikin/libs/minikin/ |
D | OptimalLineBreaker.cpp | 196 ParaWidth width = measured.widths[range.getStart()]; in populateDesperatePoints() 198 const float w = measured.widths[i]; in populateDesperatePoints() 213 ParaWidth width = measured.widths[range.getStart()]; in populateDesperatePoints() 215 const float w = measured.widths[i]; in populateDesperatePoints() 305 proc.feedChar(i, textBuf[i], measured.widths[i], canBreak); in populateCandidates() 332 measured.widths[nextCharOffset] > 0) { in populateCandidates() 381 result.widths.push_back(cand.postBreak - prev.preBreak); in finishBreaksOptimal()
|
D | GreedyLineBreaker.cpp | 277 float width = mMeasuredText.widths[range.getStart()]; in doLineBreakWithGraphemeBounds() 282 const float w = mMeasuredText.widths[i]; in doLineBreakWithGraphemeBounds() 339 const float w = mMeasuredText.widths[i]; in doLineBreakWithFallback() 485 updateLineWidth(mTextBuf[i], mMeasuredText.widths[i]); in process() 541 out.widths.push_back(breakPoint.lineWidth); in getResult()
|
D | MeasuredText.cpp | 181 run->getMetrics(textBuf, &widths, &flags, hint ? &hint->layoutPieces : nullptr, in measure() 193 proc.feedChar(i, textBuf[i], widths[i], canBreak); in measure() 201 proc.wordRange(), widths, ignoreHyphenKerning, &hyphenBreaks, in measure()
|
/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 | 16131 public int getTextWidths(int start, int end, float[] widths, Paint p) { in getTextWidths() argument 16132 return p.getTextWidths(mChars, start + mStart, end - start, widths); in getTextWidths()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 2833 float[] widths) { in getTextWidths() argument 2838 || count > widths.length) { in getTextWidths() 2849 nGetTextAdvances(mNativePaint, text, index, count, index, count, mBidiFlags, widths, in getTextWidths() 2856 nGetTextAdvances(mNativePaint, text, index, count, index, count, mBidiFlags, widths, 0); in getTextWidths() 2859 widths[i] *= mInvCompatScaling; in getTextWidths() 2878 float[] widths) { in getTextWidths() argument 2885 if (end - start > widths.length) { in getTextWidths() 2893 return getTextWidths((String) text, start, end, widths); in getTextWidths() 2897 return getTextWidths(text.toString(), start, end, widths); in getTextWidths() 2901 widths, this); in getTextWidths() [all …]
|
/frameworks/base/core/java/android/text/ |
D | GraphicsOperations.java | 50 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() argument
|
D | SpannableStringBuilder.java | 1490 public int getTextWidths(int start, int end, float[] widths, Paint p) { in getTextWidths() argument 1496 ret = p.getTextWidths(mText, start, end - start, widths); in getTextWidths() 1498 ret = p.getTextWidths(mText, start + mGapLength, end - start, widths); in getTextWidths() 1503 ret = p.getTextWidths(buf, 0, end - start, widths); in getTextWidths()
|
D | MeasuredParagraph.java | 359 final float[] widths = mWidths.getRawArray(); in getWidth() local 362 r += widths[i]; in getWidth()
|
D | TextUtils.java | 1633 float[] widths = mt.getWidths().getRawArray(); in commaEllipsize() local 1636 w += widths[i]; in commaEllipsize()
|
D | StaticLayout.java | 1667 public float[] widths = new float[INITIAL_SIZE];
|
/frameworks/base/libs/hwui/jni/text/ |
D | MeasuredText.cpp | 107 r += mt->widths[i]; in nGetWidth() 113 return toMeasuredParagraph(ptr)->widths[offset]; in nGetCharWidthAt()
|
D | LineBreaker.cpp | 106 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->widths[i]; in nGetLineWidth()
|
/frameworks/minikin/tests/unittest/ |
D | LineBreakerTestHelper.h | 156 if (expected[i].mWidth != actual.widths[i]) { in sameLineBreak() 213 i, lines.widths[i], startEdit, endEdit, lines.ascents[i], lines.descents[i], in toString()
|
D | MeasuredTextTest.cpp | 62 EXPECT_EQ(expectedWidths, measuredText->widths); in TEST()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | bitfield.rscript | 27 // types (and, for bit-fields, the same widths) for a sequence of one
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | bitfield.rscript | 29 // types (and, for bit-fields, the same widths) for a sequence of one
|
/frameworks/compile/slang/lit-tests/padding/ |
D | bitfield.rscript | 33 // types (and, for bit-fields, the same widths) for a sequence of one
|
/frameworks/base/media/java/android/media/ |
D | MediaCodecInfo.java | 2820 Range<Integer> counts = null, widths = null, heights = null; 2835 widths = sizeRanges.first; 2843 if (widths != null) { 2845 Math.min(widths.getUpper(), heights.getUpper()); 2846 widths = heights = widths.extend(heights); 2899 if (widths != null) { 2900 mWidthRange = getSizeRange().intersect(widths); 2937 if (widths != null) { 2938 mWidthRange = mWidthRange.intersect(widths);
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEditTextView.java | 862 float[] widths = new float[1]; in createChipBitmap() local 863 paint.getTextWidths(" ", widths); in createChipBitmap() 869 - widths[0] in createChipBitmap()
|
/frameworks/av/media/codec2/tests/ |
D | C2Param_test.cpp | 812 auto widths = C2NumbersInfo::AllocShared(5); 813 widths->flexCount(); 814 widths->m.mNumbers[4] = 1;
|