Home
last modified time | relevance | path

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

/system/update_engine/
Dpayload_state_unittest.cc69 PayloadState* payload_state, in SetupPayloadStateWith2Urls() argument
79 payload_state->SetResponse(*response); in SetupPayloadStateWith2Urls()
80 string stored_response_sign = payload_state->GetResponseSignature(); in SetupPayloadStateWith2Urls()
135 PayloadState payload_state; in TEST() local
136 EXPECT_TRUE(payload_state.Initialize(&fake_system_state)); in TEST()
137 payload_state.SetResponse(response); in TEST()
138 string stored_response_sign = payload_state.GetResponseSignature(); in TEST()
143 EXPECT_EQ("", payload_state.GetCurrentUrl()); in TEST()
144 EXPECT_EQ(0U, payload_state.GetUrlFailureCount()); in TEST()
145 EXPECT_EQ(0U, payload_state.GetUrlSwitchCount()); in TEST()
[all …]
Domaha_response_handler_action.cc63 string current_url = system_state_->payload_state()->GetCurrentUrl(); in PerformAction()
81 PayloadStateInterface* const payload_state = system_state_->payload_state(); in PerformAction() local
84 if (payload_state->GetUsingP2PForDownloading() && in PerformAction()
85 !payload_state->GetP2PUrl().empty()) { in PerformAction()
87 << " with local URL " << payload_state->GetP2PUrl() in PerformAction()
89 install_plan_.download_url = payload_state->GetP2PUrl(); in PerformAction()
90 payload_state->SetUsingP2PForDownloading(true); in PerformAction()
118 payload_state->UpdateResumed(); in PerformAction()
120 payload_state->UpdateRestarted(); in PerformAction()
225 if (payload_state->GetRollbackHappened()) { in PerformAction()
Dupdate_attempter.cc354 PayloadStateInterface* const payload_state = system_state_->payload_state(); in CalculateP2PParams() local
355 payload_state->SetUsingP2PForDownloading(use_p2p_for_downloading); in CalculateP2PParams()
356 payload_state->SetUsingP2PForSharing(use_p2p_for_sharing); in CalculateP2PParams()
369 PayloadStateInterface* const payload_state = system_state_->payload_state(); in CalculateUpdateParams() local
399 if (payload_state->GetUsingP2PForDownloading() || in CalculateUpdateParams()
400 payload_state->GetUsingP2PForSharing()) { in CalculateUpdateParams()
406 payload_state->SetUsingP2PForDownloading(false); in CalculateUpdateParams()
407 payload_state->SetUsingP2PForSharing(false); in CalculateUpdateParams()
471 << payload_state->GetUsingP2PForDownloading() in CalculateUpdateParams()
473 << payload_state->GetUsingP2PForSharing(); in CalculateUpdateParams()
[all …]
Dfake_system_state.h81 inline PayloadStateInterface* payload_state() override { in payload_state() function
144 inline void set_payload_state(PayloadStateInterface* payload_state) { in set_payload_state() argument
145 payload_state_ = payload_state ? payload_state : &mock_payload_state_; in set_payload_state()
Domaha_request_action.cc928 PayloadStateInterface* const payload_state = system_state_->payload_state(); in TransferComplete() local
1044 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()
1049 payload_state->SetUsingP2PForSharing(false); in TransferComplete()
1058 payload_state->SetResponse(output_object); in TransferComplete()
1062 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()
1063 payload_state->P2PNewAttempt(); in TransferComplete()
1064 if (!payload_state->P2PAttemptAllowed()) { in TransferComplete()
1067 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()
1080 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()
1090 PayloadStateInterface* payload_state = system_state_->payload_state(); in CompleteProcessing() local
[all …]
Dsystem_state.h91 virtual PayloadStateInterface* payload_state() = 0;
Dreal_system_state.h106 inline PayloadStateInterface* payload_state() override { in payload_state() function
DBUILD.gn211 "payload_state.cc",
/system/update_engine/payload_consumer/
Ddownload_action.cc299 const PayloadStateInterface* payload_state = system_state_->payload_state(); in StartDownloading() local
301 if (payload_state->GetUsingP2PForSharing()) { in StartDownloading()
325 if (payload_state->GetUsingP2PForDownloading() && in StartDownloading()
326 payload_state->GetP2PUrl() == install_plan_.download_url) { in StartDownloading()
419 system_state_->payload_state()->NextPayload()) { in TransferComplete()
428 system_state_->payload_state()->GetCurrentUrl(); in TransferComplete()