Searched refs:classifiedText (Results 1 – 3 of 3) sorted by relevance
138 String classifiedText = "droid@android.com"; in testClassifyText() local139 int startIndex = text.indexOf(classifiedText); in testClassifyText()140 int endIndex = startIndex + classifiedText.length(); in testClassifyText()148 assertThat(classification, isTextClassification(classifiedText, TextClassifier.TYPE_EMAIL)); in testClassifyText()154 String classifiedText = "www.android.com"; in testClassifyText_url() local155 int startIndex = text.indexOf(classifiedText); in testClassifyText_url()156 int endIndex = startIndex + classifiedText.length(); in testClassifyText_url()163 assertThat(classification, isTextClassification(classifiedText, TextClassifier.TYPE_URL)); in testClassifyText_url()182 String classifiedText = "HTTP://ANDROID.COM"; in testClassifyText_url_inCaps() local183 int startIndex = text.indexOf(classifiedText); in testClassifyText_url_inCaps()[all …]
92 String classifiedText = "droid@android.com"; in classifyText() local93 int startIndex = text.indexOf(classifiedText); in classifyText()94 int endIndex = startIndex + classifiedText.length(); in classifyText()101 assertThat(classification.getText()).isEqualTo(classifiedText); in classifyText()
546 final String classifiedText = text.substring(start, end); in createClassificationResult() local548 new TextClassification.Builder().setText(classifiedText); in createClassificationResult()