Home
last modified time | relevance | path

Searched refs:characterBounds (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DLayoutFillCharacterBoundsTest.java62 final float[] characterBounds = new float[4 * text.length()]; in staticLayout_fillCharacterBounds_LTR() local
63 staticLayout.fillCharacterBounds(0, text.length(), characterBounds, 0); in staticLayout_fillCharacterBounds_LTR()
67 assertThat(characterBounds).isEqualTo(new float[] { in staticLayout_fillCharacterBounds_LTR()
78 final float[]characterBounds = new float[4 * text.length()]; in staticLayout_fillCharacterBounds_LTR_multiline() local
79 staticLayout.fillCharacterBounds(0, text.length(), characterBounds, 0); in staticLayout_fillCharacterBounds_LTR_multiline()
85 assertThat(characterBounds).isEqualTo(new float[] { in staticLayout_fillCharacterBounds_LTR_multiline()
96 final float[]characterBounds = new float[4 * text.length()]; in staticLayout_fillCharacterBounds_RTL() local
97 staticLayout.fillCharacterBounds(0, text.length(), characterBounds, 0); in staticLayout_fillCharacterBounds_RTL()
101 assertThat(characterBounds).isEqualTo(new float[] { in staticLayout_fillCharacterBounds_RTL()
112 final float[]characterBounds = new float[4 * text.length()]; in staticLayout_fillCharacterBounds_RTL_multiline() local
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DTextBoundsInfoMethodTest.java932 final RectF characterBounds = new RectF(); in assertGetOffsetForCharacterLeft() local
933 textBoundsInfo.getCharacterBounds(index, characterBounds); in assertGetOffsetForCharacterLeft()
936 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.left, centerY)) in assertGetOffsetForCharacterLeft()
938 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.left + 1f, centerY)) in assertGetOffsetForCharacterLeft()
940 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.left - 1f, centerY)) in assertGetOffsetForCharacterLeft()
952 final RectF characterBounds = new RectF(); in assertGetOffsetForCharacterRight() local
953 textBoundsInfo.getCharacterBounds(index, characterBounds); in assertGetOffsetForCharacterRight()
954 final float centerY = characterBounds.centerY(); in assertGetOffsetForCharacterRight()
956 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.right, centerY)) in assertGetOffsetForCharacterRight()
958 assertThat(textBoundsInfo.getOffsetForPosition(characterBounds.right + 1f, centerY)) in assertGetOffsetForCharacterRight()
[all …]
DTextBoundsInfoTest.java543 private static void assertCharacterBounds(float[] characterBounds, in assertCharacterBounds() argument
549 characterBounds[4 * offset], in assertCharacterBounds()
550 characterBounds[4 * offset + 1], in assertCharacterBounds()
551 characterBounds[4 * offset + 2], in assertCharacterBounds()
552 characterBounds[4 * offset + 3]); in assertCharacterBounds()