Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java89 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()
212 final float[] widths = new float[count]; in assertGetTextRunAdvances() local
213 p.getTextWidths(str, start, end, widths); in assertGetTextRunAdvances()
215 assertEquals(advanceArrays[0][i], widths[i], 1.0f); in assertGetTextRunAdvances()
/frameworks/minikin/include/minikin/
DLineBreaker.h95 std::vector<float> widths; member
105 std::reverse(widths.begin(), widths.end()); in reverse()
DMeasuredText.h177 std::vector<float> widths;
190 return sizeof(float) * widths.size() + sizeof(HyphenBreak) * hyphenBreaks.size() + in getMemoryUsage()
214 : widths(textBuf.size()), runs(std::move(runs)) { in MeasuredText()
/frameworks/base/graphics/java/android/graphics/
DPaint.java2412 float[] widths) { in getTextWidths() argument
2417 || count > widths.length) { in getTextWidths()
2425 nGetTextAdvances(mNativePaint, text, index, count, index, count, mBidiFlags, widths, 0); in getTextWidths()
2431 nGetTextAdvances(mNativePaint, text, index, count, index, count, mBidiFlags, widths, 0); in getTextWidths()
2434 widths[i] *= mInvCompatScaling; in getTextWidths()
2450 float[] widths) { in getTextWidths() argument
2457 if (end - start > widths.length) { in getTextWidths()
2465 return getTextWidths((String) text, start, end, widths); in getTextWidths()
2469 return getTextWidths(text.toString(), start, end, widths); in getTextWidths()
2473 widths, this); in getTextWidths()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/text/
DLineBreaker_Delegate.java196 private static List<Primitive> computePrimitives(@NonNull char[] text, @NonNull float[] widths, in computePrimitives() argument
206 primitives.add(PrimitiveType.GLUE.getNewPrimitive(i, widths[i])); in computePrimitives()
214 if (widths[i] != 0) { in computePrimitives()
223 primitives.add(PrimitiveType.BOX.getNewPrimitive(i, widths[i])); in computePrimitives()
DMeasuredText_Builder_Delegate.java106 float[] widths, int bidiFlags) { in measureText() argument
110 widths, 0, false); in measureText()
/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.java11796 final float[] widths = new float[offsetEnd - offsetStart]; in populateCharacterBounds() local
11797 mLayout.getPaint().getTextWidths(mTransformed, offsetStart, offsetEnd, widths); in populateCharacterBounds()
11801 final float charWidth = widths[offset - offsetStart]; in populateCharacterBounds()
13192 public int getTextWidths(int start, int end, float[] widths, Paint p) { in getTextWidths() argument
13193 return p.getTextWidths(mChars, start + mStart, end - start, widths); in getTextWidths()
/frameworks/minikin/libs/minikin/
DOptimalLineBreaker.cpp167 ParaWidth width = measured.widths[range.getStart()]; in populateDesperatePoints()
169 const float w = measured.widths[i]; in populateDesperatePoints()
234 proc.feedChar(i, textBuf[i], measured.widths[i], run->canBreak()); in populateCandidates()
259 measured.widths[nextCharOffset] > 0) { in populateCandidates()
304 result.widths.push_back(cand.postBreak - prev.preBreak); in finishBreaksOptimal()
DGreedyLineBreaker.cpp258 double width = mMeasuredText.widths[range.getStart()]; in doLineBreakWithGraphemeBounds()
262 const float w = mMeasuredText.widths[i]; in doLineBreakWithGraphemeBounds()
342 updateLineWidth(mTextBuf[i], mMeasuredText.widths[i]); in process()
376 out.widths.push_back(breakPoint.lineWidth); in getResult()
DMeasuredText.cpp137 run->getMetrics(textBuf, &widths, hint ? &hint->layoutPieces : nullptr, piecesOut); in measure()
145 proc.feedChar(i, textBuf[i], widths[i], run->canBreak()); in measure()
/frameworks/base/core/jni/android/graphics/text/
DMeasuredText.cpp105 r += mt->widths[i]; in nGetWidth()
111 return toMeasuredParagraph(ptr)->widths[offset]; in nGetCharWidthAt()
DLineBreaker.cpp110 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->widths[i]; in nGetLineWidth()
/frameworks/base/core/java/android/text/
DGraphicsOperations.java50 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() argument
DMeasuredParagraph.java265 final float[] widths = mWidths.getRawArray(); in getWidth() local
268 r += widths[i]; in getWidth()
DSpannableStringBuilder.java1489 public int getTextWidths(int start, int end, float[] widths, Paint p) { in getTextWidths() argument
1495 ret = p.getTextWidths(mText, start, end - start, widths); in getTextWidths()
1497 ret = p.getTextWidths(mText, start + mGapLength, end - start, widths); in getTextWidths()
1502 ret = p.getTextWidths(buf, 0, end - start, widths); in getTextWidths()
DTextUtils.java1543 float[] widths = mt.getWidths().getRawArray(); in commaEllipsize() local
1546 w += widths[i]; in commaEllipsize()
DStaticLayout.java1439 public float[] widths = new float[INITIAL_SIZE];
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h140 if (expected[i].mWidth != actual.widths[i]) { in sameLineBreak()
196 i, lines.widths[i], startEdit, endEdit, lines.ascents[i], lines.descents[i], in toString()
DMeasuredTextTest.cpp57 EXPECT_EQ(expectedWidths, measuredText->widths); in TEST()
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java2259 Range<Integer> counts = null, widths = null, heights = null;
2274 widths = sizeRanges.first;
2282 if (widths != null) {
2284 Math.min(widths.getUpper(), heights.getUpper());
2285 widths = heights = widths.extend(heights);
2338 if (widths != null) {
2339 mWidthRange = SIZE_RANGE.intersect(widths);
2376 if (widths != null) {
2377 mWidthRange = mWidthRange.intersect(widths);
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java859 float[] widths = new float[1]; in createChipBitmap() local
860 paint.getTextWidths(" ", widths); in createChipBitmap()
866 - widths[0] in createChipBitmap()
/frameworks/av/media/codec2/tests/
DC2Param_test.cpp804 auto widths = C2NumbersInfo::AllocShared(5);
805 widths->flexCount();
806 widths->m.mNumbers[4] = 1;
/frameworks/native/vulkan/api/
Dvulkan.api4647 … lineWidthRange /// range (min,max) of supported line widths
4649 … lineWidthGranularity /// granularity of supported line widths