/drivers/hdf_core/framework/tools/hdi-gen/hash/ |
D | hash.cpp | 27 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()
|
D | hash.h | 26 static bool FormatFile(const FileDetailMap &fileDetails, const std::string &filePath);
|
/drivers/hdf_core/framework/tools/hdi-gen/lexer/ |
D | token.cpp | 30 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()
|
D | token.h | 91 std::string filePath; member
|
D | lexer.h | 33 bool Reset(const std::string &filePath);
|
/drivers/peripheral/thermal/interfaces/hdi_service/include/ |
D | thermal_device_mitigation.h | 40 int32_t OpenSysfsFile(std::string filePath, int32_t flags); 41 int32_t WriteSysfsFile(std::string filePath, std::string buf, size_t bytesSize);
|
D | thermal_simulation_node.h | 35 int32_t CreateNodeFile(std::string filePath);
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_device_mitigation.cpp | 61 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()
|
D | thermal_simulation_node.cpp | 82 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/ |
D | preprocessor.cpp | 90 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()
|
D | preprocessor.h | 69 static bool CheckPackageName(const std::string &filePath, const std::string &packageName);
|
/drivers/liteos/hievent/include/ |
D | hiview_hievent.h | 47 char *filePath[MAX_PATH_NUMBER]; member
|
/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
D | cpp_service_impl_code_emitter.cpp | 47 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()
|
D | c_service_impl_code_emitter.cpp | 59 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()
|
D | c_interface_code_emitter.cpp | 51 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()
|
D | code_emitter.cpp | 130 StringBuilder filePath; in PackageToFilePath() local 132 filePath.Append(FileName(*iter)); in PackageToFilePath() 134 filePath.Append(SEPARATOR); in PackageToFilePath() 138 return filePath.ToString(); in PackageToFilePath()
|
D | cpp_custom_types_code_emitter.cpp | 48 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()
|
D | java_client_interface_code_emitter.cpp | 40 std::string filePath = in EmitInterfaceFile() local 42 File file(filePath, File::WRITE); in EmitInterfaceFile()
|
D | c_custom_types_code_emitter.cpp | 52 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()
|
D | cpp_client_proxy_code_emitter.cpp | 51 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()
|
D | c_service_driver_code_emitter.cpp | 59 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/ |
D | hiview_hievent.c | 300 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/ |
D | file.cpp | 317 std::string filePath = dirPath + dirInfo->d_name; in CreateParentDir() local 318 files.insert(filePath); in CreateParentDir()
|
/drivers/peripheral/usb/ddk/device/src/ |
D | adapter_if.c | 69 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/ |
D | audiocapture_fuzzer.cpp | 58 .filePath = reinterpret_cast<char *>(data), in AudioCaptureReqMmapBuffer()
|