/base/account/os_account/frameworks/common/file_operator/src/ |
D | account_file_operator.cpp | 39 ErrCode AccountFileOperator::CreateDir(const std::string &path) in CreateDir() 57 ErrCode AccountFileOperator::DeleteDirOrFile(const std::string &path) in DeleteDirOrFile() 74 ErrCode AccountFileOperator::InputFileByPathAndContent(const std::string &path, const std::string &… in InputFileByPathAndContent() 118 ErrCode AccountFileOperator::GetFileContentByPath(const std::string &path, std::string &content) in GetFileContentByPath() 136 bool AccountFileOperator::IsExistFile(const std::string &path) in IsExistFile() 150 bool AccountFileOperator::IsJsonFormat(const std::string &path) in IsJsonFormat() 165 bool AccountFileOperator::IsJsonFileReady(const std::string &path) in IsJsonFileReady() 170 bool AccountFileOperator::IsExistDir(const std::string &path) in IsExistDir()
|
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/ |
D | file_util.cpp | 81 std::string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter() 86 std::string ExcludeTrailingPathDelimiter(const std::string& path) in ExcludeTrailingPathDelimiter() 91 void GetDirFiles(const std::string& path, std::vector<std::string>& files) in GetDirFiles() 96 bool ForceCreateDirectory(const std::string& path) in ForceCreateDirectory() 101 bool ForceCreateDirectory(const string& path, mode_t mode) in ForceCreateDirectory() 116 bool ForceRemoveDirectory(const std::string& path, bool isNeedDeleteGivenDirSelf) in ForceRemoveDirectory() 121 uint64_t GetFileSize(const std::string& path) in GetFileSize() 132 uint64_t GetFolderSize(const std::string& path) in GetFolderSize() 152 bool ChangeModeDirectory(const std::string& path, const mode_t& mode) in ChangeModeDirectory() 157 bool PathToRealPath(const std::string& path, std::string& realPath) in PathToRealPath() [all …]
|
/base/update/updater/test/unittest/utils/ |
D | utils_unittest.cpp | 72 string path = string(PATH_MAX, 'a') + "/"; variable 91 string path = "/no_exist"; variable 99 string path = "/data/updater/test_file"; variable 114 string path = "/data/updater/test_file"; variable 132 string path = "/data/updater/test_file"; variable 151 string path = "/data/updater/test_file"; variable 183 string path = std::string(UPDATER_PATH) + "/" + std::string(UPDATER_RESULT_FILE); variable 202 string path = ""; variable 249 string path(PATH_MAX + 1, '/'); variable 262 auto path = GetBlockDeviceByMountPoint(MISC_PATH); variable
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_file.c | 25 inline uint32_t CertManagerFileSize(const char *path, const char *fileName) in CertManagerFileSize() 30 inline uint32_t CertManagerFileRead(const char *path, const char *fileName, uint32_t offset, uint8_… in CertManagerFileRead() 35 inline int32_t CertManagerFileWrite(const char *path, const char *fileName, in CertManagerFileWrite() 41 inline int32_t CertManagerFileRemove(const char *path, const char *fileName) in CertManagerFileRemove() 46 static int32_t GetNumberOfFiles(const char *path) in GetNumberOfFiles() 76 static int32_t MallocFileNames(struct CmMutableBlob **fNames, const char *path, uint32_t *fileCount) in MallocFileNames() 108 static int32_t GetFileNames(const char *path, struct CmMutableBlob *fNames, uint32_t fileCount) in GetFileNames() 154 int32_t CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path) in CertManagerGetFilenames() 198 int32_t GetCertCount(const char *path) in GetCertCount()
|
D | cert_manager_file_operator.c | 30 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t ful… in GetFileName() 54 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() 83 int32_t CmIsDirExist(const char *path) in CmIsDirExist() 196 int32_t CmFileRemove(const char *path, const char *fileName) in CmFileRemove() 213 int32_t CmMakeDir(const char *path) in CmMakeDir() 231 void *CmOpenDir(const char *path) in CmOpenDir() 263 uint32_t CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t… in CmFileRead() 280 int32_t CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, ui… in CmFileWrite() 297 uint32_t CmFileSize(const char *path, const char *fileName) in CmFileSize() 341 int32_t CmUidLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, in CmUidLayerGetFileCountAndNames() [all …]
|
/base/hiviewdfx/faultloggerd/utils/ |
D | directory_ex.cpp | 59 string ExcludeTrailingPathDelimiter(const std::string& path) in ExcludeTrailingPathDelimiter() 72 string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter() 81 void GetDirFiles(const string& path, vector<string>& files) in GetDirFiles() 108 bool ForceCreateDirectory(const string& path) in ForceCreateDirectory() 130 bool ForceRemoveDirectory(const string& path) in ForceRemoveDirectory() 182 bool IsEmptyFolder(const string& path) in IsEmptyFolder() 189 uint64_t GetFolderSize(const string& path) in GetFolderSize() 219 bool ChangeModeDirectory(const string& path, const mode_t& mode) in ChangeModeDirectory() 260 bool PathToRealPath(const string& path, string& realPath) in PathToRealPath()
|
/base/security/huks/utils/file_operator/ |
D | hks_file_operator.c | 35 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t ful… in GetFileName() 60 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() 204 int32_t HksFileRemove(const char *path, const char *fileName) in HksFileRemove() 217 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist() 230 int32_t HksIsDirExist(const char *path) in HksIsDirExist() 236 int32_t HksMakeDir(const char *path) in HksMakeDir() 251 void *HksOpenDir(const char *path) in HksOpenDir() 283 int32_t HksGetStoragePath(enum HksStoragePathType pathType, char *path, uint32_t *len) in HksGetStoragePath() 338 static int32_t HksDeletDirPartTwo(const char *path) in HksDeletDirPartTwo() 373 static int32_t HksDeletDirPartOne(const char *path) in HksDeletDirPartOne() [all …]
|
D | hks_file_operator_lite.c | 46 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t ful… in GetFileName() 71 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() 182 int32_t HksIsDirExist(const char *path) in HksIsDirExist() 188 int32_t HksMakeDir(const char *path) in HksMakeDir() 204 void *HksOpenDir(const char *path) in HksOpenDir() 236 int32_t HksGetStoragePath(enum HksStoragePathType pathType, char *path, uint32_t *len) in HksGetStoragePath() 384 uint32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_… in HksFileRead() 399 int32_t HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, u… in HksFileWrite() 414 uint32_t HksFileSize(const char *path, const char *fileName) in HksFileSize() 427 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist() [all …]
|
/base/hiviewdfx/hiview/adapter/utility/platform/windows/ |
D | file_util.cpp | 39 std::string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter() 44 std::string ExcludeTrailingPathDelimiter(const std::string& path) in ExcludeTrailingPathDelimiter() 55 int Open(const std::string& path, const int flags, const mode_t mode) in Open() 61 void CreateDirWithDefaultPerm(const std::string& path, uid_t aidRoot, uid_t aidSystem) in CreateDirWithDefaultPerm() 66 void FormatPath2UnixStyle(std::string &path) in FormatPath2UnixStyle() 71 void RemoveFolderBeginWith(const std::string &path, const std::string &folderName) in RemoveFolderBeginWith()
|
/base/security/selinux/interfaces/policycoreutils/src/ |
D | restorecon.c | 20 int Restorecon(const char *path) in Restorecon() 25 int RestoreconRecurse(const char *path) in RestoreconRecurse()
|
/base/update/updater/interfaces/kits/misc_info/ |
D | misc_info.cpp | 24 bool WriteUpdaterMessage(const std::string &path, const UpdateMessage &boot) in WriteUpdaterMessage() 53 bool ReadUpdaterMessage(const std::string &path, UpdateMessage &boot) in ReadUpdaterMessage() 89 auto path = GetBlockDeviceByMountPoint(MISC_PATH); in WriteUpdaterMiscMsg() local 100 auto path = GetBlockDeviceByMountPoint(MISC_PATH); in ReadUpdaterMiscMsg() local
|
/base/security/huks/test/unittest/huks_standard_test/storage_multithread_test/src/ |
D | hks_storage_file_lock_test.cpp | 33 std::string path = "/test/test"; variable 52 std::string path = pathBase + std::to_string(i); variable 66 std::string path = "/test/test"; variable 88 std::string path = "/test/test"; variable
|
/base/hiviewdfx/hiview/build/ |
D | plugin_build.json | 4 "path": "core", string 8 "path": "plugins/eventservice", string 12 "path": "plugins/faultlogger", string 16 "path": "plugins/eventlogger", string 20 "path": "plugins/freeze_detector", string 24 "path": "plugins/hicollie_collector", string 28 "path": "plugins/usage_event_report", string 32 "path": "plugins/reliability/bbox_detectors", string
|
/base/hiviewdfx/hiview/adapter/utility/ |
D | file_util.cpp | 189 void GetDirFiles(const std::string& path, std::vector<std::string>& files) in GetDirFiles() 199 bool ForceCreateDirectory(const std::string& path) in ForceCreateDirectory() 211 bool ForceCreateDirectory(const std::string& path, int mode) in ForceCreateDirectory() 219 bool ForceRemoveDirectory(const std::string& path, bool isNeedDeleteGivenDirSelf) in ForceRemoveDirectory() 233 uint64_t GetFileSize(const std::string& path) in GetFileSize() 239 uint64_t GetFolderSize(const std::string& path) in GetFolderSize() 254 int CreateFile(const std::string &path, mode_t mode) in CreateFile() 290 bool IsDirectory(const std::string &path) in IsDirectory() 330 std::string GetParentDir(const std::string &path) in GetParentDir() 353 bool ChangeModeDirectory(const string& path, const mode_t& mode) in ChangeModeDirectory() [all …]
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/ |
D | hc_file.c | 27 static int HcFileOpenRead(const char *path) in HcFileOpenRead() 34 static int HcFileOpenWrite(const char *path) in HcFileOpenWrite() 41 int HcFileOpen(const char *path, int mode, FileHandle *file) in HcFileOpen() 104 void HcFileRemove(const char *path) in HcFileRemove() 114 void HcFileGetSubFileName(const char *path, StringVector *nameVec) in HcFileGetSubFileName()
|
D | hc_file_posix.c | 68 static int HcFileOpenRead(const char *path) in HcFileOpenRead() 73 static int HcFileOpenWrite(const char *path) in HcFileOpenWrite() 84 int HcFileOpen(const char *path, int mode, FileHandle *file) in HcFileOpen() 168 void HcFileRemove(const char *path) in HcFileRemove() 180 void HcFileGetSubFileName(const char *path, StringVector *nameVec) in HcFileGetSubFileName()
|
/base/update/updater/services/applypatch/ |
D | data_writer.cpp | 29 int DataWriter::OpenPath(const std::string &path) in OpenPath() 59 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter() 84 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter()
|
D | store.cpp | 52 std::string path; in FreeStore() local 63 int32_t Store::CreateNewSpace(const std::string &path, bool needClear) in CreateNewSpace() 117 std::string path = pathTmp + fileName; in WriteDataToStore() local 159 std::string path = dirPath; in LoadDataFromStore() local
|
/base/hiviewdfx/hiview/adapter/utility/platform/linux/ |
D | file_util.cpp | 37 std::string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter() 42 std::string ExcludeTrailingPathDelimiter(const std::string& path) in ExcludeTrailingPathDelimiter() 61 int Open(const std::string& path, const int flags, const mode_t mode) in Open() 66 void CreateDirWithDefaultPerm(const std::string& path, uid_t aidRoot, uid_t aidSystem) in CreateDirWithDefaultPerm()
|
/base/hiviewdfx/faultloggerd/common/util/ |
D | dfx_cutil.c | 39 bool ReadStringFromFile(const char* path, char* dst, size_t dstSz) in ReadStringFromFile() 81 char path[NAME_LEN]; in GetThreadName() local 91 char path[NAME_LEN]; in GetProcessName() local
|
D | musl_cutil.h | 39 bool ReadStringFromFile(const char* path, char* dst, size_t dstSz) in ReadStringFromFile() 79 char path[NAME_LEN]; in GetThreadName() local 89 char path[NAME_LEN]; in GetProcessName() local
|
/base/hiviewdfx/faultloggerd/services/ |
D | fault_logger_config.cpp | 29 FaultLoggerConfig::FaultLoggerConfig(const int number, const long size, const std::string& path, co… in FaultLoggerConfig() 77 bool FaultLoggerConfig::SetLogFilePath(const std::string& path) in SetLogFilePath() 92 bool FaultLoggerConfig::SetDebugLogFilePath(const std::string& path) in SetDebugLogFilePath()
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_test_file_operator.c | 34 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t ful… in GetFileName() 59 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName() 174 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist() 191 uint32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_… in HksFileRead() 208 int32_t HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, u… in HksFileWrite() 225 uint32_t HksFileSize(const char *path, const char *fileName) in HksFileSize()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
D | hc_file.c | 64 static FILE *HcFileOpenRead(const char *path) in HcFileOpenRead() 69 static FILE *HcFileOpenWrite(const char *path) in HcFileOpenWrite() 80 int HcFileOpen(const char *path, int mode, FileHandle *file) in HcFileOpen() 166 void HcFileRemove(const char *path) in HcFileRemove() 175 void HcFileGetSubFileName(const char *path, StringVector *nameVec) in HcFileGetSubFileName()
|
/base/update/updater/services/flashd/daemon/ |
D | flashd_utils.cpp | 25 std::string GetRealPath(const std::string &path) in GetRealPath() 37 std::string GetPathRoot(const std::string &path) in GetPathRoot() 43 std::string GetFileName(const std::string &path) in GetFileName()
|