Home
last modified time | relevance | path

Searched refs:bestMatch (Results 1 – 9 of 9) 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/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.cpp148 int bestMatch = computeMatch(bestFont->style(), style); in getClosestMatch() local
152 if (i == 0 || match < bestMatch) { in getClosestMatch()
154 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.java1183 int bestMatch = 0;
1189 if (r.match > bestMatch) bestMatch = r.match;
1197 if (otherProfileMatch > bestMatch) bestMatch = otherProfileMatch;
1205 pm.addPreferredActivity(filter, bestMatch, set, intent.getComponent());
1236 .mResolverListController.setLastChosen(intent, filter, bestMatch);