Home
last modified time | relevance | path

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

/frameworks/native/services/vibratorservice/
DVibratorCallbackScheduler.cpp28 bool DelayedCallback::isExpired() const { in isExpired()
32 DelayedCallback::Timestamp DelayedCallback::getExpiration() const { in getExpiration()
36 void DelayedCallback::run() const { in run()
40 bool DelayedCallback::operator<(const DelayedCallback& other) const { in operator <()
44 bool DelayedCallback::operator>(const DelayedCallback& other) const { in operator >()
67 mQueue.emplace(DelayedCallback(callback, delay)); in schedule()
80 DelayedCallback callback = mQueue.top(); in loop()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorCallbackScheduler.h31 class DelayedCallback {
35 DelayedCallback(std::function<void()> callback, std::chrono::milliseconds delay) in DelayedCallback() function
37 ~DelayedCallback() = default;
44 bool operator<(const DelayedCallback& other) const;
45 bool operator>(const DelayedCallback& other) const;
71 std::priority_queue<DelayedCallback, std::vector<DelayedCallback>,
72 std::greater<DelayedCallback>>