Searched refs:matchLevel (Results 1 - 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DBinaryDictionaryGetter.java146 public FileAndMatchLevel(final File file, final int matchLevel) { argument
148 mMatchLevel = matchLevel;
174 final int matchLevel = LocaleUtils.getMatchLevel(dirLocale, locale);
175 if (LocaleUtils.isMatch(matchLevel)) {
182 if (null == currentBestMatch || currentBestMatch.mMatchLevel < matchLevel) {
183 cacheFiles.put(category, new FileAndMatchLevel(wordList, matchLevel));
H A DPersonalDictionaryLookup.java427 final int matchLevel = LocaleUtils.getMatchLevel(dictLocale.toString(),
431 + "] and InputLocale [" + inputLocale + "] is " + matchLevel);
433 if (LocaleUtils.isMatch(matchLevel)) {
435 Log.d(mTag, "isValidWord() : MatchLevel " + matchLevel + " IS a match");
440 Log.d(mTag, "isValidWord() : MatchLevel " + matchLevel + " is NOT a match");
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DLocaleUtils.java145 public static String getMatchLevelSortedString(final int matchLevel) { argument
147 // Ideally this should use a number of digits equals to the 1og10 of the greater matchLevel
148 return String.format(Locale.ROOT, "%02d", MATCH_LEVEL_MAX - matchLevel);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DDictionaryProvider.java96 final int matchLevel) {
100 mMatchLevel = matchLevel;
391 final int matchLevel = LocaleUtils.getMatchLevel(wordListLocale, locale);
392 if (!LocaleUtils.isMatch(matchLevel)) {
413 || currentBestMatch.mMatchLevel < matchLevel) {
415 wordListRawChecksum, matchLevel));
95 WordListInfo(final String id, final String locale, final String rawChecksum, final int matchLevel) argument
H A DDictionarySettingsFragment.java322 final int matchLevel = LocaleUtils.getMatchLevel(systemLocaleString, localeString);
323 final String matchLevelString = LocaleUtils.getMatchLevelSortedString(matchLevel);

Completed in 1221 milliseconds