Home
last modified time | relevance | path

Searched refs:filename (Results 1 - 25 of 138) sorted by relevance

123456

/foundation/multimedia/av_codec/test/moduletest/muxer/Common/src/
H A DAVMuxerDemo.cpp33 filename = "output.mp4"; in GetFdByMode()
35 filename = "output.m4a"; in GetFdByMode()
37 filename = "output.amr"; in GetFdByMode()
39 filename = "output.mp3"; in GetFdByMode()
41 filename = "output.bin"; in GetFdByMode()
43 int32_t fd = open(filename.c_str(), O_CREAT | O_RDWR | O_TRUNC, S_IRUSR | S_IWUSR); in GetFdByMode()
45 std::cout << "Open file failed! filePath is: " << filename << std::endl; in GetFdByMode()
53 filename = "output.bin"; in GetErrorFd()
54 int32_t fd = open(filename.c_str(), O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR); in GetErrorFd()
56 std::cout << "Open file failed! filePath is: " << filename << st in GetErrorFd()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dlist_file.cpp97 static bool FilterSuffix(const vector<string> &suffixs, const struct dirent &filename) in FilterSuffix() argument
99 if (filename.d_type == DT_DIR) { in FilterSuffix()
102 size_t found = string(filename.d_name).rfind('.'); in FilterSuffix()
106 string suffixStr = string(filename.d_name).substr(found); in FilterSuffix()
115 static bool FilterDisplayname(const vector<string> &displaynames, const struct dirent &filename) in FilterDisplayname() argument
118 int ret = fnmatch(iter.c_str(), filename.d_name, FNM_PATHNAME | FNM_PERIOD); in FilterDisplayname()
126 static bool FilterFilesizeOver(const int64_t fFileSizeOver, const struct dirent &filename) in FilterFilesizeOver() argument
132 string stPath = (g_optionArgs.path + '/' + string(filename.d_name)); in FilterFilesizeOver()
144 static bool FilterLastModifyTime(const double lastModifiedAfter, const struct dirent &filename) in FilterLastModifyTime() argument
150 string stPath = g_optionArgs.path + '/' + string(filename in FilterLastModifyTime()
162 FilterResult(const struct dirent &filename) FilterResult() argument
184 FilterFunc(const struct dirent *filename) FilterFunc() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
H A Dsnapshot_surface.cpp74 bool WriteToPng(const std::string &filename, const WriteToPngParam &param) in WriteToPng() argument
76 if (filename.empty()) { in WriteToPng()
77 RS_LOGI("WriteToPng filename is empty"); in WriteToPng()
80 RS_LOGI("WriteToPng filename = %{public}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, para in WritePixelMapToPng()
154 string filename = GenerateFileName(); main() local
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dpath_tools.cpp158 void SplitPath(string_view pathIn, string_view& drive, string_view& path, string_view& filename, string_view& ext) in SplitPath() argument
160 drive = path = filename = ext = {}; in SplitPath()
176 filename = pathIn.substr(lastSlash + 1); in SplitPath()
179 filename = pathIn; in SplitPath()
181 auto lastDot = filename.find_last_of('.'); in SplitPath()
183 ext = filename.substr(lastDot + 1); in SplitPath()
184 filename = filename.substr(0, lastDot); in SplitPath()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/log/
H A Dlogger_output.cpp60 ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message) override
69 if (!filename.empty()) {
70 outputStream << " (" << std::string_view(filename.data(), filename.size()) << ':' << linenumber
90 ILogger::IOutput::Ptr CreateLoggerFileOutput(const string_view filename) in CreateLoggerFileOutput() argument
92 return ILogger::IOutput::Ptr { new FileOutput(filename) }; in CreateLoggerFileOutput()
H A Dlogger.cpp100 LogLevel logLevel, const string_view filename, int lineNumber, const string_view format, std::va_list args) in VLog()
128 output->Write(logLevel, filename, lineNumber, buffer_.data()); in VLog()
132 void Logger::VLogOnce(const string_view id, LogLevel logLevel, const string_view filename, int lineNumber, in VLogOnce() argument
139 VLog(logLevel, filename, lineNumber, format, args); in VLogOnce()
143 bool Logger::VLogAssert(const string_view filename, int lineNumber, bool expression, const string_view expressionString, in VLogAssert() argument
155 Log(LogLevel::LOG_FATAL, filename, lineNumber, "Assert failed (%s). %s", expressionString.data(), buffer); in VLogAssert()
159 Log(LogLevel::LOG_FATAL, filename, lineNumber, "Java trace:"); in VLogAssert()
185 LogLevel logLevel, const string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* format, ...) in Log()
189 VLog(logLevel, filename, lineNumber, format, vl); in Log()
194 bool Logger::LogAssert(const string_view filename, in argument
99 VLog( LogLevel logLevel, const string_view filename, int lineNumber, const string_view format, std::va_list args) VLog() argument
184 Log( LogLevel logLevel, const string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* format, ...) Log() argument
[all...]
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_function.cpp309 bool DhcpFunction::IsExistFile(const std::string& filename) in IsExistFile() argument
313 ioFile.open(filename.c_str(), std::ios::in); in IsExistFile()
317 DHCP_LOGE("IsExistFile %{public}s failed, err:%{public}d", filename.c_str(), errno); in IsExistFile()
323 bool DhcpFunction::CreateFile(const std::string& filename, const std::string& filedata) in CreateFile() argument
326 outFile.open(filename.c_str()); in CreateFile()
333 bool DhcpFunction::RemoveFile(const std::string& filename) in RemoveFile() argument
335 if (std::remove(filename.c_str()) != 0) { in RemoveFile()
336 DHCP_LOGE("RemoveFile filename:%{public}s failed!", filename.c_str()); in RemoveFile()
339 DHCP_LOGI("RemoveFile filename in RemoveFile()
343 AddFileLineData(const std::string& filename, const std::string& prevdata, const std::string& linedata) AddFileLineData() argument
374 DelFileLineData(const std::string& filename, const std::string& linedata) DelFileLineData() argument
405 ModifyFileLineData(const std::string& filename, const std::string& srcdata, const std::string& dstdata) ModifyFileLineData() argument
485 GetDhcpPacketResult(const std::string& filename, struct DhcpPacketResult &result) GetDhcpPacketResult() argument
[all...]
/foundation/ai/neural_network_runtime/test/unittest/components/memory_manager/
H A Dmemory_manager_test.cpp94 std::string filename = "/data/log/memory-001.dat"; in HWTEST_F() local
95 FileUtils fileUtils(filename); in HWTEST_F()
98 int fd = open(filename.c_str(), O_RDWR); in HWTEST_F()
149 std::string filename = "/data/log/memory-001.dat"; in HWTEST_F() local
150 FileUtils fileUtils(filename); in HWTEST_F()
154 fd = open(filename.c_str(), O_RDWR); in HWTEST_F()
204 std::string filename = "/data/log/memory-001.dat"; in HWTEST_F() local
205 FileUtils fileUtils(filename); in HWTEST_F()
209 fd = open(filename.c_str(), O_RDWR); in HWTEST_F()
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_libmtp.cpp29 char *filename = f->filename; in LIBMTPFreeFilesAndFolders() local
31 free(static_cast<void *>(filename)); in LIBMTPFreeFilesAndFolders()
/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_function.h46 static bool IsExistFile(const std::string& filename);
47 static bool CreateFile(const std::string& filename, const std::string& filedata);
48 static bool RemoveFile(const std::string& filename);
49 static bool AddFileLineData(const std::string& filename, const std::string& prevdata, const std::string& linedata);
50 static bool DelFileLineData(const std::string& filename, const std::string& linedata);
51 static bool ModifyFileLineData(const std::string& filename, const std::string& srcdata, const std::string& dstdata);
61 static int GetDhcpPacketResult(const std::string& filename, struct DhcpPacketResult &result);
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dlistfile.cpp153 static bool FilterSuffix(const vector<string> &suffixs, const struct dirent &filename) in FilterSuffix() argument
155 if (filename.d_type == DT_DIR) { in FilterSuffix()
158 size_t found = string(filename.d_name).rfind('.'); in FilterSuffix()
162 string suffixStr = string(filename.d_name).substr(found); in FilterSuffix()
171 static bool FilterDisplayname(const vector<string> &displaynames, const struct dirent &filename) in FilterDisplayname() argument
174 int ret = fnmatch(iter.c_str(), filename.d_name, FNM_PATHNAME | FNM_PERIOD); in FilterDisplayname()
182 static bool FilterFilesizeOver(const int64_t fFileSizeOver, const struct dirent &filename) in FilterFilesizeOver() argument
188 string stPath = (g_optionArgs.path + '/' + string(filename.d_name)); in FilterFilesizeOver()
200 static bool FilterLastModifyTime(const double lastModifiedAfter, const struct dirent &filename) in FilterLastModifyTime() argument
206 string stPath = g_optionArgs.path + '/' + string(filename in FilterLastModifyTime()
218 FilterResult(const struct dirent &filename) FilterResult() argument
240 FilterFunc(const struct dirent *filename) FilterFunc() argument
[all...]
/foundation/graphic/graphic_2d/utils/build/
H A Dgraphic_2d_ext_exists.py21 filename = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../graphic_2d_ext/ohcore")
22 is_exist = os.path.exists(filename) and os.path.isdir(filename)
/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/src/
H A Drs_graphic_test_utils.cpp22 static bool WriteToPng(const std::string &filename, const WriteToPngParam &param) in WriteToPng() argument
24 if (filename.empty()) { in WriteToPng()
25 LOGI("RSBaseRenderUtil::WriteToPng filename is empty"); in WriteToPng()
28 LOGI("RSBaseRenderUtil::WriteToPng filename = %{public}s", filename.c_str()); in WriteToPng()
39 FILE *fp = fopen(filename.c_str(), "wb"); in WriteToPng()
42 LOGE("WriteToPng file: %s open file failed, errno: %d", filename.c_str(), errno); in WriteToPng()
H A Drs_graphic_test.cpp115 std::string filename = GetImageSavePath(extInfo->filePath); in TearDown() local
116 filename += testInfo->test_case_name() + std::string("_"); in TearDown()
117 filename += testInfo->name() + std::string(".png"); in TearDown()
118 if (std::filesystem::exists(filename)) { in TearDown()
119 LOGW("RSGraphicTest file exists %{public}s", filename.c_str()); in TearDown()
121 if (!WriteToPngWithPixelMap(filename, *pixelMap)) { in TearDown()
125 std::cout << "png write to " << filename << std::endl; in TearDown()
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/
H A Dintf_logger.h83 LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::string_view message) = 0;
101 virtual void VLog(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::string_view format,
104 virtual void VLogOnce(BASE_NS::string_view id, LogLevel logLevel, BASE_NS::string_view filename, int lineNumber,
106 virtual bool VLogAssert(BASE_NS::string_view filename, int lineNumber, bool expression,
111 LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* format, ...) = 0;
113 virtual FORMAT_FUNC(6, 7) bool LogAssert(BASE_NS::string_view filename, int lineNumber, bool expression,
/foundation/resourceschedule/ffrt/src/eu/
H A Dosattr_manager.h66 void SetTidToCGroupPrivate(const std::string &filename, int32_t pid);
68 void SetCGroupPara(const std::string &filename, T& value) in SetCGroupPara() argument
71 if (filename.empty()) { in SetCGroupPara()
72 FFRT_LOGE("[cgroup_ctrl] invalid para, filename is empty"); in SetCGroupPara()
76 if ((strlen(filename.c_str()) > PATH_MAX_LENS) || (realpath(filename.c_str(), filePath) == nullptr)) { in SetCGroupPara()
77 FFRT_LOGE("[cgroup_ctrl] invalid file path:%s, error:%s\n", filename.c_str(), strerror(errno)); in SetCGroupPara()
H A Dosattr_manager.cpp78 const std::string filename = cpuctlGroupIvePath + name; in SetCGroupCtlPara() local
79 SetCGroupPara(filename, value); in SetCGroupCtlPara()
84 const std::string filename = cpusetGroupIvePath + name; in SetCGroupSetPara() local
85 SetCGroupPara(filename, value); in SetCGroupSetPara()
94 void OSAttrManager::SetTidToCGroupPrivate(const std::string &filename, int32_t pid) in SetTidToCGroupPrivate() argument
101 SetCGroupPara(filename, pid); in SetTidToCGroupPrivate()
/foundation/communication/dhcp/test/fuzztest/dhcpfunction_fuzzer/
H A Ddhcpfunction_fuzzer.cpp63 std::string filename = std::string(reinterpret_cast<const char*>(data), size); in IsExistFileTest() local
64 pDhcpFunction->IsExistFile(filename); in IsExistFileTest()
69 std::string filename = std::string(reinterpret_cast<const char*>(data), size); in CreateFileTest() local
71 pDhcpFunction->CreateFile(filename, filedata); in CreateFileTest()
76 std::string filename = std::string(reinterpret_cast<const char*>(data), size); in RemoveFileTest() local
77 pDhcpFunction->RemoveFile(filename); in RemoveFileTest()
82 std::string filename = std::string(reinterpret_cast<const char*>(data), size); in AddFileLineDataTest() local
85 pDhcpFunction->AddFileLineData(filename, prevdata, linedata); in AddFileLineDataTest()
90 std::string filename = std::string(reinterpret_cast<const char*>(data), size); in DelFileLineDataTest() local
92 pDhcpFunction->DelFileLineData(filename, linedat in DelFileLineDataTest()
97 std::string filename = std::string(reinterpret_cast<const char*>(data), size); ModifyFileLineDataTest() local
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/windows/
H A Dlogger_windows.cpp76 ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message) override
84 if (!filename.empty()) {
85 // Align the printed messages to same horizontal position regardless of the printed filename length.
86 // (Unless the filename is very long)
89 auto const filenameView = LoggerUtils::GetFilename(filename);
201 ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message) override
205 if (!filename.empty()) {
206 outputStream << std::string_view(filename.data(), filename.size()) << '(' << linenumber << ") : ";
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/linux/
H A Dlogger_generic.cpp47 ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message) override
55 if (!filename.empty()) {
56 // Align the printed messages to same horizontal position regardless of the printed filename length.
57 // (Unless the filename is very long)
60 auto const filenameView = LoggerUtils::GetFilename(filename);
173 ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message) override
182 if (!filename.empty()) {
183 outputStream << " (" << std::string_view(filename.data(), filename.size()) << ':' << linenumber
H A Dlibrary_linux.cpp28 LibraryLinux::LibraryLinux(const string_view filename) in LibraryLinux() argument
30 string tmp(filename); in LibraryLinux()
35 CORE_LOG_E("Loading dynamic library '%s' failed: %s", filename.data(), errorMessage); in LibraryLinux()
/foundation/arkui/ace_engine/adapter/preview/external/ability/
H A 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 LOGW("Unable to open input file: %{public}s", filename.c_str()); in CreateContext()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/mac/
H A Dlibrary_mac.cpp28 LibraryMac::LibraryMac(const string_view filename) in LibraryMac() argument
30 string tmp(filename); in LibraryMac()
35 CORE_LOG_E("Loading dynamic library '%s' failed: %s", filename.data(), errorMessage); in LibraryMac()
/foundation/systemabilitymgr/samgr/test/autotest/
H A Dchoose_device.py31 for filename in files:
32 if filename.endswith('.json'):
33 filepath = os.path.join(root, filename)
/foundation/bundlemanager/app_domain_verify/interfaces/kits/js/src/
H A Dconfig_parser.cpp27 bool ConfigParser::load(const std::string& filename) in load() argument
29 std::ifstream file(filename, std::ios::ate); in load()
31 std::cerr << "Unable to open file: " << filename << std::endl; in load()
32 APP_DOMAIN_VERIFY_HILOGE(APP_DOMAIN_VERIFY_MODULE_JS_NAPI, "Unable to open file: filename:%{public}s", in load()
33 filename.c_str()); in load()

Completed in 9 milliseconds

123456