/system/core/metricsd/ |
D | timer_test.cc | 79 base::TimeDelta elapsed_time; in TEST_F() local 80 ASSERT_TRUE(timer_.GetElapsedTime(&elapsed_time)); in TEST_F() 82 elapsed_time.InMilliseconds()); in TEST_F() 123 base::TimeDelta elapsed_time; in TEST_F() local 124 ASSERT_TRUE(timer_.GetElapsedTime(&elapsed_time)); in TEST_F() 126 elapsed_time.InMilliseconds()); in TEST_F() 138 base::TimeDelta elapsed_time = timer_.elapsed_time_; in TEST_F() local 140 ASSERT_TRUE(elapsed_time == timer_.elapsed_time_); in TEST_F() 144 base::TimeDelta elapsed_time; in TEST_F() local 145 ASSERT_FALSE(timer_.GetElapsedTime(&elapsed_time)); in TEST_F() [all …]
|
D | timer.cc | 88 bool Timer::GetElapsedTime(base::TimeDelta* elapsed_time) const { in GetElapsedTime() 89 if (start_time_.is_null() || !elapsed_time) in GetElapsedTime() 91 *elapsed_time = elapsed_time_; in GetElapsedTime() 93 *elapsed_time += clock_wrapper_->GetCurrentTime() - start_time_; in GetElapsedTime() 109 base::TimeDelta elapsed_time; in ReportMilliseconds() local 110 if (!metrics_lib_ || !GetElapsedTime(&elapsed_time)) return false; in ReportMilliseconds() 112 elapsed_time.InMilliseconds(), in ReportMilliseconds()
|
/system/extras/crypto-perf/ |
D | crypto.cpp | 118 struct timeval begin_time, end_time, elapsed_time; in main() local 132 timersub(&end_time, &begin_time, &elapsed_time); in main() 134 elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec); in main() 139 (elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec)); in main() 143 ((elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec) * in main() 155 timersub(&end_time, &begin_time, &elapsed_time); in main() 157 elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec); in main() 162 (elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec)); in main() 166 ((elapsed_time.tv_sec * USEC_PER_SEC + elapsed_time.tv_usec) * in main()
|
/system/extras/tests/pagingtest/ |
D | mmap_test.c | 15 struct timeval begin_time, end_time, elapsed_time; in mmap_test() local 31 timersub(&end_time, &begin_time, &elapsed_time); in mmap_test() 32 timeradd(&total_time_mmap, &elapsed_time, &total_time_mmap); in mmap_test() 37 timersub(&end_time, &begin_time, &elapsed_time); in mmap_test() 38 timeradd(&total_time_mmap, &elapsed_time, &total_time_mmap); in mmap_test()
|
D | pageinout_test.c | 20 struct timeval begin_time, end_time, elapsed_time, total_time_in, total_time_out; in pageinout_test() local 54 timersub(&end_time, &begin_time, &elapsed_time); in pageinout_test() 55 timeradd(&total_time_in, &elapsed_time, &total_time_in); in pageinout_test() 70 timersub(&end_time, &begin_time, &elapsed_time); in pageinout_test() 71 timeradd(&total_time_out, &elapsed_time, &total_time_out); in pageinout_test()
|
D | thrashing_test.c | 19 struct timeval begin_time, end_time, elapsed_time, total_time; in thrashing_test() local 60 timersub(&end_time, &begin_time, &elapsed_time); in thrashing_test() 61 timeradd(&total_time, &elapsed_time, &total_time); in thrashing_test()
|
/system/connectivity/shill/ |
D | portal_detector.cc | 165 struct timeval now, elapsed_time; in AdjustStartDelay() local 167 timersub(&now, &attempt_start_time_, &elapsed_time); in AdjustStartDelay() 169 << elapsed_time.tv_sec << " seconds."; in AdjustStartDelay() 170 if (elapsed_time.tv_sec < kMinTimeBetweenAttemptsSeconds) { in AdjustStartDelay() 172 elapsed_time.tv_sec; in AdjustStartDelay()
|
D | link_monitor.cc | 126 struct timeval now, elapsed_time; in OnActiveLinkMonitorFailure() local 128 timersub(&now, &started_monitoring_at_, &elapsed_time); in OnActiveLinkMonitorFailure() 133 elapsed_time.tv_sec, in OnActiveLinkMonitorFailure()
|
D | active_link_monitor.cc | 268 struct timeval now, elapsed_time; in ReceiveResponse() local 270 timersub(&now, &sent_request_at_, &elapsed_time); in ReceiveResponse() 272 AddResponseTimeSample(elapsed_time.tv_sec * 1000 + in ReceiveResponse() 273 elapsed_time.tv_usec / 1000); in ReceiveResponse()
|
D | metrics.cc | 828 base::TimeDelta elapsed_time; in NotifyTerminationActionsCompleted() local 829 time_termination_actions_timer->GetElapsedTime(&elapsed_time); in NotifyTerminationActionsCompleted() 836 elapsed_time.InMilliseconds(), in NotifyTerminationActionsCompleted() 863 base::TimeDelta elapsed_time; in NotifySuspendActionsCompleted() local 864 time_suspend_actions_timer->GetElapsedTime(&elapsed_time); in NotifySuspendActionsCompleted() 871 elapsed_time.InMilliseconds(), in NotifySuspendActionsCompleted() 899 base::TimeDelta elapsed_time; in NotifyDarkResumeActionsCompleted() local 900 time_dark_resume_actions_timer->GetElapsedTime(&elapsed_time); in NotifyDarkResumeActionsCompleted() 904 elapsed_time.InMilliseconds(), in NotifyDarkResumeActionsCompleted() 1167 base::TimeDelta elapsed_time; in NotifyDeviceScanFinished() local [all …]
|
D | dns_client.cc | 352 struct timeval now, elapsed_time, timeout_tv; in RefreshHandles() local 354 timersub(&now, &resolver_state_->start_time, &elapsed_time); in RefreshHandles() 359 if (timercmp(&elapsed_time, &timeout_tv, >=)) { in RefreshHandles() 377 timersub(&timeout_tv, &elapsed_time, &max); in RefreshHandles()
|
/system/core/init/ |
D | bootchart.cpp | 253 int elapsed_time = current_time - g_last_bootchart_time; in bootchart_sample() local 255 if (elapsed_time >= BOOTCHART_POLLING_MS) { in bootchart_sample() 257 while (elapsed_time >= BOOTCHART_POLLING_MS) { in bootchart_sample() 258 elapsed_time -= BOOTCHART_POLLING_MS; in bootchart_sample() 269 int remaining_time = BOOTCHART_POLLING_MS - elapsed_time; in bootchart_sample()
|
/system/core/metricsd/include/metrics/ |
D | timer_mock.h | 34 MOCK_CONST_METHOD1(GetElapsedTime, bool(base::TimeDelta* elapsed_time)); 44 MOCK_CONST_METHOD1(GetElapsedTime, bool(base::TimeDelta* elapsed_time));
|
D | timer.h | 91 virtual bool GetElapsedTime(base::TimeDelta* elapsed_time) const;
|
/system/connectivity/shill/wifi/ |
D | scan_session.cc | 315 base::TimeDelta elapsed_time; in ReportResults() local 316 ebusy_timer_.GetElapsedTime(&elapsed_time); in ReportResults() 319 elapsed_time.InMilliseconds(), in ReportResults() 324 SLOG(this, log_level) << "Spent " << elapsed_time.InMillisecondsRoundedUp() in ReportResults()
|
D | wifi.cc | 2501 base::TimeDelta elapsed_time; in SetScanState() local 2507 if (!scan_timer_.GetElapsedTime(&elapsed_time)) { in SetScanState() 2516 << " @ " << elapsed_time.InMillisecondsF() in SetScanState()
|
/system/update_engine/ |
D | omaha_request_action.cc | 1211 TimeDelta elapsed_time = Time::Now() - update_first_seen_at; in IsWallClockBasedWaitingSatisfied() local 1218 << utils::FormatSecs(elapsed_time.InSeconds()) in IsWallClockBasedWaitingSatisfied() 1238 if (elapsed_time > max_scatter_period) { in IsWallClockBasedWaitingSatisfied() 1248 TimeDelta remaining_wait_time = params_->waiting_period() - elapsed_time; in IsWallClockBasedWaitingSatisfied()
|
/system/extras/f2fs_utils/ |
D | f2fs_sparseblock.c | 121 D_DISP_u64(cp, elapsed_time); in dbg_print_raw_ckpt_struct()
|
/system/vold/ |
D | cryptfs.c | 2290 double elapsed_time = difftime(time_now.tv_sec, data->time_started); local 2293 int remaining_time = (int)(elapsed_time * remaining_blocks
|