Searched refs:mEntityConfidence (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/android/view/textclassifier/ |
D | EntityConfidence.java | 39 private final ArrayMap<String, Float> mEntityConfidence = new ArrayMap<>(); field in EntityConfidence 46 mEntityConfidence.putAll(source.mEntityConfidence); in EntityConfidence() 62 mEntityConfidence.ensureCapacity(source.size()); in EntityConfidence() 65 mEntityConfidence.put(it.getKey(), Math.min(1, it.getValue())); in EntityConfidence() 86 if (mEntityConfidence.containsKey(entity)) { in getConfidenceScore() 87 return mEntityConfidence.get(entity); in getConfidenceScore() 94 return mEntityConfidence.toString(); in toString() 104 dest.writeInt(mEntityConfidence.size()); in writeToParcel() 105 for (Map.Entry<String, Float> entry : mEntityConfidence.entrySet()) { in writeToParcel() 126 mEntityConfidence.ensureCapacity(numEntities); in EntityConfidence() [all …]
|
D | TextSelection.java | 45 private final EntityConfidence mEntityConfidence; field in TextSelection 54 mEntityConfidence = new EntityConfidence(entityConfidence); in TextSelection() 78 return mEntityConfidence.getEntities().size(); in getEntityCount() 91 return mEntityConfidence.getEntities().get(index); in getEntity() 101 return mEntityConfidence.getConfidenceScore(entity); in getConfidenceScore() 127 mId, mStartIndex, mEndIndex, mEntityConfidence); in toString() 137 private final Map<String, Float> mEntityConfidence = new ArrayMap<>(); field in TextSelection.Builder 167 mEntityConfidence.put(type, confidenceScore); in setEntityType() 197 mStartIndex, mEndIndex, mEntityConfidence, mId, in build() 437 mEntityConfidence.writeToParcel(dest, flags); in writeToParcel() [all …]
|
D | TextLanguage.java | 61 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()
|
D | TextClassification.java | 131 @NonNull private final EntityConfidence mEntityConfidence; field in TextClassification 151 mEntityConfidence = Preconditions.checkNotNull(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() 279 mText, mEntityConfidence, mActions, mId, mExtras); in toString() 777 mEntityConfidence.writeToParcel(dest, flags); 809 mEntityConfidence = EntityConfidence.CREATOR.createFromParcel(in);
|