Home
last modified time | relevance | path

Searched refs:ungrounded_datetime (Results 1 – 4 of 4) sorted by relevance

/external/libtextclassifier/native/annotator/datetime/
Ddatetime-grounder_test.cc50 grammar::datetime::UngroundedDatetimeT ungrounded_datetime; in BuildAbsoluteDatetime() local
51 ungrounded_datetime.absolute_datetime.reset(new AbsoluteDateTimeT); in BuildAbsoluteDatetime()
54 ungrounded_datetime.absolute_datetime->year = year; in BuildAbsoluteDatetime()
55 ungrounded_datetime.absolute_datetime->month = month; in BuildAbsoluteDatetime()
56 ungrounded_datetime.absolute_datetime->day = day; in BuildAbsoluteDatetime()
57 ungrounded_datetime.absolute_datetime->hour = hour; in BuildAbsoluteDatetime()
58 ungrounded_datetime.absolute_datetime->minute = minute; in BuildAbsoluteDatetime()
59 ungrounded_datetime.absolute_datetime->second = second; in BuildAbsoluteDatetime()
60 ungrounded_datetime.absolute_datetime->meridiem = meridiem; in BuildAbsoluteDatetime()
63 PackFlatbuffer<UngroundedDatetime>(&ungrounded_datetime)); in BuildAbsoluteDatetime()
[all …]
Ddatetime-grounder.cc219 const grammar::datetime::UngroundedDatetime* ungrounded_datetime) const { in Ground()
221 if (ungrounded_datetime->absolute_datetime()) { in Ground()
222 FillAbsoluteDateTimeComponents(ungrounded_datetime->absolute_datetime(), in Ground()
224 } else if (ungrounded_datetime->relative_datetime()) { in Ground()
227 ungrounded_datetime->relative_datetime())); in Ground()
264 const UngroundedDatetime* ungrounded_datetime) const { in IsValidUngroundedDatetime()
265 if (ungrounded_datetime->absolute_datetime()) { in IsValidUngroundedDatetime()
266 return IsValidDatetime(ungrounded_datetime->absolute_datetime()); in IsValidUngroundedDatetime()
267 } else if (ungrounded_datetime->relative_datetime()) { in IsValidUngroundedDatetime()
268 return IsValidDatetime(ungrounded_datetime->relative_datetime()); in IsValidUngroundedDatetime()
Dgrammar-parser.cc77 const UngroundedDatetime* ungrounded_datetime = in Parse() local
79 if (datetime_grounder_.IsValidUngroundedDatetime(ungrounded_datetime)) { in Parse()
91 const UngroundedDatetime* ungrounded_datetime = in Parse() local
93 if ((ungrounded_datetime->annotation_usecases() & in Parse()
100 locale_list.GetReferenceLocale(), ungrounded_datetime); in Parse()
Ddatetime-grounder.h39 const grammar::datetime::UngroundedDatetime* ungrounded_datetime) const;
42 const grammar::datetime::UngroundedDatetime* ungrounded_datetime) const;