Searched refs:DatetimeGranularity (Results 1 – 12 of 12) sorted by relevance
/external/libtextclassifier/native/annotator/ |
D | types.cc | 340 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 …]
|
D | types.h | 251 enum DatetimeGranularity { enum 342 DatetimeGranularity GetFinestGranularity( 355 DatetimeGranularity granularity; 363 DatetimeGranularity arg_granularity, in DatetimeParseResult() 780 DatetimeGranularity GetFinestGranularity() const;
|
D | annotator_test-include.cc | 1350 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/ |
D | base-parser-test.h | 41 DatetimeGranularity expected_granularity, 51 DatetimeGranularity expected_granularity, 62 DatetimeGranularity expected_granularity, 67 DatetimeGranularity expected_granularity, 72 DatetimeGranularity expected_granularity,
|
D | base-parser-test.cc | 49 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/ |
D | calendar_test.cc | 34 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()
|
D | calendar-common.h | 46 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()
|
D | calendar-javaicu.h | 77 DatetimeGranularity* granularity) const { in InterpretParseData() 88 DatetimeGranularity GetGranularity(const DatetimeParsedData& data) const { in GetGranularity()
|
/external/libtextclassifier/native/annotator/datetime/ |
D | datetime-grounder_test.cc | 117 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()
|
D | utils.cc | 22 const DatetimeGranularity& granularity, in FillInterpretations() 42 if (granularity > DatetimeGranularity::GRANULARITY_DAY && in FillInterpretations()
|
D | utils.h | 30 const DatetimeGranularity& granularity,
|
/external/libtextclassifier/native/utils/ |
D | lua-utils.cc | 523 static_cast<DatetimeGranularity>( in ReadClassificationResult()
|