Home
last modified time | relevance | path

Searched refs:msgType (Results 1 - 25 of 55) sorted by relevance

123

/base/msdp/device_status/services/interaction/drag/src/
H A Dstate_change_notify.cpp29 auto it = std::find_if(msgInfos_[info->msgType].begin(), msgInfos_[info->msgType].end(), in AddNotifyMsg()
33 if (it != msgInfos_[info->msgType].end()) { in AddNotifyMsg()
37 msgInfos_[info->msgType].emplace_back(info); in AddNotifyMsg()
42 if (info == nullptr || msgInfos_.empty() || msgInfos_[info->msgType].empty()) { in RemoveNotifyMsg()
46 auto it = std::find_if(msgInfos_[info->msgType].begin(), msgInfos_[info->msgType].end(), in RemoveNotifyMsg()
50 if (it != msgInfos_[info->msgType].end()) { in RemoveNotifyMsg()
51 msgInfos_[info->msgType].erase(it); in RemoveNotifyMsg()
/base/startup/appspawn/test/fuzztest/appspawnclient_fuzzer/
H A Dappspawnclient_fuzzer.cpp45 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgCreate() local
48 (void)AppSpawnReqMsgCreate(msgType, processName.c_str(), &reqHandle); in FuzzAppSpawnReqMsgCreate()
62 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgAddStringInfo() local
63 (void)AppSpawnReqMsgCreate(msgType, processName.c_str(), &reqHandle); in FuzzAppSpawnReqMsgAddStringInfo()
78 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnTerminateMsgCreate() local
80 (void)AppSpawnReqMsgCreate(msgType, processName.c_str(), &reqHandle); in FuzzAppSpawnTerminateMsgCreate()
95 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnClientSendMsg() local
97 (void)AppSpawnReqMsgCreate(msgType, processName.c_str(), &reqHandle); in FuzzAppSpawnClientSendMsg()
110 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgFree() local
112 (void)AppSpawnReqMsgCreate(msgType, processNam in FuzzAppSpawnReqMsgFree()
125 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgSetBundleInfo() local
143 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgSetAppFlag() local
160 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgSetAppDacInfo() local
177 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgSetAppDomainInfo() local
195 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgSetAppInternetPermissionInfo() local
213 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgSetAppAccessToken() local
230 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgSetAppOwnerId() local
247 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgAddPermission() local
264 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); FuzzAppSpawnReqMsgAddExtInfo() local
[all...]
/base/telephony/call_manager/services/distributed_call/src/distributed_communication/
H A Ddistributed_data_controller.cpp34 int32_t msgType = static_cast<int32_t>(DistributedMsgType::UNKNOWN); in OnReceiveMsg() local
35 if (!GetInt32Value(msg, DISTRIBUTED_MSG_TYPE, msgType)) { in OnReceiveMsg()
39 TELEPHONY_LOGI("recv data, msg type %{public}d", msgType); in OnReceiveMsg()
40 switch (msgType) { in OnReceiveMsg()
48 HandleRecvMsg(msgType, msg); in OnReceiveMsg()
131 std::string DistributedDataController::CreateMuteMsg(DistributedMsgType msgType, bool isMute) in CreateMuteMsg() argument
140 if (cJSON_AddNumberToObject(muteMsg, DISTRIBUTED_MSG_TYPE, static_cast<int32_t>(msgType)) == nullptr) { in CreateMuteMsg()
159 std::string DistributedDataController::CreateMuteRingerMsg(DistributedMsgType msgType) in CreateMuteRingerMsg() argument
168 if (cJSON_AddNumberToObject(muteRingerMsg, DISTRIBUTED_MSG_TYPE, static_cast<int32_t>(msgType)) == nullptr) { in CreateMuteRingerMsg()
H A Ddistributed_data_sink_controller.cpp60 void DistributedDataSinkController::HandleRecvMsg(int32_t msgType, const cJSON *msg) in HandleRecvMsg() argument
65 switch (msgType) { in HandleRecvMsg()
122 std::string DistributedDataSinkController::CreateDataReqMsg(DistributedMsgType msgType, uint32_t itemType, in CreateDataReqMsg() argument
132 if (cJSON_AddNumberToObject(reqMsg, DISTRIBUTED_MSG_TYPE, static_cast<int32_t>(msgType)) == nullptr) { in CreateDataReqMsg()
H A Ddistributed_data_source_controller.cpp75 void DistributedDataSourceController::HandleRecvMsg(int32_t msgType, const cJSON *msg) in HandleRecvMsg() argument
80 switch (msgType) { in HandleRecvMsg()
151 std::string DistributedDataSourceController::CreateDataRspMsg(DistributedMsgType msgType, uint32_t itemType, in CreateDataRspMsg() argument
161 if (cJSON_AddNumberToObject(rspMsg, DISTRIBUTED_MSG_TYPE, static_cast<int32_t>(msgType)) == nullptr) { in CreateDataRspMsg()
/base/useriam/user_auth_framework/services/remote_connect/src/
H A Dsoft_bus_message.cpp100 int32_t msgType = -1; in CreateMessage() local
101 attributes->GetInt32Value(Attributes::ATTR_MSG_TYPE, msgType); // ATTR_MSG_TYPE may be empty in CreateMessage()
111 "msgType:%{public}d, isAck:%{public}d, srcEndPoint:%{public}s, destEndPoint:%{public}s", in CreateMessage()
112 DEFAULT_MESSAGE_VERSION, messageSeq_, connectionName_.c_str(), msgType, isAck, srcEndPoint_.c_str(), in CreateMessage()
151 int32_t msgType = -1; in ParseMessage() local
152 attributes->GetInt32Value(Attributes::ATTR_MSG_TYPE, msgType); // ATTR_MSG_TYPE may be empty in ParseMessage()
156 "msgType:%{public}d, isAck:%{public}d, srcEndPoint:%{public}s, destEndPoint:%{public}s", in ParseMessage()
157 messageVersion_, messageSeq_, connectionName_.c_str(), msgType, isAck_, srcEndPoint_.c_str(), in ParseMessage()
H A Dsoft_bus_base_socket.cpp36 currTraceInfo_.msgType = -1; in BaseSocket()
204 void BaseSocket::RefreshTraceInfo(const std::string &connectionName, int32_t msgType, bool ack, uint32_t messageSeq) in RefreshTraceInfo() argument
207 currTraceInfo_.msgType = msgType; in RefreshTraceInfo()
221 int32_t msgType = -1; in SendRequest() local
222 attributes->GetInt32Value(Attributes::ATTR_MSG_TYPE, msgType); in SendRequest()
223 RefreshTraceInfo(connectionName, msgType, false, messageSeq); in SendRequest()
262 int32_t msgType = -1; in SendResponse() local
263 attributes->GetInt32Value(Attributes::ATTR_MSG_TYPE, msgType); in SendResponse()
264 RefreshTraceInfo(connectionName, msgType, tru in SendResponse()
308 int32_t msgType = -1; ParseMessage() local
[all...]
/base/telephony/call_manager/test/fuzztest/distributedcommunication_fuzzer/
H A Ddistributed_communication_fuzzer.cpp40 DistributedMsgType msgType = static_cast<DistributedMsgType>( in TestCommonController() local
65 controller->CreateMuteMsg(msgType, true); in TestCommonController()
66 controller->CreateMuteRingerMsg(msgType); in TestCommonController()
89 DistributedMsgType msgType = static_cast<DistributedMsgType>( in TestSinkController() local
96 controller->CreateDataReqMsg(msgType, uintValue, stringValue); in TestSinkController()
128 DistributedMsgType msgType = static_cast<DistributedMsgType>( in TestSourceController() local
134 controller->CreateDataRspMsg(msgType, uintValue, stringValue, stringValue, stringValue); in TestSourceController()
/base/request/request/test/unittest/cpp_test/fwkTest/src/
H A Dresponse_message_receiver_test.cpp409 int16_t msgType = 123; // 123 is except num in HWTEST_F() local
410 EXPECT_EQ(memcpy_s(except + pos, static_cast<size_t>(arraySize - pos), reinterpret_cast<void *>(&msgType), in HWTEST_F()
411 sizeof(msgType)), in HWTEST_F()
413 pos += sizeof(msgType); in HWTEST_F()
420 msgType = 0; in HWTEST_F()
424 EXPECT_EQ(ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, size), -1); in HWTEST_F()
427 EXPECT_EQ(ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, size), -1); in HWTEST_F()
433 EXPECT_EQ(ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, size), -1); in HWTEST_F()
436 EXPECT_EQ(ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, size), -1); in HWTEST_F()
439 EXPECT_EQ(ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySiz in HWTEST_F()
717 int16_t msgType = 123; // 123 is except num HWTEST_F() local
[all...]
/base/security/device_security_level/services/common/
H A Ddslm_msg_serialize.c75 int32_t msgType = DslmGetJsonFieldInt(handle, FIELD_MESSAGE); in ParseMessage() local
76 if (msgType < 0) { in ParseMessage()
88 packet->type = (uint32_t)msgType; in ParseMessage()
/base/telephony/call_manager/services/distributed_call/include/distributed_communication/
H A Ddistributed_data_controller.h71 virtual void HandleRecvMsg(int32_t msgType, const cJSON *msg) = 0;
81 std::string CreateMuteMsg(DistributedMsgType msgType, bool isMute);
82 std::string CreateMuteRingerMsg(DistributedMsgType msgType);
H A Ddistributed_data_source_controller.h38 void HandleRecvMsg(int32_t msgType, const cJSON *msg) override;
44 std::string CreateDataRspMsg(DistributedMsgType msgType, uint32_t itemType, const std::string &num,
H A Ddistributed_data_sink_controller.h38 void HandleRecvMsg(int32_t msgType, const cJSON *msg) override;
43 std::string CreateDataReqMsg(DistributedMsgType msgType, uint32_t itemType, const std::string &num);
/base/telephony/sms_mms/frameworks/native/mms/src/
H A Dmms_body.cpp63 unsigned char msgType = 0; in DecodeMmsBody() local
64 if (!header.GetOctetValue(MMS_MESSAGE_TYPE, msgType)) { in DecodeMmsBody()
69 if (msgType != MMS_MSGTYPE_SEND_REQ && msgType != MMS_MSGTYPE_RETRIEVE_CONF) { in DecodeMmsBody()
/base/startup/appspawn/test/unittest/devicedebug_test/
H A Ddevicedebug_stub.c58 int AppSpawnReqMsgCreateStub(AppSpawnMsgType msgType, const char *processName, AppSpawnReqMsgHandle *reqHandle) in AppSpawnReqMsgCreateStub() argument
60 (void)msgType; in AppSpawnReqMsgCreateStub()
/base/startup/appspawn/interfaces/innerkits/client/
H A Dappspawn_msg.c44 if (reqNode->msg->msgType == MSG_GET_RENDER_TERMINATION_STATUS) { in CheckMsg()
252 static int CreateBaseMsg(AppSpawnReqMsgNode *reqNode, uint32_t msgType, const char *processName) in CreateBaseMsg() argument
261 reqNode->msg->msgType = msgType; in CreateBaseMsg()
269 APPSPAWN_CHECK_ONLY_EXPER(msgType == MSG_APP_SPAWN || msgType == MSG_SPAWN_NATIVE_PROCESS, return 0); in CreateBaseMsg()
290 static AppSpawnReqMsgNode *CreateAppSpawnReqMsg(uint32_t msgType, const char *processName) in CreateAppSpawnReqMsg() argument
304 int ret = CreateBaseMsg(reqNode, msgType, processName); in CreateAppSpawnReqMsg()
308 reqNode->reqId, msgType, processName); in CreateAppSpawnReqMsg()
342 int AppSpawnReqMsgCreate(AppSpawnMsgType msgType, cons argument
[all...]
/base/request/request/frameworks/native/src/
H A Dresponse_message_receiver.cpp232 int32_t &msgId, int16_t &msgType, int16_t &bodySize, char *&parcel, int32_t &size) in MsgHeaderParcel()
246 if (Int16FromParcel(msgType, parcel, size) != 0) { in MsgHeaderParcel()
382 int16_t msgType = -1; in OnReadable() local
384 MsgHeaderParcel(msgId, msgType, headerSize, leftBuf, leftLen); in OnReadable()
393 if (msgType == MessageType::HTTP_RESPONSE) { in OnReadable()
400 } else if (msgType == MessageType::NOTIFY_DATA) { in OnReadable()
231 MsgHeaderParcel( int32_t &msgId, int16_t &msgType, int16_t &bodySize, char *&parcel, int32_t &size) MsgHeaderParcel() argument
/base/useriam/user_auth_framework/services/context/src/
H A Dremote_auth_service.cpp119 int32_t msgType; in OnMessage() local
120 bool getMsgTypeRet = request->GetInt32Value(Attributes::ATTR_MSG_TYPE, msgType); in OnMessage()
123 IAM_LOGI("msgType is %{public}d", msgType); in OnMessage()
125 switch (msgType) { in OnMessage()
142 IAM_LOGE("unsupported request type: %{public}d", msgType); in OnMessage()
H A Dremote_auth_invoker_context.cpp133 int32_t msgType; in OnMessage() local
134 IF_FALSE_LOGE_AND_RETURN(request->GetInt32Value(Attributes::ATTR_MSG_TYPE, msgType)); in OnMessage()
137 switch (msgType) { in OnMessage()
145 IAM_LOGE("%{public}s invalid msgType:%{public}d", GetDescription(), msgType); in OnMessage()
/base/request/request/test/fuzztest/downloaduploadmanager_fuzzer/
H A Ddownloaduploadmanager_fuzzer.cpp645 int16_t msgType = 123; // 123 is except num in ResponseMessageFuzzTestMsgHeaderParcel() local
647 except + pos, static_cast<size_t>(arraySize - pos), reinterpret_cast<void *>(&msgType), sizeof(msgType)); in ResponseMessageFuzzTestMsgHeaderParcel()
651 pos += sizeof(msgType); in ResponseMessageFuzzTestMsgHeaderParcel()
660 msgType = 0; in ResponseMessageFuzzTestMsgHeaderParcel()
664 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
667 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
675 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
678 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySize, parcel, testSize); in ResponseMessageFuzzTestMsgHeaderParcel()
681 ResponseMessageReceiver::MsgHeaderParcel(msgId, msgType, bodySiz in ResponseMessageFuzzTestMsgHeaderParcel()
[all...]
/base/startup/appspawn/test/unittest/
H A Dapp_spawn_test_helper.cpp478 AppSpawnReqMsgHandle AppSpawnTestHelper::CreateMsg(AppSpawnClientHandle handle, uint32_t msgType, int base) in CreateMsg() argument
481 int ret = AppSpawnReqMsgCreate(static_cast<AppSpawnMsgType>(msgType), processName_.c_str(), &reqHandle); in CreateMsg()
483 APPSPAWN_CHECK_ONLY_EXPER(msgType == MSG_APP_SPAWN || msgType == MSG_SPAWN_NATIVE_PROCESS, return reqHandle); in CreateMsg()
574 msgNode->msgHeader.magic, msgNode->msgHeader.msgType, in GetAppProperty()
617 int AppSpawnTestHelper::CreateSendMsg(std::vector<uint8_t> &buffer, uint32_t msgType, uint32_t &msgLen, in CreateSendMsg() argument
625 msg->msgType = msgType; in CreateSendMsg()
H A Dapp_spawn_test_helper.h111 AppSpawnReqMsgHandle CreateMsg(AppSpawnClientHandle handle, uint32_t msgType = MSG_APP_SPAWN, int base = 0);
116 int CreateSendMsg(std::vector<uint8_t> &buffer, uint32_t msgType, uint32_t &msgLen,
/base/msdp/device_status/services/interaction/drag/include/
H A Dstate_change_notify.h39 MessageType msgType { MessageType::NOTIFY_NONE };
/base/startup/init/test/systest/
H A Dloop_systest.h111 uint32_t msgType; member
/base/startup/appspawn/modules/module_engine/include/
H A Dappspawn_msg.h123 uint32_t msgType; member

Completed in 15 milliseconds

123