/base/hiviewdfx/hiview/adapter/service/idl/src/ |
D | hiview_service_ability_proxy.cpp | 28 int32_t HiviewServiceAbilityProxy::List(const std::string& logType, std::vector<HiviewFileInfo>& fi… in List() argument 33 || !data.WriteString(logType)) { in List() 62 int32_t HiviewServiceAbilityProxy::Copy(const std::string& logType, const std::string& logName, con… in Copy() argument 65 return CopyOrMoveFile(logType, logName, dest, false); in Copy() 68 int32_t HiviewServiceAbilityProxy::Move(const std::string& logType, const std::string& logName, con… in Move() argument 71 return CopyOrMoveFile(logType, logName, dest, true); in Move() 75 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument 79 || !data.WriteString(logType) || !data.WriteString(logName) || !data.WriteString(dest)) { in CopyOrMoveFile() 100 int32_t HiviewServiceAbilityProxy::Remove(const std::string& logType, const std::string& logName) in Remove() argument 104 || !data.WriteString(logType) || !data.WriteString(logName)) { in Remove()
|
D | hiview_service_agent.cpp | 34 int32_t HiviewServiceAgent::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) in List() argument 42 return proxy.List(logType, fileInfos); in List() 45 int32_t HiviewServiceAgent::Copy(const std::string& logType, const std::string& logName, const std:… in Copy() argument 47 return CopyOrMoveFile(logType, logName, dest, false); in Copy() 50 int32_t HiviewServiceAgent::Move(const std::string& logType, const std::string& logName, const std:… in Move() argument 52 return CopyOrMoveFile(logType, logName, dest, true); in Move() 56 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument 68 return isMove ? proxy.Move(logType, logName, dest) : proxy.Copy(logType, logName, dest); in CopyOrMoveFile() 71 int32_t HiviewServiceAgent::Remove(const std::string& logType, const std::string& logName) in Remove() argument 79 return proxy.Remove(logType, logName); in Remove()
|
D | hiview_service_ability.cpp | 160 int32_t HiviewServiceAbility::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInf… in List() argument 162 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in List() 164 HIVIEW_LOGI("invalid logtype: %{public}s", logType.c_str()); in List() 193 int32_t HiviewServiceAbility::Copy(const std::string& logType, const std::string& logName, const st… in Copy() argument 195 return CopyOrMoveFile(logType, logName, dest, false); in Copy() 198 int32_t HiviewServiceAbility::Move(const std::string& logType, const std::string& logName, const st… in Move() argument 200 return CopyOrMoveFile(logType, logName, dest, true); in Move() 204 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument 210 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in CopyOrMoveFile() 212 HIVIEW_LOGI("invalid logtype: %{public}s", logType.c_str()); in CopyOrMoveFile() [all …]
|
D | hiview_service_ability_stub.cpp | 81 std::string logType; in HandleListRequest() local 82 if (!data.ReadString(logType)) { in HandleListRequest() 87 int32_t ret = List(logType, fileInfos); in HandleListRequest() 118 std::string logType; in HandleCopyOrMoveRequest() local 119 if (!data.ReadString(logType)) { in HandleCopyOrMoveRequest() 137 int32_t ret = isMove ? Move(logType, logName, dest) : Copy(logType, logName, dest); in HandleCopyOrMoveRequest() 146 std::string logType; in HandleRemoveRequest() local 147 if (!data.ReadString(logType)) { in HandleRemoveRequest() 156 int32_t ret = Remove(logType, logName); in HandleRemoveRequest()
|
/base/hiviewdfx/hiview/adapter/service/idl/include/ |
D | hiview_service_ability_proxy.h | 32 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) override; 33 …int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) over… 34 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over… 35 int32_t Remove(const std::string& logType, const std::string& logName) override; 39 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
|
D | hiview_service_agent.h | 29 static int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos); 30 …static int32_t Copy(const std::string& logType, const std::string& logName, const std::string& des… 31 …static int32_t Move(const std::string& logType, const std::string& logName, const std::string& des… 32 static int32_t Remove(const std::string& logType, const std::string& logName); 39 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
|
D | ihiview_service_ability.h | 32 virtual int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) = 0; 33 …virtual int32_t Copy(const std::string& logType, const std::string& logName, const std::string& de… 34 …virtual int32_t Move(const std::string& logType, const std::string& logName, const std::string& de… 35 virtual int32_t Remove(const std::string& logType, const std::string& logName) = 0;
|
D | hiview_service_ability.h | 44 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) override; 45 …int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) over… 46 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over… 47 int32_t Remove(const std::string& logType, const std::string& logName) override; 55 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
|
/base/hiviewdfx/hiview/interfaces/js/napi/include/ |
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() 31 std::string logType; member
|
/base/hiviewdfx/hiview/interfaces/js/napi/src/ |
D | napi_hiview_js.cpp | 49 std::string logType; in List() local 50 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType)) { in List() 54 int32_t retCode = HiviewServiceAgent::List(logType, fileInfos); in List() 78 std::string logType; in CopyOrMoveFile() local 81 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType) in CopyOrMoveFile() 87 logType.c_str(), logName.c_str(), destDir.c_str()); in CopyOrMoveFile() 93 …HiviewFileParams* hiviewFileParams = new(std::nothrow) HiviewFileParams(logType, logName, destDir); in CopyOrMoveFile() 143 std::string logType; in Remove() local 145 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType) in Remove() 149 HiLog::Info(LABEL, "type: %{public}s, name: %{public}s", logType.c_str(), logName.c_str()); in Remove() [all …]
|
D | hiview_napi_adapter.cpp | 42 params->result = HiviewServiceAgent::Copy(params->logType, params->logName, params->destDir); in CopyFileExecution() 57 params->result = HiviewServiceAgent::Move(params->logType, params->logName, params->destDir); in MoveFileExecution()
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
D | log_buffer.h | 48 int32_t Delete(uint16_t logType); 52 int64_t GetBuffLen(uint16_t logType); 53 int32_t SetBuffLen(uint16_t logType, uint64_t buffSize);
|
D | log_persister_rotator.h | 61 int SetInfo(const LogPersistStartMsg& pMsg, uint16_t logType, uint8_t logLevel);
|
D | log_persister.h | 42 uint16_t logType; member
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | log_buffer.cpp | 36 static int GenerateHilogMsgInside(HilogMsg& hilogMsg, const string& msg, uint16_t logType); 264 int32_t HilogBuffer::Delete(uint16_t logType) in Delete() argument 266 std::list<HilogData> &msgList = (logType == LOG_KMSG) ? hilogKlogList : hilogDataList; in Delete() 267 if (logType >= LOG_TYPE_MAX) { in Delete() 277 if ((*it).type != logType) { in Delete() 357 int64_t HilogBuffer::GetBuffLen(uint16_t logType) in GetBuffLen() argument 359 if (logType >= LOG_TYPE_MAX) { in GetBuffLen() 362 uint64_t buffSize = g_maxBufferSizeByType[logType]; in GetBuffLen() 366 int32_t HilogBuffer::SetBuffLen(uint16_t logType, uint64_t buffSize) in SetBuffLen() argument 368 if (logType >= LOG_TYPE_MAX) { in SetBuffLen() [all …]
|
/base/hiviewdfx/hilog/test/moduletest/common/ |
D | adapter_test.cpp | 119 static const std::array<uint16_t, 7> logType = {-1, 0, 1, 3, 4, 5, 100}; variable 123 for (size_t i = 0; i < logType.size(); ++i) { 124 SetBufferSize(logType[i], false, size); 125 EXPECT_EQ(GetBufferSize(logType[i], false), expectedSize[i]);
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
D | faultlog_formatter.h | 25 void WriteFaultLogToFile(int32_t fd, int32_t logType, std::map<std::string, std::string> sections); 28 std::string GetSummaryByType(int32_t logType, std::map<std::string, std::string> sections);
|
D | faultlog_formatter.cpp | 92 std::list<const char **> GetLogParseList(int32_t logType) in GetLogParseList() argument 94 switch (logType) { in GetLogParseList() 110 std::string GetSummaryByType(int32_t logType, std::map<std::string, std::string> sections) in GetSummaryByType() argument 113 switch (logType) { in GetSummaryByType() 195 void WriteFaultLogToFile(int32_t fd, int32_t logType, std::map<std::string, std::string> sections) in WriteFaultLogToFile() argument 197 std::list<const char **> seq = GetLogParseList(logType); in WriteFaultLogToFile()
|
/base/hiviewdfx/hiview/plugins/faultlogger/common/ |
D | faultlog_util.h | 32 int32_t GetRawEventIdByType(int32_t logType);
|
/base/hiviewdfx/hilog/interfaces/rust/src/ |
D | lib.rs | 83 …pub fn HiLogPrint(logType: u8, level: u8, domain: u32, tag: *const c_char, fmt: *const c_char, ...… in HiLogPrint()
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/ |
D | faultlogger_client.h | 121 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summa…
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/ |
D | faultlogger_client.cpp | 105 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summa… in AddFaultLog() argument 117 infoOhos.faultLogType = logType; in AddFaultLog()
|
/base/hiviewdfx/hilog/platform/interface/native/ |
D | log.cpp | 71 os_log_type_t logType = LOG_TYPE[static_cast<int>(level)]; in LogPrint() local
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/ |
D | napi_faultlogger.cpp | 233 int32_t logType; in AddFaultLog() local 234 napi_get_value_int32(env, parameters[TWO_PARAMETER - 1], &logType); in AddFaultLog() 241 AddFaultLog(now * SEC_TO_MILLISEC, logType, module, summary); in AddFaultLog()
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/ |
D | log_utils.h | 72 std::string LogType2Str(uint16_t logType);
|