Home
last modified time | relevance | path

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

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DTextBoundsInfoMethodTest.java264 final TextBoundsInfo textBoundsInfo = TEXT_BOUNDS_INFO_LTR; in testGetOffsetForPosition_LTR() local
274 assertGetOffsetForCharacterLeft(expectedIndex, textBoundsInfo, start, end); in testGetOffsetForPosition_LTR()
277 textBoundsInfo.getCharacterBounds(end - 1, lastCharRect); in testGetOffsetForPosition_LTR()
280 assertThat(textBoundsInfo.getOffsetForPosition(lastCharRight, lastCharCenterY)) in testGetOffsetForPosition_LTR()
287 final TextBoundsInfo textBoundsInfo = TEXT_BOUNDS_INFO_RTL; in testGetOffsetForPosition_RTL() local
297 assertGetOffsetForCharacterRight(expectedIndex, textBoundsInfo, start, end); in testGetOffsetForPosition_RTL()
300 textBoundsInfo.getCharacterBounds(end - 1, lastCharRect); in testGetOffsetForPosition_RTL()
303 assertThat(textBoundsInfo.getOffsetForPosition(lastCharLeft, lastCharCenterY)) in testGetOffsetForPosition_RTL()
310 final TextBoundsInfo textBoundsInfo = TEXT_BOUNDS_INFO_BIDI; in testGetOffsetForPosition_BiDi() local
332 assertGetOffsetForCharacterLeft(expectedIndexForLeft, textBoundsInfo, 0, 7); in testGetOffsetForPosition_BiDi()
[all …]
DTextBoundsInfoTest.java513 final TextBoundsInfo textBoundsInfo = new TextBoundsInfo.Builder(5, 10) in testTextBoundsInfoResult_constructor() local
524 textBoundsInfo); in testTextBoundsInfoResult_constructor()
526 assertEquals(result.getTextBoundsInfo(), textBoundsInfo); in testTextBoundsInfoResult_constructor() local
544 TextBoundsInfo textBoundsInfo) { in assertCharacterBounds() argument
545 final int start = textBoundsInfo.getStartIndex(); in assertCharacterBounds()
546 final int end = textBoundsInfo.getEndIndex(); in assertCharacterBounds()
555 textBoundsInfo.getCharacterBounds(offset + start, actualRectF); in assertCharacterBounds()
561 TextBoundsInfo textBoundsInfo) { in assertCharacterFlags() argument
562 final int start = textBoundsInfo.getStartIndex(); in assertCharacterFlags()
563 final int end = textBoundsInfo.getEndIndex(); in assertCharacterFlags()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTextBoundsInfoTest.java176 final TextBoundsInfo textBoundsInfo = textBoundsInfoResult.getTextBoundsInfo(); in testRequestTextBoundsInfo_topOfLayout() local
183 assertEmptyTextBoundsInfo(textBoundsInfo, expectMatrix); in testRequestTextBoundsInfo_topOfLayout()
192 final TextBoundsInfo textBoundsInfo = textBoundsInfoResult.getTextBoundsInfo(); in testRequestTextBoundsInfo_leftOfLayout() local
199 assertEmptyTextBoundsInfo(textBoundsInfo, expectMatrix); in testRequestTextBoundsInfo_leftOfLayout()
208 final TextBoundsInfo textBoundsInfo = textBoundsInfoResult.getTextBoundsInfo(); in testRequestTextBoundsInfo_rightOfLayout() local
215 assertEmptyTextBoundsInfo(textBoundsInfo, expectMatrix); in testRequestTextBoundsInfo_rightOfLayout()
224 final TextBoundsInfo textBoundsInfo = textBoundsInfoResult.getTextBoundsInfo(); in testRequestTextBoundsInfo_bottomOfLayout() local
231 assertEmptyTextBoundsInfo(textBoundsInfo, expectMatrix); in testRequestTextBoundsInfo_bottomOfLayout()
240 final TextBoundsInfo textBoundsInfo = textBoundsInfoResult.getTextBoundsInfo(); in testRequestTextBoundsInfo_firstLine() local
247 assertThat(textBoundsInfo.getStartIndex()).isEqualTo(0); in testRequestTextBoundsInfo_firstLine()
[all …]