Searched refs:MatchScore (Results 1 – 7 of 7) sorted by relevance
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | ContactMatcher.java | 156 private final ArrayMap<Long, MatchScore> mScores = new ArrayMap<>(); 157 private final ArrayList<MatchScore> mScoreList = new ArrayList<MatchScore>(); 163 private MatchScore getMatchingScore(long contactId) { in getMatchingScore() 164 MatchScore matchingScore = mScores.get(contactId); in getMatchingScore() 170 matchingScore = new MatchScore(contactId); in getMatchingScore() 183 updatePrimaryScore(contactId, MatchScore.MAX_SCORE); in matchIdentity() 288 MatchScore score = mScoreList.get(i); in prepareSecondaryMatchCandidates() 315 MatchScore score = mScoreList.get(i); in pickBestMatch() 347 public List<MatchScore> pickBestMatches(int threshold) { in pickBestMatches() 348 int scaledThreshold = threshold * MatchScore.SCORE_SCALE; in pickBestMatches() [all …]
|
D | RawContactMatcher.java | 161 private final ArrayMap<Long, MatchScore> mScores = new ArrayMap<>(); 162 private final ArrayList<MatchScore> mScoreList = new ArrayList<MatchScore>(); 168 private MatchScore getMatchingScore(long rawContactId, long contactId, long accountId) { in getMatchingScore() 169 MatchScore matchingScore = mScores.get(rawContactId); in getMatchingScore() 175 matchingScore = new MatchScore(rawContactId, contactId, accountId); in getMatchingScore() 290 MatchScore score = mScoreList.get(i); in prepareSecondaryMatchCandidates() 309 public List<MatchScore> pickBestMatches() { in pickBestMatches() 310 final List<MatchScore> matches = new ArrayList<>(); in pickBestMatches() 312 MatchScore score = mScoreList.get(i); in pickBestMatches() 334 public List<MatchScore> pickBestMatches(int threshold) { in pickBestMatches() [all …]
|
D | MatchScore.java | 21 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()
|
D | RawContactMatchingCandidates.java | 33 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/ |
D | ContactAggregator.java | 42 import com.android.providers.contacts.aggregation.util.MatchScore; 492 List<MatchScore> bestMatches = in updateAggregationAfterVisibilityChange() 494 for (MatchScore matchScore : bestMatches) { in updateAggregationAfterVisibilityChange() 503 for (MatchScore matchScore : bestMatches) { in updateAggregationAfterVisibilityChange() 596 return matcher.pickBestMatch(MatchScore.MAX_SCORE, true); in pickBestMatchBasedOnExceptions() 908 protected List<MatchScore> findMatchingContacts(final SQLiteDatabase db, long contactId, in findMatchingContacts()
|
D | AbstractContactAggregator.java | 44 import com.android.providers.contacts.aggregation.util.MatchScore; 1966 List<MatchScore> bestMatches = findMatchingContacts(db, contactId, parameters); in queryAggregationSuggestions() 1967 List<MatchScore> bestMatchesWithoutDuplicateContactIds = new ArrayList<>(); in queryAggregationSuggestions() 1969 for (MatchScore bestMatch : bestMatches) { in queryAggregationSuggestions() 1996 String[] projection, List<MatchScore> bestMatches, int maxSuggestions, String filter) { in queryMatchingContacts() 2001 MatchScore matchScore = bestMatches.get(i); in queryMatchingContacts() 2027 Iterator<MatchScore> iter = bestMatches.iterator(); in queryMatchingContacts() 2036 final List<MatchScore> limitedMatches; in queryMatchingContacts() 2048 MatchScore matchScore = limitedMatches.get(i); in queryMatchingContacts() 2061 for (MatchScore matchScore : limitedMatches) { in queryMatchingContacts() [all …]
|
D | ContactAggregator2.java | 49 import com.android.providers.contacts.aggregation.util.MatchScore; 227 List<MatchScore> newMatches = rMatcher.pickBestMatches(); in findRawContactMatchingCandidates() 228 for (MatchScore newMatch : newMatches) { in findRawContactMatchingCandidates() 477 List<MatchScore> bestMatches = in updateAggregationAfterVisibilityChange() 479 for (MatchScore matchScore : bestMatches) { in updateAggregationAfterVisibilityChange() 488 for (MatchScore matchScore : bestMatches) { in updateAggregationAfterVisibilityChange() 821 protected List<MatchScore> findMatchingContacts(final SQLiteDatabase db, long contactId, in findMatchingContacts()
|