/external/libtextclassifier/native/utils/grammar/utils/ |
D | locale-shard-map_test.cc | 28 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 …]
|
D | rules_test.cc | 31 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 …]
|
D | ir_test.cc | 34 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 …]
|
D | locale-shard-map.cc | 47 LocaleShardMap locale_shard_map; in CreateLocaleShardMap() local 49 locale_shard_map.AddLocalTags(locale_tag); in CreateLocaleShardMap() 51 return locale_shard_map; in CreateLocaleShardMap()
|
D | rules.h | 58 explicit Rules(const LocaleShardMap& locale_shard_map) in Rules() argument 59 : locale_shard_map_(locale_shard_map) {} in Rules()
|
D | ir.h | 100 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/ |
D | parser_test.cc | 44 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 …]
|
D | matcher_test.cc | 126 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/ |
D | grammar-annotator_test.cc | 49 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/ |
D | grammar-actions_test.cc | 145 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 …]
|
D | actions-suggestions_test.cc | 1075 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/ |
D | composer_test.cc | 41 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/ |
D | analyzer_test.cc | 41 grammar::LocaleShardMap locale_shard_map = in TEST_F() local 43 Rules rules(locale_shard_map); in TEST_F()
|
/external/libtextclassifier/native/annotator/ |
D | annotator_test-include.cc | 1842 grammar::LocaleShardMap locale_shard_map = in TEST_F() local 1844 grammar::Rules rules(locale_shard_map); in TEST_F()
|