Home
last modified time | relevance | path

Searched refs:nextTriggerTime (Results 1 – 3 of 3) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_request_alarm.cpp131 time_t nextTriggerTime = 0; in GetNextTriggerTime() local
135 nextTriggerTime = target + 1 * HOURS_PER_DAY * SECONDS_PER_HOUR; in GetNextTriggerTime()
138 nextTriggerTime = target; in GetNextTriggerTime()
141 nextTriggerTime = target + nextDayInterval * HOURS_PER_DAY * SECONDS_PER_HOUR; in GetNextTriggerTime()
144 (void)localtime_r(&nextTriggerTime, &test); in GetNextTriggerTime()
150 GetActualTime(TimeTransferType::WEEK, test.tm_wday), (long long)nextTriggerTime); in GetNextTriggerTime()
152 if (static_cast<int64_t>(nextTriggerTime) <= 0) { in GetNextTriggerTime()
155 return ReminderRequest::GetDurationSinceEpochInMilli(nextTriggerTime); in GetNextTriggerTime()
237 uint64_t nextTriggerTime = GetNextTriggerTime(true); in UpdateNextReminder() local
238 if (nextTriggerTime != INVALID_LONG_LONG_VALUE) { in UpdateNextReminder()
[all …]
Dreminder_request_calendar.cpp84 uint64_t nextTriggerTime = INVALID_LONG_LONG_VALUE; in SetNextTriggerTime() local
85 if ((nextTriggerTime = GetNextTriggerTime()) != INVALID_LONG_LONG_VALUE) { in SetNextTriggerTime()
86 time_t target = static_cast<time_t>(nextTriggerTime / MILLI_SECONDS); in SetNextTriggerTime()
98 SetTriggerTimeInMilli(nextTriggerTime); in SetNextTriggerTime()
378 uint64_t nextTriggerTime = GetNextTriggerTime(); in UpdateNextReminder() local
379 if (nextTriggerTime != INVALID_LONG_LONG_VALUE) { in UpdateNextReminder()
381 SetTriggerTimeInMilli(nextTriggerTime); in UpdateNextReminder()
Dreminder_request.cpp158 const time_t nextTriggerTime = static_cast<time_t>(triggerTimeInMilli_ / MILLI_SECONDS); in Dump() local
159 std::string dateTimeInfo = GetTimeInfoInner(nextTriggerTime, TimeFormat::YMDHMS); in Dump()
244 uint64_t nextTriggerTime = PreGetNextTriggerTimeIgnoreSnooze(true, false); in OnClose() local
245 if (nextTriggerTime == INVALID_LONG_LONG_VALUE) { in OnClose()
248 SetTriggerTimeInMilli(nextTriggerTime); in OnClose()
256 uint64_t nextTriggerTime = PreGetNextTriggerTimeIgnoreSnooze(true, false); in OnDateTimeChange() local
257 return HandleSysTimeChange(triggerTimeInMilli_, nextTriggerTime); in OnDateTimeChange()
418 uint64_t nextTriggerTime = PreGetNextTriggerTimeIgnoreSnooze(true, false); in OnTimeZoneChange() local
420 triggerTimeInMilli_, GetDurationSinceEpochInMilli(newZoneTriggerTime), nextTriggerTime); in OnTimeZoneChange()