Searched refs:glyphs (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/text/src/android/text/cts/ |
D | TextShaperTest.java | 57 (start, end, glyphs, p) -> { in shapeText() 58 result.add(new Pair(glyphs, new TextPaint(p))); in shapeText() 72 List<Pair<PositionedGlyphs, TextPaint>> glyphs = shapeText(text, paint); in shapeText_noStyle() local 78 assertThat(glyphs.size()).isEqualTo(1); in shapeText_noStyle() 79 assertThat(glyphs.get(0).first).isEqualTo(singleStyleResult); in shapeText_noStyle() 80 assertThat(glyphs.get(0).second.getTextSize()).isEqualTo(100f); in shapeText_noStyle() 149 (start, end, glyphs, drawPaint) -> { in assertSameDrawResult() 150 for (int i = 0; i < glyphs.glyphCount(); ++i) { in assertSameDrawResult() 152 new int[] { glyphs.getGlyphId(i) }, in assertSameDrawResult() 154 new float[] { glyphs.getGlyphX(i), glyphs.getGlyphY(i) }, in assertSameDrawResult() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/text/cts/ |
D | TextRunShaperTest.java | 217 PositionedGlyphs glyphs = TextRunShaper.shapeTextRun( in positionedGlyphs_equality() local 230 assertThat(glyphs).isEqualTo(eqGlyphs); in positionedGlyphs_equality() 232 assertThat(glyphs).isNotEqualTo(reversedGlyphs); in positionedGlyphs_equality() 233 assertThat(glyphs).isNotEqualTo(substrGlyphs); in positionedGlyphs_equality() 234 assertThat(glyphs).isNotEqualTo(differentStyleGlyphs); in positionedGlyphs_equality() 311 PositionedGlyphs glyphs = TextRunShaper.shapeTextRun( in assertSameDrawResult() local 317 for (int i = 0; i < glyphs.glyphCount(); ++i) { in assertSameDrawResult() 319 new int[] { glyphs.getGlyphId(i) }, in assertSameDrawResult() 321 new float[] { glyphs.getGlyphX(i), glyphs.getGlyphY(i) }, in assertSameDrawResult() 324 glyphs.getFont(i), in assertSameDrawResult()
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontTest.java | 1190 PositionedGlyphs glyphs = TextRunShaper.shapeTextRun("a", 0, 1, 0, 1, 0f, 0f, false, paint); in fontIdentifier() local 1191 assertEquals(aFont, glyphs.getFont(0)); in fontIdentifier() 1192 assertEquals(aFont.getSourceIdentifier(), glyphs.getFont(0).getSourceIdentifier()); in fontIdentifier()
|