/base/telephony/sms_mms/test/unittest/ |
D | sms_cb_message_test.cpp | 114 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/telephony/core_service/services/sim/src/ |
D | icc_file_controller.cpp | 112 SimIoRequestInfo msg; in ProcessRecordSize() local 113 msg.command = CONTROLLER_REQ_READ_RECORD; in ProcessRecordSize() 114 msg.fileId = hd->fileId; in ProcessRecordSize() 115 msg.p1 = hd->fileNum; in ProcessRecordSize() 116 msg.p2 = ICC_FILE_CURRENT_MODE; in ProcessRecordSize() 117 msg.p3 = hd->fileSize; in ProcessRecordSize() 118 msg.data = IccFileController::NULLSTR; in ProcessRecordSize() 119 msg.path = path; in ProcessRecordSize() 120 msg.pin2 = ""; in ProcessRecordSize() 121 …telRilManager_->GetSimIO(slotId_, msg, BuildCallerInfo(MSG_SIM_OBTAIN_FIXED_ELEMENTARY_FILE_DONE, … in ProcessRecordSize() [all …]
|
D | ruim_file_controller.cpp | 43 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/ |
D | log_collector.cpp | 32 void LogCollector::InsertDropInfo(const HilogMsg &msg, int droppedCount) in InsertDropInfo() argument 40 dropMsg->version = msg.version; in InsertDropInfo() 41 dropMsg->type = msg.type; in InsertDropInfo() 42 dropMsg->level = msg.level; in InsertDropInfo() 44 dropMsg->tv_sec = msg.tv_sec; in InsertDropInfo() 45 dropMsg->tv_nsec = msg.tv_nsec; in InsertDropInfo() 46 dropMsg->pid = msg.pid; in InsertDropInfo() 47 dropMsg->tid = msg.tid; in InsertDropInfo() 48 dropMsg->domain = msg.domain; in InsertDropInfo() 75 HilogMsg *msg = reinterpret_cast<HilogMsg *>(data.data()); in onDataRecv() local [all …]
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/include/ |
D | dfx_dump_catcher.h | 44 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/hiviewdfx/hilog/services/hilogd/include/ |
D | log_data.h | 68 HilogData(const HilogMsg& msg) in HilogData() 69 : len(0), version(msg.version), type(msg.type), level(msg.level), tag_len(msg.tag_len), in HilogData() 70 tv_sec(msg.tv_sec), tv_nsec(msg.tv_nsec), pid(msg.pid), tid(msg.tid), domain(msg.domain), in HilogData() 73 init(msg.tag, msg.tag_len, CONTENT_PTR((&msg)), CONTENT_LEN((&msg))); in HilogData()
|
/base/miscservices/inputmethod/services/src/ |
D | message.cpp | 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_) { in operator =() 62 msgContent_->ParseFrom(msg.msgContent_->GetData(), msg.msgContent_->GetDataSize()); in operator =()
|
D | message_handler.cpp | 32 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/native/ |
D | vsnprintf_s_p.cpp | 33 #define SECUREC_ERROR_INVALID_PARAMTER(msg) assert( msg "invalid argument" == NULL) argument 34 #define SECUREC_ERROR_INVALID_RANGE(msg) assert( msg "invalid dest buffer size" == NULL) argument 37 #define SECUREC_ERROR_INVALID_PARAMTER(msg) printk( "%s invalid argument\n",msg) argument 38 … #define SECUREC_ERROR_INVALID_RANGE(msg) printk( "%s invalid dest buffer size\n", msg) argument 40 #define SECUREC_ERROR_INVALID_PARAMTER(msg) printf( "%s invalid argument\n",msg) argument 41 … #define SECUREC_ERROR_INVALID_RANGE(msg) printf( "%s invalid dest buffer size\n", msg) argument 44 #define SECUREC_ERROR_INVALID_PARAMTER(msg) LogSecureCRuntimeError(msg " EINVAL\n") argument 45 #define SECUREC_ERROR_INVALID_RANGE(msg) LogSecureCRuntimeError(msg " ERANGE\n") argument 47 #define SECUREC_ERROR_INVALID_PARAMTER(msg) ((void)0) argument 48 #define SECUREC_ERROR_INVALID_RANGE(msg) ((void)0) argument [all …]
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/ |
D | dfx_dump_catcher.cpp | 91 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/ |
D | dumpcatcher_interfaces_test.cpp | 168 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/hiviewdfx/hilog/test/moduletest/common/ |
D | hilog_ndk_test.cpp | 53 using LogMethodFunc = std::function<void(const std::string &msg)>; 56 [] (const std::string &msg) { in __anon855251b20102() 57 HILOG_DEBUG(LOG_CORE, "%{public}s", msg.c_str()); in __anon855251b20102() 59 [] (const std::string &msg) { in __anon855251b20202() 60 HILOG_INFO(LOG_CORE, "%{public}s", msg.c_str()); in __anon855251b20202() 62 [] (const std::string &msg) { in __anon855251b20302() 63 HILOG_WARN(LOG_CORE, "%{public}s", msg.c_str()); in __anon855251b20302() 65 [] (const std::string &msg) { in __anon855251b20402() 66 HILOG_ERROR(LOG_CORE, "%{public}s", msg.c_str()); in __anon855251b20402() 68 [] (const std::string &msg) { in __anon855251b20502() [all …]
|
/base/startup/init_lite/services/param/manager/ |
D | param_message.c | 69 ParamMessage *msg = (ParamMessage *)calloc(1, msgSize); in CreateParamMessage() local 70 PARAM_CHECK(msg != NULL, return NULL, "Failed to malloc message"); in CreateParamMessage() 71 msg->type = type; in CreateParamMessage() 72 msg->id.msgId = 0; in CreateParamMessage() 73 msg->msgSize = msgSize; in CreateParamMessage() 74 int ret = strcpy_s(msg->key, sizeof(msg->key) - 1, name); in CreateParamMessage() 75 PARAM_CHECK(ret == EOK, free(msg); in CreateParamMessage() 77 return msg; in CreateParamMessage() 84 ParamMessage *msg = (ParamMessage *)reqest; in GetNextContent() local 85 …if ((msg == NULL) || ((*offset + sizeof(ParamMessage) + sizeof(ParamMsgContent)) >= msg->msgSize))… in GetNextContent() [all …]
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_hash.c | 61 static int32_t HashCheckParam(uint32_t alg, const struct HksBlob *msg, struct HksBlob *hash) in HashCheckParam() argument 73 if (HksOpensslCheckBlob(msg) != HKS_SUCCESS) { in HashCheckParam() 80 int32_t HksOpensslHash(uint32_t alg, const struct HksBlob *msg, struct HksBlob *hash) in HksOpensslHash() argument 82 int32_t ret = HashCheckParam(alg, msg, hash); in HksOpensslHash() 94 ret = EVP_Digest(msg->data, msg->size, hash->data, &hash->size, opensslAlg, NULL); in HksOpensslHash() 131 int32_t HksOpensslHashUpdate(void *cryptoCtx, const struct HksBlob *msg) in HksOpensslHashUpdate() argument 138 if (HksOpensslCheckBlob(msg) != HKS_SUCCESS) { in HksOpensslHashUpdate() 143 int32_t ret = EVP_DigestUpdate(cryptoCtx, msg->data, msg->size); in HksOpensslHashUpdate() 151 int32_t HksOpensslHashFinal(void **cryptoCtx, const struct HksBlob *msg, struct HksBlob *hash) in HksOpensslHashFinal() argument 158 if (msg == NULL) { in HksOpensslHashFinal() [all …]
|
D | hks_openssl_hmac.c | 41 static int32_t HmacCheckBuffer(const struct HksBlob *key, const struct HksBlob *msg, const struct H… in HmacCheckBuffer() argument 47 if (HksOpensslCheckBlob(msg) != HKS_SUCCESS) { in HmacCheckBuffer() 79 const struct HksBlob *key, uint32_t alg, const struct HksBlob *msg, const struct HksBlob *mac) in HmacCheckParam() argument 81 if (HmacCheckBuffer(key, msg, mac) != HKS_SUCCESS) { in HmacCheckParam() 107 int32_t HksOpensslHmac(const struct HksBlob *key, uint32_t digestAlg, const struct HksBlob *msg, st… in HksOpensslHmac() argument 109 if (HmacCheckParam(key, digestAlg, msg, mac) != HKS_SUCCESS) { in HksOpensslHmac() 119 …uint8_t *hmacData = HMAC(opensslAlg, key->data, (int32_t)key->size, msg->data, msg->size, mac->dat… in HksOpensslHmac() 180 int32_t HksOpensslHmacUpdate(void *cryptoCtx, const struct HksBlob *msg) in HksOpensslHmacUpdate() argument 182 if (HksOpensslCheckBlob(msg) != HKS_SUCCESS) { in HksOpensslHmacUpdate() 199 int hmacData = HMAC_Update(context, msg->data, msg->size); in HksOpensslHmacUpdate() [all …]
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
D | hks_mbedtls_hash.c | 50 int32_t HksMbedtlsHashMd5Final(struct HksMbedtlsHashCtx *ctx, const struct HksBlob *msg, unsigned c… 57 int32_t HksMbedtlsHashSha1Final(struct HksMbedtlsHashCtx *ctx, const struct HksBlob *msg, unsigned … 64 int32_t HksMbedtlsHashSha256Final(struct HksMbedtlsHashCtx *ctx, const struct HksBlob *msg, unsigne… 71 int32_t HksMbedtlsHashSha512Final(struct HksMbedtlsHashCtx *ctx, const struct HksBlob *msg, unsigne… 107 int32_t HksMbedtlsHashUpdate(void *cryptoCtx, const struct HksBlob *msg) in HksMbedtlsHashUpdate() argument 114 ret = HksMbedtlsHashMd5Update(rsaCtx, msg->data, msg->size); /* 0 for MD5 */ in HksMbedtlsHashUpdate() 117 ret = HksMbedtlsHashSha1Update(rsaCtx, msg->data, msg->size); /* 0 for SHA-1 */ in HksMbedtlsHashUpdate() 121 ret = HksMbedtlsHashSha256Update(rsaCtx, msg->data, msg->size); in HksMbedtlsHashUpdate() 125 ret = HksMbedtlsHashSha512Update(rsaCtx, msg->data, msg->size); in HksMbedtlsHashUpdate() 139 int32_t HksMbedtlsHashFinal(void **cryptoCtx, const struct HksBlob *msg, struct HksBlob *hash) in HksMbedtlsHashFinal() argument [all …]
|
/base/miscservices/inputmethod/frameworks/inputmethod_ability/src/ |
D | input_method_core_stub.cpp | 165 Message *msg = new Message(MessageID::MSG_ID_INITIALIZE_INPUT, data); in initializeInput() local 166 msgHandler_->SendMessage(msg); in initializeInput() 182 Message *msg = new Message(MessageID::MSG_ID_INIT_INPUT_CONTROL_CHANNEL, data); in InitInputControlChannel() local 183 msgHandler_->SendMessage(msg); in InitInputControlChannel() 201 Message *msg = new Message(MessageID::MSG_ID_START_INPUT, data); in startInput() local 202 msgHandler_->SendMessage(msg); in startInput() 213 Message *msg = new Message(MessageID::MSG_ID_STOP_INPUT, data); in stopInput() local 214 msgHandler_->SendMessage(msg); in stopInput() 227 Message *msg = new Message(MessageID::MSG_ID_SET_CLIENT_STATE, data); in SetClientState() local 228 msgHandler_->SendMessage(msg); in SetClientState() [all …]
|
D | input_method_ability.cpp | 162 Message *msg = msgHandler->GetMessage(); in WorkThread() local 163 switch (msg->msgId_) { in WorkThread() 165 OnInitialInput(msg); in WorkThread() 169 OnInitInputControlChannel(msg); in WorkThread() 173 MessageParcel *data = msg->msgContent_; in WorkThread() 178 OnStartInput(msg); in WorkThread() 182 OnStopInput(msg); in WorkThread() 186 OnShowKeyboard(msg); in WorkThread() 190 OnHideKeyboard(msg); in WorkThread() 194 OnCursorUpdate(msg); in WorkThread() [all …]
|
/base/startup/init_lite/services/param/service/ |
D | param_service.c | 278 static int SendResponseMsg(ParamTaskPtr worker, const ParamMessage *msg, int result) in SendResponseMsg() argument 281 …response = (ParamResponseMessage *)CreateParamMessage(msg->type, msg->key, sizeof(ParamResponseMes… in SendResponseMsg() 283 response->msg.id.msgId = msg->id.msgId; in SendResponseMsg() 285 response->msg.msgSize = sizeof(ParamResponseMessage); in SendResponseMsg() 295 ParamMessage *msg = (ParamMessage *)CreateParamMessage(MSG_NOTIFY_PARAM, "*", msgSize); in SendWatcherNotifyMessage() local 296 PARAM_CHECK(msg != NULL, return -1, "Failed to create msg "); in SendWatcherNotifyMessage() 302 ret = strncpy_s(msg->key, sizeof(msg->key) - 1, content, tmp - content); in SendWatcherNotifyMessage() 303 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage() 306 ret = FillParamMsgContent(msg, &offset, PARAM_VALUE, tmp, strlen(tmp)); in SendWatcherNotifyMessage() 307 PARAM_CHECK(ret == 0, free(msg); in SendWatcherNotifyMessage() [all …]
|
/base/miscservices/inputmethod/services/include/ |
D | input_method_system_ability.h | 77 int32_t OnUserStarted(const Message *msg); 78 int32_t OnUserStopped(const Message *msg); 79 int32_t OnUserUnlocked(const Message *msg); 80 int32_t OnUserLocked(const Message *msg); 81 int32_t OnHandleMessage(Message *msg); 82 int32_t OnRemotePeerDied(const Message *msg); 83 int32_t OnSettingChanged(const Message *msg); 84 int32_t OnPackageRemoved(const Message *msg); 85 int32_t OnPackageAdded(const Message *msg); 86 int32_t OnDisableIms(const Message *msg); [all …]
|
/base/user_iam/auth_executor_mgr/interfaces/innerkits/src/ |
D | auth_message.cpp | 21 AuthMessage* AuthMessage::FromUint8Array(std::vector<uint8_t> &msg) in FromUint8Array() argument 23 msg = authMessage_; in FromUint8Array() 27 AuthMessage::AuthMessage(std::vector<uint8_t> &msg) in AuthMessage() argument 29 authMessage_ = msg; in AuthMessage()
|
/base/miscservices/inputmethod/frameworks/inputmethod_controller/src/ |
D | input_data_channel_stub.cpp | 109 Message *msg = new Message(MessageID::MSG_ID_INSERT_CHAR, parcel); in InsertText() local 110 msgHandler->SendMessage(msg); in InsertText() 125 Message *msg = new Message(MessageID::MSG_ID_DELETE_FORWARD, parcel); in DeleteForward() local 126 msgHandler->SendMessage(msg); in DeleteForward() 137 Message *msg = new Message(MessageID::MSG_ID_DELETE_BACKWARD, parcel); in DeleteBackward() local 138 msgHandler->SendMessage(msg); in DeleteBackward() 184 Message *msg = new Message(MessageID::MSG_ID_SEND_KEYBOARD_STATUS, parcel); in SendKeyboardStatus() local 185 msgHandler->SendMessage(msg); in SendKeyboardStatus() 195 Message *msg = new Message(MessageID::MSG_ID_SEND_FUNCTION_KEY, parcel); in SendFunctionKey() local 196 msgHandler->SendMessage(msg); in SendFunctionKey() [all …]
|
/base/miscservices/inputmethod/frameworks/inputmethod_ability/include/ |
D | input_method_ability.h | 101 void OnInitialInput(Message *msg); 102 void OnStartInput(Message *msg); 103 void OnStopInput(Message *msg); 104 void OnSetKeyboardType(Message *msg); 105 void OnShowKeyboard(Message *msg); 106 void OnHideKeyboard(Message *msg); 107 void OnInitInputControlChannel(Message *msg); 109 void OnCursorUpdate(Message *msg); 110 void OnSelectionChange(Message *msg);
|
/base/hiviewdfx/hiview/core/test/unittest/common/ |
D | platform_test_result_listener.cpp | 18 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/hiviewdfx/faultloggerd/tools/dump_catcher/ |
D | dump_catcher.cpp | 35 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()
|