Home
last modified time | relevance | path

Searched refs:TimerInfo (Results 1 - 18 of 18) sorted by relevance

/base/time/time_service/test/fuzztest/timemanager_fuzzer/timetesttimer_fuzzer/
H A Dtimer_info.h23 class TimerInfo : public ITimerInfo { class
25 TimerInfo();
26 virtual ~TimerInfo();
34 TimerInfo::TimerInfo() = default;
36 TimerInfo::~TimerInfo() = default;
38 void TimerInfo::SetType(const int &type) in SetType()
43 void TimerInfo::SetRepeat(bool repeat) in SetRepeat()
47 void TimerInfo in SetRepeat()
[all...]
H A Dtimetesttimer_fuzzer.cpp32 auto timerInfo = std::make_shared<TimerInfo>(); in FuzzTimeCreateTimer()
61 auto timerInfo = std::make_shared<TimerInfo>(); in FuzzTimeCreateTimerV9()
/base/time/time_service/services/timer/include/
H A Dtimer_proxy.h31 using AdjustTimerCallback = std::function<bool(std::shared_ptr<TimerInfo> timer)>;
37 int32_t CallbackAlarmIfNeed(const std::shared_ptr<TimerInfo> &alarm);
40 std::function<void(std::shared_ptr<TimerInfo> &alarm)> insertAlarmCallback);
43 std::function<void(std::shared_ptr<TimerInfo> &alarm)> insertAlarmCallback);
48 bool IsTimerExemption(std::shared_ptr<TimerInfo> time);
50 std::function<void(std::shared_ptr<TimerInfo> &alarm)> insertAlarmCallback);
53 void RecordUidTimerMap(const std::shared_ptr<TimerInfo> &alarm, const bool isRebatched);
54 void RecordPidTimerMap(const std::shared_ptr<TimerInfo> &alarm, const bool isRebatched);
55 void RecordProxyUidTimerMap(const std::shared_ptr<TimerInfo> &alarm);
56 void RecordProxyPidTimerMap(const std::shared_ptr<TimerInfo>
[all...]
H A Dbatch.h30 explicit Batch(const TimerInfo &seed);
36 std::shared_ptr<TimerInfo> Get(size_t index) const;
39 bool Add(const std::shared_ptr<TimerInfo> &alarm);
40 bool Remove(const TimerInfo &alarm);
41 bool Remove(std::function<bool(const TimerInfo &)> predicate);
49 std::vector<std::shared_ptr<TimerInfo>> alarms_;
H A Dtimer_manager.h102 void ReAddTimerLocked(std::shared_ptr<TimerInfo> timer,
104 void ReCalcuOriWhenElapsed(std::shared_ptr<TimerInfo> timer,
106 void SetHandlerLocked(std::shared_ptr<TimerInfo> alarm, bool rebatching, bool isRebatched);
107 void InsertAndBatchTimerLocked(std::shared_ptr<TimerInfo> alarm);
111 bool ProcTriggerTimer(std::shared_ptr<TimerInfo> &alarm,
113 bool TriggerTimersLocked(std::vector<std::shared_ptr<TimerInfo>> &triggerList,
116 void DeliverTimersLocked(const std::vector<std::shared_ptr<TimerInfo>> &triggerList);
117 void NotifyWantAgentRetry(std::shared_ptr<TimerInfo> timer);
123 int32_t CheckUserIdForNotify(const std::shared_ptr<TimerInfo> &timer);
124 bool NotifyWantAgent(const std::shared_ptr<TimerInfo>
[all...]
H A Dtimer_info.h28 class TimerInfo { class
50 TimerInfo(uint64_t id, int type,
62 virtual ~TimerInfo() = default;
63 bool operator==(const TimerInfo &other) const;
/base/time/time_service/services/timer/src/
H A Dbatch.cpp29 Batch::Batch(const TimerInfo &seed) in Batch()
33 alarms_ {std::make_shared<TimerInfo>(seed)}
42 std::shared_ptr<TimerInfo> Batch::Get(size_t index) const in Get()
53 bool Batch::Add(const std::shared_ptr<TimerInfo> &alarm) in Add()
59 [](const std::shared_ptr<TimerInfo> &first, const std::shared_ptr<TimerInfo> &second) { in Add()
77 bool Batch::Remove(const TimerInfo &alarm) in Remove()
79 return Remove([alarm] (const TimerInfo &a) { return a == alarm; }); in Remove()
82 bool Batch::Remove(std::function<bool (const TimerInfo &)> predicate) in Remove()
116 [package_name] (const std::shared_ptr<TimerInfo> in HasPackage()
[all...]
H A Dtimer_info.cpp24 bool TimerInfo::operator==(const TimerInfo &other) const in operator ==()
29 bool TimerInfo::Matches(const std::string &packageName) const in Matches()
34 TimerInfo::TimerInfo(uint64_t _id, int _type, in TimerInfo() function in OHOS::MiscServices::TimerInfo
67 bool TimerInfo::UpdateWhenElapsedFromNow(std::chrono::steady_clock::time_point now, std::chrono::nanoseconds offset) in UpdateWhenElapsedFromNow()
86 bool TimerInfo::AdjustTimer(const std::chrono::steady_clock::time_point &now, const uint32_t interval) in AdjustTimer()
114 bool TimerInfo::RestoreAdjustTimer() in RestoreAdjustTimer()
H A Dtimer_proxy.cpp72 int32_t TimerProxy::CallbackAlarmIfNeed(const std::shared_ptr<TimerInfo> &alarm) in CallbackAlarmIfNeed()
88 std::vector<std::shared_ptr<TimerInfo>> timeInfoVec; in CallbackAlarmIfNeed()
92 std::vector<std::shared_ptr<TimerInfo>> timeInfoVec = itMap->second; in CallbackAlarmIfNeed()
106 std::vector<std::shared_ptr<TimerInfo>> timeInfoVec; in CallbackAlarmIfNeed()
110 std::vector<std::shared_ptr<TimerInfo>> timeInfoVec = itMap->second; in CallbackAlarmIfNeed()
125 std::function<void(std::shared_ptr<TimerInfo> &alarm)> insertAlarmCallback) in ProxyTimer()
164 std::function<void(std::shared_ptr<TimerInfo> &alarm)> insertAlarmCallback) in PidProxyTimer()
210 auto callback = [this, isAdjust, interval, now] (std::shared_ptr<TimerInfo> timer) { in AdjustTimer()
225 uint32_t interval, std::shared_ptr<TimerInfo> &timer) in UpdateAdjustWhenElapsed()
239 bool TimerProxy::RestoreAdjustWhenElapsed(std::shared_ptr<TimerInfo>
[all...]
H A Dtimer_manager.cpp368 auto alarm = std::make_shared<TimerInfo>(id, type, when, whenElapsed, windowLength, maxWhen, in SetHandlerLocked()
399 auto whichAlarms = [id](const TimerInfo &timer) { in RemoveLocked()
419 [id](const std::shared_ptr<TimerInfo> &timer) { in RemoveLocked()
451 void TimerManager::SetHandlerLocked(std::shared_ptr<TimerInfo> alarm, bool rebatching, bool isRebatched) in SetHandlerLocked()
498 void TimerManager::ReAddTimerLocked(std::shared_ptr<TimerInfo> timer, in ReAddTimerLocked()
548 std::vector<std::shared_ptr<TimerInfo>> triggerList; in TimerLooper()
617 [this](const std::shared_ptr<TimerInfo> &pendingTimer) { in TriggerIdleTimer()
632 bool TimerManager::ProcTriggerTimer(std::shared_ptr<TimerInfo> &alarm, in ProcTriggerTimer()
661 bool TimerManager::TriggerTimersLocked(std::vector<std::shared_ptr<TimerInfo>> &triggerList, in TriggerTimersLocked()
704 [](const std::shared_ptr<TimerInfo> in TriggerTimersLocked()
[all...]
/base/time/time_service/services/dfx/include/
H A Dtime_sysevent.h24 void StatisticReporter(int32_t callerPid, int32_t size, std::shared_ptr<TimerInfo> timer);
/base/time/time_service/services/dfx/src/
H A Dtime_sysevent.cpp27 void StatisticReporter(int32_t callerPid, int32_t size, std::shared_ptr<TimerInfo> timer) in StatisticReporter()
/base/msdp/device_status/test/unittest/intention/services/include/
H A Ddevice_manager_test.h52 struct TimerInfo { struct
130 TimerInfo timerInfo_;
/base/msdp/device_status/test/unittest/intention/scheduler/include/
H A Dtimer_manager_test.h50 struct TimerInfo { struct
110 TimerInfo timerInfo_;
/base/time/time_service/test/fuzztest/timeservice_fuzzer/timerproxy_fuzzer/
H A Dtimerproxy_fuzzer.cpp34 auto callback = [] (std::shared_ptr<TimerInfo> &alarm) {}; in FuzzTimerProxyTimer()
71 auto callback = [] (std::shared_ptr<TimerInfo> &alarm) {}; in FuzzTimerResetProxy()
/base/msdp/device_status/test/fuzztest/msdpdevicemanager_fuzzer/
H A Dmsdpdevicemanager_fuzzer.h52 struct TimerInfo { struct
/base/time/time_service/test/unittest/service_test/src/
H A Dtime_proxy_test.cpp183 std::vector<std::shared_ptr<TimerInfo>> triggerList; in HWTEST_F()
310 std::vector<std::shared_ptr<TimerInfo>> triggerList; in HWTEST_F()
752 auto timerInfo1 = std::make_shared<TimerInfo>(TIMER_ID, 0, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
756 auto timerInfo2 = std::make_shared<TimerInfo>(TIMER_ID + 1, 0, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
805 auto timerInfo1 = std::make_shared<TimerInfo>(TIMER_ID, 0, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
809 auto timerInfo2 = std::make_shared<TimerInfo>(TIMER_ID + 1, 0, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
851 auto timerInfo = std::make_shared<TimerInfo>(TIMER_ID, 0, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
H A Dtime_service_test.cpp1227 auto timerInfo = std::make_shared<TimerInfo>(TIMER_ID, 0, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
1295 auto timerInfo1 = std::make_shared<TimerInfo>(TIMER_ID, 0, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
1309 auto timerInfo2 = std::make_shared<TimerInfo>(TIMER_ID, 1, duration1, timePoint, duration, timePoint, duration, in HWTEST_F()
1313 auto timerInfo3 = std::make_shared<TimerInfo>(TIMER_ID, 2, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
1358 std::shared_ptr<TimerInfo> alarm; in HWTEST_F()
1368 auto timerInfo = std::make_shared<TimerInfo>(TIMER_ID, 0, duration, timePoint, duration, timePoint, duration, in HWTEST_F()
1589 auto timerInfo = TimerInfo(0, 0, duration, timePoint, duration, timePoint, duration, nullptr, in HWTEST_F()
1604 auto timerInfo = TimerInfo(0, 0, duration, timePoint, duration, timePoint, duration, nullptr, in HWTEST_F()

Completed in 10 milliseconds