Searched refs:classification (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassificationTest.java | 83 final TextClassification classification = new TextClassification.Builder() in testTextClassification() local 93 assertEquals(TEXT, classification.getText()); in testTextClassification() 94 assertEquals(2, classification.getEntityCount()); in testTextClassification() 95 assertEquals(TextClassifier.TYPE_EMAIL, classification.getEntity(0)); in testTextClassification() 96 assertEquals(TextClassifier.TYPE_ADDRESS, classification.getEntity(1)); in testTextClassification() 97 assertEquals(addressScore, classification.getConfidenceScore(TextClassifier.TYPE_ADDRESS), in testTextClassification() 99 assertEquals(emailScore, classification.getConfidenceScore(TextClassifier.TYPE_EMAIL), in testTextClassification() 101 assertEquals(0, classification.getConfidenceScore("random_type"), ACCEPTED_DELTA); in testTextClassification() 104 assertNull(classification.getIntent()); in testTextClassification() 105 assertNull(classification.getLabel()); in testTextClassification() [all …]
|
D | TextClassifierTest.java | 311 private static void assertValidResult(TextClassification classification) { in assertValidResult() argument 312 assertNotNull(classification); in assertValidResult() 313 assertTrue(classification.getEntityCount() >= 0); in assertValidResult() 314 for (int i = 0; i < classification.getEntityCount(); i++) { in assertValidResult() 315 final String entity = classification.getEntity(i); in assertValidResult() 317 final float confidenceScore = classification.getConfidenceScore(entity); in assertValidResult() 321 assertNotNull(classification.getActions()); in assertValidResult()
|
D | TextClassifierServiceSwapTest.java | 134 final TextClassification classification = tc.classifyText(request); in testResourceIconsRewrittenToContentUriIcons_classifyText() local 135 final Icon icon = classification.getActions().get(0).getIcon(); in testResourceIconsRewrittenToContentUriIcons_classifyText()
|
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/ |
D | poc.cpp | 103 outMsg->body.motion.classification = msg.body.motion.classification; in sanitizeMessage()
|