Home
last modified time | relevance | path

Searched refs:calendarlib_ (Results 1 – 12 of 12) sorted by relevance

/external/libtextclassifier/native/utils/calendar/
Dcalendar_test.cc26 : calendarlib_(libtextclassifier3::CreateCalendarLibForTesting()) {} in CalendarTest()
29 std::unique_ptr<CalendarLib> calendarlib_; member in libtextclassifier3::__anon0f6eb6d40111::CalendarTest
37 bool result = calendarlib_->InterpretParseData( in TEST_F()
50 ASSERT_TRUE(calendarlib_->InterpretParseData( in TEST_F()
57 ASSERT_TRUE(calendarlib_->InterpretParseData( in TEST_F()
74 ASSERT_TRUE(calendarlib_->InterpretParseData( in TEST_F()
83 ASSERT_TRUE(calendarlib_->InterpretParseData( in TEST_F()
94 ASSERT_TRUE(calendarlib_->InterpretParseData( in TEST_F()
108 ASSERT_TRUE(calendarlib_->InterpretParseData( in TEST_F()
116 ASSERT_TRUE(calendarlib_->InterpretParseData( in TEST_F()
[all …]
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc82 calendarlib_.get()); in TEST_F()
127 GetTestModelPath(), unilib_.get(), calendarlib_.get()); in TEST_F()
133 GetTestModelPath(), unilib_.get(), calendarlib_.get()); in TEST_F()
150 GetTestModelPath(), unilib_.get(), calendarlib_.get()); in TEST_F()
164 GetModelWithVocabPath(), unilib_.get(), calendarlib_.get()); in TEST_F()
196 builder.GetSize(), unilib_.get(), calendarlib_.get()); in TEST_F()
213 builder.GetSize(), unilib_.get(), calendarlib_.get()); in TEST_F()
225 test_model.c_str(), test_model.size(), unilib_.get(), calendarlib_.get()); in TEST_F()
243 builder.GetSize(), unilib_.get(), calendarlib_.get()); in TEST_F()
279 builder.GetSize(), unilib_.get(), calendarlib_.get()); in TEST_F()
[all …]
Dannotator_test-include.h68 calendarlib_(CreateCalendarLibForTesting()) {} in AnnotatorTest()
71 std::unique_ptr<CalendarLib> calendarlib_; variable
Dannotator.h526 const CalendarLib* calendarlib_; variable
Dannotator.cc298 calendarlib_ = calendarlib; in ValidateAndInitialize()
425 datetime_grounder_ = std::make_unique<DatetimeGrounder>(calendarlib_); in ValidateAndInitialize()
433 model_->datetime_model(), unilib_, calendarlib_, decompressor.get()); in ValidateAndInitialize()
/external/libtextclassifier/native/annotator/datetime/
Ddatetime-grounder.cc214 : calendarlib_(*calendarlib) {} in DatetimeGrounder()
231 calendarlib_.GetGranularity(datetime_parsed_data), in Ground()
243 if (!calendarlib_.InterpretParseData( in Ground()
Ddatetime-grounder_test.cc42 calendarlib_ = CreateCalendarLibForTesting(); in SetUp()
43 datetime_grounder_.reset(new DatetimeGrounder(calendarlib_.get())); in SetUp()
101 std::unique_ptr<CalendarLib> calendarlib_; member in libtextclassifier3::DatetimeGrounderTest
Ddatetime-grounder.h45 const CalendarLib& calendarlib_;
Dregex-parser.cc47 : unilib_(*unilib), calendarlib_(*calendarlib) { in RegexDatetimeParser()
371 FillInterpretations(parse, calendarlib_.GetGranularity(parse), in ExtractDatetime()
389 if (!calendarlib_.InterpretParseData( in ExtractDatetime()
Dregex-parser.h108 const CalendarLib& calendarlib_; variable
Dgrammar-parser_test.cc48 calendarlib_ = CreateCalendarLibForTesting(); in SetUp()
51 datetime_grounder_ = std::make_unique<DatetimeGrounder>(calendarlib_.get()); in SetUp()
65 std::unique_ptr<CalendarLib> calendarlib_; member in libtextclassifier3::__anon24aadc530111::GrammarDatetimeParserTest
Dregex-parser_test.cc63 calendarlib_ = CreateCalendarLibForTesting(); in LoadModel()
66 unilib_.get(), calendarlib_.get()); in LoadModel()
82 std::unique_ptr<CalendarLib> calendarlib_; member in libtextclassifier3::__anonc4078d470111::RegexDatetimeParserTest
1291 std::unique_ptr<CalendarLib> calendarlib_; member in libtextclassifier3::__anonc4078d470111::ParserLocaleTest
1333 calendarlib_ = CreateCalendarLibForTesting(); in SetUp()
1335 RegexDatetimeParser::Instance(model_fb, unilib_.get(), calendarlib_.get(), in SetUp()