Home
last modified time | relevance | path

Searched refs:field_set_mask (Results 1 – 6 of 6) sorted by relevance

/external/libtextclassifier/utils/calendar/
Dcalendar-common.h84 if (parse_data.field_set_mask & DateParseData::Fields::ZONE_OFFSET_FIELD) { in InterpretParseData()
88 if (parse_data.field_set_mask & DateParseData::Fields::DST_OFFSET_FIELD) { in InterpretParseData()
92 if (parse_data.field_set_mask & DateParseData::Fields::RELATION_FIELD) { in InterpretParseData()
97 if (parse_data.field_set_mask & in InterpretParseData()
109 if (parse_data.field_set_mask & DateParseData::Fields::YEAR_FIELD) { in InterpretParseData()
112 if (parse_data.field_set_mask & DateParseData::Fields::MONTH_FIELD) { in InterpretParseData()
117 if (parse_data.field_set_mask & DateParseData::Fields::DAY_FIELD) { in InterpretParseData()
120 if (parse_data.field_set_mask & DateParseData::Fields::HOUR_FIELD) { in InterpretParseData()
121 if (parse_data.field_set_mask & DateParseData::Fields::AMPM_FIELD && in InterpretParseData()
131 if (parse_data.field_set_mask & DateParseData::Fields::MINUTE_FIELD) { in InterpretParseData()
[all …]
Dcalendar_test-include.cc44 data.field_set_mask = DateParseData::YEAR_FIELD; in TEST_F()
64 data.field_set_mask = DateParseData::YEAR_FIELD; in TEST_F()
72 data.field_set_mask |= DateParseData::MONTH_FIELD; in TEST_F()
80 data.field_set_mask |= DateParseData::DAY_FIELD; in TEST_F()
88 data.field_set_mask |= DateParseData::HOUR_FIELD; in TEST_F()
96 data.field_set_mask |= DateParseData::MINUTE_FIELD; in TEST_F()
104 data.field_set_mask |= DateParseData::SECOND_FIELD; in TEST_F()
117 data.field_set_mask = in TEST_F()
/external/libtextclassifier/annotator/datetime/
Dextractor.cc25 result->field_set_mask = 0; in Extract()
53 result->field_set_mask |= DateParseData::YEAR_FIELD; in Extract()
61 result->field_set_mask |= DateParseData::MONTH_FIELD; in Extract()
69 result->field_set_mask |= DateParseData::DAY_FIELD; in Extract()
77 result->field_set_mask |= DateParseData::HOUR_FIELD; in Extract()
85 result->field_set_mask |= DateParseData::MINUTE_FIELD; in Extract()
93 result->field_set_mask |= DateParseData::SECOND_FIELD; in Extract()
101 result->field_set_mask |= DateParseData::AMPM_FIELD; in Extract()
109 result->field_set_mask |= DateParseData::RELATION_DISTANCE_FIELD; in Extract()
117 result->field_set_mask |= DateParseData::RELATION_FIELD; in Extract()
[all …]
Dparser.cc357 if (!(modified_parse.field_set_mask & in FillInterpretations()
359 (modified_parse.field_set_mask & in FillInterpretations()
362 modified_parse.field_set_mask |= DateParseData::Fields::RELATION_FIELD; in FillInterpretations()
368 (modified_parse.field_set_mask & DateParseData::Fields::HOUR_FIELD) && in FillInterpretations()
370 !(modified_parse.field_set_mask & DateParseData::Fields::AMPM_FIELD)) { in FillInterpretations()
373 interpretations->back().field_set_mask |= DateParseData::Fields::AMPM_FIELD; in FillInterpretations()
377 interpretations->back().field_set_mask |= DateParseData::Fields::AMPM_FIELD; in FillInterpretations()
/external/libtextclassifier/annotator/
Dtypes.h364 int field_set_mask = 0; member
397 DateParseData(int field_set_mask, int year, int month, int day_of_month, in DateParseData()
401 this->field_set_mask = field_set_mask; in DateParseData()
Dtypes.cc88 stream = stream << " field_set_mask: " << data.field_set_mask << "\n"; in operator <<()