Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DLocaleList.java365 int bestIndex = Integer.MAX_VALUE; in computeFirstMatchIndex() local
371 } else if (idx < bestIndex) { in computeFirstMatchIndex()
372 bestIndex = idx; in computeFirstMatchIndex()
382 } else if (idx < bestIndex) { in computeFirstMatchIndex()
383 bestIndex = idx; in computeFirstMatchIndex()
386 if (bestIndex == Integer.MAX_VALUE) { in computeFirstMatchIndex()
390 return bestIndex; in computeFirstMatchIndex()
396 int bestIndex = computeFirstMatchIndex(supportedLocales, assumeEnglishIsSupported); in computeFirstMatch() local
397 return bestIndex == -1 ? null : mList[bestIndex]; in computeFirstMatch()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp154 int bestIndex = 0; in getClosestMatch() local
155 Font* bestFont = mFonts[bestIndex].get(); in getClosestMatch()
162 bestIndex = i; in getClosestMatch()
166 return FakedFont{mFonts[bestIndex], computeFakery(style, bestFont->style())}; in getClosestMatch()
DFontCollection.cpp629 uint8_t bestIndex = 0; in getBestFont() local
639 bestIndex = run.familyMatch[i]; in getBestFont()
644 bestIndex = run.familyMatch[0]; in getBestFont()
646 return mFamilies[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()