Home
last modified time | relevance | path

Searched refs:DelayedCallback (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorCallbackScheduler.h31 class DelayedCallback {
33 DelayedCallback(std::function<void()> callback, std::chrono::milliseconds delay) in DelayedCallback() function
35 ~DelayedCallback() = default;
42 bool operator<(const DelayedCallback& other) const;
43 bool operator>(const DelayedCallback& other) const;
71 std::priority_queue<DelayedCallback, std::vector<DelayedCallback>,
72 std::greater<DelayedCallback>>
/frameworks/native/services/vibratorservice/
DVibratorCallbackScheduler.cpp28 bool DelayedCallback::isExpired() const { in isExpired()
32 std::chrono::milliseconds DelayedCallback::getWaitForExpirationDuration() const { in getWaitForExpirationDuration()
39 void DelayedCallback::run() const { in run()
43 bool DelayedCallback::operator<(const DelayedCallback& other) const { in operator <()
47 bool DelayedCallback::operator>(const DelayedCallback& other) const { in operator >()
70 mQueue.emplace(DelayedCallback(callback, delay)); in schedule()
83 DelayedCallback callback = mQueue.top(); in loop()