Home
last modified time | relevance | path

Searched refs:time_ (Results 1 – 25 of 41) sorted by relevance

12

/system/connectivity/shill/net/
Devent_history.h43 EventHistory() : max_events_specified_(false), time_(Time::GetInstance()) {} in EventHistory()
47 time_(Time::GetInstance()) {} in EventHistory()
93 Time* time_; variable
Devent_history.cc30 RecordEventInternal(time_->GetNow()); in RecordEvent()
34 ExpireEventsBeforeInternal(seconds_ago, time_->GetNow(), clock_type); in ExpireEventsBefore()
39 Timestamp now = time_->GetNow(); in RecordEventAndExpireEventsBefore()
90 Timestamp now = time_->GetNow(); in CountEventsWithinInterval()
Devent_history_unittest.cc43 event_history_->time_ = &time_; in EventHistoryTest()
65 EXPECT_CALL(time_, GetNow()).WillOnce(Return(now)); in RecordEvent()
71 EXPECT_CALL(time_, GetNow()).WillOnce(Return(now)); in ExpireEventsBefore()
77 EXPECT_CALL(time_, GetNow()).WillOnce(Return(now)); in RecordEventAndExpireEventsBefore()
95 EXPECT_CALL(time_, GetNow()).WillOnce(Return(now)); in CountEventsWithinInterval()
100 MockTime time_; member in shill::EventHistoryTest
Dnetlink_manager.cc189 time_(Time::GetInstance()), in NetlinkManager()
367 time_->GetTimeMonotonic(&now); in GetFamily()
409 time_->GetTimeMonotonic(&now); in GetFamily()
520 time_->GetTimeMonotonic(&now); in RegisterHandlersAndSendMessage()
Dnetlink_manager_unittest.cc400 Time* old_time = netlink_manager_->time_; in TEST_F()
401 netlink_manager_->time_ = &time; in TEST_F()
422 netlink_manager_->time_ = old_time; in TEST_F()
731 Time* old_time = netlink_manager_->time_; in TEST_F()
732 netlink_manager_->time_ = &time; in TEST_F()
791 netlink_manager_->time_ = old_time; in TEST_F()
/system/connectivity/shill/
Dlink_monitor.cc75 time_(Time::GetInstance()) { in LinkMonitor()
84 time_->GetTimeMonotonic(&started_monitoring_at_); in Start()
127 time_->GetTimeMonotonic(&now); in OnActiveLinkMonitorFailure()
Dlink_monitor_unittest.cc104 monitor_.time_ = &time_; in SetUp()
108 EXPECT_CALL(time_, GetTimeMonotonic(_)) in SetUp()
119 EXPECT_CALL(time_, GetTimeMonotonic(_)) in AdvanceTime()
153 MockTime time_; member in shill::LinkMonitorTest
Dportal_detector.cc67 time_(Time::GetInstance()),
155 time_->GetTimeMonotonic(&attempt_start_time_); in UpdateAttemptTime()
166 time_->GetTimeMonotonic(&now); in AdjustStartDelay()
Dipconfig_unittest.cc62 ipconfig_->time_ = &time_; in IPConfigTest()
133 MockTime time_; member in shill::IPConfigTest
273 EXPECT_CALL(time_, GetTimeBoottime(_)) in TEST_F()
297 EXPECT_CALL(time_, GetTimeBoottime(_)) in TEST_F()
313 EXPECT_CALL(time_, GetTimeBoottime(_)) in TEST_F()
Dipconfig.cc106 time_ = Time::GetInstance(); in Init()
152 time_->GetTimeBoottime(&new_expiration_time); in UpdateLeaseExpirationTime()
167 time_->GetTimeBoottime(&now); in TimeToLeaseExpiry()
Ddns_client_unittest.cc83 EXPECT_CALL(time_, GetTimeMonotonic(_)) in SetUp()
99 EXPECT_CALL(time_, GetTimeMonotonic(_)) in AdvanceTime()
132 dns_client_->time_ = &time_; in CreateClient()
236 StrictMock<MockTime> time_; member in shill::DNSClientTest
343 EXPECT_CALL(time_, GetTimeMonotonic(_)) in TEST_F()
Dactive_link_monitor.cc78 time_(Time::GetInstance()) { in ActiveLinkMonitor()
269 time_->GetTimeMonotonic(&now); in ReceiveResponse()
340 time_->GetTimeMonotonic(&sent_request_at_); in SendRequest()
Dportal_detector_unittest.cc90 portal_detector_->time_ = &time_; in SetUp()
91 EXPECT_CALL(time_, GetTimeMonotonic(_)) in SetUp()
176 StrictMock<MockTime> time_; member in shill::PortalDetectorTest
Dservice_unittest.cc104 service_->time_ = &time_; in ServiceTest()
105 service_->disconnects_.time_ = &time_; in ServiceTest()
106 service_->misconnects_.time_ = &time_; in ServiceTest()
223 MockTime time_; member in shill::ServiceTest
1717 EXPECT_CALL(time_, GetNow()).Times(7).WillRepeatedly((Return(timestamp))); in TEST_F()
1730 EXPECT_CALL(time_, GetNow()).Times(5).WillRepeatedly((Return(timestamp))); in TEST_F()
1739 EXPECT_CALL(time_, GetNow()).Times(5).WillRepeatedly((Return(timestamp))); in TEST_F()
1747 EXPECT_CALL(time_, GetNow()).Times(0); in TEST_F()
1782 EXPECT_CALL(time_, GetNow()).WillOnce(Return(GetTimestamp(kNow, kNow, ""))); in TEST_F()
1788 Mock::VerifyAndClearExpectations(&time_); in TEST_F()
[all …]
Dlink_monitor.h116 Time* time_; variable
Dactive_link_monitor_unittest.cc160 monitor_.time_ = &time_; in SetUp()
163 EXPECT_CALL(time_, GetTimeMonotonic(_)) in SetUp()
189 EXPECT_CALL(time_, GetTimeMonotonic(_)) in AdvanceTime()
357 MockTime time_; member in shill::ActiveLinkMonitorTest
Ddns_client.cc91 time_(Time::GetInstance()) {} in DNSClient()
161 time_->GetTimeMonotonic(&resolver_state_->start_time); in Start()
353 time_->GetTimeMonotonic(&now); in RefreshHandles()
Ddns_client.h107 Time* time_; variable
Dactive_link_monitor.h207 Time* time_; variable
Dportal_detector.h164 Time* time_; variable
Ddevice_info_unittest.cc112 device_info_.time_ = &time_; in SetUp()
202 MockTime time_; member in shill::DeviceInfoTest
1332 device_info_.time_ = &time_; in TEST_F()
1359 EXPECT_CALL(time_, GetSecondsBoottime(_)). in TEST_F()
1363 EXPECT_CALL(time_, GetSecondsBoottime(_)).Times(0); in TEST_F()
1377 EXPECT_CALL(time_, GetSecondsBoottime(_)). in TEST_F()
1382 EXPECT_CALL(time_, GetSecondsBoottime(_)). in TEST_F()
1393 EXPECT_CALL(time_, GetSecondsBoottime(_)). in TEST_F()
1398 EXPECT_CALL(time_, GetSecondsBoottime(_)). in TEST_F()
/system/connectivity/shill/wifi/
Dmac80211_monitor.cc57 : time_(Time::GetInstance()), in Mac80211Monitor()
69 CHECK(time_); in Mac80211Monitor()
153 if (!time_->GetSecondsMonotonic(&now_monotonic_seconds)) { in WakeQueuesIfNeeded()
Dmac80211_monitor_unittest.cc64 mac80211_monitor_.time_ = &time_; in Mac80211MonitorTest()
74 MockTime& time() { return time_; } in time()
178 StrictMock<MockTime> time_; member in shill::Mac80211MonitorTest
Dmac80211_monitor.h123 Time* time_; // for mocking in tests variable
Dwifi_provider_unittest.cc88 provider_.time_ = &time_; in WiFiProviderTest()
389 provider_.time_ = &time_; in LoadConnectCountByFrequency()
390 EXPECT_CALL(time_, GetSecondsSinceEpoch()).WillOnce(Return(today_seconds)); in LoadConnectCountByFrequency()
431 MockTime time_; member in shill::WiFiProviderTest
1778 provider_.time_ = &time_; in TEST_F()
1782 EXPECT_CALL(time_, GetSecondsSinceEpoch()).WillOnce(Return(kThisWeekSeconds)); in TEST_F()
1849 EXPECT_CALL(time_, GetSecondsSinceEpoch()).WillOnce(Return(kThisWeekSeconds)); in TEST_F()
1880 EXPECT_CALL(time_, GetSecondsSinceEpoch()). in TEST_F()

12