Searched refs:FormatTimeDelta (Results 1 – 8 of 8) sorted by relevance
/system/update_engine/common/ |
D | utils_unittest.cc | 215 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromMilliseconds(100)), in TEST() 217 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(0)), "0s"); in TEST() 218 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(1)), "1s"); in TEST() 219 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(59)), "59s"); in TEST() 220 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(60)), "1m0s"); in TEST() 221 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(61)), "1m1s"); in TEST() 222 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(90)), "1m30s"); in TEST() 223 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(1205)), in TEST() 225 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(3600)), in TEST() 227 EXPECT_EQ(utils::FormatTimeDelta(base::TimeDelta::FromSeconds(3601)), in TEST() [all …]
|
D | utils.h | 249 std::string FormatTimeDelta(base::TimeDelta delta);
|
D | utils.cc | 710 return FormatTimeDelta(TimeDelta::FromSeconds(secs)); in FormatSecs() 713 string FormatTimeDelta(TimeDelta delta) { in FormatTimeDelta() function
|
/system/update_engine/ |
D | metrics_reporter_omaha.cc | 149 LOG(INFO) << "Uploading " << utils::FormatTimeDelta(os_age) << " for metric " in ReportDailyMetrics() 194 LOG(INFO) << "Sending " << utils::FormatTimeDelta(time_since_last) in ReportUpdateCheckMetrics() 208 LOG(INFO) << "Sending " << utils::FormatTimeDelta(uptime_since_last) in ReportUpdateCheckMetrics() 273 LOG(INFO) << "Uploading " << utils::FormatTimeDelta(duration) in ReportUpdateAttemptMetrics() 282 LOG(INFO) << "Uploading " << utils::FormatTimeDelta(duration_uptime) in ReportUpdateAttemptMetrics() 317 LOG(INFO) << "Sending " << utils::FormatTimeDelta(time_since_last) in ReportUpdateAttemptMetrics() 331 LOG(INFO) << "Sending " << utils::FormatTimeDelta(uptime_since_last) in ReportUpdateAttemptMetrics() 469 LOG(INFO) << "Uploading " << utils::FormatTimeDelta(total_duration) in ReportSuccessfulUpdateMetrics() 478 LOG(INFO) << "Uploading " << utils::FormatTimeDelta(total_duration_uptime) in ReportSuccessfulUpdateMetrics()
|
D | payload_state.cc | 563 << utils::FormatTimeDelta(next_backoff_interval); in UpdateBackoffExpiryTime() 1069 << utils::FormatTimeDelta(duration_according_to_stored_time) in LoadUpdateTimestampStart() 1114 << utils::FormatTimeDelta(stored_delta) in LoadUpdateDurationUptime() 1115 << ") in persisted state is " << utils::FormatTimeDelta(diff) in LoadUpdateDurationUptime() 1172 << utils::FormatTimeDelta(update_duration_uptime_); in SetUpdateDurationUptimeExtended() 1440 << utils::FormatTimeDelta(time_spent_attempting_p2p) in P2PAttemptAllowed() 1442 << utils::FormatTimeDelta( in P2PAttemptAllowed()
|
D | update_attempter.cc | 196 << utils::FormatTimeDelta(time_reported_since) << " ago " in CheckAndReportDailyMetrics() 204 << utils::FormatTimeDelta(time_reported_since) << " ago."; in CheckAndReportDailyMetrics() 208 << utils::FormatTimeDelta(time_reported_since) << " ago, " in CheckAndReportDailyMetrics() 238 LOG(ERROR) << "The OS age (" << utils::FormatTimeDelta(age) in ReportOSAge()
|
/system/update_engine/update_manager/ |
D | boxed_value.cc | 96 return chromeos_update_engine::utils::FormatTimeDelta(*val); in ValuePrinter()
|
D | evaluation_context.cc | 218 << chromeos_update_engine::utils::FormatTimeDelta(timeout); in RunOnValueChangeOrTimeout()
|