Home
last modified time | relevance | path

Searched refs:Downloader (Results 1 – 25 of 50) sorted by relevance

12

/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/download/
H A Ddownloader.cpp246 Downloader::Downloader(const std::string& name) noexcept : name_(std::move(name)) in Downloader() function in OHOS::Media::Plugins::HttpPlugin::Downloader
267 Downloader::~Downloader() in ~Downloader()
296 void Downloader::Start() in Start()
321 void Downloader::Cancel() in Cancel()
335 void Downloader::Resume() in Resume()
538 void Downloader::RequestData() in RequestData()
598 void Downloader::HandleRetOK() in HandleRetOK()
635 void Downloader::UpdateHeaderInfo(Downloader* mediaDownloader) in UpdateHeaderInfo()
654 bool Downloader::IsDropDataRetryRequest(Downloader* mediaDownloader) in IsDropDataRetryRequest()
670 size_t Downloader::DropRetryData(void* buffer, size_t dataLen, Downloader* mediaDownloader) in DropRetryData()
[all …]
H A Ddownloader.h74 class Downloader; variable
76 using StatusCallbackFunc = std::function<void(DownloadStatus, std::shared_ptr<Downloader>&,
147 friend class Downloader; variable
157 class Downloader {
159 explicit Downloader(const std::string& name) noexcept;
160 virtual ~Downloader();
188 …static bool HandleContentLength(HeaderInfo* info, char* key, char* next, Downloader* mediaDownload…
190 static void UpdateHeaderInfo(Downloader* mediaDownloader);
191 static size_t DropRetryData(void* buffer, size_t dataLen, Downloader* mediaDownloader);
192 static bool IsDropDataRetryRequest(Downloader* mediaDownloader);
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/download/
H A Ddownloader.cpp102 Downloader::Downloader(std::string name) noexcept : name_(std::move(name)) in Downloader() function in OHOS::Media::Plugin::HttpPlugin::Downloader
114 Downloader::~Downloader() in ~Downloader()
134 void Downloader::Start() in Start()
141 void Downloader::Pause() in Pause()
152 void Downloader::Resume() in Resume()
166 void Downloader::Stop(bool isAsync) in Stop()
181 bool Downloader::Seek(int64_t offset) in Seek()
225 bool Downloader::BeginDownload() in BeginDownload()
242 void Downloader::HttpDownloadLoop() in HttpDownloadLoop()
271 std::shared_ptr<Downloader> unused; in HttpDownloadLoop()
[all …]
H A Ddownloader.h63 class Downloader; variable
65 using StatusCallbackFunc = std::function<void(DownloadStatus, std::shared_ptr<Downloader>&,
109 friend class Downloader; variable
112 class Downloader {
114 explicit Downloader(std::string name) noexcept;
115 virtual ~Downloader();
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/downloader/
H A Dmod.rs108 pub struct Downloader<T> { struct
115 impl Downloader<()> { argument
130 pub fn console(response: Response) -> Downloader<Console> { in console()
148 impl<T: DownloadOperator + Unpin> Downloader<T> { impl
263 use crate::async_impl::{Downloader, HttpBody, Response as adpater_resp};
307 let mut downloader = Downloader::console(adpater_resp::new(response)); in download()
H A Dbuilder.rs14 use super::{Console, DownloadConfig, DownloadOperator, Downloader};
218 pub fn build(self) -> Downloader<T> { in build()
219 Downloader { in build()
/ohos5.0/commonlibrary/rust/ylong_http/docs/
H A Duser_guide.md210 使用 `Downloader` 可以进行一个更加灵活的下载方式。
212 `Downloader` 提供一个直接将 body 输出到控制台的简单方式:
215 use ylong_http_client::async_impl::{Downloader, HttpBody, Response};
219 let _ = Downloader::console(response).download().await;
223 用户也可以自定义 `Downloader` 中的 `DownloadOperator` 组件来实现灵活的自定义下载操作。
231 use ylong_http_client::async_impl::{Downloader, DownloadOperatorResponse};
260 // 创建 Downloader 对指定 Response 进行下载。
261 let mut downloader = Downloader::builder()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/http_source_test/
H A Dhttp_media_downloader_unit_test.cpp41 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader, in SetUpTestCase()
84 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
106 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
130 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
154 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
181 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
243 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
265 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
287 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
308 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/hls/
H A Dplaylist_downloader.cpp25 downloader_ = std::make_shared<Downloader>("hlsPlayList"); in PlayListDownloader()
30 statusCallback_ = [this] (DownloadStatus&& status, std::shared_ptr<Downloader> d, in PlayListDownloader()
48 …auto realStatusCallback = [this] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader, in DoOpen()
70 void PlayListDownloader::OnDownloadStatus(DownloadStatus status, std::shared_ptr<Downloader>&, in OnDownloadStatus() argument
H A Dplaylist_downloader.h51 static void OnDownloadStatus(DownloadStatus status, std::shared_ptr<Downloader>&,
56 std::shared_ptr<Downloader> downloader_;
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/downloader/
H A Dmod.rs110 pub struct Downloader<T> { struct
117 impl Downloader<()> { argument
133 pub fn console(response: Response) -> Downloader<Console> { in console()
151 impl<T: DownloadOperator + Unpin> Downloader<T> { impl
H A Dbuilder.rs16 use super::{Console, DownloadConfig, DownloadOperator, Downloader};
216 pub fn build(self) -> Downloader<T> { in build()
217 Downloader { in build()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/dash_test/
H A Ddash_segment_downloader_unit_test.cpp82 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
109 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
139 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
163 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
209 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
245 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
295 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
329 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
352 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
408 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
[all …]
H A Ddash_media_downloader_unit_test.cpp48 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader, in SetUpTestCase()
213 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
268 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
325 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
382 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
401 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
431 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hls_test/
H A Dhls_media_downloader_unit_test.cpp317 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
333 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
356 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
398 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
423 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
451 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
479 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
511 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
537 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
563 auto statusCallback = [] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader,
[all …]
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/examples/
H A Dget.rs18 use ylong_http_client::async_impl::{Client, Downloader};
37 let _ = Downloader::console(response).download().await; in main()
H A Dpost.rs18 use ylong_http_client::async_impl::{Client, Downloader, Uploader};
43 let _ = Downloader::console(response).download().await; in main()
H A Dpost_multipart.rs18 use ylong_http_client::async_impl::{Client, Downloader, MultiPart, Part, Uploader};
51 let _ = Downloader::console(response).download().await; in main()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/examples/
H A Dasync_proxy_http.rs18 use ylong_http_client::async_impl::{Body, ClientBuilder, Downloader, Request};
35 let _ = Downloader::console(response).download().await; in main()
H A Dasync_redirect_http.rs18 use ylong_http_client::async_impl::{Body, ClientBuilder, Downloader, Request};
33 let _ = Downloader::console(response).download().await; in main()
H A Dasync_http.rs18 use ylong_http_client::async_impl::{Body, Client, Downloader, Request};
43 let _ = Downloader::console(response).download().await; in client_send()
H A Dasync_http_multi.rs18 use ylong_http_client::async_impl::{Body, Client, Downloader, Request};
34 let _ = Downloader::console(response).download().await; in main()
H A Dasync_https_outside.rs16 use ylong_http_client::async_impl::{Body, Client, Downloader, Request};
63 let _ = Downloader::console(response).download().await; in req()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/hls/
H A Dplaylist_downloader.cpp46 statusCallback_ = [this] (DownloadStatus&& status, std::shared_ptr<Downloader> d, in PlayListDownloaderInit()
60 downloader_ = std::make_shared<Downloader>("hlsPlayList"); in PlayListDownloader()
65 PlayListDownloader::PlayListDownloader(std::shared_ptr<Downloader> downloader, in PlayListDownloader()
80 …auto realStatusCallback = [this] (DownloadStatus&& status, std::shared_ptr<Downloader>& downloader, in DoOpen()
231 void PlayListDownloader::OnDownloadStatus(DownloadStatus status, std::shared_ptr<Downloader>&, in OnDownloadStatus() argument
H A Dplaylist_downloader.h43 explicit PlayListDownloader(std::shared_ptr<Downloader> downloader,
92 static void OnDownloadStatus(DownloadStatus status, std::shared_ptr<Downloader>&,
102 std::shared_ptr<Downloader> downloader_;

12