Home | History | Annotate | Download | only in update_engine

Lines Matching refs:Time

39 using base::Time;
405 LOG(INFO) << "No backoff expiry time has been set. "
410 if (backoff_expiry_time_ < Time::Now()) {
411 LOG(INFO) << "The backoff expiry time ("
433 // Update the payload attempt number for full payloads and the backoff time.
481 LOG(INFO) << "Resetting backoff expiry time as payload backoff is disabled";
482 SetBackoffExpiryTime(Time());
487 SetBackoffExpiryTime(Time());
505 // We don't want all retries to happen exactly at the same time when
510 LOG(INFO) << "Incrementing the backoff expiry time by "
512 SetBackoffExpiryTime(Time::Now() + next_backoff_interval);
582 double sec = static_cast<double>(usec) / Time::kMicrosecondsPerSecond;
758 UpdateBackoffExpiryTime(); // This will reset the backoff expiry time.
760 SetUpdateTimestampEnd(Time()); // Set to null time
765 SetP2PFirstAttemptTimestamp(Time()); // Set to null time
936 Time stored_time = Time::FromInternalValue(stored_value);
937 if (stored_time > Time::Now() + TimeDelta::FromDays(kMaxBackoffDays)) {
938 LOG(ERROR) << "Invalid backoff expiry time ("
941 stored_time = Time();
946 void PayloadState::SetBackoffExpiryTime(const Time& new_time) {
949 LOG(INFO) << "Backoff Expiry Time = "
956 Time end_time = update_timestamp_end_.is_null()
964 Time stored_time;
968 Time now = system_state_->clock()->GetWallclockTime();
972 // use the current time as start time
978 stored_time = Time::FromInternalValue(stored_value);
981 // Sanity check: If the time read from disk is in the future
998 void PayloadState::SetUpdateTimestampStart(const Time& value) {
1007 void PayloadState::SetUpdateTimestampEnd(const Time& value) {
1070 const Time& timestamp,
1084 Time now = system_state_->clock()->GetMonotonicTime();
1089 Time now = system_state_->clock()->GetMonotonicTime();
1211 // Avoid the UpdateEngineStarted actions if this is not the first time we
1220 Time system_updated_at = Time::FromInternalValue(stored_value);
1335 Time PayloadState::GetP2PFirstAttemptTimestamp() {
1339 void PayloadState::SetP2PFirstAttemptTimestamp(const Time& time) {
1340 p2p_first_attempt_timestamp_ = time;
1344 int64_t stored_value = time.ToInternalValue();
1350 Time stored_time = Time::FromInternalValue(stored_value);
1374 Time now = system_state_->clock()->GetWallclockTime();
1377 LOG(ERROR) << "Time spent attempting p2p is negative"
1382 LOG(INFO) << "Time spent attempting p2p is "