Searched refs:RelativeQualifier (Results 1 – 14 of 14) sorted by relevance
/external/libtextclassifier/native/annotator/ |
D | types.cc | 54 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 …]
|
D | types.h | 301 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;
|
D | flatbuffer-utils.cc | 84 DatetimeComponent::RelativeQualifier::UNSPECIFIED) { in CreateDatetimeSerializedEntityData()
|
/external/libtextclassifier/native/annotator/datetime/ |
D | datetime-grounder.cc | 86 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 …]
|
D | extractor.cc | 37 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 …]
|
D | utils.cc | 29 DatetimeComponent::RelativeQualifier relative_value; in FillInterpretations() 32 if (relative_value == DatetimeComponent::RelativeQualifier::UNSPECIFIED) { in FillInterpretations() 35 DatetimeComponent::RelativeQualifier::THIS); in FillInterpretations()
|
D | regex-parser_test.cc | 432 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 …]
|
D | grammar-parser_test.cc | 367 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 …]
|
D | extractor.h | 92 DatetimeComponent::RelativeQualifier* parsed_relative_value) const;
|
D | datetime-grounder_test.cc | 192 DatetimeComponent::RelativeQualifier::NEXT); in TEST_F()
|
/external/libtextclassifier/native/utils/calendar/ |
D | calendar-common.h | 203 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()
|
D | calendar_test.cc | 162 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/ |
D | datetime-component-builder.h | 32 DatetimeComponent::RelativeQualifier relative_qualifier,
|
D | datetime-component-builder.cc | 31 DatetimeComponent::RelativeQualifier relative_qualifier, in Add()
|