Home
last modified time | relevance | path

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

/system/update_engine/
Dpayload_state_unittest.cc65 PayloadState* payload_state, in SetupPayloadStateWith2Urls() argument
75 payload_state->SetResponse(*response); in SetupPayloadStateWith2Urls()
76 string stored_response_sign = payload_state->GetResponseSignature(); in SetupPayloadStateWith2Urls()
131 PayloadState payload_state; in TEST() local
132 EXPECT_TRUE(payload_state.Initialize(&fake_system_state)); in TEST()
133 payload_state.SetResponse(response); in TEST()
134 string stored_response_sign = payload_state.GetResponseSignature(); in TEST()
139 EXPECT_EQ("", payload_state.GetCurrentUrl()); in TEST()
140 EXPECT_EQ(0U, payload_state.GetUrlFailureCount()); in TEST()
141 EXPECT_EQ(0U, payload_state.GetUrlSwitchCount()); in TEST()
[all …]
Domaha_response_handler_action.cc63 string current_url = system_state_->payload_state()->GetCurrentUrl(); in PerformAction()
76 PayloadStateInterface* const payload_state = system_state_->payload_state(); in PerformAction() local
79 if (payload_state->GetUsingP2PForDownloading() && in PerformAction()
80 !payload_state->GetP2PUrl().empty()) { in PerformAction()
82 << " with local URL " << payload_state->GetP2PUrl() in PerformAction()
84 install_plan_.download_url = payload_state->GetP2PUrl(); in PerformAction()
85 payload_state->SetUsingP2PForDownloading(true); in PerformAction()
112 payload_state->UpdateResumed(); in PerformAction()
114 payload_state->UpdateRestarted(); in PerformAction()
Dupdate_attempter.cc355 PayloadStateInterface* const payload_state = system_state_->payload_state(); in UpdateAttempter() local
356 payload_state->SetUsingP2PForDownloading(use_p2p_for_downloading); in UpdateAttempter()
357 payload_state->SetUsingP2PForSharing(use_p2p_for_sharing); in UpdateAttempter()
367 PayloadStateInterface* const payload_state = system_state_->payload_state(); in UpdateAttempter() local
378 if (payload_state->GetUsingP2PForDownloading() || in UpdateAttempter()
379 payload_state->GetUsingP2PForSharing()) { in UpdateAttempter()
385 payload_state->SetUsingP2PForDownloading(false); in UpdateAttempter()
386 payload_state->SetUsingP2PForSharing(false); in UpdateAttempter()
431 << payload_state->GetUsingP2PForDownloading() in UpdateAttempter()
433 << payload_state->GetUsingP2PForSharing(); in UpdateAttempter()
[all …]
Domaha_request_action.cc1036 PayloadStateInterface* const payload_state = system_state_->payload_state(); in TransferComplete() local
1113 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()
1118 payload_state->SetUsingP2PForSharing(false); in TransferComplete()
1127 payload_state->SetResponse(output_object); in TransferComplete()
1131 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()
1132 payload_state->P2PNewAttempt(); in TransferComplete()
1133 if (!payload_state->P2PAttemptAllowed()) { in TransferComplete()
1136 payload_state->SetUsingP2PForDownloading(false); in TransferComplete()
1149 if (payload_state->GetUsingP2PForDownloading()) { in TransferComplete()
1159 PayloadStateInterface* payload_state = system_state_->payload_state(); in CompleteProcessing() local
[all …]
Dfake_system_state.h79 inline PayloadStateInterface* payload_state() override { in payload_state() function
138 inline void set_payload_state(PayloadStateInterface *payload_state) { in set_payload_state() argument
139 payload_state_ = payload_state ? payload_state : &mock_payload_state_; in set_payload_state()
Dsystem_state.h91 virtual PayloadStateInterface* payload_state() = 0;
Dreal_system_state.h105 inline PayloadStateInterface* payload_state() override { in payload_state() function
Dcommon_service.cc353 ErrorCode error_code = system_state_->payload_state()->GetAttemptErrorCode(); in GetLastAttemptError()
Dupdate_engine.gyp272 'payload_state.cc',
DAndroid.mk301 payload_state.cc \
/system/update_engine/payload_consumer/
Ddownload_action.cc248 const PayloadStateInterface* payload_state = system_state_->payload_state(); in StartDownloading() local
250 if (payload_state->GetUsingP2PForSharing()) { in StartDownloading()
274 if (payload_state->GetUsingP2PForDownloading() && in StartDownloading()
275 payload_state->GetP2PUrl() == install_plan_.download_url) { in StartDownloading()
367 system_state_->payload_state()->NextPayload()) { in TransferComplete()
374 system_state_->payload_state()->GetCurrentUrl(); in TransferComplete()