Lines Matching refs:rawfile
135 …epare an MP4 file named **test.mp4** and place the **test.mp4** file in **main/resources/rawfile**.
155 Web({ src: $rawfile("test.html"), controller: this.mycontroller})
223 #include "rawfile/raw_file_manager.h"
394 #include <rawfile/raw_file_manager.h>
442 #include "rawfile/raw_file.h"
443 #include "rawfile/raw_file_manager.h"
523 OH_LOG_INFO(LOG_APP, "start a rawfile request.");
553 // Read rawfile in the worker thread and return it to the Web kernel using ResourceHandler.
556 OH_LOG_INFO(LOG_APP, "read rawfile in worker thread.");
578 OH_LOG_ERROR(LOG_APP, "read rawfile error, resource manager is nullptr.");
582 RawFile *rawfile = OH_ResourceManager_OpenRawFile(resourceManager(), rawfilePath().c_str());
583 if (!rawfile) {
597 long len = OH_ResourceManager_GetRawFileSize(rawfile);
604 int ret = OH_ResourceManager_ReadRawFile(rawfile, buffer, blockSize);
605 OH_LOG_INFO(LOG_APP, "read rawfile %{public}d bytes.", ret);
610 OH_ResourceManager_SeekRawFile(rawfile, consumed, 0);
615 OH_ResourceManager_CloseRawFile(rawfile);
621 OH_LOG_INFO(LOG_APP, "stop the rawfile request.");
667 main/resources/rawfile/test.html
687 main/resources/rawfile/cat.svg
692 main/resources/rawfile/csp_bypassing.html
707 main/resources/rawfile/csp_script.js
715 main/resources/rawfile/isolated_script.js
721 main/resources/rawfile/isolated.html
736 main/resources/rawfile/local_script.js
742 main/resources/rawfile/local.html
757 main/resources/rawfile/post_data.html
794 main/resources/rawfile/service_worker.html
817 main/resources/rawfile/sw.js
831 main/resources/rawfile/video.html
845 main/resources/rawfile/chunked_post_stream.html
878 main/resources/rawfile/xhr