Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 81) sorted by relevance

1234

/foundation/graphic/graphic_2d/utils/raw_parser/data/
Dgenerate_raw.sh38 local filename=$1
40 du -b $filename | awk '{print $1}'
45 local filename=$1
49 xxd -l $length -s $position -o $((-$position)) $filename | xxd -r
56 ls * | while read filename; do
58 file $filename | grep "image" >/dev/null 2>&1
64 convert $filename $filename.rgba
65 xxd -c 1 $filename.rgba > $filename.xxd
66 ofilename=$filename.rgba
75 result="$(diff -y $filename.xxd $last_filename.xxd | grep " |$(echo -e "\x09")")"
[all …]
/foundation/graphic/graphic_2d/frameworks/bootanimation/data/
Dgenerate_raw.sh34 local filename=$1
36 du -b $filename | awk '{print $1}'
41 local filename=$1
45 xxd -l $length -s $position -o $((-$position)) $filename | xxd -r
50 ls * | while read filename; do
52 file $filename | grep "image" >/dev/null 2>&1
58 convert $filename $filename.rgba
59 xxd -c 1 $filename.rgba > $filename.xxd
60 ofilename=$filename.rgba
69 result="$(diff -y $filename.xxd $last_filename.xxd | grep " |$(echo -e "\x09")")"
[all …]
/foundation/multimedia/av_codec/test/moduletest/muxer/Common/src/
DAVMuxerDemo.cpp42 filename = "output.mp4"; in getFdByMode()
44 filename = "output.m4a"; in getFdByMode()
46 filename = "output.bin"; in getFdByMode()
48 int32_t fd = open(filename.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in getFdByMode()
50 std::cout << "Open file failed! filePath is: " << filename << std::endl; in getFdByMode()
58 filename = "output.bin"; in getErrorFd()
59 int32_t fd = open(filename.c_str(), O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR); in getErrorFd()
61 std::cout << "Open file failed! filePath is: " << filename << std::endl; in getErrorFd()
70 filename = fileName + ".mp4"; in getFdByName()
72 filename = fileName + ".m4a"; in getFdByName()
[all …]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
Dsnapshot_surface.cpp74 bool WriteToPng(const std::string &filename, const WriteToPngParam &param) in WriteToPng() argument
76 if (filename.empty()) { in WriteToPng()
80 RS_LOGI("WriteToPng filename = %s", filename.c_str()); in WriteToPng()
91 FILE *fp = fopen(filename.c_str(), "wb"); in WriteToPng()
120 bool WritePixelMapToPng(PixelMap& pixelMap, std::string filename) in WritePixelMapToPng() argument
126 if (filename.size() == 0) { in WritePixelMapToPng()
127 filename = "/data/PixelMap_" + std::to_string(nowVal) + ".png"; in WritePixelMapToPng()
137 return WriteToPng(filename, param); in WritePixelMapToPng()
153 string filename = GenerateFileName(); in main() local
154 bool ret = WritePixelMapToPng(*pixelmap, filename); in main()
[all …]
/foundation/resourceschedule/ffrt/src/eu/
Dosattr_manager.cpp79 const std::string filename = cpuctlGroupIvePath + name; in SetCGroupCtlPara() local
80 SetCGroupPara(filename, value); in SetCGroupCtlPara()
85 const std::string filename = cpusetGroupIvePath + name; in SetCGroupSetPara() local
86 SetCGroupPara(filename, value); in SetCGroupSetPara()
95 void OSAttrManager::SetTidToCGroupPrivate(const std::string &filename, int32_t pid) in SetTidToCGroupPrivate() argument
102 SetCGroupPara(filename, pid); in SetTidToCGroupPrivate()
106 void OSAttrManager::SetCGroupPara(const std::string &filename, T& value) in SetCGroupPara() argument
109 if (filename.empty()) { in SetCGroupPara()
114 …if ((strlen(filename.c_str()) > PATH_MAX_LENS) || (realpath(filename.c_str(), filePath) == nullptr… in SetCGroupPara()
115 … FFRT_LOGE("[cgroup_ctrl] invalid file path:%s, error:%s\n", filename.c_str(), strerror(errno)); in SetCGroupPara()
Dosattr_manager.h56 void SetTidToCGroupPrivate(const std::string &filename, int32_t pid);
58 void SetCGroupPara(const std::string &filename, T& value);
/foundation/filemanagement/user_file_service/services/file_extension_hap/entry/src/main/ets/FileExtensionAbility/
DListScanFileInfo.ts107 function getNewPathOrUri(prefixSection: string, filename: string) : string {
110 if (filename.startsWith('/')) {
111 filename = filename.substring(1, filename.length);
113 completeResult += filename;
115 if (!filename.startsWith('/')) {
118 completeResult += filename;
123 function genNewFileName(filename: string): string {
124 let newFilename = filename;
/foundation/communication/dhcp/services/mgr_service/include/
Ddhcp_func.h53 static bool IsExistFile(const std::string& filename);
54 static bool CreateFile(const std::string& filename, const std::string& filedata);
55 static bool RemoveFile(const std::string& filename);
56 …static bool AddFileLineData(const std::string& filename, const std::string& prevdata, const std::s…
57 static bool DelFileLineData(const std::string& filename, const std::string& linedata);
58 …static bool ModifyFileLineData(const std::string& filename, const std::string& srcdata, const std:…
68 static int GetDhcpPacketResult(const std::string& filename, struct DhcpPacketResult &result);
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
Dlistfile.cpp152 static bool FilterSuffix(const vector<string> &suffixs, const struct dirent &filename) in FilterSuffix() argument
154 if (filename.d_type == DT_DIR) { in FilterSuffix()
157 size_t found = string(filename.d_name).rfind('.'); in FilterSuffix()
161 string suffixStr = string(filename.d_name).substr(found); in FilterSuffix()
170 static bool FilterDisplayname(const vector<string> &displaynames, const struct dirent &filename) in FilterDisplayname() argument
173 int ret = fnmatch(iter.c_str(), filename.d_name, FNM_PATHNAME | FNM_PERIOD); in FilterDisplayname()
181 static bool FilterFilesizeOver(const int64_t fFileSizeOver, const struct dirent &filename) in FilterFilesizeOver() argument
187 string stPath = (g_optionArgs.path + '/' + string(filename.d_name)); in FilterFilesizeOver()
199 static bool FilterLastModifyTime(const double lastModifiedAfter, const struct dirent &filename) in FilterLastModifyTime() argument
205 string stPath = g_optionArgs.path + '/' + string(filename.d_name); in FilterLastModifyTime()
[all …]
/foundation/graphic/graphic_2d/utils/raw_maker/src/
Draw_maker.cpp30 void RawMaker::SetFilename(const std::string &filename) in SetFilename() argument
33 this->filename = filename; in SetFilename()
35 if (this->filename != filename) { in SetFilename()
81 ofs.open(filename, std::ofstream::app | std::ofstream::binary | std::ofstream::out); in WriteNextData()
83 GSLOG2HI(ERROR) << "open " << filename << ", because " << strerror(errno); in WriteNextData()
199 ofs.open(filename, std::ofstream::trunc | std::ofstream::binary | std::ofstream::out); in DoFirstFrame()
201 GSLOG2HI(ERROR) << "open " << filename << ", because " << strerror(errno); in DoFirstFrame()
/foundation/ai/neural_network_runtime/test/unittest/components/memory_manager/
Dmemory_manager_test.cpp94 std::string filename = "/data/log/memory-001.dat"; variable
95 FileUtils fileUtils(filename);
98 int fd = open(filename.c_str(), O_RDWR);
149 std::string filename = "/data/log/memory-001.dat"; variable
150 FileUtils fileUtils(filename);
154 fd = open(filename.c_str(), O_RDWR);
204 std::string filename = "/data/log/memory-001.dat"; variable
205 FileUtils fileUtils(filename);
209 fd = open(filename.c_str(), O_RDWR);
/foundation/graphic/graphic_2d/utils/build/
Dgraphic_2d_ext_exists.py21filename = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../graphic_2d_ext/ohco…
22 is_exist = os.path.exists(filename) and os.path.isdir(filename)
/foundation/communication/dhcp/services/mgr_service/src/
Ddhcp_func.cpp310 bool DhcpFunc::IsExistFile(const std::string& filename) in IsExistFile() argument
314 ioFile.open(filename.c_str(), std::ios::in); in IsExistFile()
323 bool DhcpFunc::CreateFile(const std::string& filename, const std::string& filedata) in CreateFile() argument
326 outFile.open(filename.c_str()); in CreateFile()
333 bool DhcpFunc::RemoveFile(const std::string& filename) in RemoveFile() argument
335 if (std::remove(filename.c_str()) != 0) { in RemoveFile()
336 WIFI_LOGE("RemoveFile filename:%{public}s failed!", filename.c_str()); in RemoveFile()
339 WIFI_LOGI("RemoveFile filename:%{public}s success.", filename.c_str()); in RemoveFile()
343 bool DhcpFunc::AddFileLineData(const std::string& filename, const std::string& prevdata, const std:… in AddFileLineData() argument
347 inFile.open(filename.c_str()); in AddFileLineData()
[all …]
/foundation/graphic/graphic_2d/frameworks/bootanimation/src/
Dutil.cpp100 bool GenImageData(const std::string& filename, std::shared_ptr<ImageStruct> imagetruct, int32_t buf… in GenImageData() argument
114 imagetruct->fileName = filename; in GenImageData()
120 bool ReadCurrentFile(const unzFile zipfile, const std::string& filename, ImageStructVec& outBgImgVe… in ReadCurrentFile() argument
150 …LOGD("filename:%{public}s fileSize:%{public}d totalLen:%{public}d", filename.c_str(), ifileSize, t… in ReadCurrentFile()
151 if (strstr(filename.c_str(), BOOT_PIC_CONFIGFILE.c_str()) != nullptr) { in ReadCurrentFile()
154 GenImageData(filename, imagestrct, totalLen, outBgImgVec); in ReadCurrentFile()
187 char filename[MAX_FILE_NAME] = {0}; in ReadZipFile() local
188 …if (unzGetCurrentFileInfo(zipfile, &fileInfo, filename, MAX_FILE_NAME, nullptr, 0, nullptr, 0) != … in ReadZipFile()
192 if (filename[strlen(filename) - 1] != '/') { in ReadZipFile()
197 std::string strfilename = std::string(filename); in ReadZipFile()
/foundation/arkui/ace_engine/adapter/preview/external/ability/
Dcontext.cpp38 std::string filename = rootDir + DELIMITER + (isStage ? MODULE_JSON : CONFIG_JSON); in CreateContext() local
41 std::ifstream fin(filename, std::ios::in); in CreateContext()
43 LOGE("Unable to open input file: %{public}s", filename.c_str()); in CreateContext()
/foundation/graphic/graphic_2d/utils/gslogger/src/
Dgslogger.cpp95 const char *filename; in FileLog() member
99 auto filename = va_arg(logger.GetVariousArgument(), const char *); in FileLog() local
100 data->filename = filename; in FileLog()
105 if (strlen(data->filename) > PATH_MAX || realpath(data->filename, path) == NULL) { in FileLog()
/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/targets/simulator/utils/
Djs_heap_stats_writer.cpp20 JSHeapStatsWriter::JSHeapStatsWriter(const QString filename) : file_(filename) in JSHeapStatsWriter() argument
/foundation/ai/neural_network_runtime/test/unittest/common/
Dfile_utils.cpp25 FileUtils::FileUtils(const std::string &filename) :m_filename(filename) in FileUtils() argument
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/mod_fileio/properties/
Dwatcher.cpp36 void Watcher::RunCommand(uv_fs_event_t *handle, const char *filename, int events, int status) in RunCommand() argument
64 unique_ptr<char[]> filename; in CreateWatcher() local
65 tie(succGetPath, filename, ignore) = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in CreateWatcher()
88 uv_fs_event_start(fsEventReq.get(), RunCommand, filename.get(), UV_FS_EVENT_RECURSIVE); in CreateWatcher()
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/benchmarks/benchmark_dcl/
Dskia_recording.cpp173 void SkiaRecording::SavePicture(const sk_sp<SkData>& data, const std::string& filename) in SavePicture() argument
175 SkFILEWStream stream(filename.c_str()); in SavePicture()
180 filename << std::endl; in SavePicture()
182 …std::cout << "Save picture failed. " << filename << " is not valid for frame." << filename << std:… in SavePicture()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
Dwifi_ap_nat_manager_test.cpp126 std::string filename = "./test.txt"; variable
131 EXPECT_TRUE(WrapWriteDataToFile(filename, context));
132 EXPECT_TRUE(WrapWriteDataToFile(filename, context));
133 EXPECT_TRUE(WrapWriteDataToFile(filename, context));
/foundation/graphic/graphic_2d/utils/raw_maker/export/
Draw_maker.h28 void SetFilename(const std::string &filename);
44 std::string filename = ""; variable
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/
Dmock.cpp23 MockIFStream::MockIFStream(const std::string &filename, std::ios_base::openmode mode) in MockIFStream() argument
24 : std::ifstream(filename, mode) {} in MockIFStream()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/
Dwatcher.cpp36 void Watcher::RunCommand(uv_fs_event_t *handle, const char *filename, int events, int status) in RunCommand() argument
64 auto [succGetPath, filename, unused] = NVal(env, funcArg[NARG_POS::FIRST]).ToUTF8String(); in CreateWatcher()
86 uv_fs_event_start(fsEventReq.get(), RunCommand, filename.get(), UV_FS_EVENT_RECURSIVE); in CreateWatcher()
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/utils/
Dlogger.cpp100 const char *filename; in OutputByFileLog() member
104 auto filename = va_arg(logger.GetVariousArgument(), const char *); in OutputByFileLog() local
105 data->filename = filename; in OutputByFileLog()
110 std::ofstream ofs(data->filename, std::ofstream::out | std::ofstream::app); in OutputByFileLog()

1234