Searched refs:textLinks (Results 1 – 3 of 3) sorted by relevance
68 final TextLinks textLinks = new TextLinks.Builder(TEXT).build(); in testTextLinks_defaultValues() local70 assertEquals(TEXT, textLinks.getText()); in testTextLinks_defaultValues()71 assertTrue(textLinks.getExtras().isEmpty()); in testTextLinks_defaultValues()72 assertTrue(textLinks.getLinks().isEmpty()); in testTextLinks_defaultValues()77 final TextLinks textLinks = new TextLinks.Builder(TEXT) in testTextLinks_full() local84 assertEquals(TEXT, textLinks.getText()); in testTextLinks_full()85 assertEquals(BUNDLE_VALUE, textLinks.getExtras().getString(BUNDLE_KEY)); in testTextLinks_full()86 assertEquals(2, textLinks.getLinks().size()); in testTextLinks_full()88 final List<TextLinks.TextLink> resultList = new ArrayList<>(textLinks.getLinks()); in testTextLinks_full()104 final TextLinks textLinks = new TextLinks.Builder(TEXT) in testTextLinks_clearTextLinks() local[all …]
241 TextLinks textLinks = mSimpleTextClassifier.generateLinks(request); in createLinkifiedText() local243 int resultCode = textLinks.apply( in createLinkifiedText()
211 TextLinks textLinks = in testClassificationConfidenceValuesAreValid() local213 assertThat(getHighestConfidence(TextClassifier.TYPE_URL, textLinks)) in testClassificationConfidenceValuesAreValid()215 assertThat(getHighestConfidence(TextClassifier.TYPE_DATE, textLinks)) in testClassificationConfidenceValuesAreValid()217 assertThat(getHighestConfidence(TextClassifier.TYPE_ADDRESS, textLinks)) in testClassificationConfidenceValuesAreValid()219 assertThat(getHighestConfidence(TextClassifier.TYPE_EMAIL, textLinks)) in testClassificationConfidenceValuesAreValid()224 private float getHighestConfidence(String entity, TextLinks textLinks) { in getHighestConfidence() argument226 for (TextLinks.TextLink textLink : textLinks.getLinks()) { in getHighestConfidence()