Home
last modified time | relevance | path

Searched refs:dirName (Results 1 – 12 of 12) sorted by relevance

/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_control_file_manager_test.cpp66 std::string dirName = ""; variable
68 ErrCode ret = OHOS::AccountSA::GetValidAccountID(dirName, accountID);
82 std::string dirName = "namehahahahahaha"; variable
85 ErrCode ret = OHOS::AccountSA::GetValidAccountID(dirName, accountID);
99 std::string dirName = "1"; variable
102 ErrCode ret = OHOS::AccountSA::GetValidAccountID(dirName, accountID);
116 std::string dirName = "na"; variable
119 ErrCode ret = OHOS::AccountSA::GetValidAccountID(dirName, accountID);
/base/hiviewdfx/blackbox/
Dblackbox_core.c148 char dirName[PATH_MAX_LEN] = { 0 }; in SaveErrorLog() local
156 GetDirName(dirName, sizeof(dirName), GetFaultLogPath()); in SaveErrorLog()
157 WaitForLogRootDir(dirName); in SaveErrorLog()
175 if (ops->ops.SaveLastLog(dirName, info) != 0) { in SaveErrorLog()
260 char dirName[PATH_MAX_LEN] = { 0 }; in BBoxNotifyError() local
268 GetDirName(dirName, sizeof(dirName), GetFaultLogPath()); in BBoxNotifyError()
270 WaitForLogRootDir(dirName); in BBoxNotifyError()
292 ops->ops.Dump(dirName, info); in BBoxNotifyError()
/base/hiviewdfx/hiview/service/unified_collection/
Dxcollect_service.cpp131 void RemoveDir(const std::string &dirName) in RemoveDir() argument
133 if (access(dirName.c_str(), F_OK) != 0) { in RemoveDir()
137 if (dirName.compare(0, alignStr.size(), alignStr) != 0) { in RemoveDir()
140 DIR *dirPtr = opendir(dirName.c_str()); in RemoveDir()
147 std::string subFile = dirName + "/" + ptr->d_name; in RemoveDir()
154 if (rmdir(dirName.c_str()) != 0) { in RemoveDir()
155 HiLog::Error(LABEL, "error|RemoveDir: delete %{public}s failed.", dirName.c_str()); in RemoveDir()
/base/global/resource_management/frameworks/resmgr/src/
Draw_file_manager.cpp121 RawDir *LoadRawDirFromHap(const NativeResourceManager *mgr, const std::string dirName) in LoadRawDirFromHap() argument
124 RState state = mgr->resManager->GetRawFileList(dirName, result->fileNameCache.names); in LoadRawDirFromHap()
126 HiLog::Error(LABEL, "failed to get RawDir dirName, %{public}s", dirName.c_str()); in LoadRawDirFromHap()
132 RawDir *OH_ResourceManager_OpenRawDir(const NativeResourceManager *mgr, const char *dirName) in OH_ResourceManager_OpenRawDir() argument
134 if (mgr == nullptr || dirName == nullptr) { in OH_ResourceManager_OpenRawDir()
139 return LoadRawDirFromHap(mgr, dirName); in OH_ResourceManager_OpenRawDir()
142 std::string tempName = dirName; in OH_ResourceManager_OpenRawDir()
/base/update/updateservice/services/core/ability/utils/src/
Dfile_utils.cpp160 baseDirMap_[dirInfo.dirName] = dirInfo.dirPermissions; in InitAndCreateBaseDirs()
161 if (!IsFileExist(dirInfo.dirName)) { in InitAndCreateBaseDirs()
162 CreatDirWithPermission(dirInfo.dirName, dirInfo.dirPermissions); in InitAndCreateBaseDirs()
177 DeleteFile(dir.dirName, false); in DestroyBaseDirectory()
/base/global/resource_management/interfaces/native/resource/include/
Draw_file_manager.h102 RawDir *OH_ResourceManager_OpenRawDir(const NativeResourceManager *mgr, const char *dirName);
/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_agent.cpp132 for (auto& dirName : dirNames) { in CreateDestDirs() local
133 fullPath.append("/").append(dirName); in CreateDestDirs()
/base/security/selinux_adapter/test/unittest/common/
Dtest_common.cpp70 std::string dirName = path + "/" + std::string(dp->d_name); in RemoveDirectory() local
71 RemoveDirectory(dirName.c_str()); in RemoveDirectory()
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_control_file_manager.cpp30 bool GetValidAccountID(const std::string& dirName, std::int32_t& accountID) in GetValidAccountID() argument
33 if (dirName.empty() || dirName.size() > Constants::MAX_USER_ID_LENGTH) { in GetValidAccountID()
37 auto iter = std::any_of(dirName.begin(), dirName.end(), in GetValidAccountID()
38 [dirName](char c) { in GetValidAccountID()
47 sstream << dirName; in GetValidAccountID()
/base/hiviewdfx/hiview/plugins/eventlogger/
Devent_logger.cpp279 std::string dirName = returnDir.substr(pos + 1); in HitraceCatcher() local
284 HIVIEW_LOGI("SetEventValue: %{public}s", dirName.c_str()); in HitraceCatcher()
285 event->SetEventValue("HITRACE_TIME", dirName); in HitraceCatcher()
/base/account/os_account/services/accountmgr/include/osaccount/
Dos_account_control_file_manager.h30 bool GetValidAccountID(const std::string& dirName, std::int32_t& accountID);
/base/update/updateservice/interfaces/inner_api/include/
Dupdate_helper.h526 std::string dirName; member