Home
last modified time | relevance | path

Searched refs:Timestamp (Results 1 – 10 of 10) sorted by relevance

/system/connectivity/shill/net/
Dshill_time.h37 struct SHILL_EXPORT Timestamp { struct
38 Timestamp() : monotonic{} {} in Timestamp() argument
39 Timestamp(const struct timeval& in_monotonic, in Timestamp() argument
74 virtual Timestamp GetNow();
Devent_history.h77 Timestamp Front() { return events_.front(); } in Front()
85 void RecordEventInternal(Timestamp now);
87 void ExpireEventsBeforeInternal(int seconds_ago, Timestamp now,
92 std::deque<Timestamp> events_;
Devent_history.cc39 Timestamp now = time_->GetNow(); in RecordEventAndExpireEventsBefore()
46 for (deque<Timestamp>::const_iterator it = events_.begin(); in ExtractWallClockToStrings()
53 void EventHistory::RecordEventInternal(Timestamp now) { in RecordEventInternal()
61 void EventHistory::ExpireEventsBeforeInternal(int seconds_ago, Timestamp now, in ExpireEventsBeforeInternal()
90 Timestamp now = time_->GetNow(); in CountEventsWithinInterval()
Devent_history_unittest.cc62 deque<Timestamp>* GetEvents() { return &event_history_->events_; } in GetEvents()
64 void RecordEvent(Timestamp now) { in RecordEvent()
69 void ExpireEventsBefore(int seconds_ago, Timestamp now, in ExpireEventsBefore()
75 void RecordEventAndExpireEventsBefore(int seconds_ago, Timestamp now, in RecordEventAndExpireEventsBefore()
85 Timestamp GetTimestamp(int monotonic_seconds, int boottime_seconds, in GetTimestamp()
89 return Timestamp(monotonic, boottime, wall_clock); in GetTimestamp()
94 Timestamp now) { in CountEventsWithinInterval()
238 const Timestamp kValues[] = { in TEST_F()
Dshill_time.cc94 Timestamp Time::GetNow() { in GetNow()
107 return Timestamp(now_monotonic, now_boottime, wall_clock_string); in GetNow()
Dmock_time.h37 MOCK_METHOD0(GetNow, Timestamp());
/system/extras/simpleperf/
Drecord.h157 virtual uint64_t Timestamp() const;
275 uint64_t Timestamp() const override;
Drecord.cpp183 uint64_t Record::Timestamp() const { in Timestamp() function in Record
530 uint64_t SampleRecord::Timestamp() const { in Timestamp() function in SampleRecord
694 uint64_t time = record->Timestamp(); in IsHappensBefore()
695 uint64_t other_time = other.record->Timestamp(); in IsHappensBefore()
733 last_time_ = std::max(last_time_, r->Timestamp()); in Push()
751 if (r->Timestamp() + min_time_diff_in_ns_ > last_time_) { in Pop()
/system/connectivity/shill/
Dservice_unittest.cc107 DefaultValue<Timestamp>::Set(Timestamp()); in ServiceTest()
159 Timestamp GetTimestamp(int monotonic_seconds, int boottime_seconds, in GetTimestamp()
163 return Timestamp(monotonic, boottime, wall_clock); in GetTimestamp()
1716 Timestamp timestamp; in TEST_F()
1729 Timestamp timestamp; in TEST_F()
1738 Timestamp timestamp; in TEST_F()
1861 EXPECT_CALL(time_, GetNow()).WillOnce(Return(Timestamp())); in TEST_F()
1872 EXPECT_CALL(time_, GetNow()).WillOnce(Return(Timestamp())); in TEST_F()
/system/connectivity/shill/wifi/
Dwake_on_wifi_unittest.cc1032 Timestamp GetTimestampBootTime(int boottime_seconds) { in GetTimestampBootTime()
1035 return Timestamp(monotonic, boottime, ""); in GetTimestampBootTime()