Searched refs:bestMatch (Results 1 – 3 of 3) sorted by relevance
67 PackageInfo bestMatch = null; in resolveAssistPackageAndQueryActivities() local78 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()
617 long bestMatch = updateMatchScoresBasedOnDataMatches(db, rawContactId, matcher); in pickBestMatchBasedOnData() local618 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() local676 if (bestMatch != -1) { in updateMatchScoresBasedOnDataMatches()677 return bestMatch; in updateMatchScoresBasedOnDataMatches()
1962 for (MatchScore bestMatch : bestMatches) { in queryAggregationSuggestions()1963 long cid = bestMatch.getContactId(); in queryAggregationSuggestions()1965 bestMatchesWithoutDuplicateContactIds.add(bestMatch); in queryAggregationSuggestions()