Home
last modified time | relevance | path

Searched full:msg (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_teleservice_message.cpp99 CdmaSmsSubmitMessage::CdmaSmsSubmitMessage(TeleserviceSubmit &msg) in CdmaSmsSubmitMessage() argument
103 parameter_.push_back(std::make_unique<CdmaSmsMessageId>(msg.msgId, type_)); in CdmaSmsSubmitMessage()
105 parameter_.push_back(std::make_unique<CdmaSmsUserData>(msg.userData, msg.msgId.headerInd)); in CdmaSmsSubmitMessage()
107 if (msg.deferValPeriod.format == SMS_TIME_RELATIVE) { in CdmaSmsSubmitMessage()
109 … CdmaSmsSubParameter::DEFERRED_DELIVERY_TIME_RELATIVE, msg.deferValPeriod.time.relTime.time)); in CdmaSmsSubmitMessage()
110 } else if (msg.deferValPeriod.format == SMS_TIME_ABSOLUTE) { in CdmaSmsSubmitMessage()
112 CdmaSmsSubParameter::DEFERRED_DELIVERY_TIME_ABSOLUTE, msg.deferValPeriod.time.absTime)); in CdmaSmsSubmitMessage()
115 if (msg.priority <= SmsPriorityIndicator::EMERGENCY) { in CdmaSmsSubmitMessage()
116 parameter_.push_back(std::make_unique<CdmaSmsPriorityInd>(msg.priority)); in CdmaSmsSubmitMessage()
119 if (msg.replyOpt.userAck || msg.replyOpt.dak || msg.replyOpt.readAck || msg.replyOpt.report) { in CdmaSmsSubmitMessage()
[all …]
Dcdma_sms_transport_message.cpp96 …ptr<CdmaSmsTransportMessage> CdmaSmsTransportMessage::CreateTransportMessage(CdmaTransportMsg &msg) in CreateTransportMessage() argument
98 if (msg.type == CdmaTransportMsgType::P2P) { in CreateTransportMessage()
99 return std::make_unique<CdmaSmsP2pMessage>(msg.data.p2p); in CreateTransportMessage()
100 } else if (msg.type == CdmaTransportMsgType::BROADCAST) { in CreateTransportMessage()
101 return std::make_unique<CdmaSmsBroadcastMessage>(msg.data.broadcast); in CreateTransportMessage()
102 } else if (msg.type == CdmaTransportMsgType::ACK) { in CreateTransportMessage()
103 return std::make_unique<CdmaSmsAckMessage>(msg.data.ack); in CreateTransportMessage()
105 …HONY_LOGW("CreateTransportMessage: type [%{public}d] not support", static_cast<uint8_t>(msg.type)); in CreateTransportMessage()
111 CdmaTransportMsg &msg, SmsReadBuffer &pdu) in CreateTransportMessage() argument
124 msg.type = CdmaTransportMsgType::P2P; in CreateTransportMessage()
[all …]
/base/telephony/sms_mms/test/fuzztest/gsmsmsmessage_fuzzer/
Dgsmsmsmessage_fuzzer.cpp55 GsmSmsMessage msg; in CreateMessageTest() local
56 msg.CreateMessage(pdu); in CreateMessageTest()
57 msg.PduAnalysis(pdu); in CreateMessageTest()
59 msg.AnalysisMsgDeliver(deliver); in CreateMessageTest()
61 msg.AnalysisMsgStatusReport(status); in CreateMessageTest()
63 msg.AnalysisMsgSubmit(submit); in CreateMessageTest()
71 GsmSmsMessage msg; in CalcReplyEncodeAddress() local
73 msg.CalcReplyEncodeAddress(replyAddr); in CalcReplyEncodeAddress()
75 msg.CalcReplyEncodeAddress(replyAddress); in CalcReplyEncodeAddress()
86 msg.ConvertMsgTimeStamp(times); in CalcReplyEncodeAddress()
[all …]
/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/startup/init/services/param/linux/
Dparam_service.c85 static int SendResponseMsg(ParamTaskPtr worker, const ParamMessage *msg, int result) in SendResponseMsg() argument
88 …response = (ParamResponseMessage *)CreateParamMessage(msg->type, msg->key, sizeof(ParamResponseMes… in SendResponseMsg()
90 response->msg.id.msgId = msg->id.msgId; in SendResponseMsg()
92 response->msg.msgSize = sizeof(ParamResponseMessage); in SendResponseMsg()
94 PARAM_LOGV("Send response msg msgId %d result %d", msg->id.msgId, result); in SendResponseMsg()
103 ParamMessage *msg = (ParamMessage *)CreateParamMessage(MSG_NOTIFY_PARAM, "*", msgSize); in SendWatcherNotifyMessage() local
104 PARAM_CHECK(msg != NULL, return -1, "Failed to create msg "); in SendWatcherNotifyMessage()
110 ret = strncpy_s(msg->key, sizeof(msg->key) - 1, content, tmp - content); in SendWatcherNotifyMessage()
111 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage()
114 ret = FillParamMsgContent(msg, &offset, PARAM_VALUE, tmp, strlen(tmp)); in SendWatcherNotifyMessage()
[all …]
/base/telephony/core_service/services/sim/src/
Dicc_file_controller.cpp123 SimIoRequestInfo msg; in ProcessRecordSize() local
124 msg.command = CONTROLLER_REQ_READ_RECORD; in ProcessRecordSize()
125 msg.fileId = hd->fileId; in ProcessRecordSize()
126 msg.p1 = hd->fileNum; in ProcessRecordSize()
127 msg.p2 = ICC_FILE_CURRENT_MODE; in ProcessRecordSize()
128 msg.p3 = hd->fileSize; in ProcessRecordSize()
129 msg.data = IccFileController::NULLSTR; in ProcessRecordSize()
130 msg.path = path; in ProcessRecordSize()
131 msg.pin2 = ""; in ProcessRecordSize()
132 …telRilManager_->GetSimIO(slotId_, msg, BuildCallerInfo(MSG_SIM_OBTAIN_FIXED_ELEMENTARY_FILE_DONE, … in ProcessRecordSize()
[all …]
Druim_file_controller.cpp41 SimIoRequestInfo msg; in ObtainTransparentImg() local
42 msg.command = CONTROLLER_REQ_GET_RESPONSE; in ObtainTransparentImg()
43 msg.fileId = fileId; in ObtainTransparentImg()
44 msg.p1 = 0; in ObtainTransparentImg()
45 msg.p2 = 0; in ObtainTransparentImg()
46 msg.p3 = GET_RESPONSE_ELEMENTARY_FILE_IMG_SIZE_BYTES; in ObtainTransparentImg()
47 msg.data = ""; in ObtainTransparentImg()
48 msg.path = ObtainElementFilePath(ELEMENTARY_FILE_IMG); in ObtainTransparentImg()
49 msg.pin2 = ""; in ObtainTransparentImg()
50 telRilManager_->GetSimIO(slotId_, msg, response); in ObtainTransparentImg()
/base/telephony/sms_mms/test/unittest/
Dsms_cb_message_test.cpp114 std::shared_ptr<GsmCbCodec> msg = GsmCbCodec::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<GsmCbCodec> msg = GsmCbCodec::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<GsmCbCodec> msg = GsmCbCodec::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<GsmCbCodec> msg = GsmCbCodec::CreateCbMessage(data); in TestMessageBodyUcs2() local
[all …]
/base/print/print_fwk/
Dhisysevent.yaml19 MSG: {type: STRING, desc: msg}
27 MSG: {type: STRING, desc: msg}
35 MSG: {type: STRING, desc: msg}
43 MSG: {type: STRING, desc: msg}
51 MSG: {type: STRING, desc: msg}
60 MSG: {type: STRING, desc: msg}
69 MSG: {type: STRING, desc: msg}
77 MSG: {type: STRING, desc: msg}
85 MSG: {type: STRING, desc: msg}
93 MSG: {type: STRING, desc: msg}
[all …]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/
Ddfx_dump_catcher.cpp63 bool DfxDumpCatcher::DoDumpCurrTid(const size_t skipFrameNum, std::string& msg, size_t maxFrameNums) in DoDumpCurrTid() argument
67 ret = GetBacktrace(msg, skipFrameNum + 1, false, maxFrameNums); in DoDumpCurrTid()
70 msg.append("Failed to dump curr thread:" + std::to_string(currTid) + ".\n"); in DoDumpCurrTid()
76 bool DfxDumpCatcher::DoDumpLocalTid(const int tid, std::string& msg, size_t maxFrameNums) in DoDumpLocalTid() argument
83 ret = GetBacktraceStringByTid(msg, tid, 0, false, maxFrameNums); in DoDumpLocalTid()
85 msg.append("Failed to dump thread:" + std::to_string(tid) + ".\n"); in DoDumpLocalTid()
91 bool DfxDumpCatcher::DoDumpLocalPid(int pid, std::string& msg, size_t maxFrameNums) in DoDumpLocalPid() argument
106 return DoDumpCurrTid(skipFramNum, msg, maxFrameNums); in DoDumpLocalPid()
108 return DoDumpLocalTid(tid, msg, maxFrameNums); in DoDumpLocalPid()
120 bool DfxDumpCatcher::DoDumpRemoteLocked(int pid, int tid, std::string& msg, bool isJson) in DoDumpRemoteLocked() argument
[all …]
/base/print/print_fwk/services/print_service/src/
Dhisys_event_util.cpp23 …oid HisysEventUtil::reportBehaviorEvent(std::string name, int behaviorCode, const std::string &msg) in reportBehaviorEvent() argument
32 "MSG", msg); in reportBehaviorEvent()
35 …sysEventUtil::reportFaultEvent(std::string name, int faultCode, std::string scene, std::string msg) in reportFaultEvent() argument
45 "MSG", msg); in reportFaultEvent()
48 void HisysEventUtil::reportPrintSuccess(const std::string &msg) in reportPrintSuccess() argument
50 reportBehaviorEvent("PRINT_SUCCESS", PRINT_SUCCESS, msg); in reportPrintSuccess()
53 void HisysEventUtil::faultPrint(std::string scene, std::string msg) in faultPrint() argument
55 reportFaultEvent("PRINT_EXCEPTION", FAULT_PRINT, scene, msg); in faultPrint()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/include/
Ddfx_dump_catcher.h40 * @param msg message of native stack
45 bool DumpCatch(int pid, int tid, std::string& msg, size_t maxFrameNums = DEFAULT_MAX_FRAME_NUM,
53 * @param msg message of native and js mixed-stack
56 bool DumpCatchMix(int pid, int tid, std::string& msg);
68 …bool DumpCatchFd(int pid, int tid, std::string& msg, int fd, size_t maxFrameNums = DEFAULT_MAX_FRA…
75 * @param msg message of native stack
78 bool DumpCatchMultiPid(const std::vector<int> pidV, std::string& msg);
81 bool DoDumpCurrTid(const size_t skipFrameNum, std::string& msg, size_t maxFrameNums);
82 bool DoDumpLocalTid(const int tid, std::string& msg, size_t maxFrameNums);
83 bool DoDumpLocalPid(int pid, std::string& msg, size_t maxFrameNums);
[all …]
/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), tagLen(msg.tagLen), 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.tagLen, CONTENT_PTR((&msg)), CONTENT_LEN((&msg))); in HilogData()
/base/hiviewdfx/faultloggerd/test/unittest/dump_catcher/
Ddumpcatcher_interfaces_test.cpp153 std::string msg = ""; variable
154 bool ret = dumplog.DumpCatchMultiPid(multiPid, msg);
162 int count = GetKeywordsNum(msg, log, len);
163 EXPECT_EQ(count, len) << msg << "DumpCatcherInterfacesTest001 Failed";
181 std::string msg = ""; variable
182 bool ret = dumplog.DumpCatchMultiPid(multiPid, msg);
202 std::string msg = ""; variable
203 bool ret = dumplog.DumpCatchMultiPid(multiPid, msg);
224 std::string msg = ""; variable
225 bool ret = dumplog.DumpCatchMultiPid(multiPid, msg);
[all …]
/base/msdp/device_status/
Dhisysevent.yaml32 MSG: {type: STRING, desc: Prepare Coordination Successfully}
38 MSG: {type: STRING, desc: Prepare Coordination Failed}
43 MSG: {type: STRING, desc: Unprepare Coordination Successfully}
48 MSG: {type: STRING, desc: Unprepare Coordination Failed}
54 MSG: {type: STRING, desc: Start Remote Coordination Successfully}
60 MSG: {type: STRING, desc: Start Remote Coordination Failed}
66 MSG: {type: STRING, desc: Start Remote Accordination Result Failed}
72 MSG: {type: STRING, desc: Stop Remote Accordination Successfully}
78 MSG: {type: STRING, desc: Stop Remote Accordination Failed}
84 MSG: {type: STRING, desc: Stop Remote Accordination Result Failed}
[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()
124 HKS_ERROR_INVALID_ARGUMENT, "Invalid param 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
[all …]
/base/telephony/telephony_data/entry/src/main/ets/common/utils/
DLogUtils.ts20 d(TAG, msg): void {
21 console.debug("[TelephonyData:]" + TAG + ":" + msg);
24 i(TAG, msg): void {
25 console.info("[TelephonyData:]" + TAG + ":" + msg);
28 w(TAG, msg): void {
29 console.warn("[TelephonyData:]" + TAG + ":" + msg);
32 e(TAG, msg): void {
33 console.error("[TelephonyData:]" + TAG + ":" + msg);
/base/inputmethod/imf/common/src/
Dmessage.cpp34 * @param msg a source message
36 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_ != nullptr) { in operator =()
62 msgContent_->ParseFrom(msg.msgContent_->GetData(), msg.msgContent_->GetDataSize()); in operator =()
Dmessage_handler.cpp28 Message *msg = mQueue.front(); in ~MessageHandler() local
30 delete msg; in ~MessageHandler()
31 msg = nullptr; in ~MessageHandler()
36 * @param msg a message to be sent
37 * @note the msg pointer should not be freed by the caller
39 void MessageHandler::SendMessage(Message *msg) in SendMessage() argument
42 mQueue.push(msg); in SendMessage()
55 Message *msg = (Message *)mQueue.front(); in GetMessage() local
57 return msg; in GetMessage()
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_lz4.cpp246 PkgBufferMessage &msg, size_t &dataLen, LZ4F_compressionContext_t &ctx) in PackCalculate() argument
249 int32_t ret = outStream->Write(msg.outBuffer, dataLen, msg.context.destOffset); in PackCalculate()
255 msg.context.destOffset += dataLen; in PackCalculate()
256 while (msg.context.unpackedSize > 0) { in PackCalculate()
257 … ret = ReadData(inStream, msg.context.srcOffset, msg.inBuffer, msg.context.unpackedSize, dataLen); in PackCalculate()
263 msg.outBuffer.buffer, msg.outBuffer.length, msg.inBuffer.buffer, dataLen, nullptr); in PackCalculate()
269 ret = outStream->Write(msg.outBuffer, outSize, msg.context.destOffset); in PackCalculate()
276 msg.context.srcOffset += dataLen; in PackCalculate()
277 msg.context.destOffset += outSize; in PackCalculate()
281 … size_t headerSize = LZ4F_compressEnd(ctx, msg.outBuffer.buffer, msg.outBuffer.length, nullptr); in PackCalculate()
[all …]
/base/telephony/sms_mms/services/sms/include/cdma/
Dcdma_sms_teleservice_message.h55 explicit CdmaSmsSubmitMessage(TeleserviceSubmit &msg);
56 CdmaSmsSubmitMessage(TeleserviceSubmit &msg, SmsReadBuffer &pdu);
61 explicit CdmaSmsCancelMessage(TeleserviceCancel &msg);
66 explicit CdmaSmsDeliverReport(TeleserviceDeliverReport &msg);
71 CdmaSmsDeliverMessage(TeleserviceDeliver &msg, SmsReadBuffer &pdu, bool isCMAS = false);
73 void PushParameter(uint8_t id, TeleserviceDeliver &msg);
78 CdmaSmsDeliveryAck(TeleserviceDeliverAck &msg, SmsReadBuffer &pdu);
83 CdmaSmsUserAck(TeleserviceUserAck &msg, SmsReadBuffer &pdu);
88 CdmaSmsReadAck(TeleserviceReadAck &msg, SmsReadBuffer &pdu);
Dcdma_sms_transport_message.h36 static std::unique_ptr<CdmaSmsTransportMessage> CreateTransportMessage(CdmaTransportMsg &msg);
37 …static std::unique_ptr<CdmaSmsTransportMessage> CreateTransportMessage(CdmaTransportMsg &msg, SmsR…
47 explicit CdmaSmsP2pMessage(CdmaP2PMsg &msg);
48 CdmaSmsP2pMessage(CdmaP2PMsg &msg, SmsReadBuffer &pdu);
53 explicit CdmaSmsBroadcastMessage(CdmaBroadCastMsg &msg);
54 CdmaSmsBroadcastMessage(CdmaBroadCastMsg &msg, SmsReadBuffer &pdu);
59 explicit CdmaSmsAckMessage(CdmaAckMsg &msg);
60 CdmaSmsAckMessage(CdmaAckMsg &msg, SmsReadBuffer &pdu);
/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/security/selinux_adapter/interfaces/policycoreutils/src/
Dparam_checker.c38 AuditMsg *msg = (AuditMsg *)data; in SelinuxAuditCallback() local
39 if (!msg->name || !msg->ucred) { in SelinuxAuditCallback()
40 selinux_log(SELINUX_ERROR, "Selinux audit msg invalid argument\n"); in SelinuxAuditCallback()
43 …tf_s(buf, len, len - 1, "parameter=%s pid=%d uid=%u gid=%u", msg->name, msg->ucred->pid, msg->ucre… in SelinuxAuditCallback()
44 msg->ucred->gid) <= 0) { in SelinuxAuditCallback()
68 AuditMsg msg; in CheckPerm() local
69 msg.name = paraName; in CheckPerm()
70 msg.ucred = uc; in CheckPerm()
71 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 …]

12345678910>>...27