Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactMatcher.java154 private final ArrayMap<Long, MatchScore> mScores = new ArrayMap<>();
155 private final ArrayList<MatchScore> mScoreList = new ArrayList<MatchScore>();
161 private MatchScore getMatchingScore(long contactId) { in getMatchingScore()
162 MatchScore matchingScore = mScores.get(contactId); in getMatchingScore()
168 matchingScore = new MatchScore(contactId); in getMatchingScore()
181 updatePrimaryScore(contactId, MatchScore.MAX_SCORE); in matchIdentity()
286 MatchScore score = mScoreList.get(i); in prepareSecondaryMatchCandidates()
313 MatchScore score = mScoreList.get(i); in pickBestMatch()
345 public List<MatchScore> pickBestMatches(int threshold) { in pickBestMatches()
346 int scaledThreshold = threshold * MatchScore.SCORE_SCALE; in pickBestMatches()
[all …]
DRawContactMatcher.java159 private final ArrayMap<Long, MatchScore> mScores = new ArrayMap<>();
160 private final ArrayList<MatchScore> mScoreList = new ArrayList<MatchScore>();
166 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) { in getMatchingScore()
167 MatchScore matchingScore = mScores.get(rawContactId); in getMatchingScore()
173 matchingScore = new MatchScore(rawContactId, contactId, accountId); in getMatchingScore()
288 MatchScore score = mScoreList.get(i); in prepareSecondaryMatchCandidates()
307 public List<MatchScore> pickBestMatches() { in pickBestMatches()
308 final List<MatchScore> matches = new ArrayList<>(); in pickBestMatches()
310 MatchScore score = mScoreList.get(i); in pickBestMatches()
332 public List<MatchScore> pickBestMatches(int threshold) { in pickBestMatches()
[all …]
DMatchScore.java21 public class MatchScore implements Comparable<MatchScore> { class
38 public MatchScore(long rawContactId, long contactId, long accountId) { in MatchScore() method in MatchScore
44 public MatchScore(long contactId) { in MatchScore() method in MatchScore
140 public int compareTo(MatchScore another) { in compareTo()
DRawContactMatchingCandidates.java33 private List<MatchScore> mBestMatches;
38 public RawContactMatchingCandidates(List<MatchScore> mBestMatches) { in RawContactMatchingCandidates()
44 mBestMatches = new ArrayList<MatchScore>(); in RawContactMatchingCandidates()
51 public void add(MatchScore score) { in add()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java42 import com.android.providers.contacts.aggregation.util.MatchScore;
490 List<MatchScore> bestMatches = in updateAggregationAfterVisibilityChange()
492 for (MatchScore matchScore : bestMatches) { in updateAggregationAfterVisibilityChange()
501 for (MatchScore matchScore : bestMatches) { in updateAggregationAfterVisibilityChange()
594 return matcher.pickBestMatch(MatchScore.MAX_SCORE, true); in pickBestMatchBasedOnExceptions()
906 protected List<MatchScore> findMatchingContacts(final SQLiteDatabase db, long contactId, in findMatchingContacts()
DContactAggregator2.java49 import com.android.providers.contacts.aggregation.util.MatchScore;
225 List<MatchScore> newMatches = rMatcher.pickBestMatches(); in findRawContactMatchingCandidates()
226 for (MatchScore newMatch : newMatches) { in findRawContactMatchingCandidates()
475 List<MatchScore> bestMatches = in updateAggregationAfterVisibilityChange()
477 for (MatchScore matchScore : bestMatches) { in updateAggregationAfterVisibilityChange()
486 for (MatchScore matchScore : bestMatches) { in updateAggregationAfterVisibilityChange()
819 protected List<MatchScore> findMatchingContacts(final SQLiteDatabase db, long contactId, in findMatchingContacts()
DAbstractContactAggregator.java44 import com.android.providers.contacts.aggregation.util.MatchScore;
1957 List<MatchScore> bestMatches = findMatchingContacts(db, contactId, parameters); in queryAggregationSuggestions()
1958 List<MatchScore> bestMatchesWithoutDuplicateContactIds = new ArrayList<>(); in queryAggregationSuggestions()
1960 for (MatchScore bestMatch : bestMatches) { in queryAggregationSuggestions()
1987 String[] projection, List<MatchScore> bestMatches, int maxSuggestions, String filter) { in queryMatchingContacts()
1992 MatchScore matchScore = bestMatches.get(i); in queryMatchingContacts()
2018 Iterator<MatchScore> iter = bestMatches.iterator(); in queryMatchingContacts()
2027 final List<MatchScore> limitedMatches; in queryMatchingContacts()
2039 MatchScore matchScore = limitedMatches.get(i); in queryMatchingContacts()
2052 for (MatchScore matchScore : limitedMatches) { in queryMatchingContacts()
[all …]