/base/hiviewdfx/hiview/base/logstore/ |
H A D | log_file.cpp | 30 LogFile::LogFile(const std::string& fullPath) : path_(fullPath) in LogFile() argument 33 if ((fullPath.length() == 0) || (stat(fullPath.c_str(), &sb) == -1)) { in LogFile() 41 size_ = FileUtil::GetFolderSize(fullPath); in LogFile() 44 name_ = FileUtil::ExtractFileName(fullPath); in LogFile()
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
H A D | dmesg_catcher.cpp | 104 std::string fullPath = std::string(FULL_DIR) + "sysrq-" + sysrqTime + ".log";
in DmesgSaveTofile() local 105 if (FileUtil::FileExists(fullPath)) {
in DmesgSaveTofile() 106 HIVIEW_LOGW("filename: %{public}s is existed, direct use.", fullPath.c_str());
in DmesgSaveTofile() 107 return fullPath;
in DmesgSaveTofile() 110 auto fd = open(fullPath.c_str(), O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_LOG_FILE_MODE);
in DmesgSaveTofile() 112 HIVIEW_LOGI("Fail to create %s.", fullPath.c_str());
in DmesgSaveTofile() 124 return fullPath;
in DmesgSaveTofile() 137 std::string fullPath = DmesgSaveTofile();
in Catch() local 138 if (fullPath.empty()) {
in Catch() 141 description_ += "fullPath in Catch() [all...] |
H A D | peer_binder_catcher.cpp | 355 std::string fullPath = std::string(EVENT_LOG_PATH) + "/" + fileName; in ForkToDumpHiperf() local 357 if (access(fullPath.c_str(), F_OK) == 0) { in ForkToDumpHiperf() 360 if (stat(fullPath.c_str(), &statBuf) == -1) { in ForkToDumpHiperf() 362 FileUtil::RemoveFile(fullPath); in ForkToDumpHiperf() 367 FileUtil::RemoveFile(fullPath); in ForkToDumpHiperf()
|
/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_zip.c | 127 static int IsDirPath(struct dirent *entry, char *fullPath, int *isDir)
in IsDirPath() argument 132 if (!TransWidePath(fullPath, wideFullPath)) {
in IsDirPath() 138 HNP_LOGE("get file[%{public}s] attr unsuccess, errno[%{public}lu].", fullPath, err);
in IsDirPath() 151 static int ZipHandleDir(char *fullPath, int offset, zipFile zf)
in ZipHandleDir() argument 155 TransPath(fullPath, transPath);
in ZipHandleDir() 159 HNP_LOGE("open new file[%{public}s] in zip unsuccess ", fullPath);
in ZipHandleDir() 163 ret = ZipAddDir(fullPath, offset, zf);
in ZipHandleDir() 165 HNP_LOGE("zip add dir[%{public}s] unsuccess ", fullPath);
in ZipHandleDir() 175 char fullPath[MAX_FILE_PATH_LEN];
in ZipAddDir() local 188 if (sprintf_s(fullPath, MAX_FILE_PATH_LE in ZipAddDir() [all...] |
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | web_download_item.cpp | 26 fullPath(""), in WebDownloadItem() 53 fullPath(""), in WebDownloadItem() 75 this->fullPath = std::string(WebDownloadItem_FullPath(downloadItem)); in WebDownloadItem()
|
H A D | web_download_item.h | 43 std::string fullPath; member in OHOS::NWeb::WebDownloadItem
|
H A D | napi_web_download_item.cpp | 494 napi_value fullPath; in JS_GetFullPath() local 495 napi_status status = napi_create_string_utf8(env, webDownloadItem->fullPath.c_str(), NAPI_AUTO_LENGTH, &fullPath); in JS_GetFullPath() 500 return fullPath; in JS_GetFullPath() 674 webDownloadPb.set_full_path(webDownloadItem->fullPath); in SetWebDownloadPb() 767 webDownloadItem->fullPath = webDownloadPb.full_path(); in JS_Deserialize()
|
H A D | web_download_manager.cpp | 196 WebDownloadItem_SetFullPath(downloadItem, webDownload->fullPath.c_str()); in ResumeDownload()
|
/base/web/webview/interfaces/kits/cj/src/ |
H A D | web_download_item_impl.cpp | 25 fullPath(""), in WebDownloadItemImpl() 51 fullPath(""), in WebDownloadItemImpl() 73 this->fullPath = std::string(WebDownloadItem_FullPath(downloadItem)); in WebDownloadItemImpl()
|
H A D | web_download_manager_impl.cpp | 187 WebDownloadItem_SetFullPath(downloadItem, webDownload->fullPath.c_str()); in ResumeDownload()
|
/base/update/updater/services/ |
H A D | updater.cpp | 368 void ExcuteSubProc(const UpdaterParams &upParams, const std::string &fullPath, int pipeWrite) in ExcuteSubProc() argument 385 execl(fullPath.c_str(), fullPath.c_str(), upParams.updatePackage[upParams.pkgLocation].c_str(), in ExcuteSubProc() 458 std::string fullPath = GetWorkPath() + std::string(UPDATER_BINARY); in StartUpdaterProc() local 459 (void)Utils::DeleteFile(fullPath); in StartUpdaterProc() 463 fullPath = "/bin/updater_binary"; in StartUpdaterProc() 467 fullPath = "/data/updater/updater_binary"; in StartUpdaterProc() 470 if (chmod(fullPath.c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) != 0) { in StartUpdaterProc() 475 Restorecon(fullPath.c_str()); in StartUpdaterProc() 490 ExcuteSubProc(upParams, fullPath, pipeWrit in StartUpdaterProc() [all...] |
/base/hiviewdfx/hiview/interfaces/js/napi/src/ |
H A D | hiview_service_agent.cpp | 171 std::string fullPath(rootDir);
in CreateDestDirs() 173 fullPath.append("/").append(dirName);
in CreateDestDirs() 174 if (!CreateAndGrantAclPermission(fullPath)) {
in CreateDestDirs()
|
/base/startup/init/test/unittest/ueventd/ |
H A D | ueventd_event_unittest.cpp | 114 std::string fullPath {}; in RemoveDir() 116 fullPath = path + dp->d_name; in RemoveDir() 118 fullPath = path + "/" + dp->d_name; in RemoveDir() 121 if (stat(fullPath.c_str(), &st) < 0) { in RemoveDir() 122 std::cout << "Failed to get stat of " << fullPath << std::endl; in RemoveDir() 126 if (RemoveDir(fullPath) < 0) { in RemoveDir() 127 std::cout << "Failed to remove directory " << fullPath << std::endl; in RemoveDir() 131 if (unlink(fullPath.c_str()) < 0) { in RemoveDir() 132 std::cout << "Failed to unlink file " << fullPath << std::endl; in RemoveDir()
|
/base/hiviewdfx/hiview/base/logstore/include/ |
H A D | log_file.h | 30 explicit LogFile(const std::string& fullPath);
|
/base/hiviewdfx/hiview/utility/smart_parser/rule/include/ |
H A D | extract_rule.h | 31 void ParseExtractRule(const std::string& eventType, const std::string& config, const std::string& fullPath); 40 void ParseRule(const std::string& eventType, const Json::Value& json, const std::string& fullPath);
|
H A D | syntax_rules.h | 64 std::string fullPath; member
|
/base/web/webview/interfaces/kits/cj/include/ |
H A D | web_download_item_impl.h | 40 std::string fullPath; member in OHOS::Webview::WebDownloadItemImpl
|
/base/update/sys_installer/services/module_update/src/ |
H A D | module_update.cpp | 359 const string &fullPath = ExtractFilePath(moduleFile.GetPath()) + IMG_FILE_NAME; in MountModulePackage() local 362 if (!CreateLoopDevice(fullPath, imageStat, loopbackDevice)) { in MountModulePackage() 363 LOG(ERROR) << "Could not create loop device for " << fullPath; in MountModulePackage() 379 LOG(ERROR) << "Mounting failed for module package " << fullPath << " errno:" << errno; in MountModulePackage() 383 LOG(INFO) << "Successfully mounted module package " << fullPath << " on " << mountPoint << " duration=" << timer; in MountModulePackage()
|
/base/hiviewdfx/hiview/base/utility/include/ |
H A D | common_utils.h | 44 bool IsSpecificCmdExist(const std::string& fullPath);
|
/base/hiviewdfx/hiview/base/utility/ |
H A D | common_utils.cpp | 176 bool IsSpecificCmdExist(const std::string& fullPath) in IsSpecificCmdExist() argument 178 return access(fullPath.c_str(), X_OK) == 0; in IsSpecificCmdExist()
|
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage.c | 43 char *fullPath = (char *)HksMalloc(HKS_MAX_FILE_NAME_LEN); in CreateStorageFileLock() local 44 HKS_IF_NULL_RETURN(fullPath, NULL) in CreateStorageFileLock() 46 int32_t ret = HksGetFileName(path, fileName, fullPath, HKS_MAX_FILE_NAME_LEN); in CreateStorageFileLock() 49 HKS_FREE(fullPath); in CreateStorageFileLock() 53 HksStorageFileLock *lock = HksStorageFileLockCreate(fullPath); in CreateStorageFileLock() 54 HKS_FREE(fullPath); in CreateStorageFileLock()
|
/base/web/webview/ohos_nweb/include/ |
H A D | nweb_c_api.h | 84 NWEB_EXPORT void WebDownloadItem_SetFullPath(NWebDownloadItem *downloadItem, const char *fullPath);
|
/base/hiviewdfx/hiview/adapter/service/server/src/ |
H A D | hiview_service_ability.cpp | 230 std::string fullPath = ComposeFilePath(sandboxPath, dest, logName); in CopyOrMoveFile() local 231 return isMove ? service->Move(sourceFile, fullPath) : service->Copy(sourceFile, fullPath); in CopyOrMoveFile()
|
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/ |
H A D | feature_analysis.cpp | 47 featureSet_.fullPath.c_str(), eventType_.c_str()); in AnalysisLog() 61 if (!LogUtil::ReadFileBuff(featureSet_.fullPath, buffer) || !buffer.good() || buffer.eof()) { in Extract() 368 auto value = ComposeTrace(featureSet_.fullPath, key, lineFeatures, regexIter->second); in ComposeParam()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/ |
H A D | faultloggerd_socket.cpp | 58 std::string fullPath = std::string(FAULTLOGGERD_SOCK_BASE_PATH) + std::string(path); in StartConnect() local 62 errno_t err = strncpy_s(server.sun_path, sizeof(server.sun_path), fullPath.c_str(), in StartConnect()
|