Home
last modified time | relevance | path

Searched refs:GetLocales (Results 1 – 7 of 7) sorted by relevance

/external/libtextclassifier/native/utils/grammar/utils/
Dlocale-shard-map_test.cc36 EXPECT_THAT(locale_shard_map.GetLocales(i), SizeIs(1)); in TEST()
38 EXPECT_EQ(locale_shard_map.GetLocales(0)[0], Locale::FromBCP47("ar-EG")); in TEST()
39 EXPECT_EQ(locale_shard_map.GetLocales(8)[0], Locale::FromBCP47("fr-FR")); in TEST()
40 EXPECT_EQ(locale_shard_map.GetLocales(16)[0], Locale::FromBCP47("mr-IN")); in TEST()
41 EXPECT_EQ(locale_shard_map.GetLocales(24)[0], Locale::FromBCP47("te-IN")); in TEST()
42 EXPECT_EQ(locale_shard_map.GetLocales(30)[0], Locale::FromBCP47("zh-TW")); in TEST()
48 EXPECT_THAT(locale_shard_map.GetLocales(0), SizeIs(1)); in TEST()
55 EXPECT_EQ(locale_shard_map.GetLocales(0)[0], Locale::FromBCP47("ar-EG")); in TEST()
56 EXPECT_EQ(locale_shard_map.GetLocales(0)[1], Locale::FromBCP47("bn-BD")); in TEST()
57 EXPECT_EQ(locale_shard_map.GetLocales(0)[2], Locale::FromBCP47("cs-CZ")); in TEST()
[all …]
Dlocale-shard-map.cc33 for (const Locale& locale : LocaleList::ParseFrom(locale_tags).GetLocales()) { in LocaleTagsToLocaleList()
54 std::vector<Locale> LocaleShardMap::GetLocales(const int shard) const { in GetLocales() function in libtextclassifier3::grammar::LocaleShardMap
Dlocale-shard-map.h39 std::vector<Locale> GetLocales(const int shard) const;
Dir.cc452 for (const Locale& shard_locale : locale_shard_map_.GetLocales(i)) { in Serialize()
/external/libtextclassifier/native/utils/i18n/
Dlocale-list_test.cc29 EXPECT_THAT(locale_list.GetLocales(), SizeIs(4)); in TEST()
36 EXPECT_THAT(locale_list.GetLocales(), SizeIs(0)); in TEST()
43 EXPECT_THAT(locale_list.GetLocales(), SizeIs(2)); in TEST()
46 EXPECT_TRUE(locale_list.GetLocales()[0].IsValid()); in TEST()
47 EXPECT_FALSE(locale_list.GetLocales()[1].IsValid()); in TEST()
Dlocale-list.h37 std::vector<Locale> GetLocales() const { return locales_; } in GetLocales() function
/external/libtextclassifier/native/annotator/datetime/
Dgrammar-parser.cc59 std::vector<Locale> locales = locale_list.GetLocales(); in Parse()