Home
last modified time | relevance | path

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

/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dreminder_request_alarm_test.cpp49 std::vector<uint8_t> daysOfWeek; in HWTEST_F() local
50 auto rrc = std::make_shared<ReminderRequestAlarm>(0, 1, daysOfWeek); in HWTEST_F()
53 auto rrcB = std::make_shared<ReminderRequestAlarm>(23, 1, daysOfWeek); in HWTEST_F()
56 auto rrcC = std::make_shared<ReminderRequestAlarm>(1, 1, daysOfWeek); in HWTEST_F()
59 auto rrcD = std::make_shared<ReminderRequestAlarm>(22, 1, daysOfWeek); in HWTEST_F()
62 auto rrcE = std::make_shared<ReminderRequestAlarm>(12, 1, daysOfWeek); in HWTEST_F()
74 std::vector<uint8_t> daysOfWeek; in HWTEST_F() local
75 auto rrc = std::make_shared<ReminderRequestAlarm>(0, 0, daysOfWeek); in HWTEST_F()
78 auto rrcB = std::make_shared<ReminderRequestAlarm>(23, 59, daysOfWeek); in HWTEST_F()
84 * @tc.desc: test set daysOfWeek wit
[all...]
H A Dreminder_request_calendar_test.cpp60 std::vector<uint8_t> daysOfWeek; in CreateCalendar() local
63 daysOfWeek.push_back(1); in CreateCalendar()
64 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); in CreateCalendar()
151 std::vector<uint8_t> daysOfWeek; in HWTEST_F() local
152 daysOfWeek.push_back(1); in HWTEST_F()
155 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); in HWTEST_F()
163 calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); in HWTEST_F()
173 calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); in HWTEST_F()
196 std::vector<uint8_t> daysOfWeek; in HWTEST_F() local
197 daysOfWeek in HWTEST_F()
246 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
291 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
447 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
757 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
804 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
849 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
892 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1015 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1252 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1288 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1319 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1328 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1337 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1369 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1413 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1443 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
1492 std::vector<uint8_t> daysOfWeek; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestalarm_fuzzer/
H A Dreminderrequestalarm_fuzzer.cpp35 std::vector<uint8_t> daysOfWeek; in DoSomethingInterestingWithMyAPI() local
36 daysOfWeek.push_back(week); in DoSomethingInterestingWithMyAPI()
37 auto rrc = std::make_shared<Notification::ReminderRequestAlarm>(hour, minute, daysOfWeek); in DoSomethingInterestingWithMyAPI()
40 rrc->SetRepeatDaysOfWeek(enabled, daysOfWeek); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/
H A Dreminderrequestcalendar_fuzzer.cpp42 std::vector<uint8_t> daysOfWeek; in DoSomethingInterestingWithMyAPI() local
43 daysOfWeek.push_back(weeks); in DoSomethingInterestingWithMyAPI()
46 Notification::ReminderRequestCalendar reminderRequestCalendar(nowTime, repeatMonths, repeatDays, daysOfWeek); in DoSomethingInterestingWithMyAPI()
59 reminderRequestCalendar.SetRepeatDaysOfWeek(enabled, daysOfWeek); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/
H A Dans_notification_annex_test.cpp286 std::vector<uint8_t> daysOfWeek; in HWTEST_F() local
287 ReminderRequestAlarm reminder = ReminderRequestAlarm(0, 0, daysOfWeek); in HWTEST_F()
304 std::vector<uint8_t> daysOfWeek; in HWTEST_F() local
305 ReminderRequestCalendar reminder = ReminderRequestCalendar(dateTime, repeatMonths, repeatDays, daysOfWeek); in HWTEST_F()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dreminder_request_alarm.h37 * @param daysOfWeek The value must between [1, 7], and the length of array can not be greater than 7.
41 ReminderRequestAlarm(uint8_t hour, uint8_t minute, std::vector<uint8_t> daysOfWeek);
H A Dreminder_request_calendar.h53 const std::vector<uint8_t> &repeatDays, const std::vector<uint8_t> &daysOfWeek);
H A Dreminder_request.h1042 void SetRepeatDaysOfWeek(bool set, const std::vector<uint8_t> &daysOfWeek);
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dreminder_request_alarm.cpp25 ReminderRequestAlarm::ReminderRequestAlarm(uint8_t hour, uint8_t minute, const std::vector<uint8_t> daysOfWeek) in ReminderRequestAlarm() argument
32 SetRepeatDaysOfWeek(true, daysOfWeek); in ReminderRequestAlarm()
H A Dreminder_request.cpp1838 void ReminderRequest::SetRepeatDaysOfWeek(bool set, const std::vector<uint8_t> &daysOfWeek) in SetRepeatDaysOfWeek() argument
1840 if (daysOfWeek.size() == 0) { in SetRepeatDaysOfWeek()
1843 if (daysOfWeek.size() > DAYS_PER_WEEK) { in SetRepeatDaysOfWeek()
1844 ANSR_LOGE("The length of daysOfWeek should not larger than 7"); in SetRepeatDaysOfWeek()
1847 for (auto it = daysOfWeek.begin(); it != daysOfWeek.end(); ++it) { in SetRepeatDaysOfWeek()
H A Dreminder_request_calendar.cpp28 const std::vector<uint8_t> &repeatDays, const std::vector<uint8_t> &daysOfWeek) in ReminderRequestCalendar()
37 SetRepeatDaysOfWeek(true, daysOfWeek); in ReminderRequestCalendar()
27 ReminderRequestCalendar(const tm &dateTime, const std::vector<uint8_t> &repeatMonths, const std::vector<uint8_t> &repeatDays, const std::vector<uint8_t> &daysOfWeek) ReminderRequestCalendar() argument
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
H A Dreminder_common.cpp801 // daysOfWeek in CreateReminderAlarm()
802 std::vector<uint8_t> daysOfWeek; in CreateReminderAlarm() local
804 if (ParseInt32Array(env, value, ReminderAgentNapi::REPEAT_DAYS_OF_WEEK, daysOfWeek, maxDaysOfWeek) == nullptr) { in CreateReminderAlarm()
808 static_cast<uint8_t>(propertyHourVal), static_cast<uint8_t>(propertyMinuteVal), daysOfWeek); in CreateReminderAlarm()
829 std::vector<uint8_t> daysOfWeek; 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()
919 // daysOfWeek in ParseCalendarParams()
921 if (ParseInt32Array(env, value, ReminderAgentNapi::REPEAT_DAYS_OF_WEEK, daysOfWeek, maxDaysOfWee 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
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/include/reminder/
H A Dreminder_common.h36 const char* REPEAT_DAYS_OF_WEEK = "daysOfWeek";
144 std::vector<uint8_t>& repeatDays, std::vector<uint8_t> &daysOfWeek);
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dreminder_data_manager_test.cpp391 std::vector<uint8_t> daysOfWeek; in HWTEST_F() local
392 sptr<ReminderRequest> reminder = new ReminderRequestAlarm(0, 1, daysOfWeek); in HWTEST_F()
420 sptr<ReminderRequest> reminder1 = new ReminderRequestAlarm(2, 3, daysOfWeek); in HWTEST_F()

Completed in 14 milliseconds