Home
last modified time | relevance | path

Searched refs:fetcher (Results 1 – 15 of 15) sorted by relevance

/system/update_engine/common/
Dhttp_fetcher_unittest.cc422 void TransferComplete(HttpFetcher* fetcher, bool successful) override { in TransferComplete() argument
424 EXPECT_EQ(kHttpResponseNotFound, fetcher->http_response_code()); in TransferComplete()
426 EXPECT_EQ(kHttpResponseOk, fetcher->http_response_code()); in TransferComplete()
433 void TransferTerminated(HttpFetcher* fetcher) override { in TransferTerminated() argument
458 unique_ptr<HttpFetcher> fetcher(this->test_.NewSmallFetcher()); in TYPED_TEST() local
459 fetcher->set_delegate(&delegate); in TYPED_TEST()
466 fetcher.get(), in TYPED_TEST()
474 unique_ptr<HttpFetcher> fetcher(this->test_.NewLargeFetcher()); in TYPED_TEST() local
475 fetcher->set_delegate(&delegate); in TYPED_TEST()
482 fetcher.get(), in TYPED_TEST()
[all …]
Dmulti_range_http_fetcher.cc89 void MultiRangeHttpFetcher::ReceivedBytes(HttpFetcher* fetcher, in ReceivedBytes() argument
93 CHECK_EQ(fetcher, base_fetcher_.get()); in ReceivedBytes()
113 fetcher->TerminateTransfer(); in ReceivedBytes()
118 void MultiRangeHttpFetcher::TransferEnded(HttpFetcher* fetcher, in TransferEnded() argument
121 CHECK_EQ(fetcher, base_fetcher_.get()); in TransferEnded()
123 http_response_code_ = fetcher->http_response_code(); in TransferEnded()
165 void MultiRangeHttpFetcher::TransferComplete(HttpFetcher* fetcher, in TransferComplete() argument
168 TransferEnded(fetcher, successful); in TransferComplete()
171 void MultiRangeHttpFetcher::TransferTerminated(HttpFetcher* fetcher) { in TransferTerminated() argument
173 TransferEnded(fetcher, false); in TransferTerminated()
Dmulti_range_http_fetcher.h149 void ReceivedBytes(HttpFetcher* fetcher,
154 void TransferEnded(HttpFetcher* fetcher, bool successful);
156 void TransferComplete(HttpFetcher* fetcher, bool successful) override;
157 void TransferTerminated(HttpFetcher* fetcher) override;
Dhttp_fetcher.h190 virtual void ReceivedBytes(HttpFetcher* fetcher,
201 virtual void TransferComplete(HttpFetcher* fetcher, bool successful) = 0;
202 virtual void TransferTerminated(HttpFetcher* fetcher) {} in TransferTerminated() argument
/system/libvintf/
Dutils.cpp27 static FileFetcher fetcher; variable
28 FileFetcher* gFetcher = &fetcher;
52 static DevicePropertyFetcher fetcher; in getPropertyFetcher() local
53 return fetcher; in getPropertyFetcher()
57 static PropertyFetcher fetcher; in getPropertyFetcher() local
58 return fetcher; in getPropertyFetcher()
/system/libvintf/test/
Dvintf_object_tests.cpp285 MockFileFetcher* fetcher = static_cast<MockFileFetcher*>(gFetcher); in setupMockFetcher() local
288 ON_CALL(*fetcher, fetch(StrEq(kOdmLegacyVintfDir + "manifest_" + productModel + ".xml"), _)) in setupMockFetcher()
290 ON_CALL(*fetcher, fetch(StrEq(kOdmVintfDir + "manifest_" + productModel + ".xml"), _)) in setupMockFetcher()
293 ON_CALL(*fetcher, fetch(StrEq(kOdmLegacyManifest), _)) in setupMockFetcher()
295 ON_CALL(*fetcher, fetch(StrEq(kOdmManifest), _)) in setupMockFetcher()
297 ON_CALL(*fetcher, fetch(StrEq(kVendorManifest), _)) in setupMockFetcher()
299 ON_CALL(*fetcher, fetch(StrEq(kVendorLegacyManifest), _)) in setupMockFetcher()
305 ON_CALL(*fetcher, fetch(StrEq(kSystemManifest), _)) in setupMockFetcher()
311 ON_CALL(*fetcher, fetch(StrEq(kVendorMatrix), _)) in setupMockFetcher()
313 ON_CALL(*fetcher, fetch(StrEq(kVendorLegacyMatrix), _)) in setupMockFetcher()
[all …]
/system/update_engine/payload_consumer/
Ddownload_action.h100 void ReceivedBytes(HttpFetcher* fetcher,
103 void TransferComplete(HttpFetcher* fetcher, bool successful) override;
104 void TransferTerminated(HttpFetcher* fetcher) override;
Ddownload_action.cc321 void DownloadAction::ReceivedBytes(HttpFetcher* fetcher, in ReceivedBytes() argument
361 void DownloadAction::TransferComplete(HttpFetcher* fetcher, bool successful) { in TransferComplete() argument
411 void DownloadAction::TransferTerminated(HttpFetcher* fetcher) { in TransferTerminated() argument
417 TransferComplete(fetcher, true); in TransferTerminated()
/system/update_engine/
Domaha_request_action.h166 void ReceivedBytes(HttpFetcher *fetcher,
169 void TransferComplete(HttpFetcher *fetcher, bool successful) override;
Dlibcurl_http_fetcher.cc78 LibcurlHttpFetcher* fetcher = static_cast<LibcurlHttpFetcher*>(clientp); in LibcurlCloseSocketCallback() local
80 for (size_t t = 0; t < arraysize(fetcher->fd_task_maps_); ++t) { in LibcurlCloseSocketCallback()
81 const auto fd_task_pair = fetcher->fd_task_maps_[t].find(item); in LibcurlCloseSocketCallback()
82 if (fd_task_pair != fetcher->fd_task_maps_[t].end()) { in LibcurlCloseSocketCallback()
88 fetcher->fd_task_maps_[t].erase(item); in LibcurlCloseSocketCallback()
Dupdate_attempter_unittest.cc200 unique_ptr<MockHttpFetcher> fetcher(new MockHttpFetcher("", 0, nullptr)); in TEST_F() local
201 fetcher->FailTransfer(503); // Sets the HTTP response code. in TEST_F()
206 fetcher.release(), in TEST_F()
306 unique_ptr<MockHttpFetcher> fetcher(new MockHttpFetcher("", 0, nullptr)); in TEST_F() local
307 fetcher->FailTransfer(500); // Sets the HTTP response code. in TEST_F()
309 std::move(fetcher), false); in TEST_F()
Domaha_request_action_unittest.cc372 MockHttpFetcher* fetcher = new MockHttpFetcher(http_response.data(), in TestUpdateCheck() local
376 fetcher->FailTransfer(fail_http_response_code); in TestUpdateCheck()
382 base::WrapUnique(fetcher), in TestUpdateCheck()
414 *out_post_data = fetcher->post_data(); in TestUpdateCheck()
427 MockHttpFetcher* fetcher = new MockHttpFetcher(http_response.data(), in TestEvent() local
434 base::WrapUnique(fetcher), in TestEvent()
448 *out_post_data = fetcher->post_data(); in TestEvent()
736 MockHttpFetcher* fetcher = in TEST_F() local
739 base::WrapUnique(fetcher), false); in TEST_F()
751 EXPECT_EQ("fg", fetcher->GetHeader("X-GoogleUpdate-Interactivity")); in TEST_F()
[all …]
Dupdate_attempter_android.cc251 HttpFetcher* fetcher = download_action_->http_fetcher(); in ApplyPayload() local
253 fetcher->SetHeader("Authorization", headers[kPayloadPropertyAuthorization]); in ApplyPayload()
255 fetcher->SetHeader("User-Agent", headers[kPayloadPropertyUserAgent]); in ApplyPayload()
Domaha_request_action.cc787 void OmahaRequestAction::ReceivedBytes(HttpFetcher *fetcher, in ReceivedBytes() argument
1095 void OmahaRequestAction::TransferComplete(HttpFetcher *fetcher, in TransferComplete() argument
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp309 sp<IFetcher> fetcher; member in HidlEnvironment
347 fetcher = IFetcher::getService("fetcher", mode == PASSTHROUGH /* getStub */); in getServices()
348 ASSERT_NE(fetcher, nullptr); in getServices()
349 ASSERT_EQ(fetcher->isRemote(), mode == BINDERIZED); in getServices()
398 sp<IFetcher> fetcher; member in HidlTest
414 fetcher = gHidlEnvironment->fetcher; in SetUp()
1623 Return<sp<IGrandparent>> ret = fetcher->getGrandparent(true); in TEST_F()
1629 Return<sp<IGrandparent>> ret = fetcher->getGrandparent(false); in TEST_F()
1635 Return<sp<IParent>> ret = fetcher->getParent(true); in TEST_F()
1641 Return<sp<IParent>> ret = fetcher->getParent(false); in TEST_F()
[all …]