/system/libvintf/ |
H A D | utils.cpp | 23 static FileFetcher fetcher; member in namespace:android::vintf::details 24 FileFetcher* gFetcher = &fetcher;
|
/system/update_engine/common/ |
H A D | multi_range_http_fetcher.cc | 89 void MultiRangeHttpFetcher::ReceivedBytes(HttpFetcher* fetcher, argument 93 CHECK_EQ(fetcher, base_fetcher_.get()); 107 // Terminates the current fetcher. Waits for its TransferTerminated 113 fetcher->TerminateTransfer(); 118 void MultiRangeHttpFetcher::TransferEnded(HttpFetcher* fetcher, argument 121 CHECK_EQ(fetcher, base_fetcher_.get()); 123 http_response_code_ = fetcher->http_response_code(); 165 void MultiRangeHttpFetcher::TransferComplete(HttpFetcher* fetcher, argument 168 TransferEnded(fetcher, successful); 171 void MultiRangeHttpFetcher::TransferTerminated(HttpFetcher* fetcher) { argument [all...] |
H A D | http_fetcher.h | 88 // Begins the transfer to the specified URL. This fetcher instance should not 113 // These two function are overloaded in LibcurlHttp fetcher to speed 130 // Get the total number of bytes downloaded by fetcher. 190 virtual void ReceivedBytes(HttpFetcher* fetcher, 194 // Called if the fetcher seeks to a particular offset. 200 // situations. It's OK to destroy the |fetcher| object in this callback. 201 virtual void TransferComplete(HttpFetcher* fetcher, bool successful) = 0; 202 virtual void TransferTerminated(HttpFetcher* fetcher) {} argument
|
/system/libvintf/test/ |
H A D | vintf_object_tests.cpp | 170 MockFileFetcher* fetcher = static_cast<MockFileFetcher*>(gFetcher); local 172 ON_CALL(*fetcher, fetch(StrEq("/vendor/manifest.xml"), _)) 178 ON_CALL(*fetcher, fetch(StrEq("/system/manifest.xml"), _)) 184 ON_CALL(*fetcher, fetch(StrEq("/vendor/compatibility_matrix.xml"), _)) 190 ON_CALL(*fetcher, fetch(StrEq("/system/compatibility_matrix.xml"), _)) 201 static MockFileFetcher &fetcher() { function 215 Mock::VerifyAndClear(&fetcher()); 225 EXPECT_CALL(fetcher(), fetch(StrEq("/vendor/manifest.xml"), _)); 226 EXPECT_CALL(fetcher(), fetch(StrEq("/system/manifest.xml"), _)); 227 EXPECT_CALL(fetcher(), fetc 445 NiceMock<MockFileFetcher> fetcher; local [all...] |
/system/update_engine/payload_consumer/ |
H A D | download_action.cc | 272 // Tweak timeouts on the HTTP fetcher if we're downloading from a 276 LOG(INFO) << "Tweaking HTTP fetcher since we're downloading via p2p"; 311 void DownloadAction::ReceivedBytes(HttpFetcher* fetcher, argument 333 // the TransferTerminated callback. Otherwise, this and the HTTP fetcher 349 void DownloadAction::TransferComplete(HttpFetcher* fetcher, bool successful) { argument 386 void DownloadAction::TransferTerminated(HttpFetcher* fetcher) { argument 392 TransferComplete(fetcher, true);
|
/system/update_engine/ |
H A D | libcurl_http_fetcher.cc | 78 LibcurlHttpFetcher* fetcher = static_cast<LibcurlHttpFetcher*>(clientp); local 80 for (size_t t = 0; t < arraysize(fetcher->fd_task_maps_); ++t) { 81 const auto fd_task_pair = fetcher->fd_task_maps_[t].find(item); 82 if (fd_task_pair != fetcher->fd_task_maps_[t].end()) { 88 fetcher->fd_task_maps_[t].erase(item); 111 << "Destroying the fetcher while a transfer is in progress."; 414 // the fetcher is unpaused. 571 LOG(ERROR) << "Resume attempted when fetcher not paused.";
|
H A D | update_attempter_android.cc | 213 HttpFetcher* fetcher = download_action_->http_fetcher(); local 215 fetcher->SetHeader("Authorization", headers[kPayloadPropertyAuthorization]); 217 fetcher->SetHeader("User-Agent", headers[kPayloadPropertyUserAgent]);
|
H A D | omaha_request_action_unittest.cc | 365 MockHttpFetcher* fetcher = new MockHttpFetcher(http_response.data(), local 369 fetcher->FailTransfer(fail_http_response_code); 375 brillo::make_unique_ptr(fetcher), 414 *out_post_data = fetcher->post_data(); 427 MockHttpFetcher* fetcher = new MockHttpFetcher(http_response.data(), local 434 brillo::make_unique_ptr(fetcher), 448 *out_post_data = fetcher->post_data(); 699 MockHttpFetcher* fetcher = local 702 &fake_system_state_, nullptr, brillo::make_unique_ptr(fetcher), false); 712 // Check that the headers were set in the fetcher durin [all...] |
H A D | omaha_request_action.cc | 735 void OmahaRequestAction::ReceivedBytes(HttpFetcher *fetcher, argument 1030 void OmahaRequestAction::TransferComplete(HttpFetcher *fetcher, argument
|
/system/tools/hidl/test/ |
H A D | hidl_test_client.cpp | 368 sp<IFetcher> fetcher; member in class:HidlEnvironment 405 fetcher = IFetcher::getService("fetcher", mode == PASSTHROUGH /* getStub */); 406 ASSERT_NE(fetcher, nullptr); 407 ASSERT_EQ(fetcher->isRemote(), mode == BINDERIZED); 452 sp<IFetcher> fetcher; member in class:HidlTest 467 fetcher = gHidlEnvironment->fetcher; 581 "android.hardware.tests.inheritance@1.0::IFetcher/fetcher", 1556 Return<sp<IGrandparent>> ret = fetcher [all...] |