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.java67 PackageInfo bestMatch = null; in resolveAssistPackageAndQueryActivities() local
78 if (isSystemApp(packageInfo) && (bestMatch == null in resolveAssistPackageAndQueryActivities()
79 || bestMatch.firstInstallTime > packageInfo.firstInstallTime)) { in resolveAssistPackageAndQueryActivities()
80 bestMatch = packageInfo; in resolveAssistPackageAndQueryActivities()
84 if (bestMatch != null) { in resolveAssistPackageAndQueryActivities()
85 setDefaultEmergencyPackageAsync(context, bestMatch.packageName); in resolveAssistPackageAndQueryActivities()
86 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.java1962 for (MatchScore bestMatch : bestMatches) { in queryAggregationSuggestions()
1963 long cid = bestMatch.getContactId(); in queryAggregationSuggestions()
1965 bestMatchesWithoutDuplicateContactIds.add(bestMatch); in queryAggregationSuggestions()