Home
last modified time | relevance | path

Searched refs:payload_state (Results 1 – 9 of 9) sorted by relevance

/system/update_engine/cros/
Dpayload_state_unittest.cc67 PayloadState* payload_state, in SetupPayloadStateWith2Urls() argument
77 payload_state->SetResponse(*response); in SetupPayloadStateWith2Urls()
78 string stored_response_sign = payload_state->GetResponseSignature(); in SetupPayloadStateWith2Urls()
139 PayloadState payload_state; in TEST_F() local
140 EXPECT_TRUE(payload_state.Initialize()); in TEST_F()
141 payload_state.SetResponse(response); in TEST_F()
142 string stored_response_sign = payload_state.GetResponseSignature(); in TEST_F()
147 EXPECT_EQ("", payload_state.GetCurrentUrl()); in TEST_F()
148 EXPECT_EQ(0U, payload_state.GetUrlFailureCount()); in TEST_F()
149 EXPECT_EQ(0U, payload_state.GetUrlSwitchCount()); in TEST_F()
[all …]
Domaha_response_handler_action.cc62 string current_url = SystemState::Get()->payload_state()->GetCurrentUrl(); in PerformAction()
79 PayloadStateInterface* const payload_state = in PerformAction() local
80 SystemState::Get()->payload_state(); in PerformAction()
83 if (payload_state->GetUsingP2PForDownloading() && in PerformAction()
84 !payload_state->GetP2PUrl().empty()) { in PerformAction()
86 << " with local URL " << payload_state->GetP2PUrl() in PerformAction()
88 install_plan_.download_url = payload_state->GetP2PUrl(); in PerformAction()
89 payload_state->SetUsingP2PForDownloading(true); in PerformAction()
119 payload_state->UpdateResumed(); in PerformAction()
121 payload_state->UpdateRestarted(); in PerformAction()
[all …]
Dupdate_attempter.cc362 PayloadStateInterface* const payload_state = in CalculateP2PParams() local
363 SystemState::Get()->payload_state(); in CalculateP2PParams()
364 payload_state->SetUsingP2PForDownloading(use_p2p_for_downloading); in CalculateP2PParams()
365 payload_state->SetUsingP2PForSharing(use_p2p_for_sharing); in CalculateP2PParams()
370 PayloadStateInterface* const payload_state = in CalculateUpdateParams() local
371 SystemState::Get()->payload_state(); in CalculateUpdateParams()
387 if (payload_state->GetUsingP2PForDownloading() || in CalculateUpdateParams()
388 payload_state->GetUsingP2PForSharing()) { in CalculateUpdateParams()
394 payload_state->SetUsingP2PForDownloading(false); in CalculateUpdateParams()
395 payload_state->SetUsingP2PForSharing(false); in CalculateUpdateParams()
[all …]
Ddownload_action_chromeos.cc300 const PayloadStateInterface* payload_state = in StartDownloading() local
301 SystemState::Get()->payload_state(); in StartDownloading()
303 if (payload_state->GetUsingP2PForSharing()) { in StartDownloading()
327 if (payload_state->GetUsingP2PForDownloading() && in StartDownloading()
328 payload_state->GetP2PUrl() == install_plan_.download_url) { in StartDownloading()
422 SystemState::Get()->payload_state()->NextPayload()) { in TransferComplete()
431 SystemState::Get()->payload_state()->GetCurrentUrl(); in TransferComplete()
Dfake_system_state.h92 inline PayloadStateInterface* payload_state() override { in payload_state() function
155 inline void set_payload_state(PayloadStateInterface* payload_state) { in set_payload_state() argument
156 payload_state_ = payload_state ? payload_state : &mock_payload_state_; in set_payload_state()
Domaha_request_action.cc958 PayloadStateInterface* const payload_state = in TransferComplete() local
959 SystemState::Get()->payload_state(); in TransferComplete()
1077 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()
1082 payload_state->SetUsingP2PForSharing(false); in TransferComplete()
1091 payload_state->SetResponse(output_object); in TransferComplete()
1095 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()
1096 payload_state->P2PNewAttempt(); in TransferComplete()
1097 if (!payload_state->P2PAttemptAllowed()) { in TransferComplete()
1100 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()
1113 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()
[all …]
Dreal_system_state.h91 PayloadStateInterface* payload_state() override { return &payload_state_; } in payload_state() function
/system/update_engine/common/
Dsystem_state.h97 virtual PayloadStateInterface* payload_state() = 0;
/system/update_engine/
DBUILD.gn207 "cros/payload_state.cc",