Home
last modified time | relevance | path

Searched refs:smartStartIndex (Results 1 – 2 of 2) sorted by relevance

/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DTextClassifierApiTest.java76 int smartStartIndex = text.indexOf(suggested); in suggestSelection() local
77 int smartEndIndex = smartStartIndex + suggested.length(); in suggestSelection()
85 assertThat(selection.getSelectionStartIndex()).isEqualTo(smartStartIndex); in suggestSelection()
DTextClassifierImplTest.java90 int smartStartIndex = text.indexOf(suggested); in testSuggestSelection() local
91 int smartEndIndex = smartStartIndex + suggested.length(); in testSuggestSelection()
99 selection, isTextSelection(smartStartIndex, smartEndIndex, TextClassifier.TYPE_EMAIL)); in testSuggestSelection()
109 int smartStartIndex = text.indexOf(suggested); in testSuggestSelection_url() local
110 int smartEndIndex = smartStartIndex + suggested.length(); in testSuggestSelection_url()
117 assertThat(selection, isTextSelection(smartStartIndex, smartEndIndex, TextClassifier.TYPE_URL)); in testSuggestSelection_url()