Home
last modified time | relevance | path

Searched refs:bestIndex (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/os/
DLocaleList.java395 int bestIndex = Integer.MAX_VALUE; in computeFirstMatchIndex() local
401 } else if (idx < bestIndex) { in computeFirstMatchIndex()
402 bestIndex = idx; in computeFirstMatchIndex()
412 } else if (idx < bestIndex) { in computeFirstMatchIndex()
413 bestIndex = idx; in computeFirstMatchIndex()
416 if (bestIndex == Integer.MAX_VALUE) { in computeFirstMatchIndex()
420 return bestIndex; in computeFirstMatchIndex()
426 int bestIndex = computeFirstMatchIndex(supportedLocales, assumeEnglishIsSupported); in computeFirstMatch() local
427 return bestIndex == -1 ? null : mList[bestIndex]; in computeFirstMatch()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp309 int bestIndex = 0; in getClosestMatch() local
310 Font* bestFont = mFonts[bestIndex].get(); in getClosestMatch()
317 bestIndex = i; in getClosestMatch()
321 return FakedFont{mFonts[bestIndex], computeFakery(style, bestFont->style())}; in getClosestMatch()
DFontCollection.cpp865 uint8_t bestIndex = 0; in getBestFont() local
876 bestIndex = run.familyMatch[i]; in getBestFont()
881 bestIndex = run.familyMatch[0]; in getBestFont()
883 return getFamilyAt(bestIndex)->getClosestMatch(style); in getBestFont()
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp302 int bestIndex = 0; in chooseModifier() local
325 bestIndex = i; in chooseModifier()
328 etc1_uint32 lowMask = (((bestIndex >> 1) << 16) | (bestIndex & 1)) in chooseModifier()