Home
last modified time | relevance | path

Searched refs:bestMatch (Results 1 – 10 of 10) 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/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java142 int bestMatch = Integer.MAX_VALUE;
146 if (match < bestMatch) {
147 bestMatch = match;
149 if (bestMatch == 0) {
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DPredictor.cpp426 std::optional<ApproximateStack> bestMatch; in findSimilarPrediction() local
436 if (!bestMatch || in findSimilarPrediction()
437 differingFieldCount < __builtin_popcount(bestMatch->match.differingFields.get())) { in findSimilarPrediction()
438 bestMatch = {hash, *approximateMatch}; in findSimilarPrediction()
442 if (!bestMatch) { in findSimilarPrediction()
446 ALOGV("[%s] Adding %zx to approximate stacks", __func__, bestMatch->hash); in findSimilarPrediction()
448 mApproximateStacks.emplace_back(*bestMatch); in findSimilarPrediction()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java218 int bestMatch = Integer.MAX_VALUE; in getFont() local
222 if (match < bestMatch) { in getFont()
223 bestMatch = match; in getFont()
225 if (bestMatch == 0) { in getFont()
/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.java1187 int bestMatch = 0;
1193 if (r.match > bestMatch) bestMatch = r.match;
1201 if (otherProfileMatch > bestMatch) bestMatch = otherProfileMatch;
1209 pm.addUniquePreferredActivity(filter, bestMatch, set, intent.getComponent());
1221 .mResolverListController.setLastChosen(intent, filter, bestMatch);