| /base/hiviewdfx/hiview_lite/ |
| D | hiview_file.c | 162 ProcFile(fp, fp->outPath, HIVIEW_FILE_RENAME); in WriteToFile() 164 fp->pFunc(fp->outPath, h->common.type, HIVIEW_FILE_FULL); in WriteToFile() 312 fp->outPath = tmp; in RegisterFileWatcher() 319 if (IsValidPath(fp->outPath) == 0) { in UnRegisterFileWatcher() 320 HIVIEW_MemFree(MEM_POOL_HIVIEW_ID, fp->outPath); in UnRegisterFileWatcher() 324 fp->outPath = HIVIEW_FILE_OUT_PATH_FAULT_EVENT; in UnRegisterFileWatcher() 327 fp->outPath = HIVIEW_FILE_OUT_PATH_UE_EVENT; in UnRegisterFileWatcher() 330 fp->outPath = HIVIEW_FILE_OUT_PATH_STAT_EVENT; in UnRegisterFileWatcher() 334 fp->outPath = HIVIEW_FILE_OUT_PATH_LOG; in UnRegisterFileWatcher()
|
| D | hiview_file.h | 89 char *outPath; member
|
| /base/update/updater/interfaces/kits/include/package/ |
| D | package.h | 147 const char *outPath); 159 const char *outPath);
|
| /base/global/resource_management/frameworks/resmgr/src/ |
| D | hap_manager.cpp | 342 char outPath[PATH_MAX + 1] = {0}; in AddAppOverlay() local 343 Utils::CanonicalizePath(overlayPath.c_str(), outPath, PATH_MAX); in AddAppOverlay() 344 if (outPath[0] == '\0') { in AddAppOverlay() 349 overlayPaths.emplace_back(outPath); in AddAppOverlay() 357 char outPath[PATH_MAX + 1] = {0}; in RemoveAppOverlay() local 358 Utils::CanonicalizePath(overlayPath.c_str(), outPath, PATH_MAX); in RemoveAppOverlay() 359 if (outPath[0] == '\0') { in RemoveAppOverlay() 364 overlayPaths.emplace_back(outPath); in RemoveAppOverlay() 821 char outPath[PATH_MAX + 1] = {0}; in FindRawFileDescriptor() local 822 Utils::CanonicalizePath(paths.c_str(), outPath, PATH_MAX); in FindRawFileDescriptor() [all …]
|
| D | hap_resource.cpp | 114 char outPath[PATH_MAX + 1] = {0}; in LoadFromIndex() local 115 Utils::CanonicalizePath(path, outPath, PATH_MAX); in LoadFromIndex() 116 std::ifstream inFile(outPath, std::ios::binary | std::ios::in); in LoadFromIndex()
|
| /base/update/updater/interfaces/kits/packages/ |
| D | package.cpp | 208 const char *outPath) in ExtraPackageDir() argument 211 if (packagePath == nullptr || outPath == nullptr || manager == nullptr) { in ExtraPackageDir() 229 …manager->CreatePkgStream(outStream, std::string(outPath) + components[i], 0, PkgStream::PkgStreamT… in ExtraPackageDir() 243 const char *outPath) in ExtraPackageFile() argument 246 if (packagePath == nullptr || outPath == nullptr || file == nullptr || manager == nullptr) { in ExtraPackageFile() 260 …manager->CreatePkgStream(outStream, std::string(outPath) + file, 0, PkgStream::PkgStreamType_Write… in ExtraPackageFile()
|
| /base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
| D | cm_event_process.c | 112 static int32_t GetNextLayerPath(const char *path, const char *name, char *outPath, uint32_t outPath… in GetNextLayerPath() argument 114 if (strncpy_s(outPath, outPathLen, path, strlen(path)) != EOK) { in GetNextLayerPath() 117 if (outPath[strlen(outPath) - 1] != '/') { in GetNextLayerPath() 118 if (strncat_s(outPath, outPathLen, "/", strlen("/")) != EOK) { in GetNextLayerPath() 122 if (strncat_s(outPath, outPathLen, name, strlen(name)) != EOK) { in GetNextLayerPath()
|
| /base/global/resource_management/frameworks/resmgr/src/utils/ |
| D | utils.cpp | 465 void Utils::CanonicalizePath(const char *path, char *outPath, size_t len) in CanonicalizePath() argument 479 if (!PathCanonicalizeA(outPath, path)) { in CanonicalizePath() 484 if (realpath(path, outPath) == nullptr) { in CanonicalizePath() 499 char outPath[PATH_MAX + 1] = {0}; in GetFiles() local 500 Utils::CanonicalizePath(strCurrentDir.c_str(), outPath, PATH_MAX); in GetFiles() 501 if (outPath[0] == '\0') { in GetFiles()
|
| D | hap_parser.cpp | 289 char outPath[PATH_MAX + 1] = {0}; in ReadRawFileDescriptor() local 290 Utils::CanonicalizePath(hapPath, outPath, PATH_MAX); in ReadRawFileDescriptor() 292 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(outPath, isNewExtractor); in ReadRawFileDescriptor() 294 … HILOG_ERROR("failed to get extractor in ReadRawFileDescriptor hapPath, %{public}s", outPath); in ReadRawFileDescriptor() 308 int zipFd = open(outPath, O_RDONLY); in ReadRawFileDescriptor() 310 HILOG_ERROR("failed open file %{public}s", outPath); in ReadRawFileDescriptor()
|
| /base/update/updater/test/unittest/package/ |
| D | pkg_verify_unittest.cpp | 61 std::string outPath = "invalid_path"; in TestExtraPackageFile() local 62 ret = ExtraPackageFile(packagePath.c_str(), keyPath.c_str(), file.c_str(), outPath.c_str()); in TestExtraPackageFile() 80 std::string outPath = "invalid_path"; in TestExtraPackageDir() local 81 ret = ExtraPackageDir(packagePath.c_str(), keyPath.c_str(), nullptr, outPath.c_str()); in TestExtraPackageDir()
|
| /base/global/resource_management/frameworks/resmgr/include/utils/ |
| D | utils.h | 75 static void CanonicalizePath(const char *path, char *outPath, size_t len);
|
| /base/hiviewdfx/hievent_lite/frameworks/ |
| D | hiview_output_event.c | 49 .outPath = HIVIEW_FILE_OUT_PATH_FAULT_EVENT, 57 .outPath = HIVIEW_FILE_OUT_PATH_UE_EVENT, 65 .outPath = HIVIEW_FILE_OUT_PATH_STAT_EVENT,
|
| /base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
| D | hitrace_dump.cpp | 711 std::string outPath = CanonicalizeSpecPath(outputFileName.c_str()); in DumpTraceLoop() local 712 int outFd = open(outPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0644); in DumpTraceLoop() 714 HILOG_ERROR(LOG_CORE, "open %{public}s failed, errno: %{public}d.", outPath.c_str(), errno); in DumpTraceLoop() 848 std::string outPath = CanonicalizeSpecPath(outputFileName.c_str()); in ReadRawTrace() local 849 int outFd = open(outPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0644); in ReadRawTrace()
|
| /base/update/sys_installer/frameworks/ipc_server/src/ |
| D | module_update_service.cpp | 155 std::string outPath = hmpDir + "/"; in ReallyInstallModulePackage() local 156 ret = ExtraPackageDir(pkgPath.c_str(), nullptr, nullptr, outPath.c_str()); in ReallyInstallModulePackage()
|
| /base/security/huks/services/huks_standard/huks_service/main/core/src/ |
| D | hks_storage.c | 756 static int32_t MakeSubPath(const char *mainPath, const char *tmpPath, char *outPath, uint32_t outPa… in MakeSubPath() argument 758 if (strncpy_s(outPath, outPathLen, mainPath, strlen(mainPath)) != EOK) { in MakeSubPath() 761 if (strncat_s(outPath, outPathLen, "/", strlen("/")) != EOK) { in MakeSubPath() 764 if (strncat_s(outPath, outPathLen, tmpPath, strlen(tmpPath)) != EOK) { in MakeSubPath()
|
| /base/hiviewdfx/hilog_lite/frameworks/mini/ |
| D | hiview_output_log.c | 52 .outPath = HIVIEW_FILE_OUT_PATH_LOG,
|