Home
last modified time | relevance | path

Searched refs:entityType (Results 1 – 7 of 7) sorted by relevance

/aosp12/packages/modules/ExtServices/java/src/android/ext/services/notification/
H A DEntityTypeCounter.java39 void increment(@NonNull String entityType) { in increment() argument
40 entityType = convertToBaseEntityType(entityType); in increment()
41 if (mEntityTypeCount.containsKey(entityType)) { in increment()
42 mEntityTypeCount.put(entityType, mEntityTypeCount.get(entityType) + 1); in increment()
44 mEntityTypeCount.put(entityType, 1); in increment()
48 int getCount(@NonNull String entityType) { in getCount() argument
49 entityType = convertToBaseEntityType(entityType); in getCount()
50 return mEntityTypeCount.getOrDefault(entityType, 0); in getCount()
55 return ENTITY_TYPE_MAPPING.getOrDefault(entityType, entityType); in convertToBaseEntityType()
69 String entityType = link.getEntity(0); in fromTextLinks() local
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
H A DTextClassifierEventTest.java77 final String entityType = TEXT_SELECTION.getEntity(0); in toSelectionEvent_smartSelectionMulti() local
84 .setEntityTypes(entityType) in toSelectionEvent_smartSelectionMulti()
85 .setScores(TEXT_SELECTION.getConfidenceScore(entityType)) in toSelectionEvent_smartSelectionMulti()
106 final String entityType = TEXT_SELECTION.getEntity(0); in toSelectionEvent_smartSelectionSingle() local
113 .setEntityTypes(entityType) in toSelectionEvent_smartSelectionSingle()
114 .setScores(TEXT_SELECTION.getConfidenceScore(entityType)) in toSelectionEvent_smartSelectionSingle()
138 final String entityType = TEXT_CLASSIFICATION.getEntity(0); in toSelectionEvent_resetSelection() local
148 .setScores(TEXT_CLASSIFICATION.getConfidenceScore(entityType)) in toSelectionEvent_resetSelection()
229 final String entityType = TEXT_CLASSIFICATION.getEntity(0); in toSelectionEvent_link_smartAction() local
234 .setEntityTypes(entityType) in toSelectionEvent_link_smartAction()
[all …]
/aosp12/frameworks/base/core/java/android/view/textclassifier/
H A DSelectionEvent.java144 @EventType int eventType, @EntityType String entityType, in SelectionEvent() argument
150 mEntityType = Objects.requireNonNull(entityType); in SelectionEvent()
259 final String entityType = classification.getEntityCount() > 0 in createSelectionModifiedEvent() local
264 entityType, INVOCATION_UNKNOWN, classification.getId()); in createSelectionModifiedEvent()
283 final String entityType = selection.getEntityCount() > 0 in createSelectionModifiedEvent() local
288 entityType, INVOCATION_UNKNOWN, selection.getId()); in createSelectionModifiedEvent()
332 final String entityType = classification.getEntityCount() > 0 in createSelectionActionEvent() local
335 return new SelectionEvent(start, end, actionType, entityType, INVOCATION_UNKNOWN, in createSelectionActionEvent()
398 void setEntityType(@EntityType String entityType) { in setEntityType() argument
399 mEntityType = Objects.requireNonNull(entityType); in setEntityType()
H A DTextClassifier.java757 TextLinks.Builder links, String string, @EntityType String entityType) { in addLinks() argument
759 if (Linkify.addLinks(spannable, linkMask(entityType))) { in addLinks()
765 entityScores(entityType), in addLinks()
772 private static int linkMask(@EntityType String entityType) { in linkMask() argument
773 switch (entityType) { in linkMask()
786 private static Map<String, Float> entityScores(@EntityType String entityType) { in entityScores() argument
788 scores.put(entityType, 1f); in entityScores()
H A DTextLinks.java278 @EntityType String entityType) { in getConfidenceScore()
279 return mEntityScores.getConfidenceScore(entityType); in getConfidenceScore()
H A DTextClassifierEvent.java422 final String entityType = getEntityTypes().length > 0 in toSelectionEvent() local
428 entityType, in toSelectionEvent()
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...