/base/time/time_service/test/fuzztest/timemanager_fuzzer/timetesttimer_fuzzer/ |
H A D | timer_info.h | 23 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 D | timetesttimer_fuzzer.cpp | 32 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 D | timer_proxy.h | 31 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 D | batch.h | 30 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 D | timer_manager.h | 102 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 D | timer_info.h | 28 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 D | batch.cpp | 29 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 D | timer_info.cpp | 24 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 D | timer_proxy.cpp | 72 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 D | timer_manager.cpp | 368 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 D | time_sysevent.h | 24 void StatisticReporter(int32_t callerPid, int32_t size, std::shared_ptr<TimerInfo> timer);
|
/base/time/time_service/services/dfx/src/ |
H A D | time_sysevent.cpp | 27 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 D | device_manager_test.h | 52 struct TimerInfo { struct 130 TimerInfo timerInfo_;
|
/base/msdp/device_status/test/unittest/intention/scheduler/include/ |
H A D | timer_manager_test.h | 50 struct TimerInfo { struct 110 TimerInfo timerInfo_;
|
/base/time/time_service/test/fuzztest/timeservice_fuzzer/timerproxy_fuzzer/ |
H A D | timerproxy_fuzzer.cpp | 34 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 D | msdpdevicemanager_fuzzer.h | 52 struct TimerInfo { struct
|
/base/time/time_service/test/unittest/service_test/src/ |
H A D | time_proxy_test.cpp | 183 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 D | time_service_test.cpp | 1227 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()
|