Home
last modified time | relevance | path

Searched refs:mEntityConfidence (Results 1 – 6 of 6) 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
58 mEntityConfidence = new EntityConfidence(entityConfidence); in TextSelection()
83 return mEntityConfidence.getEntities().size(); in getEntityCount()
96 return mEntityConfidence.getEntities().get(index); in getEntity()
106 return mEntityConfidence.getConfidenceScore(entity); in getConfidenceScore()
144 .setEntityConfidence(mEntityConfidence) in toBuilder()
154 mId, mStartIndex, mEndIndex, mEntityConfidence); in toString()
164 private final Map<String, Float> mEntityConfidence = new ArrayMap<>(); field in TextSelection.Builder
196 mEntityConfidence.put(type, confidenceScore); in setEntityType()
201 mEntityConfidence.clear(); in setEntityConfidence()
[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.java131 @NonNull private final EntityConfidence mEntityConfidence; field in TextClassification
151 mEntityConfidence = Objects.requireNonNull(entityConfidence); in TextClassification()
169 return mEntityConfidence.getEntities().size(); in getEntityCount()
181 return mEntityConfidence.getEntities().get(index); in getEntity()
191 return mEntityConfidence.getConfidenceScore(entity); in getConfidenceScore()
281 .setEntityConfidence(mEntityConfidence) in toBuilder()
293 mText, mEntityConfidence, mActions, mId, mExtras); in toString()
755 mEntityConfidence.writeToParcel(dest, flags);
787 mEntityConfidence = EntityConfidence.CREATOR.createFromParcel(in);
/frameworks/base/core/java/android/content/
DClipDescription.java196 private final ArrayMap<String, Float> mEntityConfidence = new ArrayMap<>(); field in ClipDescription
454 return mEntityConfidence.getOrDefault(entity, 0f); in getConfidenceScore()
473 mEntityConfidence.clear(); in setConfidenceScores()
474 mEntityConfidence.putAll(confidences); in setConfidenceScores()
589 int size = mEntityConfidence.size(); in confidencesToBundle()
591 bundle.putFloat(mEntityConfidence.keyAt(i), mEntityConfidence.valueAt(i)); in confidencesToBundle()
598 mEntityConfidence.put(key, bundle.getFloat(key)); in readBundleToConfidences()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt61606 Landroid/view/textclassifier/EntityConfidence;->mEntityConfidence:Landroid/util/ArrayMap;
61809 Landroid/view/textclassifier/TextClassification$Builder;->mEntityConfidence:Ljava/util/Map;
61855 Landroid/view/textclassifier/TextClassification;->mEntityConfidence:Landroid/view/textclassifier/En…
62173 Landroid/view/textclassifier/TextSelection$Builder;->mEntityConfidence:Ljava/util/Map;
62204 Landroid/view/textclassifier/TextSelection;->mEntityConfidence:Landroid/view/textclassifier/EntityC…