Home
last modified time | relevance | path

Searched refs:mEntityConfidence (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/view/textclassifier/
DEntityConfidence.java38 private final ArrayMap<String, Float> mEntityConfidence = new ArrayMap<>(); field in EntityConfidence
45 mEntityConfidence.putAll(source.mEntityConfidence); in EntityConfidence()
61 mEntityConfidence.ensureCapacity(source.size()); in EntityConfidence()
64 mEntityConfidence.put(it.getKey(), Math.min(1, it.getValue())); in EntityConfidence()
85 if (mEntityConfidence.containsKey(entity)) { in getConfidenceScore()
86 return mEntityConfidence.get(entity); in getConfidenceScore()
92 return new ArrayMap(mEntityConfidence); in toMap()
97 return mEntityConfidence.toString(); in toString()
107 dest.writeInt(mEntityConfidence.size()); in writeToParcel()
108 for (Map.Entry<String, Float> entry : mEntityConfidence.entrySet()) { in writeToParcel()
[all …]
DTextSelection.java46 private final EntityConfidence mEntityConfidence; field in TextSelection
55 mEntityConfidence = new EntityConfidence(entityConfidence); in TextSelection()
79 return mEntityConfidence.getEntities().size(); in getEntityCount()
92 return mEntityConfidence.getEntities().get(index); in getEntity()
102 return mEntityConfidence.getConfidenceScore(entity); in getConfidenceScore()
128 mId, mStartIndex, mEndIndex, mEntityConfidence); in toString()
138 private final Map<String, Float> mEntityConfidence = new ArrayMap<>(); field in TextSelection.Builder
168 mEntityConfidence.put(type, confidenceScore); in setEntityType()
198 mStartIndex, mEndIndex, mEntityConfidence, mId, in build()
448 mEntityConfidence.writeToParcel(dest, flags); in writeToParcel()
[all …]
DTextLanguage.java61 private final EntityConfidence mEntityConfidence; field in TextLanguage
69 mEntityConfidence = entityConfidence; in TextLanguage()
86 return mEntityConfidence.getEntities().size(); in getLocaleHypothesisCount()
99 return ULocale.forLanguageTag(mEntityConfidence.getEntities().get(index)); in getLocale()
109 return mEntityConfidence.getConfidenceScore(locale.toLanguageTag()); in getConfidenceScore()
128 mId, mEntityConfidence, mBundle); in toString()
139 mEntityConfidence.writeToParcel(dest, flags); in writeToParcel()
DTextClassification.java130 @NonNull private final EntityConfidence mEntityConfidence; field in TextClassification
150 mEntityConfidence = Objects.requireNonNull(entityConfidence); in TextClassification()
168 return mEntityConfidence.getEntities().size(); in getEntityCount()
180 return mEntityConfidence.getEntities().get(index); in getEntity()
190 return mEntityConfidence.getConfidenceScore(entity); in getConfidenceScore()
280 .setEntityConfidence(mEntityConfidence) in toBuilder()
292 mText, mEntityConfidence, mActions, mId, mExtras); in toString()
752 mEntityConfidence.writeToParcel(dest, flags);
784 mEntityConfidence = EntityConfidence.CREATOR.createFromParcel(in);