Home
last modified time | relevance | path

Searched refs:msgInfo (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/multimedia/media_lite/services/player_lite/impl/player_control/player/
H A Dliteplayer_state_machine.cpp121 int PlayerControlState::HandleMessage(const MsgInfo& msgInfo) in HandleMessage() argument
126 if (!curState_->EventValidAtCurState((PlayerControlMsgType)msgInfo.what)) { in HandleMessage()
127 MEDIA_ERR_LOG( "invalid event :%d at current state: %s", msgInfo.what, in HandleMessage()
132 switch (msgInfo.what) { in HandleMessage()
134 CHECK_NULL_RETURN(msgInfo.msgData, HI_ERR_PLAYERCONTROL_NULL_PTR, "msgData null"); in HandleMessage()
138 CHECK_NULL_RETURN(msgInfo.msgData, HI_ERR_PLAYERCONTROL_NULL_PTR, "msgData null"); in HandleMessage()
142 CHECK_NULL_RETURN(msgInfo.msgData, HI_ERR_PLAYERCONTROL_NULL_PTR, "msgData null"); in HandleMessage()
146 CHECK_NULL_RETURN(msgInfo.msgData, HI_ERR_PLAYERCONTROL_NULL_PTR, "msgData null"); in HandleMessage()
150 CHECK_NULL_RETURN(msgInfo.msgData, HI_ERR_PLAYERCONTROL_NULL_PTR, "msgData null"); in HandleMessage()
157 CHECK_NULL_RETURN(msgInfo.msgData, HI_ERR_PLAYERCONTROL_NULL_PTR, "msgData null"); in HandleMessage()
[all …]
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/src/
H A Djs_util_cooperate.cpp38 return GetResult(cb->env, cb->data.enableResult, cb->data.msgInfo); in GetEnableInfo()
45 return GetResult(cb->env, cb->data.startResult, cb->data.msgInfo); in GetStartInfo()
52 return GetResult(cb->env, cb->data.stopResult, cb->data.msgInfo); in GetStopInfo()
76 if (!GetErrMsg(msgInfo, errMsg)) { in GetResult()
81 int32_t errorCode = GetErrCode(msgInfo); in GetResult()
92 int32_t JsUtilCooperate::GetErrCode(const CoordinationMsgInfo &msgInfo) in GetErrCode() argument
94 switch (static_cast<CoordinationErrCode>(msgInfo.errCode)) { in GetErrCode()
108 return msgInfo.errCode; in GetErrCode()
112 bool JsUtilCooperate::GetErrMsg(const CoordinationMsgInfo &msgInfo, std::string &msg) in GetErrMsg() argument
114 auto iter = COOPERATE_MSG_MAP.find(msgInfo.msg); in GetErrMsg()
[all …]
H A Djs_cooperate_manager.cpp35 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) { in Enable() argument
36 this->EmitJsEnable(cb, networkId, msgInfo); in Enable()
58 …uto callback = [this, cb](const std::string &remoteNetworkId, const CoordinationMsgInfo &msgInfo) { in Start() argument
59 this->EmitJsStart(cb, remoteNetworkId, msgInfo); in Start()
75 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) { in Stop() argument
76 this->EmitJsStop(cb, networkId, msgInfo); in Stop()
H A Djs_event_cooperate_target.cpp51 const std::string &networkId, const CoordinationMsgInfo &msgInfo) in EmitJsEnable() argument
56 cb->data.enableResult = (msgInfo.msg == CoordinationMessage::PREPARE || in EmitJsEnable()
57 msgInfo.msg == CoordinationMessage::UNPREPARE); in EmitJsEnable()
58 cb->data.msgInfo = msgInfo; in EmitJsEnable()
80 const std::string &remoteNetworkId, const CoordinationMsgInfo &msgInfo) in EmitJsStart() argument
85 cb->data.startResult = (msgInfo.msg == CoordinationMessage::ACTIVATE_SUCCESS); in EmitJsStart()
86 cb->data.msgInfo = msgInfo; in EmitJsStart()
108 const std::string &networkId, const CoordinationMsgInfo &msgInfo) in EmitJsStop() argument
114 cb->data.msgInfo = msgInfo; in EmitJsStop()
258 item->data.msgInfo.msg = msg; in OnCoordinationMessage()
[all …]
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/
H A Djs_util.cpp38 return GetResult(cb->env, cb->data.prepareResult, cb->data.msgInfo); in GetPrepareInfo()
45 return GetResult(cb->env, cb->data.activateResult, cb->data.msgInfo); in GetActivateInfo()
52 return GetResult(cb->env, cb->data.deactivateResult, cb->data.msgInfo); in GetDeactivateInfo()
76 if (!GetErrMsg(msgInfo, errMsg)) { in GetResult()
80 int32_t errCode = GetErrCode(msgInfo); in GetResult()
92 bool JsUtil::GetErrMsg(const CoordinationMsgInfo &msgInfo, std::string &msg) in GetErrMsg() argument
94 auto iter = MSG_MAP.find(msgInfo.msg); in GetErrMsg()
100 switch (static_cast<CoordinationErrCode>(msgInfo.errCode)) { in GetErrMsg()
127 int32_t JsUtil::GetErrCode(const CoordinationMsgInfo &msgInfo) in GetErrCode() argument
129 switch (static_cast<CoordinationErrCode>(msgInfo.errCode)) { in GetErrCode()
[all …]
H A Djs_coordination_manager.cpp35 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) { in Prepare() argument
36 this->EmitJsPrepare(cb, networkId, msgInfo); in Prepare()
52 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) { in Unprepare() argument
53 this->EmitJsPrepare(cb, networkId, msgInfo); in Unprepare()
70 …uto callback = [this, cb](const std::string &remoteNetworkId, const CoordinationMsgInfo &msgInfo) { in Activate() argument
71 this->EmitJsActivate(cb, remoteNetworkId, msgInfo); in Activate()
89 auto callback = [this, cb](const std::string &networkId, const CoordinationMsgInfo &msgInfo) { in Deactivate() argument
90 this->EmitJsDeactivate(cb, networkId, msgInfo); in Deactivate()
H A Djs_event_target.cpp49 const CoordinationMsgInfo &msgInfo) in EmitJsPrepare() argument
54 cb->data.prepareResult = (msgInfo.msg == CoordinationMessage::PREPARE || in EmitJsPrepare()
55 msgInfo.msg == CoordinationMessage::UNPREPARE); in EmitJsPrepare()
56 cb->data.msgInfo = msgInfo; in EmitJsPrepare()
78 const CoordinationMsgInfo &msgInfo) in EmitJsActivate() argument
83 cb->data.activateResult = (msgInfo.msg == CoordinationMessage::ACTIVATE_SUCCESS); in EmitJsActivate()
84 cb->data.msgInfo = msgInfo; in EmitJsActivate()
106 const CoordinationMsgInfo &msgInfo) in EmitJsDeactivate() argument
111 cb->data.deactivateResult = (msgInfo.msg == CoordinationMessage::DEACTIVATE_SUCCESS); in EmitJsDeactivate()
112 cb->data.msgInfo = msgInfo; in EmitJsDeactivate()
/ohos5.0/foundation/multimedia/media_lite/services/player_lite/impl/player_control/player/fsm/src/
H A Dmmessage_pool.cpp148 MsgInfo *msgInfo = nullptr; in GetMsg() local
160 msgInfo = *msgIter; in GetMsg()
162 if (msgInfo->privDate == nullptr || in GetMsg()
169 msgInfo->what = msg.what; in GetMsg()
170 msgInfo->arg1 = msg.arg1; in GetMsg()
171 msgInfo->arg2 = msg.arg2; in GetMsg()
185 if (msgInfo == nullptr) { in GetMsg()
192 m_msgBusyList.push_back(msgInfo); in GetMsg()
196 return msgInfo; in GetMsg()
207 MsgInfo *msgInfo = *msgIter; in PutMsg() local
[all …]
H A Dmessage_looper.cpp260 MsgInfo *msgInfo = m_msgPool->GetMsg(msg); in Post() local
261 if (msgInfo == nullptr) { in Post()
266 msgInfo->isNeedReply = false; in Post()
267 InsertQueue(*msgInfo, delayUs); in Post()
/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Ddhcp_message_sim.cpp295 DhcpMsgInfo msgInfo; in DhcpDiscover() local
296 if (!InitMessage(ctx, &msgInfo, DHCPDISCOVER)) { in DhcpDiscover()
300 if (SendDhcpMessage(ctx, &msgInfo) != RET_SUCCESS) { in DhcpDiscover()
313 DhcpMsgInfo msgInfo; in DhcpRequest() local
314 if (!InitMessage(ctx, &msgInfo, DHCPREQUEST)) { in DhcpRequest()
331 DhcpMsgInfo msgInfo; in DhcpInform() local
332 if (!InitMessage(ctx, &msgInfo, DHCPINFORM)) { in DhcpInform()
349 DhcpMsgInfo msgInfo; in DhcpDecline() local
350 if (!InitMessage(ctx, &msgInfo, DHCPDECLINE)) { in DhcpDecline()
367 DhcpMsgInfo msgInfo; in DhcpRelease() local
[all …]
H A Ddhcp_s_server_test.cpp146 DhcpMsgInfo msgInfo = {{0}, 0, {0}}; variable
151 ret = ReceiveDhcpMessage(1, &msgInfo); // message length error
153 ret = ReceiveDhcpMessage(1, &msgInfo); // dhcp message type error
155 msgInfo.packet.hlen = 128;
156 ret = ReceiveDhcpMessage(1, &msgInfo); // hlen error
158 msgInfo.packet.hlen = 16;
159 msgInfo.packet.op = BOOTREPLY;
160 ret = ReceiveDhcpMessage(1, &msgInfo); // client op type error
162 msgInfo.packet.op = BOOTREQUEST;
166 msgInfo.packet.chaddr[i] = testMac1[i];
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/autotest/src/
H A Dtcp_socket_manager.cpp25 static void StartTest(std::vector<std::shared_ptr<TestMsgInfo>> msgInfo) in StartTest() argument
27 AutoTestManager::GetInstance()->StartTest(msgInfo); in StartTest()
207 std::shared_ptr<TestMsgInfo> msgInfo = std::make_shared<TestMsgInfo>(); in OnGetTestInfo() local
209 OnGetTestInfo(arrobj, msgInfo); in OnGetTestInfo()
210 testMsgInfo.push_back(msgInfo); in OnGetTestInfo()
218 …id TcpSocketClientManager::OnGetTestInfo(QJsonObject arrobj, std::shared_ptr<TestMsgInfo>& msgInfo) in OnGetTestInfo() argument
221 msgInfo->className = arrobj.value(JSON_VALUE_CLASS_NAME.c_str()).toString().toStdString(); in OnGetTestInfo()
228 OnGetPageNav(array, msgInfo->pageNav); in OnGetTestInfo()
236 OnGetTestSetps(array, msgInfo->steps); in OnGetTestInfo()
H A Dauto_test_manager.cpp81 void AutoTestManager::StartTest(std::vector<std::shared_ptr<TestMsgInfo>> msgInfo) in StartTest() argument
83 printf("AutoTestManager::StartTest----msgInfo.size=[%d]\n", msgInfo.size()); in StartTest()
89 autoTest_->RunTest(msgInfo); in StartTest()
H A Dui_auto_test.cpp148 void UIAutoTest::RunTest(std::vector<std::shared_ptr<TestMsgInfo>> msgInfo) in RunTest() argument
150 printf("UIAutoTest::RunTest----testInfo.size=[%d]\n", msgInfo.size()); in RunTest()
152 for (auto it: msgInfo) { in RunTest()
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/include/
H A Djs_util_cooperate.h61 CoordinationMsgInfo msgInfo; member
86 static napi_value GetResult(napi_env env, bool result, const CoordinationMsgInfo &msgInfo);
87 static int32_t GetErrCode(const CoordinationMsgInfo &msgInfo);
88 static bool GetErrMsg(const CoordinationMsgInfo &msgInfo, std::string &msg);
H A Djs_event_cooperate_target.h51 const std::string &networkId, const CoordinationMsgInfo &msgInfo);
53 const std::string &remoteNetworkId, const CoordinationMsgInfo &msgInfo);
55 const std::string &networkId, const CoordinationMsgInfo &msgInfo);
/ohos5.0/base/customization/enterprise_device_management/common/native/src/
H A Dhisysevent_adapter.cpp23 void ReportEdmEvent(ReportType reportType, const std::string &apiName, const std::string &msgInfo) in ReportEdmEvent() argument
28 "APINAME", apiName, "MSG", msgInfo); in ReportEdmEvent()
36 apiName.c_str(), msgInfo.c_str()); in ReportEdmEvent()
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/coordination/include/
H A Djs_util.h61 CoordinationMsgInfo msgInfo; member
102 static napi_value GetResult(napi_env env, bool result, const CoordinationMsgInfo &msgInfo);
103 static bool GetErrMsg(const CoordinationMsgInfo &msgInfo, std::string &msg);
104 static int32_t GetErrCode(const CoordinationMsgInfo &msgInfo);
H A Djs_event_target.h47 const CoordinationMsgInfo &msgInfo);
49 const CoordinationMsgInfo &msgInfo);
51 const CoordinationMsgInfo &msgInfo);
/ohos5.0/base/customization/config_policy/frameworks/dfx/hisysevent_adapter/
H A Dhisysevent_adapter.cpp31 …ortConfigPolicyEvent(ReportType reportType, const std::string &apiName, const std::string &msgInfo) in ReportConfigPolicyEvent() argument
36 HiSysEvent::EventType::FAULT, "APINAME", apiName, "MSG", msgInfo); in ReportConfigPolicyEvent()
45 apiName.c_str(), msgInfo.c_str()); in ReportConfigPolicyEvent()
H A Dhisysevent_adapter.h28 …rtConfigPolicyEvent(ReportType reportType, const std::string &apiName, const std::string &msgInfo);
/ohos5.0/base/msdp/device_status/services/interaction/drag/src/
H A Dstate_change_notify.cpp30 [info] (auto msgInfo) { in AddNotifyMsg() argument
31 return *msgInfo == info; in AddNotifyMsg()
47 [info] (auto msgInfo) { in RemoveNotifyMsg() argument
48 return *msgInfo == info; in RemoveNotifyMsg()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
H A Dcommon_standard_bind_exchange.c178 Uint8Buff msgInfo = { msgInfoVal, msgInfoLen }; in GenerateSignInfo() local
179 if (memcpy_s(msgInfo.val, msgInfo.length, pakeParams->baseParams.challengeSelf.val, in GenerateSignInfo()
187 …if (memcpy_s(msgInfo.val + usedLen, msgInfo.length - usedLen, pakeParams->baseParams.challengePeer… in GenerateSignInfo()
195 if (memcpy_s(msgInfo.val + usedLen, msgInfo.length - usedLen, exchangeParams->authInfo.val, in GenerateSignInfo()
208 res = pakeParams->baseParams.loader->sign(&keyAliasParams, &msgInfo, alg, signInfo); in GenerateSignInfo()
214 HcFree(msgInfo.val); in GenerateSignInfo()
/ohos5.0/foundation/communication/dhcp/services/dhcp_server/include/
H A Ddhcp_s_server.h44 int ReceiveDhcpMessage(int sock, PDhcpMsgInfo msgInfo);
46 int ReceiveDhcpMessage(int sock, PDhcpMsgInfo msgInfo);
/ohos5.0/base/customization/enterprise_device_management/common/native/include/
H A Dhisysevent_adapter.h27 void ReportEdmEvent(ReportType reportType, const std::string &apiName, const std::string &msgInfo);

12