/base/global/resource_management/frameworks/resmgr/test/unittest/utils/ |
H A D | utils_test.cpp | 83 char *outPath = nullptr; in HWTEST_F() local 85 Utils::CanonicalizePath(nullptr, outPath, len); in HWTEST_F() 86 EXPECT_EQ(outPath, nullptr); in HWTEST_F() 97 char *outPath = nullptr; in HWTEST_F() local 99 Utils::CanonicalizePath(iconPath.c_str(), outPath, len); in HWTEST_F() 100 EXPECT_EQ(outPath, nullptr); in HWTEST_F()
|
/base/hiviewdfx/hiview_lite/ |
H A D | hiview_file.c | 160 ProcFile(fp, fp->outPath, HIVIEW_FILE_RENAME); in WriteToFile() 162 fp->pFunc(fp->outPath, h->common.type, HIVIEW_FILE_FULL); in WriteToFile() 310 fp->outPath = tmp; in RegisterFileWatcher() 317 if (IsValidPath(fp->outPath) == 0) { in UnRegisterFileWatcher() 318 HIVIEW_MemFree(MEM_POOL_HIVIEW_ID, fp->outPath); in UnRegisterFileWatcher() 322 fp->outPath = HIVIEW_FILE_OUT_PATH_FAULT_EVENT; in UnRegisterFileWatcher() 325 fp->outPath = HIVIEW_FILE_OUT_PATH_UE_EVENT; in UnRegisterFileWatcher() 328 fp->outPath = HIVIEW_FILE_OUT_PATH_STAT_EVENT; in UnRegisterFileWatcher() 332 fp->outPath = HIVIEW_FILE_OUT_PATH_LOG; in UnRegisterFileWatcher()
|
H A D | hiview_file.h | 89 char *outPath; member 91 HiviewMutexId_t mutex; /* file lock of outPath */
|
/base/update/updater/interfaces/kits/include/package/ |
H A D | package.h | 143 * @param outPath package file output path
147 const char *outPath);
155 * @param outPath package file output path
159 const char *outPath);
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
H A D | hitrace_dump.cpp | 834 bool GenerateNewFile(int &outFd, std::string &outPath)
in GenerateNewFile() argument 836 if (access(outPath.c_str(), F_OK) == 0) {
in GenerateNewFile() 840 outPath = CanonicalizeSpecPath(outputFileName.c_str());
in GenerateNewFile() 841 outFd = open(outPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0644); // 0644:-rw-r--r--
in GenerateNewFile() 844 HILOG_ERROR(LOG_CORE, "open %{public}s failed, errno: %{public}d.", outPath.c_str(), errno);
in GenerateNewFile() 847 HILOG_ERROR(LOG_CORE, "create new trace file %{public}s limited.", outPath.c_str());
in GenerateNewFile() 862 std::string outPath = CanonicalizeSpecPath(outputFileName.c_str());
in DumpTraceLoop() local 863 int outFd = open(outPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, 0644); // 0644:-rw-r--r--
in DumpTraceLoop() 865 HILOG_ERROR(LOG_CORE, "open %{public}s failed, errno: %{public}d.", outPath.c_str(), errno);
in DumpTraceLoop() 878 WriteEventsFormat(outFd, outPath);
in DumpTraceLoop() 975 std::string outPath = CanonicalizeSpecPath(outputFileName.c_str()); ReadRawTrace() local [all...] |
/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | hap_parser.cpp | 325 char outPath[PATH_MAX + 1] = {0}; in ReadRawFileDescriptor() local 328 Utils::CanonicalizePath(tempPath, outPath, PATH_MAX); in ReadRawFileDescriptor() 330 auto extractor = AbilityBase::ExtractorUtil::GetExtractor(outPath, isNewExtractor); in ReadRawFileDescriptor() 332 RESMGR_HILOGE(RESMGR_TAG, "failed to get extractor in ReadRawFileDescriptor hapPath, %{public}s", outPath); in ReadRawFileDescriptor() 338 "the rawfile file %{public}s is not exist in %{public}s", rawfilePath.c_str(), outPath); in ReadRawFileDescriptor() 342 Utils::CanonicalizePath(hapPath, outPath, PATH_MAX); in ReadRawFileDescriptor() 343 extractor = AbilityBase::ExtractorUtil::GetExtractor(outPath, isNewExtractor); in ReadRawFileDescriptor() 345 RESMGR_HILOGE(RESMGR_TAG, "failed to get extractor hapPath, %{public}s", outPath); in ReadRawFileDescriptor() 351 "the rawfile file %{public}s is not exist in %{public}s", rawfilePath.c_str(), outPath); in ReadRawFileDescriptor() 361 int zipFd = open(outPath, O_RDONL in ReadRawFileDescriptor() 905 char outPath[PATH_MAX + 1] = {0}; IsRawDirUnCompressed() local [all...] |
H A D | utils.cpp | 455 void Utils::CanonicalizePath(const char *path, char *outPath, size_t len) in CanonicalizePath() argument 469 if (!PathCanonicalizeA(outPath, path)) { in CanonicalizePath() 474 if (realpath(path, outPath) == nullptr) { in CanonicalizePath() 484 char outPath[PATH_MAX + 1] = {0}; in GetFiles() local 485 Utils::CanonicalizePath(strCurrentDir.c_str(), outPath, PATH_MAX); in GetFiles() 486 if (outPath[0] == '\0') { in GetFiles()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cm_event_process.c | 113 static int32_t GetNextLayerPath(const char *path, const char *name, char *outPath, uint32_t outPathLen) in GetNextLayerPath() argument 115 if (strncpy_s(outPath, outPathLen, path, strlen(path)) != EOK) { in GetNextLayerPath() 118 if (outPath[strlen(outPath) - 1] != '/') { in GetNextLayerPath() 119 if (strncat_s(outPath, outPathLen, "/", strlen("/")) != EOK) { in GetNextLayerPath() 123 if (strncat_s(outPath, outPathLen, name, strlen(name)) != EOK) { in GetNextLayerPath()
|
/base/update/updater/interfaces/kits/packages/ |
H A D | package.cpp | 237 const char *outPath)
in ExtraPackageDir() 239 if (packagePath == nullptr || outPath == nullptr) {
in ExtraPackageDir() 262 manager->CreatePkgStream(outStream, std::string(outPath) + components[i], 0, PkgStream::PkgStreamType_Write);
in ExtraPackageDir() 276 const char *outPath)
in ExtraPackageFile() 278 if (packagePath == nullptr || outPath == nullptr || file == nullptr) {
in ExtraPackageFile() 298 manager->CreatePkgStream(outStream, std::string(outPath) + file, 0, PkgStream::PkgStreamType_Write);
in ExtraPackageFile() 236 ExtraPackageDir(const char *packagePath, [[maybe_unused]] const char *keyPath, const char *dir, const char *outPath) ExtraPackageDir() argument 275 ExtraPackageFile(const char *packagePath, [[maybe_unused]] const char *keyPath, const char *file, const char *outPath) ExtraPackageFile() argument
|
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | hap_manager.cpp | 433 char outPath[PATH_MAX + 1] = {0}; in AddAppOverlay() local 434 Utils::CanonicalizePath(overlayPath.c_str(), outPath, PATH_MAX); in AddAppOverlay() 435 if (outPath[0] == '\0') { in AddAppOverlay() 440 overlayPaths.emplace_back(outPath); in AddAppOverlay() 448 char outPath[PATH_MAX + 1] = {0}; in RemoveAppOverlay() local 449 Utils::CanonicalizePath(overlayPath.c_str(), outPath, PATH_MAX); in RemoveAppOverlay() 450 if (outPath[0] == '\0') { in RemoveAppOverlay() 455 overlayPaths.emplace_back(outPath); in RemoveAppOverlay() 939 char outPath[PATH_MAX + 1] = {0}; in FindRawFileDescriptor() local 940 Utils::CanonicalizePath(paths.c_str(), outPath, PATH_MA in FindRawFileDescriptor() 992 char outPath[PATH_MAX] = {0}; RemoveResource() local [all...] |
H A D | hap_resource.cpp | 102 char outPath[PATH_MAX + 1] = {0}; in LoadFromIndex() local 103 Utils::CanonicalizePath(path, outPath, PATH_MAX); in LoadFromIndex() 104 std::ifstream inFile(outPath, std::ios::binary | std::ios::in); in LoadFromIndex()
|
/base/update/updater/test/unittest/package/ |
H A 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/ |
H A D | utils.h | 109 static void CanonicalizePath(const char *path, char *outPath, size_t len);
|
/base/hiviewdfx/hievent_lite/frameworks/ |
H A 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/startup/appspawn/service/hnp/base/ |
H A D | hnp_zip.c | 59 static bool TransWidePath(const char *inPath, wchar_t *outPath)
in TransWidePath() argument 63 if (swprintf_s(outPath, MAX_FILE_PATH_LEN, L"\\\\?\\%ls", tmpPath) < 0) {
in TransWidePath()
|
/base/update/sys_installer/services/module_update/service/src/ |
H A D | module_update_main.cpp | 243 std::string outPath = hmpDir + "/"; in ReallyInstallModulePackage() local 244 ret = ExtraPackageDir(pkgPath.c_str(), nullptr, nullptr, outPath.c_str()); in ReallyInstallModulePackage()
|
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
H A D | hiview_output_log.c | 53 .outPath = HIVIEW_FILE_OUT_PATH_LOG,
|