Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/
Dtypes.cc54 if (relative_qualifier == RelativeQualifier::UNSPECIFIED) { in ShouldRoundToGranularity()
57 if (relative_qualifier == RelativeQualifier::NEXT || in ShouldRoundToGranularity()
58 relative_qualifier == RelativeQualifier::TOMORROW || in ShouldRoundToGranularity()
59 relative_qualifier == RelativeQualifier::YESTERDAY || in ShouldRoundToGranularity()
60 relative_qualifier == RelativeQualifier::LAST || in ShouldRoundToGranularity()
61 relative_qualifier == RelativeQualifier::THIS || in ShouldRoundToGranularity()
62 relative_qualifier == RelativeQualifier::NOW) { in ShouldRoundToGranularity()
111 const DatetimeComponent::RelativeQualifier& relative_qualifier) { in RelativeQualifierToString()
113 case DatetimeComponent::RelativeQualifier::UNSPECIFIED: in RelativeQualifierToString()
115 case DatetimeComponent::RelativeQualifier::NEXT: in RelativeQualifierToString()
[all …]
Dtypes.h301 enum class RelativeQualifier { enum
322 RelativeQualifier relative_qualifier = RelativeQualifier::UNSPECIFIED;
332 RelativeQualifier arg_relative_qualifier, in DatetimeComponent()
748 const DatetimeComponent::RelativeQualifier& relative_value);
768 DatetimeComponent::RelativeQualifier* relative_value) const;
Dflatbuffer-utils.cc84 DatetimeComponent::RelativeQualifier::UNSPECIFIED) { in CreateDatetimeSerializedEntityData()
/external/libtextclassifier/native/annotator/datetime/
Ddatetime-grounder.cc86 StatusOr<DatetimeComponent::RelativeQualifier> ToRelativeQualifier( in ToRelativeQualifier()
90 return DatetimeComponent::RelativeQualifier::THIS; in ToRelativeQualifier()
92 return DatetimeComponent::RelativeQualifier::LAST; in ToRelativeQualifier()
94 return DatetimeComponent::RelativeQualifier::NEXT; in ToRelativeQualifier()
96 return DatetimeComponent::RelativeQualifier::NOW; in ToRelativeQualifier()
98 return DatetimeComponent::RelativeQualifier::TOMORROW; in ToRelativeQualifier()
100 return DatetimeComponent::RelativeQualifier::YESTERDAY; in ToRelativeQualifier()
102 return DatetimeComponent::RelativeQualifier::PAST; in ToRelativeQualifier()
104 return DatetimeComponent::RelativeQualifier::FUTURE; in ToRelativeQualifier()
106 return DatetimeComponent::RelativeQualifier::UNSPECIFIED; in ToRelativeQualifier()
[all …]
Dextractor.cc37 DatetimeComponent::RelativeQualifier relative_qualifier = in Extract()
38 DatetimeComponent::RelativeQualifier::UNSPECIFIED; in Extract()
142 DatetimeComponent::RelativeQualifier::TOMORROW || in Extract()
143 relative_qualifier == DatetimeComponent::RelativeQualifier::NOW || in Extract()
145 DatetimeComponent::RelativeQualifier::YESTERDAY) { in Extract()
193 if (relative_qualifier != DatetimeComponent::RelativeQualifier::UNSPECIFIED) { in Extract()
470 DatetimeComponent::RelativeQualifier* parsed_relative_value) const { in ParseRelativeValue()
474 DatetimeComponent::RelativeQualifier::NOW}, in ParseRelativeValue()
476 DatetimeComponent::RelativeQualifier::YESTERDAY}, in ParseRelativeValue()
478 DatetimeComponent::RelativeQualifier::TOMORROW}, in ParseRelativeValue()
[all …]
Dutils.cc29 DatetimeComponent::RelativeQualifier relative_value; in FillInterpretations()
32 if (relative_value == DatetimeComponent::RelativeQualifier::UNSPECIFIED) { in FillInterpretations()
35 DatetimeComponent::RelativeQualifier::THIS); in FillInterpretations()
Dregex-parser_test.cc432 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
439 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
448 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
455 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
465 DatetimeComponent::RelativeQualifier::TOMORROW, 1) in TEST_F()
472 DatetimeComponent::RelativeQualifier::TOMORROW, 1) in TEST_F()
480 DatetimeComponent::RelativeQualifier::TOMORROW, 1) in TEST_F()
488 DatetimeComponent::RelativeQualifier::THIS, 0) in TEST_F()
497 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
505 DatetimeComponent::RelativeQualifier::TOMORROW, 1) in TEST_F()
[all …]
Dgrammar-parser_test.cc367 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
374 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
383 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
390 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
400 DatetimeComponent::RelativeQualifier::TOMORROW, 1) in TEST_F()
407 DatetimeComponent::RelativeQualifier::TOMORROW, 1) in TEST_F()
415 DatetimeComponent::RelativeQualifier::TOMORROW, 1) in TEST_F()
424 DatetimeComponent::RelativeQualifier::NOW, 0) in TEST_F()
511 DatetimeComponent::RelativeQualifier::FUTURE, 3) in TEST_F()
519 DatetimeComponent::RelativeQualifier::THIS, 0) in TEST_F()
[all …]
Dextractor.h92 DatetimeComponent::RelativeQualifier* parsed_relative_value) const;
Ddatetime-grounder_test.cc192 DatetimeComponent::RelativeQualifier::NEXT); in TEST_F()
/external/libtextclassifier/native/utils/calendar/
Dcalendar-common.h203 case DatetimeComponent::RelativeQualifier::UNSPECIFIED: in ApplyRelationField()
206 case DatetimeComponent::RelativeQualifier::NEXT: in ApplyRelationField()
211 case DatetimeComponent::RelativeQualifier::THIS: in ApplyRelationField()
216 case DatetimeComponent::RelativeQualifier::LAST: in ApplyRelationField()
221 case DatetimeComponent::RelativeQualifier::NOW: in ApplyRelationField()
223 case DatetimeComponent::RelativeQualifier::TOMORROW: in ApplyRelationField()
226 case DatetimeComponent::RelativeQualifier::YESTERDAY: in ApplyRelationField()
229 case DatetimeComponent::RelativeQualifier::PAST: in ApplyRelationField()
235 case DatetimeComponent::RelativeQualifier::FUTURE: in ApplyRelationField()
Dcalendar_test.cc162 DatetimeComponent::RelativeQualifier::NEXT); in TEST_F()
189 DatetimeComponent::RelativeQualifier::FUTURE); in TEST_F()
207 DatetimeComponent::RelativeQualifier::NEXT); in TEST_F()
221 DatetimeComponent::RelativeQualifier::THIS); in TEST_F()
237 DatetimeComponent::RelativeQualifier::LAST); in TEST_F()
253 DatetimeComponent::RelativeQualifier::PAST); in TEST_F()
270 DatetimeComponent::RelativeQualifier::FUTURE); in TEST_F()
284 DatetimeComponent::RelativeQualifier::FUTURE); in TEST_F()
299 DatetimeComponent::RelativeQualifier::FUTURE); in TEST_F()
/external/libtextclassifier/native/annotator/datetime/testing/
Ddatetime-component-builder.h32 DatetimeComponent::RelativeQualifier relative_qualifier,
Ddatetime-component-builder.cc31 DatetimeComponent::RelativeQualifier relative_qualifier, in Add()