Home
last modified time | relevance | path

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

/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextLinksTest.java68 final TextLinks textLinks = new TextLinks.Builder(TEXT).build(); in testTextLinks_defaultValues() local
70 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() local
84 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 …]
DTextViewIntegrationTest.java241 TextLinks textLinks = mSimpleTextClassifier.generateLinks(request); in createLinkifiedText() local
243 int resultCode = textLinks.apply( in createLinkifiedText()
/cts/tests/tests/content/src/android/content/cts/
DClipDescriptionTest.java211 TextLinks textLinks = in testClassificationConfidenceValuesAreValid() local
213 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() argument
226 for (TextLinks.TextLink textLink : textLinks.getLinks()) { in getHighestConfidence()