Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 25 of 46) sorted by relevance

12

/drivers/hdf_core/framework/tools/hdi-gen/hash/
Dhash.cpp27 std::string filePath = Options::GetInstance().GetOutPutFile(); in GenHashKey() local
28 return filePath.empty() ? FormatStdout(fileDetails) : FormatFile(fileDetails, filePath); in GenHashKey()
44 bool Hash::FormatFile(const FileDetailMap &fileDetails, const std::string &filePath) in FormatFile() argument
51 std::ofstream hashFile(filePath, std::ios::out | std::ios ::binary); in FormatFile()
53 Logger::E(TAG, "failed to open %s", filePath.c_str()); in FormatFile()
Dhash.h26 static bool FormatFile(const FileDetailMap &fileDetails, const std::string &filePath);
/drivers/hdf_core/framework/tools/hdi-gen/lexer/
Dtoken.cpp30 size_t index = token.location.filePath.rfind(SEPARATOR); in LocInfo()
32 …(index == std::string::npos) ? token.location.filePath : token.location.filePath.substr(index + 1); in LocInfo()
Dtoken.h91 std::string filePath; member
Dlexer.h33 bool Reset(const std::string &filePath);
/drivers/peripheral/thermal/interfaces/hdi_service/include/
Dthermal_device_mitigation.h40 int32_t OpenSysfsFile(std::string filePath, int32_t flags);
41 int32_t WriteSysfsFile(std::string filePath, std::string buf, size_t bytesSize);
Dthermal_simulation_node.h35 int32_t CreateNodeFile(std::string filePath);
/drivers/peripheral/thermal/interfaces/hdi_service/src/
Dthermal_device_mitigation.cpp61 int32_t ThermalDeviceMitigation::OpenSysfsFile(std::string filePath, int32_t flags) in OpenSysfsFile() argument
65 if (filePath.empty()) { in OpenSysfsFile()
69 ret = open(filePath.c_str(), flags); in OpenSysfsFile()
77 int32_t ThermalDeviceMitigation::WriteSysfsFile(std::string filePath, std::string buf, size_t bytes… in WriteSysfsFile() argument
79 std::fstream file(filePath.c_str(), std::ios::out | std::ios::trunc); in WriteSysfsFile()
81 int32_t fd = OpenSysfsFile(filePath.c_str(), O_RDWR); in WriteSysfsFile()
Dthermal_simulation_node.cpp82 int32_t ThermalSimulationNode::CreateNodeFile(std::string filePath) in CreateNodeFile() argument
84 if (access(filePath.c_str(), 0) != 0) { in CreateNodeFile()
85 int32_t fd = open(filePath.c_str(), O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP| S_IROTH); in CreateNodeFile()
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/
Dpreprocessor.cpp90 for (const auto &filePath : sourceFiles) { in CheckAllFilesPath() local
91 if (!File::CheckValid(filePath)) { in CheckAllFilesPath()
92 Logger::E(TAG, "invailed file path '%s'.", filePath.c_str()); in CheckAllFilesPath()
325 bool Preprocessor::CheckPackageName(const std::string &filePath, const std::string &packageName) in CheckPackageName() argument
329 size_t index = filePath.rfind(SEPARATOR); in CheckPackageName()
334 std::string parentDir = filePath.substr(0, index); in CheckPackageName()
Dpreprocessor.h69 static bool CheckPackageName(const std::string &filePath, const std::string &packageName);
/drivers/liteos/hievent/include/
Dhiview_hievent.h47 char *filePath[MAX_PATH_NUMBER]; member
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dcpp_service_impl_code_emitter.cpp47 std::string filePath = in EmitImplHeaderFile() local
49 File file(filePath, File::WRITE); in EmitImplHeaderFile()
139 std::string filePath = File::AdapterPath( in EmitImplSourceFile() local
141 File file(filePath, File::WRITE); in EmitImplSourceFile()
Dc_service_impl_code_emitter.cpp59 std::string filePath = in EmitLowServiceImplHeaderFile() local
61 File file(filePath, File::WRITE); in EmitLowServiceImplHeaderFile()
104 std::string filePath = in EmitLowServiceImplSourceFile() local
106 File file(filePath, File::WRITE); in EmitLowServiceImplSourceFile()
152 std::string filePath = in EmitServiceImplHeaderFile() local
154 File file(filePath, File::WRITE); in EmitServiceImplHeaderFile()
212 std::string filePath = in EmitServiceImplSourceFile() local
214 File file(filePath, File::WRITE); in EmitServiceImplSourceFile()
Dc_interface_code_emitter.cpp51 std::string filePath = in EmitLowModeInterfaceHeaderFile() local
53 File file(filePath, File::WRITE); in EmitLowModeInterfaceHeaderFile()
97 std::string filePath = in EmitInterfaceHeaderFile() local
99 File file(filePath, File::WRITE); in EmitInterfaceHeaderFile()
Dcode_emitter.cpp130 StringBuilder filePath; in PackageToFilePath() local
132 filePath.Append(FileName(*iter)); in PackageToFilePath()
134 filePath.Append(SEPARATOR); in PackageToFilePath()
138 return filePath.ToString(); in PackageToFilePath()
Dcpp_custom_types_code_emitter.cpp48 std::string filePath = in EmitPassthroughCustomTypesHeaderFile() local
50 File file(filePath, File::WRITE); in EmitPassthroughCustomTypesHeaderFile()
89 std::string filePath = in EmitCustomTypesHeaderFile() local
91 File file(filePath, File::WRITE); in EmitCustomTypesHeaderFile()
216 std::string filePath = in EmitCustomTypesSourceFile() local
218 File file(filePath, File::WRITE); in EmitCustomTypesSourceFile()
Djava_client_interface_code_emitter.cpp40 std::string filePath = in EmitInterfaceFile() local
42 File file(filePath, File::WRITE); in EmitInterfaceFile()
Dc_custom_types_code_emitter.cpp52 std::string filePath = in EmitPassthroughCustomTypesHeaderFile() local
54 File file(filePath, File::WRITE); in EmitPassthroughCustomTypesHeaderFile()
89 std::string filePath = in EmitCustomTypesHeaderFile() local
91 File file(filePath, File::WRITE); in EmitCustomTypesHeaderFile()
213 std::string filePath = in EmitCustomTypesSourceFile() local
215 File file(filePath, File::WRITE); in EmitCustomTypesSourceFile()
Dcpp_client_proxy_code_emitter.cpp51 std::string filePath = in EmitProxyHeaderFile() local
53 File file(filePath, File::WRITE); in EmitProxyHeaderFile()
202 std::string filePath = in EmitPassthroughProxySourceFile() local
204 File file(filePath, File::WRITE); in EmitPassthroughProxySourceFile()
256 std::string filePath = in EmitProxySourceFile() local
258 File file(filePath, File::WRITE); in EmitProxySourceFile()
Dc_service_driver_code_emitter.cpp59 std::string filePath = in EmitLowDriverSourceFile() local
61 File file(filePath, File::WRITE); in EmitLowDriverSourceFile()
131 std::string filePath = in EmitDriverSourceFile() local
133 File file(filePath, File::WRITE); in EmitDriverSourceFile()
/drivers/liteos/hievent/src/
Dhiview_hievent.c300 return AppendArrayItem(event->filePath, MAX_PATH_NUMBER, path); in HiviewHieventAddFilePath()
452 if (!event->filePath[i]) { in HiviewHieventConvertString()
456 event->filePath[i]); in HiviewHieventConvertString()
540 LOS_MemFree((VOID *)OS_SYS_MEM_ADDR, event->filePath[i]); in HiviewHieventDestroy()
541 event->filePath[i] = NULL; in HiviewHieventDestroy()
/drivers/hdf_core/framework/tools/hdi-gen/util/
Dfile.cpp317 std::string filePath = dirPath + dirInfo->d_name; in CreateParentDir() local
318 files.insert(filePath); in CreateParentDir()
/drivers/peripheral/usb/ddk/device/src/
Dadapter_if.c69 static void GetFilePath(const char *path, const char *fileName, char *filePath) in GetFilePath() argument
71 int32_t ret = strcpy_s(filePath, MAX_PATHLEN - 1, path); in GetFilePath()
77 if (filePath[strlen(path) - 1] != '/') { in GetFilePath()
78 ret = strcat_s(filePath, MAX_PATHLEN - 1, "/"); in GetFilePath()
85 ret = strcat_s(filePath, MAX_PATHLEN - 1, fileName); in GetFilePath()
105 char filePath[PATH_MAX]; in DeleteFile() local
107 GetFilePath(path, dirInfo->d_name, filePath); in DeleteFile()
111 DeleteFile(filePath); in DeleteFile()
112 (void)remove(filePath); in DeleteFile()
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiocapture_fuzzer/
Daudiocapture_fuzzer.cpp58 .filePath = reinterpret_cast<char *>(data), in AudioCaptureReqMmapBuffer()

12