/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() 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/ |
D | LineBreaker.h | 95 std::vector<float> widths; member 105 std::reverse(widths.begin(), widths.end()); in reverse()
|
D | MeasuredText.h | 177 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/ |
D | Paint.java | 2412 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/ |
D | LineBreaker_Delegate.java | 196 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()
|
D | MeasuredText_Builder_Delegate.java | 106 float[] widths, int bidiFlags) { in measureText() argument 110 widths, 0, false); in measureText()
|
/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 | 11796 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/ |
D | OptimalLineBreaker.cpp | 167 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()
|
D | GreedyLineBreaker.cpp | 258 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()
|
D | MeasuredText.cpp | 137 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/ |
D | MeasuredText.cpp | 105 r += mt->widths[i]; in nGetWidth() 111 return toMeasuredParagraph(ptr)->widths[offset]; in nGetCharWidthAt()
|
D | LineBreaker.cpp | 110 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->widths[i]; in nGetLineWidth()
|
/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 | MeasuredParagraph.java | 265 final float[] widths = mWidths.getRawArray(); in getWidth() local 268 r += widths[i]; in getWidth()
|
D | SpannableStringBuilder.java | 1489 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()
|
D | TextUtils.java | 1543 float[] widths = mt.getWidths().getRawArray(); in commaEllipsize() local 1546 w += widths[i]; in commaEllipsize()
|
D | StaticLayout.java | 1439 public float[] widths = new float[INITIAL_SIZE];
|
/frameworks/minikin/tests/unittest/ |
D | LineBreakerTestHelper.h | 140 if (expected[i].mWidth != actual.widths[i]) { in sameLineBreak() 196 i, lines.widths[i], startEdit, endEdit, lines.ascents[i], lines.descents[i], in toString()
|
D | MeasuredTextTest.cpp | 57 EXPECT_EQ(expectedWidths, measuredText->widths); in TEST()
|
/frameworks/base/media/java/android/media/ |
D | MediaCodecInfo.java | 2259 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/ |
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/codec2/tests/ |
D | C2Param_test.cpp | 804 auto widths = C2NumbersInfo::AllocShared(5); 805 widths->flexCount(); 806 widths->m.mNumbers[4] = 1;
|
/frameworks/native/vulkan/api/ |
D | vulkan.api | 4647 … lineWidthRange /// range (min,max) of supported line widths 4649 … lineWidthGranularity /// granularity of supported line widths
|