/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_file_test.rs | 69 let filename = NULL_STR.to_string(); in test_load_string_from_file_002() localVariable 79 create_test_file(&filename, &content); in test_load_string_from_file_003() 81 let _err = remove_test_file(&filename); in test_load_string_from_file_003() 90 create_test_file(&filename, &content); in test_load_string_from_file_004() 92 let _err = remove_test_file(&filename); in test_load_string_from_file_004() 101 create_test_file(&filename, &content); in test_load_string_from_file_005() 112 create_test_file(&filename, &content); in test_load_string_from_file_006() 130 create_test_file(&filename, &content); in test_load_string_from_fd_002() 143 create_test_file(&filename, &content); in test_load_string_from_fd_003() 441 let filename = String::new(); in test_string_exists_in_file_001() localVariable [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_file_test.cpp | 121 RemoveTestFile(filename); 136 RemoveTestFile(filename); 151 RemoveTestFile(filename); 166 RemoveTestFile(filename); 194 RemoveTestFile(filename); 211 RemoveTestFile(filename); 228 RemoveTestFile(filename); 245 RemoveTestFile(filename); 458 string filename = ""; variable 584 string filename = ""; variable [all …]
|
H A D | utils_mapped_file_test.cpp | 117 RemoveTestFile(filename); in ReCreateFile() 216 RemoveTestFile(filename); in TestFileContentEqual() 268 RemoveTestFile(filename); in TestFileWrite() 293 RemoveTestFile(filename); in TestTwoFileWrite() 309 MappedFile mf(filename); 348 RemoveTestFile(filename); 360 RemoveTestFile(filename); 547 MappedFile mf(filename); 589 MappedFile mf(filename); 640 MappedFile mf(filename); [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/ |
H A D | file_benchmark_test.cpp | 88 RemoveTestFile(filename); in LoadString() 105 RemoveTestFile(filename); in SaveString() 145 string filename = NULL_STR; in BENCHMARK_F() local 162 string filename = FILE_PATH; in BENCHMARK_F() local 182 string filename = FILE_PATH; in BENCHMARK_F() local 203 string filename = FILE_PATH; in BENCHMARK_F() local 223 string filename = FILE_PATH; in BENCHMARK_F() local 258 string filename = FILE_PATH; in BENCHMARK_F() local 544 string filename = ""; in BENCHMARK_F() local 704 string filename = ""; in BENCHMARK_F() local [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/mapped_benchmark_test/ |
H A D | mapped_benchmark_test.cpp | 130 RemoveTestFile(filename); in CreateFile() 168 MappedFile mf(filename); in BENCHMARK_F() 211 RemoveTestFile(filename); in BENCHMARK_F() 227 RemoveTestFile(filename); in BENCHMARK_F() 269 RemoveTestFile(filename); in BENCHMARK_F() 284 RemoveTestFile(filename); in BENCHMARK_F() 333 RemoveTestFile(filename); in BENCHMARK_F() 418 MappedFile mf(filename); in BENCHMARK_F() 485 MappedFile mf(filename); in BENCHMARK_F() 556 MappedFile mf(filename); in BENCHMARK_F() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/muxer/Common/src/ |
H A D | AVMuxerDemo.cpp | 33 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() 53 filename = "output.bin"; in GetErrorFd() 65 filename = fileName + ".mp4"; in GetFdByName() 67 filename = fileName + ".m4a"; in GetFdByName() 86 filename = "output.mp4"; in InnerGetFdByMode() 88 filename = "output.m4a"; in InnerGetFdByMode() [all …]
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | dfx_processdump_test.cpp | 157 auto filename = GetCppCrashFileName(testProcess); variable 158 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 176 auto filename = GetCppCrashFileName(testProcess); variable 177 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 195 auto filename = GetCppCrashFileName(testProcess); variable 196 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 215 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 234 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 254 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 273 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); [all …]
|
/ohos5.0/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/ |
H A D | perf_collector_test.cpp | 47 std::string filename = "hiperf-"; variable 50 filename += ".data"; 51 perfCollector->SetOutputFilename(filename); 69 std::string filename = "hiperf-"; variable 72 filename += ".data"; 92 std::string filename = "hiperf-"; variable 95 filename += ".data"; 124 std::string filename = "hiperf-"; variable 127 filename += ".data"; 149 std::string filename = "hiperf-"; variable [all …]
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
H A D | file_stream_dumper.cpp | 79 if ((fd_ = DumpUtils::FdToRead(filename)) == -1) { in OpenNextFile() 92 line_vector_filename.push_back(filename); in OpenNextFile() 197 ReplacePidInFilename(filename, pid); in BuildFileNames() 202 filenames_.push_back(filename); in BuildFileNames() 206 std::string filename = target; in BuildFileNames() local 208 ReplacePidInFilename(filename, pid); in BuildFileNames() 213 filenames_.push_back(filename); in BuildFileNames() 220 size_t pos = filename.find("%pid"); in ReplacePidInFilename() 222 filename = filename.replace(pos, strlen("%pid"), std::to_string(pid)); in ReplacePidInFilename() 229 size_t pos = filename.find("%cpuid"); in ReplaceCpuidInFilename() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | list_file.cpp | 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() 150 string stPath = g_optionArgs.path + '/' + string(filename.d_name); in FilterLastModifyTime() 162 static bool FilterResult(const struct dirent &filename) in FilterResult() argument 165 if (!FilterSuffix(fSuffixs, filename) && fSuffixs.size() > 0) { in FilterResult() 173 if (!FilterFilesizeOver(fFileSizeOver, filename)) { in FilterResult() 177 if (!FilterLastModifyTime(fLastModifiedAfter, filename)) { in FilterResult() 184 static int32_t FilterFunc(const struct dirent *filename) in FilterFunc() argument 186 if (string_view(filename->d_name) == "." || string_view(filename->d_name) == "..") { in FilterFunc() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/ |
H A D | snapshot_surface.cpp | 74 bool WriteToPng(const std::string &filename, const WriteToPngParam ¶m) in WriteToPng() argument 76 if (filename.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, param); in WritePixelMapToPng() 154 string filename = GenerateFileName(); in main() local 155 bool ret = WritePixelMapToPng(*pixelmap, filename); in main() [all …]
|
/ohos5.0/build/scripts/ |
H A D | download_sdk.py | 55 filename = os.path.basename(download_url) 57 if not os.path.isfile(os.path.join(savepath, filename)): 60 savepath, filename), reporthook=reporthook) 69 def extract_file(filename): argument 71 target_dir = os.path.dirname(filename) 75 with tarfile.open(filename, "r:gz") as tar: 93 for filename in os.listdir(sdk_zip_file_dir): 94 if filename.endswith('.zip'): 99 for filename in os.listdir(sdk_unzip_dir): 100 if filename.endswith('.zip'): [all …]
|
/ohos5.0/base/startup/init/services/init/standard/ |
H A D | system_call_wrap.c | 107 int __real_chmod(const char *filename, int pmode); 108 int __wrap_chmod(const char *filename, int pmode) in __wrap_chmod() argument 111 return __real_chmod(filename, pmode); in __wrap_chmod() 115 int ret = __real_chmod(filename, pmode); in __wrap_chmod() 133 FILE *__real_fopen(const char *filename, const char *mode); 134 FILE *__wrap_fopen(const char *filename, const char *mode) in __wrap_fopen() argument 137 return __real_fopen(filename, mode); in __wrap_fopen() 141 FILE *file = __real_fopen(filename, mode); in __wrap_fopen()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | listfile.cpp | 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() 206 string stPath = g_optionArgs.path + '/' + string(filename.d_name); in FilterLastModifyTime() 218 static bool FilterResult(const struct dirent &filename) in FilterResult() argument 221 if (!FilterSuffix(fSuffixs, filename) && fSuffixs.size() > 0) { in FilterResult() 229 if (!FilterFilesizeOver(fFileSizeOver, filename)) { in FilterResult() 233 if (!FilterLastModifyTime(fLastModifiedAfter, filename)) { in FilterResult() 240 static int32_t FilterFunc(const struct dirent *filename) in FilterFunc() argument 242 if (string_view(filename->d_name) == "." || string_view(filename->d_name) == "..") { in FilterFunc() [all …]
|
/ohos5.0/build/ohos/ |
H A D | file_exists.py | 21 def is_exists(filename: str, file_type: str) -> bool: 24 result = os.path.exists(filename) and os.path.isfile(filename) 26 result = os.path.exists(filename) and os.path.isdir(filename) 35 result = is_exists(args.filename, args.type)
|
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_function.cpp | 313 ioFile.open(filename.c_str(), std::ios::in); in IsExistFile() 326 outFile.open(filename.c_str()); in CreateFile() 335 if (std::remove(filename.c_str()) != 0) { in RemoveFile() 347 inFile.open(filename.c_str()); in AddFileLineData() 364 outFile.open(filename.c_str()); in AddFileLineData() 367 filename.c_str(), strFileData.c_str()); in AddFileLineData() 378 inFile.open(filename.c_str()); in DelFileLineData() 395 outFile.open(filename.c_str()); in DelFileLineData() 410 inFile.open(filename.c_str()); in ModifyFileLineData() 429 outFile.open(filename.c_str()); in ModifyFileLineData() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/log/ |
H A D | logger.cpp | 100 …LogLevel logLevel, const string_view filename, int lineNumber, const string_view format, std::va_l… in VLog() argument 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 line… 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_v… in VLogAssert() argument 155 …Log(LogLevel::LOG_FATAL, filename, lineNumber, "Assert failed (%s). %s", expressionString.data(), … 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() argument 189 VLog(logLevel, filename, lineNumber, format, vl); in Log() 194 bool Logger::LogAssert(const string_view filename, int lineNumber, bool expression, const string_vi… in LogAssert() argument [all …]
|
H A D | logger_output.cpp | 60 …ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message)… in Write() argument 69 if (!filename.empty()) { in Write() 70 … outputStream << " (" << std::string_view(filename.data(), filename.size()) << ':' << linenumber in Write() 90 ILogger::IOutput::Ptr CreateLoggerFileOutput(const string_view filename) in CreateLoggerFileOutput() argument 92 return ILogger::IOutput::Ptr { new FileOutput(filename) }; in CreateLoggerFileOutput()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | path_tools.cpp | 158 void SplitPath(string_view pathIn, string_view& drive, string_view& path, string_view& filename, st… 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()
|
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/include/ |
H A D | dhcp_function.h | 46 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::s… 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:… 61 static int GetDhcpPacketResult(const std::string& filename, struct DhcpPacketResult &result);
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/memory_manager/ |
H A D | memory_manager_test.cpp | 94 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);
|
/ohos5.0/foundation/communication/dhcp/test/fuzztest/dhcpfunction_fuzzer/ |
H A D | dhcpfunction_fuzzer.cpp | 63 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, linedata); in DelFileLineDataTest() [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/src/eu/ |
H A D | osattr_manager.cpp | 78 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()
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | file_parser.py | 551 filename = filename.replace('\\', '/') 685 if filename is None: 697 if filename is None: 808 self.filename = filename 893 return self.filename 902 pos = self.filename.rfind('/') 904 return self.filename[:pos] 1048 self.filename = filename 1057 return self.filename 1085 self.filename = filename [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/ |
H A D | intf_logger.h | 83 …LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::string_view message) = … in CORE_BEGIN_NAMESPACE() 101 …virtual void VLog(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::strin… in CORE_BEGIN_NAMESPACE() 104 …virtual void VLogOnce(BASE_NS::string_view id, LogLevel logLevel, BASE_NS::string_view filename, i… in CORE_BEGIN_NAMESPACE() 106 virtual bool VLogAssert(BASE_NS::string_view filename, int lineNumber, bool expression, in CORE_BEGIN_NAMESPACE() 111 …LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* for… in CORE_BEGIN_NAMESPACE() 113 …virtual FORMAT_FUNC(6, 7) bool LogAssert(BASE_NS::string_view filename, int lineNumber, bool expre… in CORE_BEGIN_NAMESPACE()
|