Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/
Dtypes.cc340 DatetimeGranularity GetFinestGranularityFromComponentTypes( in GetFinestGranularityFromComponentTypes()
343 DatetimeGranularity granularity = DatetimeGranularity::GRANULARITY_UNKNOWN; in GetFinestGranularityFromComponentTypes()
347 if (granularity < DatetimeGranularity::GRANULARITY_YEAR) { in GetFinestGranularityFromComponentTypes()
348 granularity = DatetimeGranularity::GRANULARITY_YEAR; in GetFinestGranularityFromComponentTypes()
353 if (granularity < DatetimeGranularity::GRANULARITY_MONTH) { in GetFinestGranularityFromComponentTypes()
354 granularity = DatetimeGranularity::GRANULARITY_MONTH; in GetFinestGranularityFromComponentTypes()
359 if (granularity < DatetimeGranularity::GRANULARITY_WEEK) { in GetFinestGranularityFromComponentTypes()
360 granularity = DatetimeGranularity::GRANULARITY_WEEK; in GetFinestGranularityFromComponentTypes()
366 if (granularity < DatetimeGranularity::GRANULARITY_DAY) { in GetFinestGranularityFromComponentTypes()
367 granularity = DatetimeGranularity::GRANULARITY_DAY; in GetFinestGranularityFromComponentTypes()
[all …]
Dtypes.h251 enum DatetimeGranularity { enum
342 DatetimeGranularity GetFinestGranularity(
355 DatetimeGranularity granularity;
363 DatetimeGranularity arg_granularity, in DatetimeParseResult()
780 DatetimeGranularity GetFinestGranularity() const;
Dannotator_test-include.cc1350 DatetimeGranularity::GRANULARITY_HOUR))); in VerifyDurationAndRelativeTimeCanOverlapInRawMode()
1643 DatetimeGranularity::GRANULARITY_DAY))); in VerifyClassifyTextDateInZurichTimezone()
1671 DatetimeGranularity::GRANULARITY_DAY))); in VerifyClassifyTextDateInLATimezone()
1701 DatetimeGranularity::GRANULARITY_DAY))); in VerifyClassifyTextDateOnAotherLine()
1731 5439600000, DatetimeGranularity::GRANULARITY_MINUTE))); in VerifyClassifyTextWhenLocaleUSParsesDateAsMonthDay()
1765 10537200000, DatetimeGranularity::GRANULARITY_MINUTE))); in TEST_F()
1781 IsDatetimeResult(34200000, DatetimeGranularity::GRANULARITY_MINUTE), in TEST_F()
1782 IsDatetimeResult(77400000, DatetimeGranularity::GRANULARITY_MINUTE))); in TEST_F()
1800 IsDatetimeResult(34200000, DatetimeGranularity::GRANULARITY_MINUTE), in TEST_F()
1801 IsDatetimeResult(77400000, DatetimeGranularity::GRANULARITY_MINUTE))); in TEST_F()
[all …]
/external/libtextclassifier/native/annotator/datetime/testing/
Dbase-parser-test.h41 DatetimeGranularity expected_granularity,
51 DatetimeGranularity expected_granularity,
62 DatetimeGranularity expected_granularity,
67 DatetimeGranularity expected_granularity,
72 DatetimeGranularity expected_granularity,
Dbase-parser-test.cc49 DatetimeGranularity expected_granularity, in ParsesCorrectly()
122 DatetimeGranularity expected_granularity, in ParsesCorrectly()
134 DatetimeGranularity expected_granularity, in ParsesCorrectlyGerman()
144 DatetimeGranularity expected_granularity, in ParsesCorrectlyGerman()
154 DatetimeGranularity expected_granularity, in ParsesCorrectlyChinese()
/external/libtextclassifier/native/utils/calendar/
Dcalendar_test.cc34 DatetimeGranularity granularity; in TEST_F()
46 DatetimeGranularity granularity; in TEST_F()
67 DatetimeGranularity granularity; in TEST_F()
104 DatetimeGranularity granularity; in TEST_F()
158 DatetimeGranularity granularity; in TEST_F()
183 DatetimeGranularity granularity; in TEST_F()
313 DatetimeGranularity granularity; in TEST_F()
330 DatetimeGranularity granularity; in TEST_F()
346 DatetimeGranularity granularity; in TEST_F()
Dcalendar-common.h46 DatetimeGranularity* granularity) const;
48 DatetimeGranularity GetGranularity(const DatetimeParsedData& data) const;
57 bool RoundToGranularity(DatetimeGranularity granularity,
95 DatetimeGranularity* granularity) const { in InterpretParseData()
247 DatetimeGranularity granularity, TCalendar* calendar) const { in RoundToGranularity()
340 DatetimeGranularity CalendarLibTempl<TCalendar>::GetGranularity( in GetGranularity()
Dcalendar-javaicu.h77 DatetimeGranularity* granularity) const { in InterpretParseData()
88 DatetimeGranularity GetGranularity(const DatetimeParsedData& data) const { in GetGranularity()
/external/libtextclassifier/native/annotator/datetime/
Ddatetime-grounder_test.cc117 EXPECT_EQ(data[0].granularity, DatetimeGranularity::GRANULARITY_SECOND); in TEST_F()
163 EXPECT_EQ(data[0].granularity, DatetimeGranularity::GRANULARITY_SECOND); in TEST_F()
164 EXPECT_EQ(data[1].granularity, DatetimeGranularity::GRANULARITY_SECOND); in TEST_F()
187 EXPECT_EQ(data[0].granularity, DatetimeGranularity::GRANULARITY_DAY); in TEST_F()
216 EXPECT_EQ(data[0].granularity, DatetimeGranularity::GRANULARITY_UNKNOWN); in TEST_F()
Dutils.cc22 const DatetimeGranularity& granularity, in FillInterpretations()
42 if (granularity > DatetimeGranularity::GRANULARITY_DAY && in FillInterpretations()
Dutils.h30 const DatetimeGranularity& granularity,
/external/libtextclassifier/native/utils/
Dlua-utils.cc523 static_cast<DatetimeGranularity>( in ReadClassificationResult()