Home
last modified time | relevance | path

Searched refs:calendar (Results 1 - 14 of 14) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dreminder_request_calendar_test.cpp64 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); in CreateCalendar() local
65 calendar->SetNextTriggerTime(); in CreateCalendar()
66 return calendar; in CreateCalendar()
99 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); in HWTEST_F() local
100 EXPECT_NE(nullptr, calendar); in HWTEST_F()
101 int32_t firstDesignateYear = calendar->GetActualTime(ReminderRequest::TimeTransferType::YEAR, nowTime.tm_year); in HWTEST_F()
102 EXPECT_TRUE(firstDesignateYear == calendar->GetFirstDesignateYear()) << "Set first designate year error."; in HWTEST_F()
114 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); in HWTEST_F() local
115 EXPECT_NE(nullptr, calendar); in HWTEST_F()
116 int firstDesignateMonth = calendar in HWTEST_F()
129 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
155 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
200 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonth, repeatDay, daysOfWeek); HWTEST_F() local
250 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
295 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
317 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
331 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
346 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
361 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
375 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
389 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
405 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
422 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
451 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
465 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
481 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
501 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
515 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
534 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
553 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
572 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
591 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
610 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
662 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
707 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
746 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
790 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
834 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
877 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
932 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
951 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
967 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1016 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1079 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1096 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1112 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1127 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1142 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1158 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1173 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1194 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); HWTEST_F() local
1253 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1289 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1320 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1329 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1338 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1347 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1370 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1380 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1390 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1414 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1444 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
1493 sptr<ReminderRequest> calendar = new ReminderRequestCalendar(nowTime, repeatMonths, repeatDays, daysOfWeek); HWTEST_F() local
[all...]
H A Dreminder_store_test.cpp549 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); in HWTEST_F() local
550 calendar->firstDesignateYear_ = 2006; in HWTEST_F()
551 calendar->firstDesignateMonth_ = 6; in HWTEST_F()
552 calendar->firstDesignateDay_ = 6; in HWTEST_F()
553 calendar->SetDateTime(ts); in HWTEST_F()
554 calendar->SetEndDateTime(ts + 60 * 1000); in HWTEST_F()
555 calendar->SetLastStartDateTime(ts + 10 * 1000); in HWTEST_F()
556 calendar->repeatDay_ = 12; in HWTEST_F()
557 calendar->repeatMonth_ = 13; in HWTEST_F()
558 calendar in HWTEST_F()
606 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); HWTEST_F() local
[all...]
/base/global/i18n/frameworks/intl/test/fuzztest/calendar_fuzzer/
H A Dcalendar_fuzzer.cpp34 I18nCalendar calendar(input, CalendarType::GREGORY); in DoSomethingInterestingWithMyAPI()
37 calendar.SetTime(number); in DoSomethingInterestingWithMyAPI()
40 calendar.Set(size, size, size); in DoSomethingInterestingWithMyAPI()
41 calendar.Set(UCalendarDateFields::UCAL_YEAR, size); in DoSomethingInterestingWithMyAPI()
42 calendar.GetTimeZone(); in DoSomethingInterestingWithMyAPI()
43 calendar.SetTimeZone(input); in DoSomethingInterestingWithMyAPI()
44 calendar.GetTimeInMillis(); in DoSomethingInterestingWithMyAPI()
45 calendar.GetMinimalDaysInFirstWeek(); in DoSomethingInterestingWithMyAPI()
46 calendar.GetFirstDayOfWeek(); in DoSomethingInterestingWithMyAPI()
48 calendar in DoSomethingInterestingWithMyAPI()
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Dreminder_store_strategy.cpp490 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); in AppendValuesBucket() local
491 if (calendar != nullptr) { in AppendValuesBucket()
492 repeatDay = calendar->GetRepeatDay(); in AppendValuesBucket()
493 repeatMonth = calendar->GetRepeatMonth(); in AppendValuesBucket()
494 firstDesignateYear = calendar->GetFirstDesignateYear(); in AppendValuesBucket()
495 firstDesignateMonth = calendar->GetFirstDesignageMonth(); in AppendValuesBucket()
496 firstDesignateDay = calendar->GetFirstDesignateDay(); in AppendValuesBucket()
497 dateTime = calendar->GetDateTime(); in AppendValuesBucket()
498 repeatDaysOfWeek = calendar->GetRepeatDaysOfWeek(); in AppendValuesBucket()
499 endDateTime = calendar in AppendValuesBucket()
528 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); RecoverFromOldVersion() local
575 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); RecoverTime() local
625 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); RecoverFromDb() local
[all...]
H A Dreminder_data_manager.cpp179 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); in AddExcludeDate() local
180 calendar->AddExcludeDate(date); in AddExcludeDate()
196 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); in DelExcludeDates() local
197 calendar->DelExcludeDates(); in DelExcludeDates()
213 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); in GetExcludeDates() local
214 dates = calendar->GetExcludeDates(); in GetExcludeDates()
1019 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); in StartExtensionAbility() local
1020 std::shared_ptr<ReminderRequest::WantAgentInfo> wantInfo = calendar->GetRRuleWantAgentInfo(); in StartExtensionAbility()
/base/global/i18n/frameworks/intl/src/
H A Dlocale_info.cpp49 calendar = ""; in ResetFinalLocaleStatus()
112 if (!hourCycle.empty() || !numberingSystem.empty() || !calendar.empty() || !collation.empty() || in ComputeFinalLocaleTag()
122 if (!calendar.empty()) { in ComputeFinalLocaleTag()
123 finalLocaleTag += calendarTag + calendar; in ComputeFinalLocaleTag()
148 calendar = localeTag.substr(localeTag.find(calendarTag) + CONFIG_TAG_LEN); in ParseLocaleTag()
149 calendar = calendar.substr(0, calendar.find(flag)); in ParseLocaleTag()
179 if (configs.count("calendar") > 0) { in ParseConfigs()
180 calendar in ParseConfigs()
[all...]
H A Ddate_time_format.cpp83 if (calendar != nullptr) { in FreeDateTimeFormat()
84 delete calendar; in FreeDateTimeFormat()
85 calendar = nullptr; in FreeDateTimeFormat()
104 if (dateIntvFormat == nullptr || calendar == nullptr || dateFormat == nullptr || localeInfo == nullptr) { in CheckInitSuccess()
151 calendar = Calendar::createInstance(locale, status); in InitWithLocale()
573 calendar->clear(); in Format()
577 calendar->setTimeZone(*zone); in Format()
580 calendar->setTime((UDate)milliseconds, status); in Format()
581 dateFormat->format(calendar->getTime(status), dateString, status); in Format()
588 if (!createSuccess || calendar in FormatRange()
[all...]
/base/global/i18n/frameworks/intl/include/
H A Dlocale_info.h58 std::string calendar; member in OHOS::Global::I18n::LocaleInfo
H A Ddate_time_format.h29 #include "unicode/calendar.h"
83 icu::Calendar *calendar = nullptr; member in OHOS::Global::I18n::DateTimeFormat
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dreminder_data_manager_test.cpp769 ReminderRequestCalendar* calendar = static_cast<ReminderRequestCalendar*>(reminder.GetRefPtr()); in HWTEST_F() local
770 uint64_t now = calendar->GetNowInstantMilli(); in HWTEST_F()
771 calendar->SetDateTime(now-50000); in HWTEST_F()
772 calendar->SetEndDateTime(now+50000); in HWTEST_F()
773 manager->reminderVector_.push_back(calendar); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
H A Dpublish.cpp454 ReminderRequestCalendar& calendar = (ReminderRequestCalendar&)reminder; in ParseReminderCalendar() local
459 napi_create_uint32(env, static_cast<uint32_t>(calendar.GetYear()), &value); in ParseReminderCalendar()
461 napi_create_uint32(env, static_cast<uint32_t>(calendar.GetMonth()), &value); in ParseReminderCalendar()
463 napi_create_uint32(env, static_cast<uint32_t>(calendar.GetDay()), &value); in ParseReminderCalendar()
465 napi_create_uint32(env, static_cast<uint32_t>(calendar.GetHour()), &value); in ParseReminderCalendar()
467 napi_create_uint32(env, static_cast<uint32_t>(calendar.GetMinute()), &value); in ParseReminderCalendar()
469 napi_create_uint32(env, static_cast<uint32_t>(calendar.GetSecond()), &value); in ParseReminderCalendar()
476 for (auto month : calendar.GetRepeatMonths()) { in ParseReminderCalendar()
487 for (auto day : calendar.GetRepeatDays()) { in ParseReminderCalendar()
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp184 I18nCalendar *calendar = new I18nCalendar("zh-Hans-CN"); in HWTEST_F() local
186 calendar->SetTime(1684742124645); in HWTEST_F()
187 calendar->Set(1989, 5, 23); in HWTEST_F()
188 calendar->SetTimeZone("Asia/Shanghai"); in HWTEST_F()
189 std::string tzId = calendar->GetTimeZone(); in HWTEST_F()
191 int32_t minimalDaysInFirstWeek = calendar->GetMinimalDaysInFirstWeek(); in HWTEST_F()
193 int32_t firstDayOfWeek = calendar->GetFirstDayOfWeek(); in HWTEST_F()
202 delete calendar; in HWTEST_F()
/base/global/i18n/interfaces/js/kits/src/
H A Di18n_addon.cpp245 icu::Calendar *calendar = icu::Calendar::createInstance(locale, icuStatus); in GetTimePeriodName() local
246 calendar->set(UCalendarDateFields::UCAL_HOUR_OF_DAY, hour); in GetTimePeriodName()
247 formatter->format(calendar->getTime(icuStatus), name); in GetTimePeriodName()
251 delete calendar; in GetTimePeriodName()
1428 HILOG_ERROR_I18N("Get calendar create instance failed"); in GetIndexUtil()
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_notification.cpp1336 ANSR_LOGI("Publish calendar"); in PublishReminder()
1337 ReminderRequestCalendar &calendar = (ReminderRequestCalendar &)reminder; in PublishReminder() local
1338 tarReminder = new (std::nothrow) ReminderRequestCalendar(calendar); in PublishReminder()

Completed in 24 milliseconds