Lines Matching refs:paras
318 void TimeSystemAbility::ParseTimerPara(const std::shared_ptr<ITimerInfo> &timerOptions, TimerPara ¶s)
324 paras.windowLength = (uIntType & TIMER_TYPE_EXACT_MASK) > 0 ? 0 : -1;
325 paras.flag = (uIntType & TIMER_TYPE_EXACT_MASK) > 0 ? 1 : 0;
327 paras.timerType = ITimerManager::TimerType::ELAPSED_REALTIME_WAKEUP;
329 paras.timerType = ITimerManager::TimerType::ELAPSED_REALTIME;
331 paras.timerType = ITimerManager::TimerType::RTC_WAKEUP;
333 paras.timerType = ITimerManager::TimerType::RTC;
336 paras.flag += ITimerManager::TimerFlag::IDLE_UNTIL;
339 paras.flag += ITimerManager::TimerFlag::INEXACT_REMINDER;
342 paras.flag += ITimerManager::TimerFlag::IS_DISPOSABLE;
344 paras.interval = timerOptions->repeat ? timerOptions->interval : 0;
359 struct TimerPara paras {};
360 ParseTimerPara(timerOptions, paras);
378 if ((static_cast<uint32_t>(paras.flag) & static_cast<uint32_t>(ITimerManager::TimerFlag::IDLE_UNTIL)) > 0 &&
381 paras.flag = 0;
389 return timerManager->CreateTimer(paras, callbackFunc, timerOptions->wantAgent,
393 int32_t TimeSystemAbility::CreateTimer(TimerPara ¶s, std::function<int32_t (const uint64_t)> callback,
400 return timerManager->CreateTimer(paras, std::move(callback), nullptr, 0, 0, timerId, NOT_STORE);