Home
last modified time | relevance | path

Searched refs:widths (Results 1 – 24 of 24) sorted by relevance

/frameworks/minikin/include/minikin/
DLineBreaker.h98 std::vector<float> widths; member
109 std::reverse(widths.begin(), widths.end()); in reverse()
DMeasuredText.h255 std::vector<float> widths;
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java90 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/
DOptimalLineBreaker.cpp196 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()
DGreedyLineBreaker.cpp277 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()
DMeasuredText.cpp181 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/
DTableLayout.java506 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()
DTextView.java16131 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/
DPaint.java2833 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/
DGraphicsOperations.java50 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() argument
DSpannableStringBuilder.java1490 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()
DMeasuredParagraph.java359 final float[] widths = mWidths.getRawArray(); in getWidth() local
362 r += widths[i]; in getWidth()
DTextUtils.java1633 float[] widths = mt.getWidths().getRawArray(); in commaEllipsize() local
1636 w += widths[i]; in commaEllipsize()
DStaticLayout.java1667 public float[] widths = new float[INITIAL_SIZE];
/frameworks/base/libs/hwui/jni/text/
DMeasuredText.cpp107 r += mt->widths[i]; in nGetWidth()
113 return toMeasuredParagraph(ptr)->widths[offset]; in nGetCharWidthAt()
DLineBreaker.cpp106 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->widths[i]; in nGetLineWidth()
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h156 if (expected[i].mWidth != actual.widths[i]) { in sameLineBreak()
213 i, lines.widths[i], startEdit, endEdit, lines.ascents[i], lines.descents[i], in toString()
DMeasuredTextTest.cpp62 EXPECT_EQ(expectedWidths, measuredText->widths); in TEST()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dbitfield.rscript27 // 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/
Dbitfield.rscript29 // types (and, for bit-fields, the same widths) for a sequence of one
/frameworks/compile/slang/lit-tests/padding/
Dbitfield.rscript33 // types (and, for bit-fields, the same widths) for a sequence of one
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java2820 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/
DRecipientEditTextView.java862 float[] widths = new float[1]; in createChipBitmap() local
863 paint.getTextWidths(" ", widths); in createChipBitmap()
869 - widths[0] in createChipBitmap()
/frameworks/av/media/codec2/tests/
DC2Param_test.cpp812 auto widths = C2NumbersInfo::AllocShared(5);
813 widths->flexCount();
814 widths->m.mNumbers[4] = 1;