Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java74 float[] widths = new float[text.length()]; in testBreakText() local
75 assertEquals(text.length(), p.getTextWidths(text, widths)); in testBreakText()
79 totalWidth += widths[i]; in testBreakText()
84 assertBreakText(text, textChars, textSpan, i, i + 1, true, totalWidth, 1, widths[i]); in testBreakText()
92 3, widths[0] + widths[1] + widths[2]); in testBreakText()
96 3, widths[0] + widths[1] + widths[2]); in testBreakText()
100 2, widths[5] + widths[6]); in testBreakText()
104 2, widths[5] + widths[6]); in testBreakText()
108 3, widths[2] + widths[3] + widths[4]); in testBreakText()
112 3, widths[2] + widths[3] + widths[4]); in testBreakText()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java193 float[] widths = new float[str.length()]; in getTextWidth() local
194 paint.getTextWidths(str, widths); in getTextWidth()
195 for (float f : widths) { in getTextWidth()
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakingTest.java422 int[] widths = new int[] { 0, 4, 10 }; in testNarrowWidth() local
430 for (int width: widths) { in testNarrowWidth()
437 int[] widths = new int[] { 1, 4 }; in testNarrowWidthZeroWidth() local
438 for (int width: widths) { in testNarrowWidthZeroWidth()
/cts/apps/CameraITS/pymodules/its/
Ddevice.py702 widths = None
719 widths = [out['width'] for out in outputs]
729 obj["width"] = widths[j]
734 buf_size = widths[j] * heights[j] * 3 / 2
/cts/tests/tests/media/src/android/media/cts/
DVideoEncoderTest.java998 public boolean testArbitrary(boolean flexYUV, boolean widths) { in testArbitrary() argument
1000 for (Size s : (widths ? mArbitraryW : mArbitraryH)) { in testArbitrary()
1712 private void arbitrary(Encoder[] encoders, boolean flexYUV, boolean widths) { in arbitrary() argument
1719 if (encoder.testArbitrary(flexYUV, widths)) { in arbitrary()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java3163 float[] widths = new float[LONG_TEXT.length()];
3164 mTextView.getPaint().getTextWidths(LONG_TEXT, widths);
3166 for (float f : widths) {
3186 float[] widths = new float[text.length()]; in calculateTextWidth() local
3187 mTextView.getPaint().getTextWidths(text, widths); in calculateTextWidth()
3190 textfieldWidth += widths[i]; in calculateTextWidth()