Home
last modified time | relevance | path

Searched refs:repeatMonths (Results 1 - 7 of 7) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dreminder_request_calendar_test.cpp58 std::vector<uint8_t> repeatMonths; in CreateCalendar() local
61 repeatMonths.push_back(1); in CreateCalendar()
64 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); in CreateCalendar()
149 std::vector<uint8_t> repeatMonths; in HWTEST_F() local
153 repeatMonths.push_back(1); in HWTEST_F()
155 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); in HWTEST_F()
158 EXPECT_TRUE(ReminderRequestCalendarTest::IsVectorEqual(repeatMonths, actualRepeatMonths)) in HWTEST_F()
161 repeatMonths.clear(); in HWTEST_F()
162 repeatMonths.push_back(12); in HWTEST_F()
163 calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDay in HWTEST_F()
244 std::vector<uint8_t> repeatMonths; HWTEST_F() local
289 std::vector<uint8_t> repeatMonths; HWTEST_F() local
445 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1013 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1250 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1286 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1317 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1344 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1367 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1377 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1387 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1411 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1441 std::vector<uint8_t> repeatMonths; HWTEST_F() local
1490 std::vector<uint8_t> repeatMonths; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/
H A Dreminderrequestcalendar_fuzzer.cpp40 std::vector<uint8_t> repeatMonths; in DoSomethingInterestingWithMyAPI() local
44 repeatMonths.push_back(months); in DoSomethingInterestingWithMyAPI()
46 Notification::ReminderRequestCalendar reminderRequestCalendar(nowTime, repeatMonths, repeatDays, daysOfWeek); in DoSomethingInterestingWithMyAPI()
61 reminderRequestCalendar.SetRepeatMonths(repeatMonths); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dreminder_request_calendar.cpp27 ReminderRequestCalendar::ReminderRequestCalendar(const tm &dateTime, const std::vector<uint8_t> &repeatMonths, in ReminderRequestCalendar() argument
35 SetRepeatMonths(repeatMonths); in ReminderRequestCalendar()
568 void ReminderRequestCalendar::SetRepeatMonths(const std::vector<uint8_t> &repeatMonths) in SetRepeatMonths() argument
570 if (repeatMonths.size() > MAX_MONTHS_OF_YEAR) { in SetRepeatMonths()
575 for (auto it = repeatMonths.begin(); it != repeatMonths.end(); ++it) { in SetRepeatMonths()
594 std::vector<uint8_t> repeatMonths; in GetRepeatMonths() local
597 repeatMonths.push_back(i + 1); in GetRepeatMonths()
600 return repeatMonths; in GetRepeatMonths()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dreminder_request_calendar.h31 * <li> The length of repeatMonths vectory cannot exceed 12. </li>
34 * does not expired, or repeatMonths and repeateDays are valid. </li>
45 * @param repeatMonths Indicates the months in which this reminder will be repeated. For example,
52 ReminderRequestCalendar(const tm &dateTime, const std::vector<uint8_t> &repeatMonths,
342 void SetRepeatMonths(const std::vector<uint8_t> &repeatMonths);
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/
H A Dans_notification_annex_test.cpp302 std::vector<uint8_t> repeatMonths; in HWTEST_F() local
305 ReminderRequestCalendar reminder = ReminderRequestCalendar(dateTime, repeatMonths, repeatDays, daysOfWeek); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
H A Dreminder_common.cpp827 std::vector<uint8_t> repeatMonths; in CreateReminderCalendar() local
831 if (!ParseCalendarParams(env, value, repeatMonths, repeatDays, daysOfWeek)) { in CreateReminderCalendar()
845 auto reminderCalendar = std::make_shared<ReminderRequestCalendar>(dateTime, repeatMonths, repeatDays, daysOfWeek); in CreateReminderCalendar()
905 std::vector<uint8_t>& repeatMonths, std::vector<uint8_t>& repeatDays, std::vector<uint8_t>& daysOfWeek) in ParseCalendarParams()
908 if (ParseInt32Array(env, value, ReminderAgentNapi::CALENDAR_REPEAT_MONTHS, repeatMonths, in ParseCalendarParams()
904 ParseCalendarParams(const napi_env& env, const napi_value& value, std::vector<uint8_t>& repeatMonths, std::vector<uint8_t>& repeatDays, std::vector<uint8_t>& daysOfWeek) ParseCalendarParams() argument
/base/notification/distributed_notification_service/frameworks/js/napi/include/reminder/
H A Dreminder_common.h46 const char* CALENDAR_REPEAT_MONTHS = "repeatMonths";
143 static bool ParseCalendarParams(const napi_env& env, const napi_value& value, std::vector<uint8_t>& repeatMonths,

Completed in 8 milliseconds