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/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/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/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.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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointManager.java752 Pair<PasspointProvider, PasspointMatch> bestMatch = null; in matchProvider() local
755 bestMatch = match; in matchProvider()
758 if (match.second == PasspointMatch.RoamingProvider && bestMatch == null) { in matchProvider()
759 bestMatch = match; in matchProvider()
762 if (bestMatch != null) { in matchProvider()
764 bestMatch.first.getConfig().getHomeSp().getFqdn(), in matchProvider()
765 bestMatch.second == PasspointMatch.HomeProvider ? "Home Provider" in matchProvider()
772 return bestMatch; in matchProvider()
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java1424 TrieNode bestMatch = null; in longestMatch() local
1431 bestMatch = root; in longestMatch()
1433 bestMatch = root; in longestMatch()
1437 return bestMatch; in longestMatch()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java1078 int bestMatch = 0;
1083 if (r.match > bestMatch) bestMatch = r.match;
1089 if (otherProfileMatch > bestMatch) bestMatch = otherProfileMatch;
1097 pm.addPreferredActivity(filter, bestMatch, set, intent.getComponent());
1127 mAdapter.mResolverListController.setLastChosen(intent, filter, bestMatch);