Home
last modified time | relevance | path

Searched refs:msgType (Results 1 – 25 of 156) sorted by relevance

1234567

/ohos5.0/base/startup/appspawn/test/fuzztest/appspawnclient_fuzzer/
H A Dappspawnclient_fuzzer.cpp45 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgCreate() local
62 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgAddStringInfo() local
78 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnTerminateMsgCreate() local
95 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnClientSendMsg() local
110 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgFree() local
125 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgSetBundleInfo() local
143 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgSetAppFlag() local
160 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgSetAppDacInfo() local
177 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgSetAppDomainInfo() local
195 AppSpawnMsgType msgType = static_cast<AppSpawnMsgType>(size); in FuzzAppSpawnReqMsgSetAppInternetPermissionInfo() local
[all …]
/ohos5.0/drivers/peripheral/usb/net/include/
H A Drndis_rawapi.h63 __le32 msgType; /* RNDIS_MSG_* */ member
72 __le32 msgType; /* RNDIS_MSG_PACKET */ member
89 __le32 msgType; /* RNDIS_MSG_INIT */ member
116 __le32 msgType; /* RNDIS_MSG_HALT */ member
123 __le32 msgType; /* RNDIS_MSG_QUERY */ member
140 __le32 msgType; /* RNDIS_MSG_QUERY_C */ member
150 __le32 msgType; /* RNDIS_MSG_SET */ member
161 __le32 msgType; /* RNDIS_MSG_SET_C */ member
169 __le32 msgType; /* RNDIS_MSG_RESET */ member
176 __le32 msgType; /* RNDIS_MSG_RESET_C */ member
[all …]
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/
H A Dclient_trans_file.c41 switch (msgType) { in NotifySendResult()
166 switch (msgType) { in NotifySocketSendResult()
201 if (msgData == NULL || msgType == DFILE_ON_BIND || msgType == DFILE_ON_SESSION_IN_PROGRESS || in IsParmasValid()
210 DFileMsgType msgType, int32_t sessionId) in FileSendErrorEvent() argument
230 if (!IsParmasValid(msgType, msgData)) { in FileSendListener()
266 if (msgType == DFILE_ON_CONNECT_FAIL || msgType == DFILE_ON_FATAL_ERROR) { in FileSendListener()
289 switch (msgType) { in NotifyRecvResult()
322 switch (msgType) { in NotifySocketRecvResult()
358 DFileMsgType msgType, int32_t sessionId) in FileRecvErrorEvent() argument
378 if (!IsParmasValid(msgType, msgData)) { in FileReceiveListener()
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/file/
H A Dtrans_sdk_file_test.cpp419 DFileMsgType msgType = DFILE_ON_BIND; variable
455 msgType = DFILE_ON_BIND;
469 msgType = DFILE_ON_FILE_SEND_SUCCESS;
472 msgType = DFILE_ON_FILE_SEND_FAIL;
475 msgType = DFILE_ON_TRANS_IN_PROGRESS;
481 msgType = DFILE_ON_CONNECT_FAIL;
484 msgType = DFILE_ON_FATAL_ERROR;
522 msgType = DFILE_ON_TRANS_IN_PROGRESS;
528 msgType = DFILE_ON_CONNECT_SUCCESS;
531 msgType = DFILE_ON_CONNECT_FAIL;
[all …]
/ohos5.0/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()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_fsm.c499 (void)msgType; in OnProcessSendOnce()
548 (void)msgType; in OnSendOneHbBegin()
572 (void)msgType; in OnSendOneHbEnd()
599 (void)msgType; in OnStartHbProcess()
616 (void)msgType; in OnReStartHbProcess()
631 (void)msgType; in OnStopHbByType()
664 (void)msgType; in OnSetMediumParam()
682 (void)msgType; in OnUpdateSendInfo()
714 switch (msgType) { in OnTransHbFsmState()
939 (void)msgType; in OnCheckDevStatus()
[all …]
/ohos5.0/drivers/peripheral/usb/net/src/
H A Drndis_rawapi.c175 switch (msgType) { in UsbnetHostHandleNonRsp()
210 uint32_t msgType = CPU_TO_LE32(buf->msgType); in UsbnetHostHandleMsg() local
217 msgType, msgLen, status, requestId); in UsbnetHostHandleMsg()
219 if (msgType == rsp) { in UsbnetHostHandleMsg()
255 uint32_t msgType = CPU_TO_LE32(buf->msgType); in HostRndisCommand() local
259 if (msgType != RNDIS_MSG_HALT && msgType != RNDIS_MSG_RESET) { in HostRndisCommand()
335 uq.get->msgType = CPU_TO_LE32(RNDIS_MSG_QUERY); in HostRndisQuery()
499 g_u.init->msgType = CPU_TO_LE32(RNDIS_MSG_INIT); in HostRndisInitUnion()
520 g_u.set->msgType = CPU_TO_LE32(RNDIS_MSG_SET); in HostRndisEnableDataTransfers()
592 g_u.halt->msgType = CPU_TO_LE32(RNDIS_MSG_HALT); in HostRndisBind()
[all …]
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/
H A Dmessage_handler.cpp35 msgHdr_.msgType = info.msgType; in MessageHandler()
52 head->msgType = htole16(msgHdr_.msgType); in PackData()
98 msgHdr_.msgType = le16toh(head->msgType); in UnPackData()
170 return msgHdr_.msgType; in GetMsgType()
H A Dfile_transfer_manager.cpp50 .msgType = MSG_DOWNLOAD_FILE_REQ, in DownloadFileFromRemoteDevice()
94 .msgType = MSG_DOWNLOAD_FILE_RSP, in HandleDownloadFileRequest()
141 auto msgType = msgHandler.GetMsgType(); in OnMessageHandle() local
142 if (msgType == MSG_DOWNLOAD_FILE_REQ) { in OnMessageHandle()
144 } else if (msgType == MSG_DOWNLOAD_FILE_RSP) { in OnMessageHandle()
146 } else if (msgType == MSG_FINISH_FILE_RECV) { in OnMessageHandle()
149 LOGE("error msg type:%{public}d", msgType); in OnMessageHandle()
161 MessageInputInfo info = {.msgType = MSG_FINISH_FILE_RECV}; in OnFileRecvHandle()
/ohos5.0/base/request/request/test/unittest/cpp_test/fwkTest/src/
H A Dresponse_message_receiver_test.cpp409 int16_t msgType = 123; // 123 is except num variable
411 sizeof(msgType)),
413 pos += sizeof(msgType);
420 msgType = 0;
717 int16_t msgType = 123; // 123 is except num variable
719 sizeof(msgType)),
722 pos += sizeof(msgType);
731 msgType = MessageType::HTTP_RESPONSE;
733 reinterpret_cast<void *>(&msgType), sizeof(msgType)),
737 msgType = MessageType::NOTIFY_DATA;
[all …]
/ohos5.0/foundation/communication/nfc/services/src/tag/
H A Dtag_dispatcher.cpp78 int msgType = NDEF_TYPE_NORMAL; in HandleNdefDispatch() local
81 ndefCbRes_ = ndefCb_->OnNdefMsgDiscovered(tagUid, ndef, msgType); in HandleNdefDispatch()
90 msgType = NDEF_TYPE_BT; in HandleNdefDispatch()
105 if (msgType == NDEF_TYPE_NORMAL) { in HandleNdefDispatch()
108 msgType = NDEF_TYPE_WIFI; in HandleNdefDispatch()
114 KITS::NfcSdkCommon::CodeMiddlePart(tagUid).c_str(), msgType); in HandleNdefDispatch()
116 ndefCbRes_ = ndefCb_->OnNdefMsgDiscovered(tagUid, ndef, msgType); in HandleNdefDispatch()
127 if (msgType == NDEF_TYPE_BT) { in HandleNdefDispatch()
134 if (msgType == NDEF_TYPE_WIFI) { in HandleNdefDispatch()
/ohos5.0/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()
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()
157 … messageVersion_, messageSeq_, connectionName_.c_str(), msgType, isAck_, srcEndPoint_.c_str(), in ParseMessage()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/utils/src/
H A Dlnn_state_machine.c238 int32_t msgType; in RemoveMessageFunc() local
243 msgType = (int32_t)(intptr_t)para; in RemoveMessageFunc()
244 if (msg->what == FSM_CTRL_MSG_DATA && (int32_t)msg->arg1 == msgType) { in RemoveMessageFunc()
245 LNN_LOGI(LNN_STATE, "remove fsm data msgType=%{public}d", msgType); in RemoveMessageFunc()
311 int32_t LnnFsmPostMessage(FsmStateMachine *fsm, uint32_t msgType, void *data) in LnnFsmPostMessage() argument
316 return PostMessageToFsm(fsm, FSM_CTRL_MSG_DATA, msgType, 0, data); in LnnFsmPostMessage()
319 int32_t LnnFsmPostMessageDelay(FsmStateMachine *fsm, uint32_t msgType, in LnnFsmPostMessageDelay() argument
327 msg = CreateFsmHandleMsg(fsm, FSM_CTRL_MSG_DATA, msgType, 0, data); in LnnFsmPostMessageDelay()
345 int32_t LnnFsmRemoveMessage(FsmStateMachine *fsm, int32_t msgType) in LnnFsmRemoveMessage() argument
351 RemoveMessageFunc, (void *)(intptr_t)msgType); in LnnFsmRemoveMessage()
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_session_fsm_test.cpp424 int32_t msgType = FSM_MSG_RECV_DEVICE_ID; variable
432 msgType = FSM_MSG_RECV_AUTH_DATA;
433 ret = DeviceAuthStateProcess(&authFsm.fsm, msgType, para2);
438 msgType = FSM_MSG_SAVE_SESSION_KEY;
439 ret = DeviceAuthStateProcess(&authFsm.fsm, msgType, para3);
444 msgType = FSM_MSG_AUTH_ERROR;
445 ret = DeviceAuthStateProcess(&authFsm.fsm, msgType, para4);
460 int32_t msgType = FSM_MSG_AUTH_FINISH; variable
468 msgType = FSM_MSG_UNKNOWN;
469 ret = DeviceAuthStateProcess(&authFsm.fsm, msgType, para2);
[all …]
H A Dauth_other_test.cpp784 int32_t msgType = 1; variable
958 int32_t msgType = 1; variable
966 ret = SyncDevInfoStateProcess(testFsm, msgType, NULL);
969 msgType = FSM_MSG_AUTH_TIMEOUT;
970 ret = SyncDevInfoStateProcess(testFsm, msgType, NULL);
971 msgType = FSM_MSG_RECV_DEVICE_INFO;
972 ret = SyncDevInfoStateProcess(testFsm, msgType, NULL);
975 msgType = FSM_MSG_RECV_CLOSE_ACK;
976 ret = SyncDevInfoStateProcess(testFsm, msgType, NULL);
979 msgType = FSM_MSG_RECV_AUTH_DATA;
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/utils/include/
H A Dlnn_state_machine.h39 typedef bool (*StateProcessFunc)(struct tagFsmStateMachine *fsm, int32_t msgType, void *para);
74 int32_t LnnFsmPostMessage(FsmStateMachine *fsm, uint32_t msgType, void *data);
75 int32_t LnnFsmPostMessageDelay(FsmStateMachine *fsm, uint32_t msgType, void *data, uint64_t delayMi…
80 int32_t LnnFsmRemoveMessage(FsmStateMachine *fsm, int32_t msgType);
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_fsm.c159 if ((msgType != FSM_MSG_AUTH_TIMEOUT && msgType != FSM_MSG_DEVICE_NOT_TRUSTED && in TranslateToAuthFsm()
160msgType != FSM_MSG_DEVICE_DISCONNECTED && msgType != FSM_MSG_STOP_AUTH_FSM) && para == NULL) { in TranslateToAuthFsm()
544 switch (msgType) { in HandleCommonMsg()
575 authFsm->authSeq, msgType); in HandleCommonMsg()
1011 authFsm->authSeq, FsmMsgTypeToStr(msgType)); in SyncNegotiationStateProcess()
1012 switch (msgType) { in SyncNegotiationStateProcess()
1038 authFsm->authSeq, FsmMsgTypeToStr(msgType)); in SyncDevIdStateProcess()
1039 switch (msgType) { in SyncDevIdStateProcess()
1255 authFsm->authSeq, FsmMsgTypeToStr(msgType)); in DeviceAuthStateProcess()
1256 switch (msgType) { in DeviceAuthStateProcess()
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile_transfer.c170 if (*msgType != DFILE_TRANS_MSG_FILE_SENT && *msgType != DFILE_TRANS_MSG_FILE_RECEIVED) { in ReviewSuccessMsg()
173 if (*msgType == DFILE_TRANS_MSG_FILE_SENT) { in ReviewSuccessMsg()
189 if (*msgType == DFILE_TRANS_MSG_FILE_RECEIVED) { in ReviewSuccessMsg()
234 switch (msgType) { in NotifyTransMsg()
375 if (msgType != FILE_MANAGER_TRANS_IN_PROGRESS) { in FileManagerSenderMsgHandler()
377 … dFileTrans->transId, fileId, msgType, (msgType == FILE_MANAGER_SEND_FAIL) ? msg->errorCode : 0); in FileManagerSenderMsgHandler()
380 if (msgType == FILE_MANAGER_TRANS_IN_PROGRESS) { in FileManagerSenderMsgHandler()
389 if (msgType == FILE_MANAGER_SEND_FAIL) { in FileManagerSenderMsgHandler()
717 if (msgType != FILE_MANAGER_RECEIVE_SUCCESS) { in FileManagerReceiverMsgHandler()
719 …dFileTrans->transId, fileId, msgType, (msgType == FILE_MANAGER_RECEIVE_FAIL) ? msg->errorCode : 0); in FileManagerReceiverMsgHandler()
[all …]
H A Dnstackx_dfile_session.c226 (msgType != DFILE_TRANS_MSG_FILE_RECEIVED && msgType != DFILE_TRANS_MSG_FILE_RECEIVE_FAIL && in UpdateMsgProcessInfo()
227 msgType != DFILE_TRANS_MSG_FILE_SEND_FAIL && msgType != DFILE_TRANS_MSG_FILE_SENT)) { in UpdateMsgProcessInfo()
233 if (msgType == DFILE_TRANS_MSG_FILE_RECEIVED || msgType == DFILE_TRANS_MSG_FILE_SENT) { in UpdateMsgProcessInfo()
249 if (msgType == DFILE_TRANS_MSG_FILE_SENT) { in UpdateMsgProcessInfo()
270 if (msgType != DFILE_TRANS_MSG_FILE_SENT && msgType != DFILE_TRANS_MSG_END) { in CalculateSessionTransferRate()
312 if (msgType == DFILE_TRANS_MSG_FILE_RECEIVE_FAIL || msgType == DFILE_TRANS_MSG_FILE_SENT || in CheckTransDone()
313 msgType == DFILE_TRANS_MSG_FILE_SEND_FAIL || msgType == DFILE_TRANS_MSG_END) { in CheckTransDone()
344 switch (msgType) { in DTransMsgReceiver()
375 CheckTransDone(session, dFileTrans, msgType); in DTransMsgReceiver()
1997 if (msgType == FILE_MANAGER_INNER_ERROR) { in FileManagerMsgHandle()
[all …]
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/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 … 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, const char *processName, AppSpawnReqMsgHandle *re… in AppSpawnReqMsgCreate() argument
345 APPSPAWN_CHECK(msgType < MAX_TYPE_INVALID, in AppSpawnReqMsgCreate()
346 … return APPSPAWN_MSG_INVALID, "Invalid message type %{public}u %{public}s", msgType, processName); in AppSpawnReqMsgCreate()
[all …]
/ohos5.0/foundation/filemanagement/dfs_service/test/fuzztest/transportmsghandle_fuzzer/
H A Dtransportmsghandle_fuzzer.cpp36 uint16_t msgType = fuzzData.GetData<uint16_t>(); in DoSomethingInterestingWithMyAPI() local
50 .msgType = msgType, in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/authentication/
H A Dauth_message_processor.cpp105 std::string AuthMessageProcessor::CreateSimpleMessage(int32_t msgType) in CreateSimpleMessage() argument
107 LOGI("AuthMessageProcessor::CreateSimpleMessage start. msgType is %{public}d", msgType); in CreateSimpleMessage()
110 jsonObj[TAG_MSG_TYPE] = msgType; in CreateSimpleMessage()
111 switch (msgType) { in CreateSimpleMessage()
277 int32_t msgType = jsonObject[TAG_MSG_TYPE].get<int32_t>(); in ParseMessage() local
278 authResponseContext_->msgType = msgType; in ParseMessage()
279 … LOGI("AuthMessageProcessor::ParseMessage message type %{public}d", authResponseContext_->msgType); in ParseMessage()
280 switch (msgType) { in ParseMessage()
607 std::string AuthMessageProcessor::CreateDeviceAuthMessage(int32_t msgType, const uint8_t *data, uin… in CreateDeviceAuthMessage() argument
609 LOGI("CreateDeviceAuthMessage start, msgType %{public}d.", msgType); in CreateDeviceAuthMessage()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_connection_fsm.c1281 FreeUnhandledMessage(msgType, para); in AuthStateProcess()
1287 switch (msgType) { in AuthStateProcess()
1304 FreeUnhandledMessage(msgType, para); in AuthStateProcess()
1447 FreeUnhandledMessage(msgType, para); in CleanInvalidConnStateProcess()
1453 connFsm->id, msgType); in CleanInvalidConnStateProcess()
1454 switch (msgType) { in CleanInvalidConnStateProcess()
1474 FreeUnhandledMessage(msgType, para); in CleanInvalidConnStateProcess()
1543 FreeUnhandledMessage(msgType, para); in OnlineStateProcess()
1549 switch (msgType) { in OnlineStateProcess()
1649 FreeUnhandledMessage(msgType, para); in LeavingStateProcess()
[all …]

1234567