Home
last modified time | relevance | path

Searched refs:bestMatch (Results 1 – 11 of 11) 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/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java113 int bestMatch = AuthMatch.NONE; in matchNAIRealm() local
116 if (match > bestMatch) { in matchNAIRealm()
117 bestMatch = match; in matchNAIRealm()
118 if (bestMatch == AuthMatch.EXACT) { in matchNAIRealm()
123 return bestMatch; in matchNAIRealm()
DPasspointManager.java734 Pair<PasspointProvider, PasspointMatch> bestMatch = null; in matchProvider() local
737 bestMatch = match; in matchProvider()
740 if (match.second == PasspointMatch.RoamingProvider && bestMatch == null) { in matchProvider()
741 bestMatch = match; in matchProvider()
744 if (bestMatch != null) { in matchProvider()
746 bestMatch.first.getConfig().getHomeSp().getFqdn(), in matchProvider()
747 bestMatch.second == PasspointMatch.HomeProvider ? "Home Provider" in matchProvider()
754 return bestMatch; in matchProvider()
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java131 int bestMatch = Integer.MAX_VALUE;
135 if (match < bestMatch) {
136 bestMatch = match;
138 if (bestMatch == 0) {
/frameworks/minikin/libs/minikin/
DFontFamily.cpp148 int bestMatch = computeMatch(bestFont->style(), style); in getClosestMatch() local
152 if (i == 0 || match < bestMatch) { in getClosestMatch()
154 bestMatch = match; in getClosestMatch()
/frameworks/layoutlib/bridge/src/android/graphics/
DFontFamily_Delegate.java224 int bestMatch = Integer.MAX_VALUE; in getFont() local
228 if (match < bestMatch) { in getFont()
229 bestMatch = match; in getFont()
231 if (bestMatch == 0) { in getFont()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMessagingLayoutTransformState.java321 MessagingGroup bestMatch = null; in findPairs() local
328 bestMatch = otherGroup; in findPairs()
332 if (bestMatch != null) { in findPairs()
333 mGroupMap.put(ownGroup, bestMatch); in findPairs()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfile.cpp182 int bestMatch = 0; in checkCompatibleChannelMask() local
253 if (match > bestMatch) { in checkCompatibleChannelMask()
254 bestMatch = match; in checkCompatibleChannelMask()
259 return bestMatch > 0 ? NO_ERROR : BAD_VALUE; in checkCompatibleChannelMask()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMccTable.java318 Locale bestMatch = lookupFallback(target, languageMatches); in getLocaleForLanguageCountry() local
319 if (bestMatch != null) { in getLocaleForLanguageCountry()
321 + bestMatch.toLanguageTag()); in getLocaleForLanguageCountry()
322 return bestMatch; in getLocaleForLanguageCountry()
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java1422 TrieNode bestMatch = null; in longestMatch() local
1429 bestMatch = root; in longestMatch()
1431 bestMatch = root; in longestMatch()
1435 return bestMatch; in longestMatch()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java1063 int bestMatch = 0;
1068 if (r.match > bestMatch) bestMatch = r.match;
1074 if (otherProfileMatch > bestMatch) bestMatch = otherProfileMatch;
1082 pm.addPreferredActivity(filter, bestMatch, set, intent.getComponent());
1112 mAdapter.mResolverListController.setLastChosen(intent, filter, bestMatch);