Home
last modified time | relevance | path

Searched refs:LocaleList (Results 1 – 22 of 22) sorted by relevance

/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/testing/
DSetDefaultLocalesRule.java19 import android.os.LocaleList;
24 private LocaleList originalValue;
29 originalValue = LocaleList.getDefault(); in before()
32 public void set(LocaleList newValue) { in set()
33 LocaleList.setDefault(newValue); in set()
39 LocaleList.setDefault(originalValue); in after()
/external/libtextclassifier/native/utils/i18n/
Dlocale-list_test.cc28 LocaleList locale_list = LocaleList::ParseFrom("en-US,zh-CN,ar,en"); in TEST()
35 LocaleList locale_list = LocaleList::ParseFrom(""); in TEST()
42 LocaleList locale_list = LocaleList::ParseFrom("en,invalid"); in TEST()
Dlocale-list.cc23 LocaleList LocaleList::ParseFrom(const std::string& locale_tags) { in ParseFrom()
41 return LocaleList(locales, split_locales, reference_locale); in ParseFrom()
Dlocale-list.h28 class LocaleList {
35 static LocaleList ParseFrom(const std::string& locale_tags);
42 LocaleList(const std::vector<Locale>& locales, in LocaleList() function
/external/libchrome/base/android/javatests/src/org/chromium/base/
DLocaleUtilsTest.java9 import android.os.LocaleList;
161 LocaleList localeList = new LocaleList(locale1, locale2); in testToLanguageTags()
167 localeList = new LocaleList(locale1, locale2); in testToLanguageTags()
173 localeList = new LocaleList(locale1, locale2); in testToLanguageTags()
179 localeList = new LocaleList(locale1, locale2); in testToLanguageTags()
184 localeList = new LocaleList(locale1); in testToLanguageTags()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DModelFileManagerTest.java22 import android.os.LocaleList;
156 modelFileManager.findBestModelFile(MODEL_TYPE, new LocaleList(DEFAULT_LOCALE)); in findBestModel_languageDependentModelIsPreferred()
184 modelFileManager.findBestModelFile(MODEL_TYPE, LocaleList.forLanguageTags("zh-hk")); in findBestModel_noMatchedLanguageModel()
211 modelFileManager.findBestModelFile(MODEL_TYPE, LocaleList.forLanguageTags("fr")); in findBestModel_languageIsMoreImportantThanVersion()
238 modelFileManager.findBestModelFile(MODEL_TYPE, LocaleList.forLanguageTags("ja")); in findBestModel_preferMatchedLocaleModel()
255 setDefaultLocalesRule.set(new LocaleList(Locale.forLanguageTag("ja"))); in deleteUnusedModelFiles_olderModelDeleted()
287 setDefaultLocalesRule.set(new LocaleList(Locale.forLanguageTag("ja"))); in deleteUnusedModelFiles_languageIndependentOlderModelDeleted()
311 setDefaultLocalesRule.set(new LocaleList(Locale.forLanguageTag("ja"))); in deleteUnusedModelFiles_modelOnlySupportingLocalesNotInListDeleted()
336 new LocaleList(Locale.forLanguageTag("ja"), Locale.forLanguageTag("en"))); in deleteUnusedModelFiles_multiLocalesInLocaleList()
361 setDefaultLocalesRule.set(new LocaleList(Locale.forLanguageTag("ja"))); in deleteUnusedModelFiles_readOnlyModelsUntouched()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/
DLPaint.java6 import android.os.LocaleList;
35 public void setTextLocales(@NonNull LocaleList locales) { in setTextLocales()
/external/libtextclassifier/native/annotator/datetime/
Dparser.h44 const std::string& reference_timezone, const LocaleList& locale_list,
51 const std::string& reference_timezone, const LocaleList& locale_list,
Dgrammar-parser.h48 const std::string& reference_timezone, const LocaleList& locale_list,
55 const std::string& reference_timezone, const LocaleList& locale_list,
Dregex-parser.h54 const std::string& reference_timezone, const LocaleList& locale_list,
61 const std::string& reference_timezone, const LocaleList& locale_list,
Dgrammar-parser.cc44 const std::string& reference_timezone, const LocaleList& locale_list, in Parse()
54 const std::string& reference_timezone, const LocaleList& locale_list, in Parse()
Dregex-parser.cc121 const std::string& reference_timezone, const LocaleList& locale_list, in Parse()
174 const std::string& reference_timezone, const LocaleList& locale_list, in Parse()
Dregex-parser_test.cc1344 /*reference_timezone=*/"", LocaleList::ParseFrom(locales), in HasResult()
/external/libtextclassifier/java/src/com/android/textclassifier/common/
DModelFileManager.java22 import android.os.LocaleList;
330 @ModelTypeDef String modelType, @Nullable LocaleList localePreferences) { in findBestModelFile()
333 ? LocaleList.getDefault().toLanguageTags() in findBestModelFile()
358 LocaleList localeList = LocaleList.getDefault(); in deleteUnusedModelFiles()
363 ModelFile bestModel = findBestModelFile(modelType, new LocaleList(localeList.get(i))); in deleteUnusedModelFiles()
444 public final LocaleList supportedLocales;
494 ? LocaleList.getEmptyLocaleList() in ModelFile()
495 : LocaleList.forLanguageTags(supportedLocaleTags); in ModelFile()
/external/libchrome/base/android/java/src/org/chromium/base/
DLocaleUtils.java9 import android.os.LocaleList;
165 public static String toLanguageTags(LocaleList localeList) { in toLanguageTags()
191 return toLanguageTags(LocaleList.getDefault()); in getDefaultLocaleListString()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/base/
DLocaleCompatTest.java21 import android.os.LocaleList;
59 .setLocales(LocaleList.forLanguageTags("zh-TW")); in getResourceLanguageTags_minApi24()
/external/libtextclassifier/java/src/com/android/textclassifier/
DTextClassifierImpl.java28 import android.os.LocaleList;
180 .setUserFamiliarLanguageTags(LocaleList.getDefault().toLanguageTags()) in suggestSelection()
228 .setUserFamiliarLanguageTags(LocaleList.getDefault().toLanguageTags()) in classifyText()
397 getAnnotatorImpl(LocaleList.getDefault())); in suggestConversationActions()
463 private AnnotatorModel getAnnotatorImpl(LocaleList localeList) throws IOException { in getAnnotatorImpl()
465 localeList = localeList == null ? LocaleList.getDefault() : localeList; in getAnnotatorImpl()
509 ModelType.ACTIONS_SUGGESTIONS, LocaleList.getDefault()); in getActionsImpl()
536 private static String concatenateLocales(@Nullable LocaleList locales) { in concatenateLocales()
688 return LocaleList.getDefault().toLanguageTags();
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DTextClassifierImplTest.java31 import android.os.LocaleList;
65 private static final LocaleList LOCALES = LocaleList.forLanguageTags("en-US");
233 LocaleList originalLocales = LocaleList.getDefault(); in testClassifyText_foreignText()
234 LocaleList.setDefault(LocaleList.forLanguageTags("en")); in testClassifyText_foreignText()
257 LocaleList.setDefault(originalLocales); in testClassifyText_foreignText()
/external/libtextclassifier/native/annotator/datetime/testing/
Dbase-parser-test.cc38 text, 0, timezone, LocaleList::ParseFrom(/*locale_tags=*/""), in HasNoResult()
71 text, 0, timezone, LocaleList::ParseFrom(locales), in ParsesCorrectly()
/external/libtextclassifier/native/utils/grammar/utils/
Dlocale-shard-map.cc33 for (const Locale& locale : LocaleList::ParseFrom(locale_tags).GetLocales()) { in LocaleTagsToLocaleList()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DConfigurationV25.java10 import android.os.LocaleList;
343 LocaleList localeList = config.getLocales(); in getLocales()
/external/libtextclassifier/native/annotator/
Dannotator.cc1685 LocaleList locale_list = LocaleList::ParseFrom(options.locales); in DatetimeClassifyText()
3145 LocaleList locale_list = LocaleList::ParseFrom(locales); in DatetimeChunk()