Home
last modified time | relevance | path

Searched defs:path (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/base/account/os_account/frameworks/common/file_operator/src/
Daccount_file_operator.cpp39 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/base/utility/
Dfile_util.cpp81 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 void GetDirDirs(const std::string& path, std::vector<std::string>& dirs) in GetDirDirs()
117 bool ForceCreateDirectory(const std::string& path) in ForceCreateDirectory()
122 bool ForceCreateDirectory(const string& path, mode_t mode) in ForceCreateDirectory()
137 bool ForceRemoveDirectory(const std::string& path, bool isNeedDeleteGivenDirSelf) in ForceRemoveDirectory()
142 uint64_t GetFileSize(const std::string& path) in GetFileSize()
153 uint64_t GetFolderSize(const std::string& path) in GetFolderSize()
173 bool ChangeModeDirectory(const std::string& path, const mode_t& mode) in ChangeModeDirectory()
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_file.c25 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()
Dcert_manager_file_operator.c30 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()
200 int32_t CmFileRemove(const char *path, const char *fileName) in CmFileRemove()
217 int32_t CmMakeDir(const char *path) in CmMakeDir()
235 void *CmOpenDir(const char *path) in CmOpenDir()
267 uint32_t CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t… in CmFileRead()
284 int32_t CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, ui… in CmFileWrite()
301 uint32_t CmFileSize(const char *path, const char *fileName) in CmFileSize()
345 int32_t CmUidLayerGetFileCountAndNames(const char *path, struct CmBlob *fileNames, in CmUidLayerGetFileCountAndNames()
[all …]
Dcert_manager.c135 char *path = (char *)pathBlob->data; in CmGetFilePath() local
170 uint32_t store, struct CmMutableBlob *path) in CertManagerFindCertFileNameByUri()
209 struct CmMutableBlob path = { sizeof(pathBuf), (uint8_t*) pathBuf }; in CmRemoveAppCert() local
242 …_t CmAppCertGetFilePath(const struct CmContext *context, const uint32_t store, struct CmBlob *path) in CmAppCertGetFilePath()
313 struct CmBlob path = { sizeof(pathBuf), (uint8_t*)pathBuf }; in CmRemoveSpecifiedAppCert() local
387 struct CmBlob path = { sizeof(pathBuf), (uint8_t*)pathBuf }; in CmServiceGetAppCertList() local
412 static int32_t CherkCertCountBeyondMax(const char *path, const char *fileName) in CherkCertCountBeyondMax()
512 static int32_t RemoveAllUserCert(const struct CmContext *context, uint32_t store, const char* path) in RemoveAllUserCert()
542 static int32_t RemoveAllUidDir(const char* path) in RemoveAllUidDir()
551 struct CmMutableBlob *path = (struct CmMutableBlob *)pathList->data; in CmRemoveAllUserCert() local
/base/security/huks/utils/file_operator/
Dhks_file_operator.c35 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()
209 int32_t HksFileRemove(const char *path, const char *fileName) in HksFileRemove()
222 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist()
235 int32_t HksIsDirExist(const char *path) in HksIsDirExist()
241 int32_t HksMakeDir(const char *path) in HksMakeDir()
256 void *HksOpenDir(const char *path) in HksOpenDir()
288 int32_t HksGetStoragePath(enum HksStoragePathType pathType, char *path, uint32_t *len) in HksGetStoragePath()
343 static int32_t HksDeletDirPartTwo(const char *path) in HksDeletDirPartTwo()
378 static int32_t HksDeletDirPartOne(const char *path) in HksDeletDirPartOne()
[all …]
Dhks_file_operator_lite.c51 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t ful… in GetFileName()
76 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName()
200 int32_t HksIsDirExist(const char *path) in HksIsDirExist()
206 int32_t HksMakeDir(const char *path) in HksMakeDir()
225 void *HksOpenDir(const char *path) in HksOpenDir()
257 int32_t HksGetStoragePath(enum HksStoragePathType pathType, char *path, uint32_t *len) in HksGetStoragePath()
410 uint32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_… in HksFileRead()
425 int32_t HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, u… in HksFileWrite()
440 uint32_t HksFileSize(const char *path, const char *fileName) in HksFileSize()
453 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist()
[all …]
/base/update/updater/interfaces/kits/misc_info/
Dmisc_info.cpp24 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/powermgr/thermal_manager/test/common/src/
Dthermal_test.cpp34 int32_t ThermalTest::WriteFile(std::string path, std::string buf) in WriteFile()
50 int32_t ThermalTest::ReadFile(std::string path, std::string& buf) in ReadFile()
101 bool ThermalTest::IsMock(const std::string& path) in IsMock()
137 std::string ThermalTest::GetNodeValue(const std::string& path) in GetNodeValue()
145 int32_t ThermalTest::SetNodeValue(int32_t value, const std::string& path) in SetNodeValue()
153 int32_t ThermalTest::SetNodeString(std::string str, const std::string& path) in SetNodeString()
/base/security/huks/test/unittest/huks_standard_test/storage_multithread_test/src/
Dhks_storage_file_lock_test.cpp33 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/security/dlp_permission_service/services/dlp_permission/sa/adapt/
Dfile_operator.cpp41 int32_t FileOperator::InputFileByPathAndContent(const std::string& path, const std::string& content) in InputFileByPathAndContent()
88 int32_t FileOperator::GetFileContentByPath(const std::string& path, std::string& content) in GetFileContentByPath()
106 bool FileOperator::IsExistFile(const std::string& path) in IsExistFile()
120 bool FileOperator::IsExistDir(const std::string& path) in IsExistDir()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/
Dhc_file.c27 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()
Dhc_file_posix.c69 static int HcFileOpenRead(const char *path) in HcFileOpenRead()
80 static int HcFileOpenWrite(const char *path) in HcFileOpenWrite()
97 int HcFileOpen(const char *path, int mode, FileHandle *file) in HcFileOpen()
183 void HcFileRemove(const char *path) in HcFileRemove()
195 void HcFileGetSubFileName(const char *path, StringVector *nameVec) in HcFileGetSubFileName()
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dselinux_restorecon.c62 static int RestoreconCommon(const char *path, unsigned int flag) in RestoreconCommon()
72 int Restorecon(const char *path) in Restorecon()
77 int RestoreconRecurse(const char *path) in RestoreconRecurse()
/base/update/updater/services/applypatch/
Ddata_writer.cpp29 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()
Dstore.cpp52 std::string path = dirPath + "/" + fileName; in FreeStore() local
60 int32_t Store::CreateNewSpace(const std::string &path, bool needClear) in CreateNewSpace()
110 std::string path = pathTmp + fileName; in WriteDataToStore() local
146 std::string path = dirPath; in LoadDataFromStore() local
/base/hiviewdfx/hiview/build/
Dplugin_build.json4 "path": "plugins/sysevent_source", string
8 "path": "plugins/event_store", string
12 "path": "plugins/faultlogger", string
16 "path": "plugins/eventlogger", string
20 "path": "plugins/freeze_detector", string
24 "path": "plugins/usage_event_report", string
28 "path": "plugins/reliability/bbox_detectors", string
32 "path": "plugins/sys_dispatcher", string
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_config.cpp27 FaultLoggerConfig::FaultLoggerConfig(const int number, const long size, const std::string& path, co… in FaultLoggerConfig()
75 bool FaultLoggerConfig::SetLogFilePath(const std::string& path) in SetLogFilePath()
90 bool FaultLoggerConfig::SetDebugLogFilePath(const std::string& path) in SetDebugLogFilePath()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
Dhc_file.c62 static FILE *HcFileOpenRead(const char *path) in HcFileOpenRead()
67 static FILE *HcFileOpenWrite(const char *path) in HcFileOpenWrite()
78 int HcFileOpen(const char *path, int mode, FileHandle *file) in HcFileOpen()
177 void HcFileRemove(const char *path) in HcFileRemove()
186 void HcFileGetSubFileName(const char *path, StringVector *nameVec) in HcFileGetSubFileName()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_file_operator.c34 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/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/
Dprocinfo.cpp44 static bool GetProcStatusByPath(struct ProcInfo& procInfo, const std::string& path) in GetProcStatusByPath()
101 std::string path = StringPrintf("/proc/%d/task/%d/status", pid, tid); in TidToNstid() local
119 std::string path = StringPrintf("/proc/%d/status", realPid); in GetProcStatusByPid() local
130 std::string path; in IsThreadInPid() local
181 std::string path = StringPrintf("/proc/%d/comm", tid); in ReadThreadName() local
189 std::string path; in ReadProcessName() local
202 std::string path = StringPrintf("/proc/%d/status", pid); in ReadProcessStatus() local
217 std::string path = StringPrintf("/proc/%d/wchan", pid); in ReadProcessWchan() local
/base/update/updater/services/flashd/daemon/
Dflashd_utils.cpp25 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()
/base/msdp/device_status/utils/common/src/
Dutility.cpp80 void Utility::RemoveTrailingChars(char c, char *path) in RemoveTrailingChars()
89 void Utility::RemoveTrailingChars(const std::string &toRemoved, std::string &path) in RemoveTrailingChars()
107 bool Utility::DoesFileExist(const char *path) in DoesFileExist()
112 ssize_t Utility::GetFileSize(const char *path) in GetFileSize()
129 void Utility::ShowFileAttributes(const char *path) in ShowFileAttributes()
/base/security/selinux_adapter/test/unittest/common/
Dtest_common.cpp24 bool CreateDirectory(const std::string &path) in CreateDirectory()
46 bool RemoveDirectory(const std::string &path) in RemoveDirectory()
81 std::string GetDirectory(const std::string &path) in GetDirectory()
91 bool CreateFile(const std::string &path) in CreateFile()
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_file_operator.c43 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t ful… in GetFileName()
68 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName()
184 int32_t HksTestIsFileExist(const char *path, const char *fileName) in HksTestIsFileExist()
275 int32_t HksTestFileRemove(const char *path, const char *fileName) in HksTestFileRemove()
287 uint32_t HksTestFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uin… in HksTestFileRead()
304 int32_t HksTestFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *bu… in HksTestFileWrite()
321 uint32_t HksTestFileSize(const char *path, const char *fileName) in HksTestFileSize()

12345678910>>...15