Lines Matching refs:contextMsg
160 auto contextMsg = std::make_shared<ContextEventMsg>();
161 contextMsg->type = EventType::EVENT_CONTEXTMGR_CREATE;
162 contextMsg->toMgr = ModuleType::MODULE_CONTEXT;
165 event.eventMsg = contextMsg;
170 contextId = contextMsg->dstId;
182 auto contextMsg = std::make_shared<ContextEventMsg>();
183 contextMsg->type = EventType::EVENT_CONTEXTMGR_DESTROY;
184 contextMsg->toMgr = ModuleType::MODULE_CONTEXT;
185 contextMsg->dstId = contextId;
187 int32_t ret = NotifyEvent(contextMsg);
200 auto contextMsg = std::make_shared<ContextEventMsg>();
201 contextMsg->type = EventType::EVENT_CONTEXTMGR_AGENT_CREATE;
202 contextMsg->toMgr = ModuleType::MODULE_CONTEXT;
203 contextMsg->dstId = contextId;
204 contextMsg->agentType = agentType;
205 contextMsg->className = std::move(sessionName);
206 contextMsg->agentId = agentId;
209 event.eventMsg = contextMsg;
214 SHARING_LOGI("notify create agent ret: %{public}d agentId: %{public}u.", ret, contextMsg->agentId);
216 if ((agentId == contextMsg->agentId) || contextMsg->agentId == INVALID_ID) {
219 agentId = contextMsg->agentId;
221 contextId = contextMsg->dstId;
233 auto contextMsg = std::make_shared<AgentEventMsg>();
234 contextMsg->type = EventType::EVENT_CONTEXT_AGENT_DESTROY;
235 contextMsg->toMgr = ModuleType::MODULE_CONTEXT;
236 contextMsg->dstId = contextId;
237 contextMsg->agentId = agentId;
239 int32_t ret = NotifyEvent(contextMsg);