Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/security/net/config/
DApplicationConfig.java88 Pair<Domain, NetworkSecurityConfig> bestMatch = null; in getConfigForHostname() local
101 if (bestMatch == null) { in getConfigForHostname()
102 bestMatch = entry; in getConfigForHostname()
103 } else if (domain.hostname.length() > bestMatch.first.hostname.length()) { in getConfigForHostname()
104 bestMatch = entry; in getConfigForHostname()
108 if (bestMatch != null) { in getConfigForHostname()
109 return bestMatch.second; in getConfigForHostname()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DLocaleUtils.java121 Locale bestMatch = lookupFallback(target, languageMatches); in getLocaleForLanguageCountry() local
122 if (bestMatch != null) { in getLocaleForLanguageCountry()
124 + bestMatch.toLanguageTag()); in getLocaleForLanguageCountry()
125 return bestMatch; in getLocaleForLanguageCountry()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DPredictor.cpp442 std::optional<ApproximateStack> bestMatch; in findSimilarPrediction() local
452 if (!bestMatch || in findSimilarPrediction()
453 differingFieldCount < __builtin_popcount(bestMatch->match.differingFields.get())) { in findSimilarPrediction()
454 bestMatch = {hash, *approximateMatch}; in findSimilarPrediction()
458 if (!bestMatch) { in findSimilarPrediction()
462 ALOGV("[%s] Adding %zx to approximate stacks", __func__, bestMatch->hash); in findSimilarPrediction()
464 mApproximateStacks.emplace_back(*bestMatch); in findSimilarPrediction()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfileVectorHelper.cpp230 int bestMatch = 0; in checkCompatibleChannelMask() local
300 if (match > bestMatch) { in checkCompatibleChannelMask()
301 bestMatch = match; in checkCompatibleChannelMask()
306 return bestMatch > 0 ? NO_ERROR : BAD_VALUE; in checkCompatibleChannelMask()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp156 int bestMatch = computeMatch(bestFont->style(), style); in getClosestMatch() local
160 if (i == 0 || match < bestMatch) { in getClosestMatch()
163 bestMatch = match; in getClosestMatch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMessagingLayoutTransformState.java379 MessagingGroup bestMatch = null; in findPairs() local
386 bestMatch = otherGroup; in findPairs()
390 if (bestMatch != null) { in findPairs()
391 mGroupMap.put(ownGroup, bestMatch); in findPairs()
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java1425 TrieNode bestMatch = null; in longestMatch() local
1432 bestMatch = root; in longestMatch()
1434 bestMatch = root; in longestMatch()
1438 return bestMatch; in longestMatch()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java1379 int bestMatch = 0;
1385 if (r.match > bestMatch) bestMatch = r.match;
1393 if (otherProfileMatch > bestMatch) bestMatch = otherProfileMatch;
1401 pm.addUniquePreferredActivity(filter, bestMatch, set, intent.getComponent());
1413 .mResolverListController.setLastChosen(intent, filter, bestMatch);