/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/testing/ |
D | SetDefaultLocalesRule.java | 19 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/ |
D | locale-list_test.cc | 28 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()
|
D | locale-list.cc | 23 LocaleList LocaleList::ParseFrom(const std::string& locale_tags) { in ParseFrom() 41 return LocaleList(locales, split_locales, reference_locale); in ParseFrom()
|
D | locale-list.h | 28 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/ |
D | LocaleUtilsTest.java | 9 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/ |
D | ModelFileManagerTest.java | 22 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/ |
D | LPaint.java | 6 import android.os.LocaleList; 35 public void setTextLocales(@NonNull LocaleList locales) { in setTextLocales()
|
/external/libtextclassifier/native/annotator/datetime/ |
D | parser.h | 44 const std::string& reference_timezone, const LocaleList& locale_list, 51 const std::string& reference_timezone, const LocaleList& locale_list,
|
D | grammar-parser.h | 48 const std::string& reference_timezone, const LocaleList& locale_list, 55 const std::string& reference_timezone, const LocaleList& locale_list,
|
D | regex-parser.h | 54 const std::string& reference_timezone, const LocaleList& locale_list, 61 const std::string& reference_timezone, const LocaleList& locale_list,
|
D | grammar-parser.cc | 44 const std::string& reference_timezone, const LocaleList& locale_list, in Parse() 54 const std::string& reference_timezone, const LocaleList& locale_list, in Parse()
|
D | regex-parser.cc | 121 const std::string& reference_timezone, const LocaleList& locale_list, in Parse() 174 const std::string& reference_timezone, const LocaleList& locale_list, in Parse()
|
D | regex-parser_test.cc | 1344 /*reference_timezone=*/"", LocaleList::ParseFrom(locales), in HasResult()
|
/external/libtextclassifier/java/src/com/android/textclassifier/common/ |
D | ModelFileManager.java | 22 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/ |
D | LocaleUtils.java | 9 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/ |
D | LocaleCompatTest.java | 21 import android.os.LocaleList; 59 .setLocales(LocaleList.forLanguageTags("zh-TW")); in getResourceLanguageTags_minApi24()
|
/external/libtextclassifier/java/src/com/android/textclassifier/ |
D | TextClassifierImpl.java | 28 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/ |
D | TextClassifierImplTest.java | 31 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/ |
D | base-parser-test.cc | 38 text, 0, timezone, LocaleList::ParseFrom(/*locale_tags=*/""), in HasNoResult() 71 text, 0, timezone, LocaleList::ParseFrom(locales), in ParsesCorrectly()
|
/external/libtextclassifier/native/utils/grammar/utils/ |
D | locale-shard-map.cc | 33 for (const Locale& locale : LocaleList::ParseFrom(locale_tags).GetLocales()) { in LocaleTagsToLocaleList()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
D | ConfigurationV25.java | 10 import android.os.LocaleList; 343 LocaleList localeList = config.getLocales(); in getLocales()
|
/external/libtextclassifier/native/annotator/ |
D | annotator.cc | 1685 LocaleList locale_list = LocaleList::ParseFrom(options.locales); in DatetimeClassifyText() 3145 LocaleList locale_list = LocaleList::ParseFrom(locales); in DatetimeChunk()
|