Home
last modified time | relevance | path

Searched refs:seconds_ago (Results 1 – 3 of 3) sorted by relevance

/system/connectivity/shill/net/
Devent_history.cc33 void EventHistory::ExpireEventsBefore(int seconds_ago, ClockType clock_type) { in ExpireEventsBefore() argument
34 ExpireEventsBeforeInternal(seconds_ago, time_->GetNow(), clock_type); in ExpireEventsBefore()
37 void EventHistory::RecordEventAndExpireEventsBefore(int seconds_ago, in RecordEventAndExpireEventsBefore() argument
41 ExpireEventsBeforeInternal(seconds_ago, now, clock_type); in RecordEventAndExpireEventsBefore()
61 void EventHistory::ExpireEventsBeforeInternal(int seconds_ago, Timestamp now, in ExpireEventsBeforeInternal() argument
63 struct timeval interval = (const struct timeval){seconds_ago}; in ExpireEventsBeforeInternal()
87 int EventHistory::CountEventsWithinInterval(int seconds_ago, in CountEventsWithinInterval() argument
91 struct timeval interval = (const struct timeval){seconds_ago}; in CountEventsWithinInterval()
Devent_history.h58 void ExpireEventsBefore(int seconds_ago, ClockType clock_type);
64 void RecordEventAndExpireEventsBefore(int seconds_ago, ClockType clock_type);
73 int CountEventsWithinInterval(int seconds_ago, ClockType clock_type);
87 void ExpireEventsBeforeInternal(int seconds_ago, Timestamp now,
Devent_history_unittest.cc69 void ExpireEventsBefore(int seconds_ago, Timestamp now, in ExpireEventsBefore() argument
72 event_history_->ExpireEventsBefore(seconds_ago, clock_type); in ExpireEventsBefore()
75 void RecordEventAndExpireEventsBefore(int seconds_ago, Timestamp now, in RecordEventAndExpireEventsBefore() argument
78 event_history_->RecordEventAndExpireEventsBefore(seconds_ago, clock_type); in RecordEventAndExpireEventsBefore()
92 int CountEventsWithinInterval(int seconds_ago, in CountEventsWithinInterval() argument
96 return event_history_->CountEventsWithinInterval(seconds_ago, clock_type); in CountEventsWithinInterval()