Home
last modified time | relevance | path

Searched refs:bestMatch (Results 1 – 3 of 3) sorted by relevance

/packages/services/Telephony/src/com/android/phone/
DEmergencyAssistanceHelper.java65 PackageInfo bestMatch = null; in resolveAssistPackageAndQueryActivities() local
76 if (isSystemApp(packageInfo) && (bestMatch == null in resolveAssistPackageAndQueryActivities()
77 || bestMatch.firstInstallTime > packageInfo.firstInstallTime)) { in resolveAssistPackageAndQueryActivities()
78 bestMatch = packageInfo; in resolveAssistPackageAndQueryActivities()
82 if (bestMatch != null) { in resolveAssistPackageAndQueryActivities()
83 setDefaultEmergencyPackageAsync(context, bestMatch.packageName); in resolveAssistPackageAndQueryActivities()
84 return queryAssistActivities(context, bestMatch.packageName); in resolveAssistPackageAndQueryActivities()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java617 long bestMatch = updateMatchScoresBasedOnDataMatches(db, rawContactId, matcher); in pickBestMatchBasedOnData() local
618 if (bestMatch == ContactMatcher.MULTIPLE_MATCHES) { in pickBestMatchBasedOnData()
621 } else if (bestMatch == -1) { in pickBestMatchBasedOnData()
623 bestMatch = pickBestMatchBasedOnSecondaryData(db, rawContactId, candidates, matcher); in pickBestMatchBasedOnData()
624 if (bestMatch == ContactMatcher.MULTIPLE_MATCHES) { in pickBestMatchBasedOnData()
629 return bestMatch; in pickBestMatchBasedOnData()
675 long bestMatch = matcher.pickBestMatch(ContactMatcher.SCORE_THRESHOLD_PRIMARY, false); in updateMatchScoresBasedOnDataMatches() local
676 if (bestMatch != -1) { in updateMatchScoresBasedOnDataMatches()
677 return bestMatch; in updateMatchScoresBasedOnDataMatches()
DAbstractContactAggregator.java1969 for (MatchScore bestMatch : bestMatches) { in queryAggregationSuggestions()
1970 long cid = bestMatch.getContactId(); in queryAggregationSuggestions()
1972 bestMatchesWithoutDuplicateContactIds.add(bestMatch); in queryAggregationSuggestions()