Home
last modified time | relevance | path

Searched refs:DownloadContext (Results 1 – 25 of 103) sorted by relevance

12345

/dports/www/aria2/aria2-1.36.0/src/
H A DDownloadContext.cc50 DownloadContext::DownloadContext() in DownloadContext() function in aria2::DownloadContext
65 DownloadContext::DownloadContext(int32_t pieceLength, int64_t totalLength, in DownloadContext() function in aria2::DownloadContext
83 DownloadContext::~DownloadContext() = default;
85 void DownloadContext::resetDownloadStartTime() in resetDownloadStartTime()
91 void DownloadContext::resetDownloadStopTime() in resetDownloadStopTime()
136 void DownloadContext::setFileFilter(SegList<int> sgl) in setFileFilter()
190 DownloadContext::getAttributes() const in getAttributes()
195 void DownloadContext::releaseRuntimeResource() in releaseRuntimeResource()
206 size_t DownloadContext::getNumPieces() const in getNumPieces()
218 int64_t DownloadContext::getTotalLength() const in getTotalLength()
[all …]
H A Dbittorrent_helper.h56 class DownloadContext; variable
67 const std::shared_ptr<DownloadContext>& ctx,
72 const std::shared_ptr<DownloadContext>& ctx,
78 const std::shared_ptr<DownloadContext>& ctx,
84 const std::shared_ptr<DownloadContext>& ctx,
91 const std::shared_ptr<DownloadContext>& ctx,
97 const std::shared_ptr<DownloadContext>& ctx,
104 const std::shared_ptr<DownloadContext>& ctx,
125 const std::shared_ptr<DownloadContext>& ctx);
158 TorrentAttribute* getTorrentAttrs(DownloadContext* dctx);
[all …]
H A DBtRegistry.cc52 const std::shared_ptr<DownloadContext>&
60 return getNull<DownloadContext>(); in getDownloadContext()
64 const std::shared_ptr<DownloadContext>&
73 return getNull<DownloadContext>(); in getDownloadContext()
109 const std::shared_ptr<DownloadContext>& downloadContext, in BtObject()
H A DBtRegistry.h52 class DownloadContext; variable
57 std::shared_ptr<DownloadContext> downloadContext;
64 BtObject(const std::shared_ptr<DownloadContext>& downloadContext,
87 const std::shared_ptr<DownloadContext>&
90 const std::shared_ptr<DownloadContext>&
H A DUTMetadataRequestExtensionMessage.h44 class DownloadContext; variable
51 DownloadContext* dctx_;
68 void setDownloadContext(DownloadContext* dctx);
H A DIteratableChecksumValidator.h44 class DownloadContext; variable
50 std::shared_ptr<DownloadContext> dctx_;
60 const std::shared_ptr<DownloadContext>& dctx,
H A DShareRatioSeedCriteria.h44 class DownloadContext; variable
51 std::shared_ptr<DownloadContext> downloadContext_;
57 double ratio, const std::shared_ptr<DownloadContext>& downloadContext);
H A DDefaultBtMessageReceiver.h43 class DownloadContext; variable
52 DownloadContext* downloadContext_;
70 void setDownloadContext(DownloadContext* downloadContext);
H A DIteratableChunkChecksumValidator.h45 class DownloadContext; variable
52 std::shared_ptr<DownloadContext> dctx_;
64 const std::shared_ptr<DownloadContext>& dctx,
H A DUTMetadataDataExtensionMessage.h44 class DownloadContext; variable
54 DownloadContext* dctx_;
87 void setDownloadContext(DownloadContext* dctx);
H A DUTMetadataRequestFactory.h48 class DownloadContext; variable
57 DownloadContext* dctx_;
76 void setDownloadContext(DownloadContext* dctx) { dctx_ = dctx; } in setDownloadContext()
H A DDefaultExtensionMessageFactory.h45 class DownloadContext; variable
58 DownloadContext* dctx_;
81 void setDownloadContext(DownloadContext* dctx);
H A DDefaultBtProgressInfoFile.h44 class DownloadContext; variable
53 std::shared_ptr<DownloadContext> dctx_;
70 DefaultBtProgressInfoFile(const std::shared_ptr<DownloadContext>& btContext,
/dports/www/aria2/aria2-1.36.0/test/
H A DBittorrentHelperTest.cc142 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetInfoHash()
152 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetPieceHash()
168 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetFileEntries()
192 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetFileEntriesSingle()
213 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetTotalLength()
221 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetTotalLengthSingle()
229 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetFileModeMulti()
237 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetFileModeSingle()
245 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetNameMulti()
253 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetNameSingle()
[all …]
H A DMetalinkPostDownloadHandlerTest.cc40 std::shared_ptr<DownloadContext> dctx( in testCanHandle_extension()
41 new DownloadContext(0, 0, "test.metalink")); in testCanHandle_extension()
55 std::shared_ptr<DownloadContext> dctx(new DownloadContext(0, 0, "test")); in testCanHandle_contentType()
70 std::shared_ptr<DownloadContext> dctx( in testGetNextRequestGroups()
71 new DownloadContext(1_k, 0, A2_TEST_DIR "/test.xml")); in testGetNextRequestGroups()
94 std::shared_ptr<DownloadContext> dctx( in testGetNextRequestGroups_withBaseUri()
95 new DownloadContext(1_k, 0, A2_TEST_DIR "/base_uri.xml")); in testGetNextRequestGroups_withBaseUri()
H A DSegmentManTest.cc30 std::shared_ptr<DownloadContext> dctx_;
40 dctx_.reset(new DownloadContext(pieceLength, totalLength, "aria2.tar.bz2")); in setUp()
59 std::shared_ptr<DownloadContext> dctx( in testNullBitfield()
60 new DownloadContext(0, 0, "aria2.tar.bz2")); in testNullBitfield()
85 std::shared_ptr<DownloadContext> dctx( in testCompleteSegment()
86 new DownloadContext(pieceLength, totalLength, "aria2.tar.bz2")); in testCompleteSegment()
109 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testGetSegment_sameFileEntry()
150 std::shared_ptr<DownloadContext> dctx(new DownloadContext()); in testRegisterPeerStat()
H A DBtPostDownloadHandlerTest.cc39 std::shared_ptr<DownloadContext> dctx( in testCanHandle_extension()
40 new DownloadContext(0, 0, A2_TEST_DIR "/test.torrent")); in testCanHandle_extension()
54 std::shared_ptr<DownloadContext> dctx(new DownloadContext(0, 0, "test")); in testCanHandle_contentType()
69 std::shared_ptr<DownloadContext> dctx( in testGetNextRequestGroups()
70 new DownloadContext(1_k, 0, A2_TEST_DIR "/test.torrent")); in testGetNextRequestGroups()
H A DRequestGroupTest.cc36 std::shared_ptr<DownloadContext> ctx( in testGetFirstFilePath()
37 new DownloadContext(1_k, 1_k, "/tmp/myfile")); in testGetFirstFilePath()
51 std::shared_ptr<DownloadContext> ctx( in testTryAutoFileRenaming()
52 new DownloadContext(1_k, 1_k, "/tmp/myfile")); in testTryAutoFileRenaming()
105 std::shared_ptr<DownloadContext> ctx( in testCreateDownloadResult()
106 new DownloadContext(1_k, 1_m, "/tmp/myfile")); in testCreateDownloadResult()
H A DIteratableChecksumValidatorTest.cc35 std::shared_ptr<DownloadContext> dctx(new DownloadContext( in testValidate()
56 std::shared_ptr<DownloadContext> dctx(new DownloadContext( in testValidate_fail()
H A DDownloadContextTest.cc32 DownloadContext ctx; in testFindFileEntryByOffset()
56 DownloadContext ctx; in testGetPieceHash()
65 DownloadContext ctx(345, 9889, ""); in testGetNumPieces()
71 DownloadContext ctx(0, 0, ""); in testGetBasePath()
79 DownloadContext ctx; in testSetFileFilter()
H A DDownloadHandlersTest.cc59 auto dctx = std::make_shared<DownloadContext>(0, 0, "test.metalink"); in testGetMetalinkPreDownloadHandler_extension()
73 auto dctx = std::make_shared<DownloadContext>(0, 0, "test"); in testGetMetalinkPreDownloadHandler_contentType()
93 std::make_shared<DownloadContext>(0, 0, A2_TEST_DIR "/test.torrent"); in testGetBtPreDownloadHandler_extension()
107 auto dctx = std::make_shared<DownloadContext>(0, 0, "test"); in testGetBtPreDownloadHandler_contentType()
H A DIteratableChunkChecksumValidatorTest.cc42 std::shared_ptr<DownloadContext> dctx(new DownloadContext( in testValidate()
80 std::shared_ptr<DownloadContext> dctx(new DownloadContext( in testValidate_readError()
H A DBtRegistryTest.cc43 auto dctx = std::make_shared<DownloadContext>(); in testGetDownloadContext()
53 auto dctx1 = std::make_shared<DownloadContext>(); in addTwoDownloadContext()
54 auto dctx2 = std::make_shared<DownloadContext>(); in addTwoDownloadContext()
89 std::vector<std::shared_ptr<DownloadContext>> result; in testGetAllDownloadContext()
H A DDefaultBtProgressInfoFileTest.cc45 std::shared_ptr<DownloadContext> dctx_;
73 dctx_.reset(new DownloadContext()); in initializeMembers()
336 std::shared_ptr<DownloadContext> dctx( in testLoad_nonBt_compat()
337 new DownloadContext(1_k, 80_k, A2_TEST_DIR "/load-nonBt")); in testLoad_nonBt_compat()
381 std::shared_ptr<DownloadContext> dctx( in testLoad_nonBt()
382 new DownloadContext(1_k, 80_k, A2_TEST_DIR "/load-nonBt-v0001")); in testLoad_nonBt()
426 std::shared_ptr<DownloadContext> dctx( in testLoad_nonBt_pieceLengthShorter()
450 std::shared_ptr<DownloadContext> dctx( in testSave_nonBt()
451 new DownloadContext(1_k, 80_k, A2_TEST_OUT_DIR "/save-temp")); in testSave_nonBt()
556 std::shared_ptr<DownloadContext> dctx( in testUpdateFilename()
[all …]
H A DDownloadHelperTest.cc86 std::shared_ptr<DownloadContext> ctx = group->getDownloadContext(); in testCreateRequestGroupForUri()
127 std::shared_ptr<DownloadContext> alphaCtx = in testCreateRequestGroupForUri()
158 std::shared_ptr<DownloadContext> ctx = group->getDownloadContext(); in testCreateRequestGroupForUri_parameterized()
188 std::shared_ptr<DownloadContext> ctx = group->getDownloadContext(); in testCreateRequestGroupForUri_BitTorrent()
196 std::shared_ptr<DownloadContext> btctx = torrentGroup->getDownloadContext(); in testCreateRequestGroupForUri_BitTorrent()
231 std::shared_ptr<DownloadContext> ctx = group->getDownloadContext(); in testCreateRequestGroupForUri_Metalink()
237 std::shared_ptr<DownloadContext> aria2052Ctx = in testCreateRequestGroupForUri_Metalink()
269 std::shared_ptr<DownloadContext> fileCtx = fileGroup->getDownloadContext(); in testCreateRequestGroupForUriList()
274 std::shared_ptr<DownloadContext> fileISOCtx = in testCreateRequestGroupForUriList()

12345