/system/update_engine/common/ |
D | http_fetcher_unittest.cc | 445 void TransferComplete(HttpFetcher* fetcher, bool successful) override { in TransferComplete() argument 447 EXPECT_EQ(kHttpResponseNotFound, fetcher->http_response_code()); in TransferComplete() 449 EXPECT_EQ(kHttpResponseOk, fetcher->http_response_code()); in TransferComplete() 456 void TransferTerminated(HttpFetcher* fetcher) override { in TransferTerminated() argument 480 unique_ptr<HttpFetcher> fetcher(this->test_.NewSmallFetcher()); in TYPED_TEST() local 481 fetcher->set_delegate(&delegate); in TYPED_TEST() 488 fetcher.get(), in TYPED_TEST() 496 unique_ptr<HttpFetcher> fetcher(this->test_.NewLargeFetcher()); in TYPED_TEST() local 497 fetcher->set_delegate(&delegate); in TYPED_TEST() 505 StartTransfer, fetcher.get(), this->test_.BigUrl(server->GetPort()))); in TYPED_TEST() [all …]
|
D | multi_range_http_fetcher.cc | 89 bool MultiRangeHttpFetcher::ReceivedBytes(HttpFetcher* fetcher, in ReceivedBytes() argument 93 CHECK_EQ(fetcher, base_fetcher_.get()); in ReceivedBytes() 116 fetcher->TerminateTransfer(); in ReceivedBytes() 123 void MultiRangeHttpFetcher::TransferEnded(HttpFetcher* fetcher, in TransferEnded() argument 126 CHECK_EQ(fetcher, base_fetcher_.get()); in TransferEnded() 128 http_response_code_ = fetcher->http_response_code(); in TransferEnded() 170 void MultiRangeHttpFetcher::TransferComplete(HttpFetcher* fetcher, in TransferComplete() argument 173 TransferEnded(fetcher, successful); in TransferComplete() 176 void MultiRangeHttpFetcher::TransferTerminated(HttpFetcher* fetcher) { in TransferTerminated() argument 178 TransferEnded(fetcher, false); in TransferTerminated()
|
D | multi_range_http_fetcher.h | 152 bool ReceivedBytes(HttpFetcher* fetcher, 157 void TransferEnded(HttpFetcher* fetcher, bool successful); 159 void TransferComplete(HttpFetcher* fetcher, bool successful) override; 160 void TransferTerminated(HttpFetcher* fetcher) override;
|
D | http_fetcher.h | 209 virtual bool ReceivedBytes(HttpFetcher* fetcher, 220 virtual void TransferComplete(HttpFetcher* fetcher, bool successful) = 0; 221 virtual void TransferTerminated(HttpFetcher* fetcher) {} in TransferTerminated() argument
|
/system/core/fs_mgr/liblp/ |
D | property_fetcher.cpp | 43 void IPropertyFetcher::OverrideForTesting(std::unique_ptr<IPropertyFetcher>&& fetcher) { in OverrideForTesting() argument 44 GetInstanceAllocation()->swap(fetcher); in OverrideForTesting() 45 fetcher.reset(); in OverrideForTesting()
|
/system/update_engine/payload_consumer/ |
D | download_action.h | 97 bool ReceivedBytes(HttpFetcher* fetcher, 101 void TransferComplete(HttpFetcher* fetcher, bool successful) override; 102 void TransferTerminated(HttpFetcher* fetcher) override;
|
D | download_action.cc | 362 bool DownloadAction::ReceivedBytes(HttpFetcher* fetcher, in ReceivedBytes() argument 403 void DownloadAction::TransferComplete(HttpFetcher* fetcher, bool successful) { in TransferComplete() argument 458 void DownloadAction::TransferTerminated(HttpFetcher* fetcher) { in TransferTerminated() argument 464 TransferComplete(fetcher, true); in TransferTerminated()
|
/system/libvintf/test/ |
D | vintf_object_tests.cpp | 361 MockFileSystem& fetcher() { in fetcher() function in android::vintf::testing::VintfObjectTestBase 371 EXPECT_CALL(fetcher(), listFiles(_, _, _)).Times(AnyNumber()) in useEmptyFileSystem() 373 EXPECT_CALL(fetcher(), fetch(_, _)).Times(AnyNumber()) in useEmptyFileSystem() 384 ON_CALL(fetcher(), fetch(StrEq(kVendorLegacyManifest), _)) in setupMockFetcher() 391 ON_CALL(fetcher(), fetch(StrEq(kSystemManifest), _)) in setupMockFetcher() 398 ON_CALL(fetcher(), fetch(StrEq(kVendorLegacyMatrix), _)) in setupMockFetcher() 404 ON_CALL(fetcher(), fetch(StrEq(kSystemLegacyMatrix), _)) in setupMockFetcher() 421 Mock::VerifyAndClear(&fetcher()); in TearDown() 425 EXPECT_CALL(fetcher(), fetch(StrEq(kVendorLegacyManifest), _)).Times(times); in expectVendorManifest() 429 EXPECT_CALL(fetcher(), fetch(StrEq(kSystemManifest), _)).Times(times); in expectSystemManifest() [all …]
|
/system/update_engine/ |
D | omaha_request_action.h | 123 bool ReceivedBytes(HttpFetcher* fetcher, 127 void TransferComplete(HttpFetcher* fetcher, bool successful) override;
|
D | update_attempter_android.cc | 283 HttpFetcher* fetcher = nullptr; in ApplyPayload() local 286 fetcher = new FileFetcher(); in ApplyPayload() 294 fetcher = libcurl_fetcher; in ApplyPayload() 299 fetcher->SetHeader("Authorization", headers[kPayloadPropertyAuthorization]); in ApplyPayload() 301 fetcher->SetHeader("User-Agent", headers[kPayloadPropertyUserAgent]); in ApplyPayload() 303 BuildUpdateActions(fetcher); in ApplyPayload() 721 void UpdateAttempterAndroid::BuildUpdateActions(HttpFetcher* fetcher) { in BuildUpdateActions() argument 737 fetcher, // passes ownership in BuildUpdateActions()
|
D | update_attempter_android.h | 133 void BuildUpdateActions(HttpFetcher* fetcher);
|
D | libcurl_http_fetcher.cc | 84 LibcurlHttpFetcher* fetcher = static_cast<LibcurlHttpFetcher*>(clientp); in LibcurlCloseSocketCallback() local 86 for (size_t t = 0; t < base::size(fetcher->fd_controller_maps_); ++t) { in LibcurlCloseSocketCallback() 87 fetcher->fd_controller_maps_[t].erase(item); in LibcurlCloseSocketCallback()
|
D | omaha_request_action_unittest.cc | 315 auto fetcher = static_cast<const MockHttpFetcher*>( in ActionCompleted() local 320 fetcher->GetHeader("X-Goog-Update-Interactivity")); in ActionCompleted() 321 EXPECT_EQ(kTestAppId, fetcher->GetHeader("X-Goog-Update-AppId")); in ActionCompleted() 322 EXPECT_NE("", fetcher->GetHeader("X-Goog-Update-Updater")); in ActionCompleted() 324 post_data_ = fetcher->post_data(); in ActionCompleted() 490 auto fetcher = in TestUpdateCheck() local 495 fetcher->FailTransfer(tuc_params_.fail_http_response_code); in TestUpdateCheck() 504 std::move(fetcher), in TestUpdateCheck()
|
D | update_attempter_unittest.cc | 521 unique_ptr<MockHttpFetcher> fetcher(new MockHttpFetcher("", 0, nullptr)); in TEST_F() local 522 fetcher->FailTransfer(503); // Sets the HTTP response code. in TEST_F() 527 fetcher.release(), in TEST_F() 626 unique_ptr<MockHttpFetcher> fetcher(new MockHttpFetcher("", 0, nullptr)); in TEST_F() local 627 fetcher->FailTransfer(500); // Sets the HTTP response code. in TEST_F() 629 &fake_system_state_, nullptr, std::move(fetcher), false, ""); in TEST_F()
|
D | omaha_request_action.cc | 489 bool OmahaRequestAction::ReceivedBytes(HttpFetcher* fetcher, in ReceivedBytes() argument 922 void OmahaRequestAction::TransferComplete(HttpFetcher* fetcher, in TransferComplete() argument 940 ErrorCode aux_error_code = fetcher->GetAuxiliaryErrorCode(); in TransferComplete()
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 360 sp<IFetcher> fetcher; member in HidlEnvironment 398 fetcher = IFetcher::getService("fetcher", mode == PASSTHROUGH /* getStub */); in getServices() 399 ASSERT_NE(fetcher, nullptr); in getServices() 400 ASSERT_EQ(fetcher->isRemote(), mode == BINDERIZED); in getServices() 450 sp<IFetcher> fetcher; member in HidlTest 466 fetcher = gHidlEnvironment->fetcher; in SetUp() 1783 Return<sp<IGrandparent>> ret = fetcher->getGrandparent(true); in TEST_F() 1789 Return<sp<IGrandparent>> ret = fetcher->getGrandparent(false); in TEST_F() 1795 Return<sp<IParent>> ret = fetcher->getParent(true); in TEST_F() 1801 Return<sp<IParent>> ret = fetcher->getParent(false); in TEST_F() [all …]
|