Home
last modified time | relevance | path

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

12345678910>>...21

/base/hiviewdfx/hiview/base/utility/
Dfile_util.cpp100 std::string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter()
105 std::string ExcludeTrailingPathDelimiter(const std::string& path) in ExcludeTrailingPathDelimiter()
110 void GetDirFiles(const std::string& path, std::vector<std::string>& files, bool isRecursive) in GetDirFiles()
136 void GetDirDirs(const std::string& path, std::vector<std::string>& dirs) in GetDirDirs()
157 bool ForceCreateDirectory(const std::string& path) in ForceCreateDirectory()
162 bool ForceCreateDirectory(const string& path, mode_t mode) in ForceCreateDirectory()
177 bool ForceRemoveDirectory(const std::string& path, bool isNeedDeleteGivenDirSelf) in ForceRemoveDirectory()
182 uint64_t GetFileSize(const std::string& path) in GetFileSize()
193 uint64_t GetFolderSize(const std::string& path) in GetFolderSize()
213 bool ChangeModeDirectory(const std::string& path, const mode_t& mode) in ChangeModeDirectory()
[all …]
/base/inputmethod/imf/services/file/src/
Dfile_operator.cpp26 bool FileOperator::Create(const std::string &path, mode_t mode) in Create()
36 bool FileOperator::IsExist(const std::string &path) in IsExist()
41 bool FileOperator::Read(const std::string &path, std::string &content) in Read()
55 bool FileOperator::Write(const std::string &path, const std::string &content, int32_t flags, mode_t… in Write()
73 bool FileOperator::Read(const std::string &path, const std::string &key, std::string &content) in Read()
99 std::string FileOperator::Read(const std::string &path, const std::string &key) in Read()
114 std::string FileOperator::GetRealPath(const char *path) in GetRealPath()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_file.c27 inline uint32_t CertManagerFileSize(const char *path, const char *fileName) in CertManagerFileSize()
32 inline uint32_t CertManagerFileRead(const char *path, const char *fileName, uint32_t offset, uint8_… in CertManagerFileRead()
37 inline int32_t CertManagerFileWrite(const char *path, const char *fileName, in CertManagerFileWrite()
43 inline int32_t CertManagerFileRemove(const char *path, const char *fileName) in CertManagerFileRemove()
48 static int32_t GetNumberOfFiles(const char *path) in GetNumberOfFiles()
78 static int32_t MallocFileNames(struct CmMutableBlob **fNames, const char *path, uint32_t *fileCount) in MallocFileNames()
109 static int32_t GetFileNames(const char *path, struct CmMutableBlob *fNames, uint32_t fileCount) in GetFileNames()
155 int32_t CertManagerGetFilenames(struct CmMutableBlob *fileNames, const char *path) in CertManagerGetFilenames()
199 int32_t GetCertCount(const char *path) in GetCertCount()
Dcert_manager_file_operator.c32 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t ful… in GetFileName()
56 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName()
85 int32_t CmIsDirExist(const char *path) in CmIsDirExist()
206 int32_t CmFileRemove(const char *path, const char *fileName) in CmFileRemove()
223 int32_t CmMakeDir(const char *path) in CmMakeDir()
240 int32_t CmUserBakupMakeDir(const char *path, const mode_t *mode) in CmUserBakupMakeDir()
262 void *CmOpenDir(const char *path) in CmOpenDir()
294 uint32_t CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t… in CmFileRead()
311 int32_t CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, ui… in CmFileWrite()
328 int32_t CmUserBackupFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_… in CmUserBackupFileWrite()
[all …]
/base/security/security_guard/patches/
Dpatches.json5 "path":"productdefine/common", string
10 "path":"vendor/hihope", string
15 "path":"device/board/hihope", string
20 "path":"base/security/selinux_adapter", string
/base/update/updater/interfaces/kits/misc_info/
Dmisc_info.cpp24 bool WriteUpdaterMessage(const std::string &path, const UpdateMessage &boot) in WriteUpdaterMessage()
56 bool ReadUpdaterMessage(const std::string &path, UpdateMessage &boot) in ReadUpdaterMessage()
92 auto path = GetBlockDeviceByMountPoint(MISC_PATH); in WriteUpdaterMiscMsg() local
103 auto path = GetBlockDeviceByMountPoint(MISC_PATH); in ReadUpdaterMiscMsg() local
113 auto path = GetBlockDeviceByMountPoint(MISC_PATH); in WriteUpdaterParaMisc() local
155 auto path = GetBlockDeviceByMountPoint(MISC_PATH); in ReadUpdaterParaMisc() local
/base/security/huks/utils/file_operator/
Dhks_file_operator.c36 static int32_t GetFileName(const char *path, const char *fileName, char *fullFileName, uint32_t ful… in GetFileName()
61 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName()
232 int32_t HksFileRemove(const char *path, const char *fileName) in HksFileRemove()
245 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist()
258 int32_t HksIsDirExist(const char *path) in HksIsDirExist()
264 int32_t HksMakeDir(const char *path) in HksMakeDir()
279 void *HksOpenDir(const char *path) in HksOpenDir()
341 static int32_t HksDeletDirPartTwo(const char *path) in HksDeletDirPartTwo()
376 static int32_t HksDeletDirPartOne(const char *path) in HksDeletDirPartOne()
413 int32_t HksDeleteDir(const char *path) in HksDeleteDir()
[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()
380 int32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, … in HksFileRead()
395 int32_t HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, u… in HksFileWrite()
410 uint32_t HksFileSize(const char *path, const char *fileName) in HksFileSize()
423 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist()
436 int32_t HksFileRemove(const char *path, const char *fileName) in HksFileRemove()
[all …]
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dselinux_restorecon.c67 int RestoreconCommon(const char *path, unsigned int flag, unsigned int nthreads) in RestoreconCommon()
85 static int RestoreconSb(const char *path, char *newSecontext) in RestoreconSb()
158 int Restorecon(const char *path) in Restorecon()
163 int RestoreconRecurse(const char *path) in RestoreconRecurse()
168 int RestoreconRecurseParallel(const char *path, unsigned int nthreads) in RestoreconRecurseParallel()
173 int RestoreconRecurseForce(const char *path) in RestoreconRecurseForce()
180 int RestoreconFromParentDir(const char *path) in RestoreconFromParentDir()
/base/update/updater/services/factory_reset/
Dfactory_reset.cpp30 RegisterFunc(USER_WIPE_DATA, [this](const std::string &path) { return DoUserReset(path); }); in FactoryResetProcess()
31 … RegisterFunc(FACTORY_WIPE_DATA, [this](const std::string &path) { return DoFactoryReset(path); }); in FactoryResetProcess()
32 RegisterFunc(MENU_WIPE_DATA, [this](const std::string &path) { return DoUserReset(path); }); in FactoryResetProcess()
42 int FactoryResetProcess::FactoryResetFunc(FactoryResetMode mode, const std::string &path) in FactoryResetFunc()
94 int FactoryResetProcess::DoUserReset(const std::string &path) in DoUserReset()
110 int FactoryResetProcess::DoFactoryReset(const std::string &path) in DoFactoryReset()
/base/powermgr/thermal_manager/test/common/src/
Dthermal_test.cpp36 int32_t ThermalTest::WriteFile(std::string path, std::string buf) in WriteFile()
52 int32_t ThermalTest::ReadFile(std::string path, std::string& buf) in ReadFile()
94 bool ThermalTest::IsMock(const std::string& path) in IsMock()
130 std::string ThermalTest::GetNodeValue(const std::string& path) in GetNodeValue()
138 int32_t ThermalTest::SetNodeValue(int32_t value, const std::string& path) in SetNodeValue()
146 int32_t ThermalTest::SetNodeString(std::string str, const std::string& path) in SetNodeString()
/base/account/os_account/frameworks/common/file_operator/src/
Daccount_file_operator.cpp42 ErrCode AccountFileOperator::CreateDir(const std::string &path) in CreateDir()
60 ErrCode AccountFileOperator::DeleteDirOrFile(const std::string &path) in DeleteDirOrFile()
130 ErrCode AccountFileOperator::InputFileByPathAndContent(const std::string &path, const std::string &… in InputFileByPathAndContent()
180 ErrCode AccountFileOperator::GetFileContentByPath(const std::string &path, std::string &content) in GetFileContentByPath()
225 bool AccountFileOperator::IsExistFile(const std::string &path) in IsExistFile()
240 bool AccountFileOperator::IsJsonFormat(const std::string &path) in IsJsonFormat()
254 bool AccountFileOperator::IsJsonFileReady(const std::string &path) in IsJsonFileReady()
259 bool AccountFileOperator::IsExistDir(const std::string &path) in IsExistDir()
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_cgroup_test.cpp67 static int GetTestCGroupFilePath(const AppSpawnedProcess *appInfo, const char *fileName, char *path in GetTestCGroupFilePath()
90 char path[PATH_MAX] = {}; variable
111 char path[PATH_MAX] = {}; variable
164 char path[PATH_MAX] = {}; variable
190 char path[PATH_MAX] = {}; variable
226 char path[PATH_MAX] = {}; variable
255 char path[PATH_MAX] = {}; variable
303 char path[PATH_MAX] = {}; variable
/base/accesscontrol/sandbox_manager/patches/
Dpatches.json5 "path":"productdefine/common", string
10 "path":"base/startup/init", string
15 "path":"base/security/selinux_adapter", string
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_file_operator.c20 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName()
40 int32_t HksIsFileExist(const char *path, const char *fileName) in HksIsFileExist()
57 int32_t HksFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *blob, … in HksFileRead()
74 int32_t HksFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, u… in HksFileWrite()
91 uint32_t HksFileSize(const char *path, const char *fileName) in HksFileSize()
/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()
111 bool FileOperator::IsExistFile(const std::string& path) in IsExistFile()
125 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()
/base/security/asset/frameworks/os_dependency/file/src/
Dlib.rs32 let path: &Path = Path::new(&path_str); in is_user_db_dir_exist() localVariable
44 let path: &Path = Path::new(&path_str); in create_user_db_dir() localVariable
61 let path: &Path = Path::new(&path_str); in delete_user_db_dir() localVariable
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/
Dnative_leak_info.cpp119 …string path = MEMORY_LEAK_PATH + "/memleak-native-" + processName_ + "-" + to_string(pid_) + "-sam… in GetSampleFilePath() local
125 string path = MEMORY_LEAK_PATH + "/memleak-temp-" + processName_ + "-" + to_string(pid_) + "-" + in GetLogFilePath() local
132 …string path = MEMORY_LEAK_PATH + "/memleak-temp-" + processName_ + "-" + to_string(pid_) + "-rsMem… in GetRsMemPath() local
138 …string path = MEMORY_LEAK_PATH + "/memleak-temp-" + processName_ + "-" + to_string(pid_) + "-rsGpu… in GetRsGpuPath() local
144 …string path = MEMORY_LEAK_PATH + "/memleak-native-" + processName_ + "-" + to_string(pid_) + "-sma… in GetSmapsPath() local
/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()
91 …ique_ptr<DataWriter> DataWriter::CreateDataWriter(const std::string &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/startup/appspawn/adapter/
Dappspawn_cgroup.c33 static int MakeDirRecursive(const char *path, mode_t mode) in MakeDirRecursive()
82 static int WriteToFile(const char *path, int truncated, pid_t pids[], uint32_t count) in WriteToFile()
105 static void KillProcessesByCGroup(const char *path, const AppSpawnContentExt *content, const AppSpa… in KillProcessesByCGroup()
130 char path[PATH_MAX] = {}; in ProcessAppDied() local
147 char path[PATH_MAX] = {}; in ProcessAppAdd() local
/base/startup/appspawn/modules/common/
Dappspawn_cgroup.c48 APPSPAWN_STATIC int WriteToFile(const char *path, int truncated, pid_t pids[], uint32_t count) in WriteToFile()
68 static int WritePidMax(const char *path, uint32_t max) in WritePidMax()
87 static void KillProcessesByCGroup(const char *path, AppSpawnMgr *content, const AppSpawnedProcessIn… in KillProcessesByCGroup()
119 char path[PATH_MAX] = {}; in ProcessMgrRemoveApp() local
136 char path[PATH_MAX] = {}; in ProcessMgrAddApp() local
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_file_operator.c30 static int32_t GetFullFileName(const char *path, const char *fileName, char **fullFileName) in GetFullFileName()
52 int32_t HksTestIsFileExist(const char *path, const char *fileName) in HksTestIsFileExist()
142 int32_t HksTestFileRemove(const char *path, const char *fileName) in HksTestFileRemove()
154 int32_t HksTestFileRead(const char *path, const char *fileName, uint32_t offset, struct HksBlob *bl… in HksTestFileRead()
171 int32_t HksTestFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *bu… in HksTestFileWrite()
188 uint32_t HksTestFileSize(const char *path, const char *fileName) in HksTestFileSize()

12345678910>>...21