Home
last modified time | relevance | path

Searched refs:locale_shard_map (Results 1 – 14 of 14) sorted by relevance

/external/libtextclassifier/native/utils/grammar/utils/
Dlocale-shard-map_test.cc28 LocaleShardMap locale_shard_map = LocaleShardMap::CreateLocaleShardMap( in TEST() local
34 EXPECT_EQ(locale_shard_map.GetNumberOfShards(), 31); in TEST()
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()
46 LocaleShardMap locale_shard_map = LocaleShardMap::CreateLocaleShardMap({"*"}); in TEST() local
47 EXPECT_EQ(locale_shard_map.GetNumberOfShards(), 1); in TEST()
[all …]
Drules_test.cc31 grammar::LocaleShardMap locale_shard_map = in TEST() local
33 Rules rules(locale_shard_map); in TEST()
54 grammar::LocaleShardMap locale_shard_map = in TEST() local
56 Rules rules(locale_shard_map); in TEST()
80 grammar::LocaleShardMap locale_shard_map = in TEST() local
82 Rules rules(locale_shard_map); in TEST()
98 grammar::LocaleShardMap locale_shard_map = in TEST() local
100 Rules rules(locale_shard_map); in TEST()
120 grammar::LocaleShardMap locale_shard_map = in TEST() local
122 Rules rules(locale_shard_map); in TEST()
[all …]
Dir_test.cc34 grammar::LocaleShardMap locale_shard_map = in TEST() local
36 Ir ir(locale_shard_map); in TEST()
77 grammar::LocaleShardMap locale_shard_map = in TEST() local
79 Ir ir(locale_shard_map); in TEST()
104 grammar::LocaleShardMap locale_shard_map = in TEST() local
106 Ir ir(locale_shard_map); in TEST()
125 grammar::LocaleShardMap locale_shard_map = in TEST() local
127 Ir ir(locale_shard_map); in TEST()
167 grammar::LocaleShardMap locale_shard_map = in TEST() local
169 Ir ir(locale_shard_map); in TEST()
[all …]
Dlocale-shard-map.cc47 LocaleShardMap locale_shard_map; in CreateLocaleShardMap() local
49 locale_shard_map.AddLocalTags(locale_tag); in CreateLocaleShardMap()
51 return locale_shard_map; in CreateLocaleShardMap()
Drules.h58 explicit Rules(const LocaleShardMap& locale_shard_map) in Rules() argument
59 : locale_shard_map_(locale_shard_map) {} in Rules()
Dir.h100 explicit Ir(const LocaleShardMap& locale_shard_map) in Ir() argument
102 locale_shard_map_(locale_shard_map), in Ir()
/external/libtextclassifier/native/utils/grammar/parsing/
Dparser_test.cc44 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
46 Rules rules(locale_shard_map); in TEST_F()
63 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
65 Rules rules(locale_shard_map); in TEST_F()
87 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
89 Rules rules(locale_shard_map); in TEST_F()
108 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
110 Rules rules(locale_shard_map); in TEST_F()
129 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
131 Rules rules(locale_shard_map); in TEST_F()
[all …]
Dmatcher_test.cc126 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
128 Rules rules(locale_shard_map); in TEST_F()
151 grammar::LocaleShardMap locale_shard_map = in CreateTestGrammar() local
153 Rules rules(locale_shard_map); in CreateTestGrammar()
267 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
269 Rules rules(locale_shard_map); in TEST_F()
302 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
304 Rules rules(locale_shard_map); in TEST_F()
342 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
344 Rules rules(locale_shard_map); in TEST_F()
[all …]
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator_test.cc49 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
51 grammar::Rules rules(locale_shard_map); in TEST_F()
85 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
87 grammar::Rules rules(locale_shard_map); in TEST_F()
128 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
130 grammar::Rules rules(locale_shard_map); in TEST_F()
167 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
169 grammar::Rules rules(locale_shard_map); in TEST_F()
206 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
208 grammar::Rules rules(locale_shard_map); in TEST_F()
[all …]
/external/libtextclassifier/native/actions/
Dgrammar-actions_test.cc145 LocaleShardMap locale_shard_map = LocaleShardMap::CreateLocaleShardMap({""}); in TEST_F() local
146 grammar::Rules rules(locale_shard_map); in TEST_F()
181 LocaleShardMap locale_shard_map = LocaleShardMap::CreateLocaleShardMap({""}); in TEST_F() local
182 grammar::Rules rules(locale_shard_map); in TEST_F()
239 LocaleShardMap locale_shard_map = LocaleShardMap::CreateLocaleShardMap({""}); in TEST_F() local
240 grammar::Rules rules(locale_shard_map); in TEST_F()
279 LocaleShardMap locale_shard_map = in TEST_F() local
281 grammar::Rules rules(locale_shard_map); in TEST_F()
344 LocaleShardMap locale_shard_map = LocaleShardMap::CreateLocaleShardMap({""}); in TEST_F() local
345 grammar::Rules rules(locale_shard_map); in TEST_F()
[all …]
Dactions-suggestions_test.cc1075 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
1077 grammar::Rules rules(locale_shard_map); in TEST_F()
1137 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
1139 grammar::Rules rules(locale_shard_map); in TEST_F()
/external/libtextclassifier/native/utils/grammar/semantics/
Dcomposer_test.cc41 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
43 Rules rules(locale_shard_map); in TEST_F()
114 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
116 Rules rules(locale_shard_map); in TEST_F()
/external/libtextclassifier/native/utils/grammar/
Danalyzer_test.cc41 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
43 Rules rules(locale_shard_map); in TEST_F()
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc1842 grammar::LocaleShardMap locale_shard_map = in TEST_F() local
1844 grammar::Rules rules(locale_shard_map); in TEST_F()