Searched refs:GetLocales (Results 1 – 7 of 7) sorted by relevance
/external/libtextclassifier/native/utils/grammar/utils/ |
D | locale-shard-map_test.cc | 36 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 …]
|
D | locale-shard-map.cc | 33 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
|
D | locale-shard-map.h | 39 std::vector<Locale> GetLocales(const int shard) const;
|
D | ir.cc | 452 for (const Locale& shard_locale : locale_shard_map_.GetLocales(i)) { in Serialize()
|
/external/libtextclassifier/native/utils/i18n/ |
D | locale-list_test.cc | 29 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()
|
D | locale-list.h | 37 std::vector<Locale> GetLocales() const { return locales_; } in GetLocales() function
|
/external/libtextclassifier/native/annotator/datetime/ |
D | grammar-parser.cc | 59 std::vector<Locale> locales = locale_list.GetLocales(); in Parse()
|