/ohos5.0/base/tee/tee_client/services/tlogcat/src/ |
H A D | tlogcat.c | 73 char logName[FILE_NAME_MAX_BUF]; member 188 rc = memcpy_s(g_files[i].logName, sizeof(g_files[i].logName), logName, strlen(logName) + 1); in LogFilesAdd() 229 int32_t fd1 = open(logName, O_WRONLY); in LogFilesOpen() 232 file = fopen(logName, "a+"); in LogFilesOpen() 602 char logName[FILE_NAME_MAX_BUF] = {0}; in LogFileFull() local 618 rc = LogAssembleFilename(logName, sizeof(logName), g_teePath, &nameAttr); in LogFileFull() 631 rc = rename(logName, logName2); in LogFileFull() 696 char logName[FILE_NAME_MAX_BUF] = {0}; in GetFileIndex() local 705 int32_t ret = LogAssembleFilename(logName, sizeof(logName), g_teePath, &nameAttr); in GetFileIndex() 711 if (access(logName, F_OK) == 0) { in GetFileIndex() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/interfaces/js/napi/src/ |
H A D | hiview_service_agent.cpp | 51 int32_t HiviewServiceAgent::Copy(const std::string& logType, const std::string& logName, const std:… in Copy() argument 53 return CopyOrMoveFile(logType, logName, dest, false); in Copy() 56 int32_t HiviewServiceAgent::Move(const std::string& logType, const std::string& logName, const std:… in Move() argument 58 return CopyOrMoveFile(logType, logName, dest, true); in Move() 62 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument 74 return isMove ? proxy.Move(logType, logName, dest) : proxy.Copy(logType, logName, dest); in CopyOrMoveFile() 77 int32_t HiviewServiceAgent::Remove(const std::string& logType, const std::string& logName) in Remove() argument 85 return proxy.Remove(logType, logName); in Remove()
|
H A D | napi_hiview_js.cpp | 84 std::string logName; in CopyOrMoveFile() local 87 || !HiviewNapiUtil::ParseStringValue(env, "logName", params[LOG_NAME_INDEX], logName) in CopyOrMoveFile() 92 logType.c_str(), StringUtil::HideSnInfo(logName).c_str(), destDir.c_str()); in CopyOrMoveFile() 98 …HiviewFileParams* hiviewFileParams = new(std::nothrow) HiviewFileParams(logType, logName, destDir); in CopyOrMoveFile() 152 std::string logName; in Remove() local 154 || !HiviewNapiUtil::ParseStringValue(env, "logName", params[LOG_NAME_INDEX], logName)) { in Remove() 157 …GI("type: %{public}s, name: %{public}s", logType.c_str(), StringUtil::HideSnInfo(logName).c_str()); in Remove() 158 int32_t retCode = HiviewServiceAgent::GetInstance().Remove(logType, logName); in Remove()
|
H A D | hiview_napi_adapter.cpp | 42 …params->result = HiviewServiceAgent::GetInstance().Copy(params->logType, params->logName, params->… in CopyFileExecution() 57 …params->result = HiviewServiceAgent::GetInstance().Move(params->logType, params->logName, params->… in MoveFileExecution()
|
/ohos5.0/base/hiviewdfx/hiview/adapter/service/server/src/ |
H A D | hiview_service_ability.cpp | 194 return CopyOrMoveFile(logType, logName, dest, false); in Copy() 199 return CopyOrMoveFile(logType, logName, dest, true); in Move() 203 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument 220 uid, isMove, logType.c_str(), StringUtil::HideSnInfo(logName).c_str()); in CopyOrMoveFile() 225 std::string sourceFile = configInfoPtr->path + logName; in CopyOrMoveFile() 227 HIVIEW_LOGW("file: %{public}s not exist.", StringUtil::HideSnInfo(logName).c_str()); in CopyOrMoveFile() 230 std::string fullPath = ComposeFilePath(sandboxPath, dest, logName); in CopyOrMoveFile() 234 int32_t HiviewServiceAbility::Remove(const std::string& logType, const std::string& logName) in Remove() argument 240 …HIVIEW_LOGI("type:%{public}s, name:%{public}s", logType.c_str(), StringUtil::HideSnInfo(logName).c… in Remove() 250 std::string sourceFile = configInfoPtr->path + logName; in Remove() [all …]
|
H A D | hiview_service_ability_stub.cpp | 318 std::string logName; in HandleCopyOrMoveRequest() local 319 if (!data.ReadString(logName)) { in HandleCopyOrMoveRequest() 332 int32_t ret = isMove ? Move(logType, logName, dest) : Copy(logType, logName, dest); in HandleCopyOrMoveRequest() 346 std::string logName; in HandleRemoveRequest() local 347 if (!data.ReadString(logName)) { in HandleRemoveRequest() 351 int32_t ret = Remove(logType, logName); in HandleRemoveRequest()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-performance-analysis-kit/ |
H A D | js-apis-loglibrary-sys.md | 75 copy(logType: string, logName: string, dest: string): Promise<void> 88 | logName | string | 是 | 日志文件名称。 | 132 copy(logType: string, logName: string, dest: string, callback: AsyncCallback<void>): void 145 | logName | string | 是 | 日志文件名称。 | 180 move(logType: string, logName: string, dest: string): Promise<void> 193 | logName | string | 是 | 日志文件名称。 | 237 move(logType: string, logName: string, dest: string, callback: AsyncCallback<void>): void 250 | logName | string | 是 | 日志文件名称。 | 285 remove(logType: string, logName: string): void 298 | logName | string | 是 | 日志文件名称。 |
|
/ohos5.0/base/hiviewdfx/hiview/interfaces/js/napi/include/ |
H A D | hiview_napi_adapter.h | 25 …HiviewFileParams(const std::string& logType, const std::string& logName, const std::string& destDi… in HiviewFileParams() 26 : logType(logType), logName(logName), destDir(destDir) {}; in HiviewFileParams() 32 std::string logName; member
|
H A D | hiview_service_agent.h | 31 int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest); 32 int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest); 33 int32_t Remove(const std::string& logType, const std::string& logName); 43 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
|
/ohos5.0/base/hiviewdfx/hiview/adapter/service/client/src/ |
H A D | hiview_service_ability_proxy.cpp | 72 int32_t HiviewServiceAbilityProxy::Copy(const std::string& logType, const std::string& logName, in Copy() argument 75 return CopyOrMoveFile(logType, logName, dest, false); in Copy() 78 int32_t HiviewServiceAbilityProxy::Move(const std::string& logType, const std::string& logName, in Move() argument 81 return CopyOrMoveFile(logType, logName, dest, true); in Move() 85 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument 94 || !data.WriteString(logType) || !data.WriteString(logName) || !data.WriteString(dest)) { in CopyOrMoveFile() 115 int32_t HiviewServiceAbilityProxy::Remove(const std::string& logType, const std::string& logName) in Remove() argument 124 || !data.WriteString(logType) || !data.WriteString(logName)) { in Remove()
|
/ohos5.0/base/hiviewdfx/hiview/adapter/service/client/include/ |
H A D | hiview_service_ability_proxy.h | 35 …int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) over… 36 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over… 37 int32_t Remove(const std::string& logType, const std::string& logName) override; 53 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
|
/ohos5.0/base/hiviewdfx/hiview/adapter/service/server/include/ |
H A D | hiview_service_ability.h | 48 …int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) over… 49 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over… 50 int32_t Remove(const std::string& logType, const std::string& logName) override; 88 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
|
/ohos5.0/base/hiviewdfx/hiview/adapter/service/common/include/ |
H A D | ihiview_service_ability.h | 36 …virtual int32_t Copy(const std::string& logType, const std::string& logName, const std::string& de… 37 …virtual int32_t Move(const std::string& logType, const std::string& logName, const std::string& de… 38 virtual int32_t Remove(const std::string& logType, const std::string& logName) = 0;
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/log/ |
H A D | backup_hi_audit.cpp | 33 std::string logName; member 44 const std::string HIAUDIT_LOG_NAME = HIAUDIT_CONFIG.logPath + HIAUDIT_CONFIG.logName + "_audit.csv"; 120 HIAUDIT_CONFIG.logName + ",NO," + auditLog.ToString(); in Write() 159 if (std::string(ptr->d_name).find(HIAUDIT_CONFIG.logName) != std::string::npos && in CleanOldAuditFile() 194 std::string zipFileName = HIAUDIT_CONFIG.logPath + HIAUDIT_CONFIG.logName + "_audit_" + in ZipAuditLog()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | hi_audit.cpp | 33 std::string logName; member 43 const std::string HIAUDIT_LOG_NAME = HIAUDIT_CONFIG.logPath + HIAUDIT_CONFIG.logName + "_audit.csv"; 119 HIAUDIT_CONFIG.logName + ", NO, " + auditLog.ToString(); in Write() 157 if (std::string(ptr->d_name).find(HIAUDIT_CONFIG.logName) != std::string::npos && in CleanOldAuditFile() 192 std::string zipFileName = HIAUDIT_CONFIG.logPath + HIAUDIT_CONFIG.logName + "_audit_" + in ZipAuditLog()
|
/ohos5.0/docs/en/application-dev/reference/apis-performance-analysis-kit/ |
H A D | js-apis-loglibrary-sys.md | 75 copy(logType: string, logName: string, dest: string): Promise<void> 88 | logName | string | Yes | Log file name.| 132 copy(logType: string, logName: string, dest: string, callback: AsyncCallback<void>): void 145 | logName | string | Yes | Log file name.| 180 move(logType: string, logName: string, dest: string): Promise<void> 193 | logName | string | Yes | Log file name.| 237 move(logType: string, logName: string, dest: string, callback: AsyncCallback<void>): void 250 | logName | string | Yes | Log file name.| 285 remove(logType: string, logName: string): void 298 | logName | string | Yes | Log file name.|
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/ |
H A D | js-apidiff-dfx.md | 10 |新增|NA|类名:logLibrary;<br>方法or属性:function copy(logType: string, logName: string, dest: string): Prom… 11 |新增|NA|类名:logLibrary;<br>方法or属性:function copy(logType: string, logName: string, dest: string, callb… 12 |新增|NA|类名:logLibrary;<br>方法or属性:function move(logType: string, logName: string, dest: string): Prom… 13 |新增|NA|类名:logLibrary;<br>方法or属性:function move(logType: string, logName: string, dest: string, callb… 14 |新增|NA|类名:logLibrary;<br>方法or属性:function remove(logType: string, logName: string): void;|@ohos.logL…
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/ |
H A D | sqlite_relational_database_upgrader.cpp | 190 std::string logName = DBCommon::GetLogTableName(tableName); in UpgradeLogBaseOnVersion() local 192 tableInfo.SetTableName(logName); in UpgradeLogBaseOnVersion() 193 int errCode = SQLiteUtils::AnalysisSchemaFieldDefine(db_, logName, tableInfo); in UpgradeLogBaseOnVersion()
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_persister_rotator.cpp | 40 bool LogPersisterRotator::IsOldFile(const std::string& logName, const int index) in IsOldFile() argument 44 if (logName.find(fileNameHead) == std::string::npos) { in IsOldFile()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-dfx.md | 10 |新增|NA|类名:logLibrary;<br>方法or属性:function copy(logType: string, logName: string, dest: string): Prom… 11 |新增|NA|类名:logLibrary;<br>方法or属性:function copy(logType: string, logName: string, dest: string, callb… 12 |新增|NA|类名:logLibrary;<br>方法or属性:function move(logType: string, logName: string, dest: string): Prom… 13 |新增|NA|类名:logLibrary;<br>方法or属性:function move(logType: string, logName: string, dest: string, callb… 14 |新增|NA|类名:logLibrary;<br>方法or属性:function remove(logType: string, logName: string): void;|@ohos.logL…
|
/ohos5.0/base/update/updater/utils/ |
H A D | utils.cpp | 490 void CompressLogs(const std::string &logName) in CompressLogs() argument 495 std::string realName = logName.substr(logName.find_last_of("/") + 1); in CompressLogs() 496 std::string logPath = logName.substr(0, logName.find_last_of("/")); in CompressLogs() 503 std::string fileName = logName; in CompressLogs() 532 (void)DeleteFile(logName); in CompressLogs()
|
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/ |
H A D | log_catcher_utils.cpp | 106 std::string logName = procName + "-" + std::to_string(pid) + in WriteKernelStackToFd() local 108 realPath = logPath + logName; in WriteKernelStackToFd()
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | log_persister_rotator.h | 57 bool IsOldFile(const std::string& logName, const int index);
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-beta2/ |
H A D | js-apidiff-dfx.md | 10 … logLibrary;<br>Method or attribute name: function copy(logType: string, logName: string, dest: st… 11 … logLibrary;<br>Method or attribute name: function copy(logType: string, logName: string, dest: st… 12 … logLibrary;<br>Method or attribute name: function move(logType: string, logName: string, dest: st… 13 … logLibrary;<br>Method or attribute name: function move(logType: string, logName: string, dest: st… 14 …ogLibrary;<br>Method or attribute name: function remove(logType: string, logName: string): void;|@…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_compute_generic.cpp | 214 const string logName = "RenderNodeComputeGeneric_ShaderSpecialization" + in GetPsoHandle() local 216 PLUGIN_LOG_ONCE_E(logName.c_str(), in GetPsoHandle()
|