Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/base/hiviewdfx/hilog/services/hilogd/
Dlog_collector.cpp33 void LogCollector::InsertDropInfo(const HilogMsg &msg, int droppedCount) in InsertDropInfo() argument
41 dropMsg->version = msg.version; in InsertDropInfo()
42 dropMsg->type = msg.type; in InsertDropInfo()
43 dropMsg->level = msg.level; in InsertDropInfo()
45 dropMsg->tv_sec = msg.tv_sec; in InsertDropInfo()
46 dropMsg->tv_nsec = msg.tv_nsec; in InsertDropInfo()
47 dropMsg->mono_sec = msg.mono_sec; in InsertDropInfo()
48 dropMsg->pid = msg.pid; in InsertDropInfo()
49 dropMsg->tid = msg.tid; in InsertDropInfo()
50 dropMsg->domain = msg.domain; in InsertDropInfo()
[all …]
/base/telephony/sms_mms/test/unittest/
Dsms_cb_message_test.cpp114 std::shared_ptr<SmsCbMessage> msg = SmsCbMessage::CreateCbMessage(data); in TestMessageBody7Bit() local
115 if (msg == nullptr) { in TestMessageBody7Bit()
118 std::cout << "msginfo: " << msg->ToString() << std::endl; in TestMessageBody7Bit()
129 std::shared_ptr<SmsCbMessage> msg = SmsCbMessage::CreateCbMessage(data); in TestMessageBody7BitUmts() local
130 if (msg == nullptr) { in TestMessageBody7BitUmts()
133 std::cout << "msginfo: " << msg->ToString() << std::endl; in TestMessageBody7BitUmts()
143 std::shared_ptr<SmsCbMessage> msg = SmsCbMessage::CreateCbMessage(data); in TestMessageBody8Bit() local
144 if (msg == nullptr) { in TestMessageBody8Bit()
147 std::cout << "msginfo: " << msg->ToString() << std::endl; in TestMessageBody8Bit()
157 std::shared_ptr<SmsCbMessage> msg = SmsCbMessage::CreateCbMessage(data); in TestMessageBodyUcs2() local
[all …]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/include/
Ddfx_dump_catcher.h44 bool DumpCatch(int pid, int tid, std::string& msg);
45 bool DumpCatchMix(int pid, int tid, std::string& msg);
46 bool DumpCatchFd(int pid, int tid, std::string& msg, int fd);
47 bool DumpCatchMultiPid(const std::vector<int> pidV, std::string& msg);
55 bool DoDumpCurrTid(const size_t skipFramNum, std::string& msg);
56 bool DoDumpLocalTid(const int tid, std::string& msg);
57 bool DoDumpLocalPid(int pid, std::string& msg);
58 bool DoDumpLocalLocked(int pid, int tid, std::string& msg);
59 bool DoDumpRemoteLocked(int pid, int tid, std::string& msg);
60 bool DoDumpCatchRemote(const int type, int pid, int tid, std::string& msg);
[all …]
/base/startup/init/services/param/linux/
Dparam_service.c89 static int SendResponseMsg(ParamTaskPtr worker, const ParamMessage *msg, int result) in SendResponseMsg() argument
92 …response = (ParamResponseMessage *)CreateParamMessage(msg->type, msg->key, sizeof(ParamResponseMes… in SendResponseMsg()
94 response->msg.id.msgId = msg->id.msgId; in SendResponseMsg()
96 response->msg.msgSize = sizeof(ParamResponseMessage); in SendResponseMsg()
98 PARAM_LOGV("Send response msg msgId %d result %d", msg->id.msgId, result); in SendResponseMsg()
107 ParamMessage *msg = (ParamMessage *)CreateParamMessage(MSG_NOTIFY_PARAM, "*", msgSize); in SendWatcherNotifyMessage() local
108 PARAM_CHECK(msg != NULL, return -1, "Failed to create msg "); in SendWatcherNotifyMessage()
114 ret = strncpy_s(msg->key, sizeof(msg->key) - 1, content, tmp - content); in SendWatcherNotifyMessage()
115 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage()
118 ret = FillParamMsgContent(msg, &offset, PARAM_VALUE, tmp, strlen(tmp)); in SendWatcherNotifyMessage()
[all …]
Dparam_message.c70 ParamMessage *msg = (ParamMessage *)calloc(1, size); in CreateParamMessage() local
71 PARAM_CHECK(msg != NULL, return NULL, "Failed to malloc message"); in CreateParamMessage()
72 msg->type = type; in CreateParamMessage()
73 msg->id.msgId = 0; in CreateParamMessage()
74 msg->msgSize = size; in CreateParamMessage()
75 int ret = strcpy_s(msg->key, sizeof(msg->key) - 1, name); in CreateParamMessage()
76 PARAM_CHECK(ret == EOK, free(msg); in CreateParamMessage()
78 return msg; in CreateParamMessage()
85 ParamMessage *msg = (ParamMessage *)reqest; in GetNextContent() local
86 …if ((msg == NULL) || ((*offset + sizeof(ParamMessage) + sizeof(ParamMsgContent)) >= msg->msgSize))… in GetNextContent()
[all …]
/base/telephony/core_service/services/sim/src/
Dicc_file_controller.cpp122 SimIoRequestInfo msg; in ProcessRecordSize() local
123 msg.command = CONTROLLER_REQ_READ_RECORD; in ProcessRecordSize()
124 msg.fileId = hd->fileId; in ProcessRecordSize()
125 msg.p1 = hd->fileNum; in ProcessRecordSize()
126 msg.p2 = ICC_FILE_CURRENT_MODE; in ProcessRecordSize()
127 msg.p3 = hd->fileSize; in ProcessRecordSize()
128 msg.data = IccFileController::NULLSTR; in ProcessRecordSize()
129 msg.path = path; in ProcessRecordSize()
130 msg.pin2 = ""; in ProcessRecordSize()
131 …telRilManager_->GetSimIO(slotId_, msg, BuildCallerInfo(MSG_SIM_OBTAIN_FIXED_ELEMENTARY_FILE_DONE, … in ProcessRecordSize()
[all …]
Druim_file_controller.cpp43 SimIoRequestInfo msg; in ObtainTransparentImg() local
44 msg.command = CONTROLLER_REQ_GET_RESPONSE; in ObtainTransparentImg()
45 msg.fileId = fileId; in ObtainTransparentImg()
46 msg.p1 = 0; in ObtainTransparentImg()
47 msg.p2 = 0; in ObtainTransparentImg()
48 msg.p3 = GET_RESPONSE_ELEMENTARY_FILE_IMG_SIZE_BYTES; in ObtainTransparentImg()
49 msg.data = ""; in ObtainTransparentImg()
50 msg.path = ObtainElementFilePath(ELEMENTARY_FILE_IMG); in ObtainTransparentImg()
51 msg.pin2 = ""; in ObtainTransparentImg()
52 telRilManager_->GetSimIO(slotId_, msg, response); in ObtainTransparentImg()
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_data.h69 explicit HilogData(const HilogMsg& msg) in HilogData()
70 : len(0), version(msg.version), type(msg.type), level(msg.level), tag_len(msg.tag_len), in HilogData()
71 … tv_sec(msg.tv_sec), tv_nsec(msg.tv_nsec), mono_sec(msg.mono_sec), pid(msg.pid), tid(msg.tid), in HilogData()
72 domain(msg.domain), tag(nullptr), content(nullptr) in HilogData()
74 init(msg.tag, msg.tag_len, CONTENT_PTR((&msg)), CONTENT_LEN((&msg))); in HilogData()
/base/inputmethod/imf/services/src/
Dmessage.cpp36 Message::Message(const Message& msg) in Message() argument
38 msgId_ = msg.msgId_; in Message()
43 MessageParcel *src = msg.msgContent_; in Message()
50 Message& Message::operator =(const Message& msg) in operator =() argument
52 if (this == &msg) { in operator =()
55 msgId_ = msg.msgId_; in operator =()
60 if (msg.msgContent_) { in operator =()
62 msgContent_->ParseFrom(msg.msgContent_->GetData(), msg.msgContent_->GetDataSize()); in operator =()
Dmessage_handler.cpp32 Message *msg = mQueue.front(); in ~MessageHandler() local
34 delete msg; in ~MessageHandler()
35 msg = nullptr; in ~MessageHandler()
43 void MessageHandler::SendMessage(Message *msg) in SendMessage() argument
47 mQueue.push(msg); in SendMessage()
63 Message *msg = (Message*) mQueue.front(); in GetMessage() local
65 return msg; in GetMessage()
/base/hiviewdfx/hilog/frameworks/libhilog/vsnprintf/
Dvsnprintf_s_p.cpp37 #define SECUREC_ERROR_INVALID_PARAMTER(msg) assert( msg "invalid argument" == NULL) argument
38 #define SECUREC_ERROR_INVALID_RANGE(msg) assert( msg "invalid dest buffer size" == NULL) argument
41 #define SECUREC_ERROR_INVALID_PARAMTER(msg) printk( "%s invalid argument\n",msg) argument
42 … #define SECUREC_ERROR_INVALID_RANGE(msg) printk( "%s invalid dest buffer size\n", msg) argument
44 #define SECUREC_ERROR_INVALID_PARAMTER(msg) printf( "%s invalid argument\n",msg) argument
45 … #define SECUREC_ERROR_INVALID_RANGE(msg) printf( "%s invalid dest buffer size\n", msg) argument
48 #define SECUREC_ERROR_INVALID_PARAMTER(msg) LogSecureCRuntimeError(msg " EINVAL\n") argument
49 #define SECUREC_ERROR_INVALID_RANGE(msg) LogSecureCRuntimeError(msg " ERANGE\n") argument
51 #define SECUREC_ERROR_INVALID_PARAMTER(msg) ((void)0) argument
52 #define SECUREC_ERROR_INVALID_RANGE(msg) ((void)0) argument
[all …]
/base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/
Dlog_catcher_utils.cpp35 bool GetDump(int pid, std::string& msg) in GetDump() argument
54 msg = tmp->second; in GetDump()
58 void FinshDump(int pid, const std::string& msg) in FinshDump() argument
67 tmp->second = msg; in FinshDump()
77 std::string msg = ""; in DumpStacktrace() local
78 if (!GetDump(pid, msg)) { in DumpStacktrace()
82 msg = "Failed to dump stacktrace for " + std::to_string(pid) + "\n" + ret; in DumpStacktrace()
84 msg = ret; in DumpStacktrace()
86 FinshDump(pid, "\n-repeat-\n" + msg); in DumpStacktrace()
89 if (msg == "") { in DumpStacktrace()
[all …]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/
Ddfx_dump_catcher.cpp91 bool DfxDumpCatcher::DoDumpCurrTid(const size_t skipFramNum, std::string& msg) in DoDumpCurrTid() argument
98 msg.append(DfxUnwindLocal::GetInstance().CollectUnwindResult(currTid)); in DoDumpCurrTid()
100 msg.append("Failed to dump curr thread:" + std::to_string(currTid) + ".\n"); in DoDumpCurrTid()
106 bool DfxDumpCatcher::DoDumpLocalTid(const int tid, std::string& msg) in DoDumpLocalTid() argument
119 msg.append(DfxUnwindLocal::GetInstance().CollectUnwindResult(tid)); in DoDumpLocalTid()
121 msg.append("Failed to dump thread:" + std::to_string(tid) + ".\n"); in DoDumpLocalTid()
127 bool DfxDumpCatcher::DoDumpLocalPid(int pid, std::string& msg) in DoDumpLocalPid() argument
161 ret = DoDumpCurrTid(skipFramNum, msg); in DoDumpLocalPid()
163 ret = DoDumpLocalTid(tid, msg); in DoDumpLocalPid()
175 bool DfxDumpCatcher::DoDumpRemoteLocked(int pid, int tid, std::string& msg) in DoDumpRemoteLocked() argument
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/dump_catcher/
Ddumpcatcher_interfaces_test.cpp168 std::string msg = ""; variable
169 bool ret = dumplog.DumpCatchMultiPid(multiPid, msg);
171 GTEST_LOG_(INFO) << msg;
182 idx = msg.find(log[j]);
207 std::string msg = ""; variable
208 bool ret = dumplog.DumpCatchMultiPid(multiPid, msg);
210 GTEST_LOG_(INFO) << msg;
229 std::string msg = ""; variable
230 bool ret = dumplog.DumpCatchMultiPid(multiPid, msg);
232 GTEST_LOG_(INFO) << msg;
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_hash.c66 static int32_t HashCheckParam(uint32_t alg, const struct HksBlob *msg, struct HksBlob *hash) in HashCheckParam() argument
72 …HKS_IF_NOT_SUCC_LOGE_RETURN(HksOpensslCheckBlob(msg), HKS_ERROR_INVALID_ARGUMENT, "Invalid param m… in HashCheckParam()
76 int32_t HksOpensslHash(uint32_t alg, const struct HksBlob *msg, struct HksBlob *hash) in HksOpensslHash() argument
78 int32_t ret = HashCheckParam(alg, msg, hash); in HksOpensslHash()
84 ret = EVP_Digest(msg->data, msg->size, hash->data, &hash->size, opensslAlg, NULL); in HksOpensslHash()
119 int32_t HksOpensslHashUpdate(void *cryptoCtx, const struct HksBlob *msg) in HksOpensslHashUpdate() argument
123 HKS_IF_NOT_SUCC_LOGE_RETURN(HksOpensslCheckBlob(msg), in HksOpensslHashUpdate()
126 int32_t ret = EVP_DigestUpdate(cryptoCtx, msg->data, msg->size); in HksOpensslHashUpdate()
134 int32_t HksOpensslHashFinal(void **cryptoCtx, const struct HksBlob *msg, struct HksBlob *hash) in HksOpensslHashFinal() argument
141 if (msg == NULL) { in HksOpensslHashFinal()
[all …]
Dhks_openssl_hmac.c43 static int32_t HmacCheckBuffer(const struct HksBlob *key, const struct HksBlob *msg, const struct H… in HmacCheckBuffer() argument
46 HKS_IF_NOT_SUCC_LOGE_RETURN(HksOpensslCheckBlob(msg), HKS_ERROR_INVALID_ARGUMENT, "Invalid msg") in HmacCheckBuffer()
71 const struct HksBlob *key, uint32_t alg, const struct HksBlob *msg, const struct HksBlob *mac) in HmacCheckParam() argument
73 …HKS_IF_NOT_SUCC_LOGE_RETURN(HmacCheckBuffer(key, msg, mac), HKS_ERROR_INVALID_ARGUMENT, "Invalid B… in HmacCheckParam()
94 int32_t HksOpensslHmac(const struct HksBlob *key, uint32_t digestAlg, const struct HksBlob *msg, st… in HksOpensslHmac() argument
96 HKS_IF_NOT_SUCC_RETURN(HmacCheckParam(key, digestAlg, msg, mac), HKS_ERROR_INVALID_ARGUMENT) in HksOpensslHmac()
107 …uint8_t *hmacData = HMAC(opensslAlg, key->data, (int32_t)key->size, msg->data, msg->size, mac->dat… in HksOpensslHmac()
161 int32_t HksOpensslHmacUpdate(void *cryptoCtx, const struct HksBlob *msg) in HksOpensslHmacUpdate() argument
163 …HKS_IF_NOT_SUCC_LOGE_RETURN(HksOpensslCheckBlob(msg), HKS_ERROR_INVALID_ARGUMENT, "Invalid key poi… in HksOpensslHmacUpdate()
171 int hmacData = HMAC_Update(context, msg->data, msg->size); in HksOpensslHmacUpdate()
[all …]
/base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/
Dfault_reporter.cpp27 ReportStatus FaultReporter::ReportServiceFault(const FaultMsg &msg) in ReportServiceFault() argument
30 FAULT_TYPE, static_cast<int>(msg.faultType), MODULE_NAME, msg.moduleName, ERROR_TYPE, in ReportServiceFault()
31 static_cast<int>(msg.errorCode)); in ReportServiceFault()
35 ReportStatus FaultReporter::ReportRuntimeFault(const FaultMsg &msg) in ReportRuntimeFault() argument
38 FAULT_TYPE, static_cast<int>(msg.faultType), ERROR_TYPE, static_cast<int>(msg.errorCode)); in ReportRuntimeFault()
/base/startup/init/services/modules/reboot/
Dreboot_misc.c78 struct RBMiscUpdateMessage msg; in GetRebootReasonFromMisc() local
79 ret = RBMiscReadUpdaterMessage(miscFile, &msg); in GetRebootReasonFromMisc()
81 return strcpy_s(reason, size, msg.command); in GetRebootReasonFromMisc()
92 struct RBMiscUpdateMessage msg; in UpdateMiscMessage() local
93 ret = RBMiscReadUpdaterMessage(miscFile, &msg); in UpdateMiscMessage()
97 ret = snprintf_s(msg.command, MAX_COMMAND_SIZE, MAX_COMMAND_SIZE - 1, "%s", boot); in UpdateMiscMessage()
99 msg.command[MAX_COMMAND_SIZE - 1] = 0; in UpdateMiscMessage()
101 ret = memset_s(msg.command, MAX_COMMAND_SIZE, 0, MAX_COMMAND_SIZE); in UpdateMiscMessage()
108 ret = snprintf_s(msg.update, MAX_UPDATE_SIZE, MAX_UPDATE_SIZE - 1, "%s", p); in UpdateMiscMessage()
110 msg.update[MAX_UPDATE_SIZE - 1] = 0; in UpdateMiscMessage()
[all …]
/base/security/selinux/interfaces/policycoreutils/src/
Dparam_checker.c66 AuditMsg *msg = (AuditMsg *)data; in SelinuxAuditCallback() local
67 if (!msg->name || !msg->ucred) { in SelinuxAuditCallback()
72 if (GetProcessNameFromPid(msg->ucred->pid, processName) != 0) { in SelinuxAuditCallback()
77 …tf_s(buf, len, len - 1, "process=\"%s\" parameter=%s pid=%d uid=%u gid=%u", processName, msg->name, in SelinuxAuditCallback()
78 msg->ucred->pid, msg->ucred->uid, msg->ucred->gid) <= 0) { in SelinuxAuditCallback()
102 AuditMsg msg; in CheckPerm() local
103 msg.name = paraName; in CheckPerm()
104 msg.ucred = uc; in CheckPerm()
105 int res = selinux_check_access(srcContext, destContext, "parameter_service", "set", &msg); in CheckPerm()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_hash.c97 static int32_t HksMbedtlsHashMd5Final(struct HksMbedtlsHashCtx *ctx, const struct HksBlob *msg, str… in HksMbedtlsHashMd5Final() argument
105 if (msg->size != 0) { in HksMbedtlsHashMd5Final()
106 ret = mbedtls_md5_update_ret(context, msg->data, msg->size); in HksMbedtlsHashMd5Final()
184 static int32_t HksMbedtlsHashSha1Final(struct HksMbedtlsHashCtx *ctx, const struct HksBlob *msg, st… in HksMbedtlsHashSha1Final() argument
197 if (msg->size != 0) { in HksMbedtlsHashSha1Final()
198 ret = mbedtls_sha1_update_ret(context, msg->data, msg->size); in HksMbedtlsHashSha1Final()
280 static int32_t HksMbedtlsHashSha256Final(struct HksMbedtlsHashCtx *ctx, const struct HksBlob *msg, in HksMbedtlsHashSha256Final() argument
294 if (msg->size != 0) { in HksMbedtlsHashSha256Final()
295 ret = mbedtls_sha256_update_ret(context, msg->data, msg->size); in HksMbedtlsHashSha256Final()
379 static int32_t HksMbedtlsHashSha512Final(struct HksMbedtlsHashCtx *ctx, const struct HksBlob *msg, in HksMbedtlsHashSha512Final() argument
[all …]
/base/hiviewdfx/hiview/core/test/unittest/common/
Dplatform_test_result_listener.cpp18 void PlatformTestResultListener::OnUnorderedEvent(const Event& msg) in OnUnorderedEvent() argument
20 printf("cur listener:%s OnEventListeningCallback eventId_:%u \n", name_.c_str(), msg.eventId_); in OnUnorderedEvent()
23 processedUnorderedEvents_[msg.GetValue("message")] = msg.sender_; in OnUnorderedEvent()
/base/security/device_security_level/services/dslm/
Ddslm_msg_utils.c120 int32_t BuildDeviceSecInfoRequest(uint64_t challenge, MessageBuff **msg) in BuildDeviceSecInfoRequest() argument
122 if ((msg == NULL) || (*msg != NULL)) { in BuildDeviceSecInfoRequest()
138 *msg = out; in BuildDeviceSecInfoRequest()
142 int32_t ParseDeviceSecInfoRequest(const MessageBuff *msg, RequestObject *obj) in ParseDeviceSecInfoRequest() argument
144 if (msg == NULL || obj == NULL || msg->buff == NULL) { in ParseDeviceSecInfoRequest()
147 SECURITY_LOG_DEBUG("ParseDeviceSecInfoRequest msg is %s", (char *)msg->buff); in ParseDeviceSecInfoRequest()
149 JsonHandle handle = CreateJson((const char *)msg->buff); in ParseDeviceSecInfoRequest()
174 int32_t BuildDeviceSecInfoResponse(uint64_t challenge, const DslmCredBuff *cred, MessageBuff **msg) in BuildDeviceSecInfoResponse() argument
176 if ((cred == NULL) || (msg == NULL) || (*msg != NULL)) { in BuildDeviceSecInfoResponse()
191 *msg = out; in BuildDeviceSecInfoResponse()
[all …]
/base/inputmethod/imf/frameworks/inputmethod_controller/src/
Dinput_data_channel_stub.cpp129 Message *msg = new Message(MessageID::MSG_ID_INSERT_CHAR, parcel); in InsertText() local
130 msgHandler->SendMessage(msg); in InsertText()
145 Message *msg = new Message(MessageID::MSG_ID_DELETE_FORWARD, parcel); in DeleteForward() local
146 msgHandler->SendMessage(msg); in DeleteForward()
157 Message *msg = new Message(MessageID::MSG_ID_DELETE_BACKWARD, parcel); in DeleteBackward() local
158 msgHandler->SendMessage(msg); in DeleteBackward()
202 Message *msg = new Message(msgId, parcel); in HandleGetOperation() local
203 msgHandler->SendMessage(msg); in HandleGetOperation()
225 Message *msg = new Message(MessageID::MSG_ID_SEND_KEYBOARD_STATUS, parcel); in SendKeyboardStatus() local
226 msgHandler->SendMessage(msg); in SendKeyboardStatus()
[all …]
/base/hiviewdfx/faultloggerd/tools/dump_catcher/
Ddump_catcher.cpp35 std::string msg = ""; in Dump() local
39 dumpRet = dfxDump.DumpCatch(pid, tid, msg); in Dump()
42 dumpRet = dfxDump.DumpCatchMix(pid, tid, msg); in Dump()
56 if (!msg.empty()) { in Dump()
57 std::cout << msg << std::endl; in Dump()
/base/hiviewdfx/hilog/test/moduletest/common/
Dhilog_ndk_test.cpp57 using LogMethodFunc = std::function<void(const std::string &msg)>;
60 [] (const std::string &msg) { in __anon51f3f74f0102()
61 HILOG_DEBUG(LOG_CORE, "%{public}s", msg.c_str()); in __anon51f3f74f0102()
63 [] (const std::string &msg) { in __anon51f3f74f0202()
64 HILOG_INFO(LOG_CORE, "%{public}s", msg.c_str()); in __anon51f3f74f0202()
66 [] (const std::string &msg) { in __anon51f3f74f0302()
67 HILOG_WARN(LOG_CORE, "%{public}s", msg.c_str()); in __anon51f3f74f0302()
69 [] (const std::string &msg) { in __anon51f3f74f0402()
70 HILOG_ERROR(LOG_CORE, "%{public}s", msg.c_str()); in __anon51f3f74f0402()
72 [] (const std::string &msg) { in __anon51f3f74f0502()
[all …]

12345678910>>...14