Searched refs:bestMatch (Results 1 – 3 of 3) sorted by relevance
65 PackageInfo bestMatch = null; in resolveAssistPackageAndQueryActivities() local76 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()
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()
1969 for (MatchScore bestMatch : bestMatches) { in queryAggregationSuggestions()1970 long cid = bestMatch.getContactId(); in queryAggregationSuggestions()1972 bestMatchesWithoutDuplicateContactIds.add(bestMatch); in queryAggregationSuggestions()