Home
last modified time | relevance | path

Searched refs:sess (Results 1 - 25 of 28) sorted by relevance

12

/foundation/multimodalinput/input/service/event_handler/src/
H A Danr_manager.cpp59 SessionPtr sess = udsServer_->GetSessionByPid(pid); in MarkProcessed() local
60 if (sess == nullptr) { in MarkProcessed()
63 MMI_HILOGE("The sess is null, return value is %{public}d", RET_ERR); in MarkProcessed()
67 std::list<int32_t> timerIds = sess->DelEvents(eventType, eventId); in MarkProcessed()
79 void ANRManager::RemoveTimers(SessionPtr sess) in RemoveTimers() argument
81 CHKPV(sess); in RemoveTimers()
82 std::vector<int32_t> DispatchTimerIds = sess->GetTimerIds(ANR_DISPATCH); in RemoveTimers()
89 std::vector<int32_t> MonitorTimerIds = sess->GetTimerIds(ANR_MONITOR); in RemoveTimers()
98 void ANRManager::RemoveTimersByType(SessionPtr sess, int32_t type) in RemoveTimersByType() argument
100 CHKPV(sess); in RemoveTimersByType()
114 AddTimer(int32_t type, int32_t id, int64_t currentTime, SessionPtr sess) AddTimer() argument
163 TriggerANR(int32_t type, int64_t time, SessionPtr sess) TriggerANR() argument
[all...]
/foundation/multimodalinput/input/service/event_handler/test/
H A Danr_manager_test.cpp74 SessionPtr sess; in HWTEST_F() local
75 ASSERT_NO_FATAL_FAILURE(ANRMgr->RemoveTimers(sess)); in HWTEST_F()
170 SessionPtr sess = std::shared_ptr<OHOS::MMI::UDSSession>(); in HWTEST_F() local
171 ASSERT_NO_FATAL_FAILURE(ANRMgr->AddTimer(type, id, currentTime, sess)); in HWTEST_F()
186 SessionPtr sess = std::shared_ptr<OHOS::MMI::UDSSession>(); in HWTEST_F() local
187 ASSERT_NO_FATAL_FAILURE(ANRMgr->AddTimer(type, id, currentTime, sess)); in HWTEST_F()
201 SessionPtr sess = std::shared_ptr<OHOS::MMI::UDSSession>(); in HWTEST_F() local
202 bool result = ANRMgr->TriggerANR(type, time, sess); in HWTEST_F()
229 * <br> if (sess->GetTokenType() != TokenType::TOKEN_HAP || sess
241 SessionPtr sess = std::make_shared<UDSSession>(programName, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
262 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
281 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
298 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
321 SessionPtr sess = std::make_shared<UDSSession>(programName, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
351 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/message_handle/include/
H A Dserver_msg_handler.h49 typedef std::function<int32_t(SessionPtr sess, NetPacket& pkt)> ServerMsgFun;
57 void OnMsgHandler(SessionPtr sess, NetPacket& pkt);
59 int32_t OnAddInputHandler(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType,
61 int32_t OnRemoveInputHandler(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType,
63 int32_t OnAddGestureMonitor(SessionPtr sess, InputHandlerType handlerType,
65 int32_t OnRemoveGestureMonitor(SessionPtr sess, InputHandlerType handlerType,
67 int32_t OnAddInputHandler(SessionPtr sess, InputHandlerType handlerType, std::vector<int32_t> actionsType);
68 int32_t OnRemoveInputHandler(SessionPtr sess, InputHandlerType handlerType, std::vector<int32_t> actionsType);
71 int32_t OnMarkConsumed(SessionPtr sess, int32_t eventId);
116 int32_t RegisterWindowStateErrorCallback(SessionPtr sess, NetPacke
[all...]
/foundation/multimodalinput/input/service/subscriber/test/
H A Dswitch_subscriber_handler_test.cpp132 auto sess = std::make_shared<UDSSession>( in HWTEST_F() local
134 ASSERT_NE(sess, nullptr); in HWTEST_F()
136 SUBSCRIBER_ID, sess, SwitchEvent::SwitchType::SWITCH_PRIVACY); in HWTEST_F()
159 auto sess = std::make_shared<UDSSession>( in HWTEST_F() local
161 ASSERT_NE(sess, nullptr); in HWTEST_F()
164 sess, SUBSCRIBER_ID, SwitchEvent::SwitchType::SWITCH_PRIVACY), RET_OK); in HWTEST_F()
206 auto sess = std::make_shared<UDSSession>( in HWTEST_F() local
208 ASSERT_NE(sess, nullptr); in HWTEST_F()
220 ASSERT_EQ(switchSubscriberHandler->SubscribeSwitchEvent(sess, SUBSCRIBER_ID, in HWTEST_F()
223 ASSERT_EQ(switchSubscriberHandler->UnsubscribeSwitchEvent(sess, SUBSCRIBER_I in HWTEST_F()
234 auto sess = std::make_shared<UDSSession>( HWTEST_F() local
259 auto sess = std::make_shared<UDSSession>( HWTEST_F() local
284 auto sess = std::make_shared<UDSSession>( HWTEST_F() local
343 auto sess = std::make_shared<UDSSession>( HWTEST_F() local
392 auto sess = std::make_shared<UDSSession>( HWTEST_F() local
[all...]
H A Dkey_subscriber_handler_test.cpp239 SessionPtr sess; in HWTEST_F() local
244 auto subscriber = std::make_shared<OHOS::MMI::KeySubscriberHandler::Subscriber>(1, sess, keyOption); in HWTEST_F()
268 SessionPtr sess = udsServer.GetSessionByPid(1); in HWTEST_F() local
270 ASSERT_EQ(keySubscriberHandler.SubscribeKeyEvent(sess, -1, keyOption), -1); in HWTEST_F()
273 ASSERT_NE(keySubscriberHandler.UnsubscribeKeyEvent(sess, 1), 0); in HWTEST_F()
343 SessionPtr sess; in HWTEST_F() local
345 int32_t ret = handler.SubscribeKeyEvent(sess, -1, keyOption); in HWTEST_F()
349 ret = handler.SubscribeKeyEvent(sess, 1, keyOption); in HWTEST_F()
363 SessionPtr sess; in HWTEST_F() local
364 int32_t ret = handler.RemoveSubscriber(sess, in HWTEST_F()
588 SessionPtr sess; HWTEST_F() local
740 SessionPtr sess = udsServer.GetSessionByPid(1); HWTEST_F() local
764 SessionPtr sess; HWTEST_F() local
784 SessionPtr sess; HWTEST_F() local
802 SessionPtr sess; HWTEST_F() local
838 SessionPtr sess; HWTEST_F() local
861 SessionPtr sess = udsServer.GetSessionByPid(1); HWTEST_F() local
901 SessionPtr sess; HWTEST_F() local
1124 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
1388 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
1729 SessionPtr sess; HWTEST_F() local
1784 SessionPtr sess; HWTEST_F() local
1827 SessionPtr sess; HWTEST_F() local
2127 SessionPtr sess; HWTEST_F() local
2145 SessionPtr sess; HWTEST_F() local
2181 SessionPtr sess; HWTEST_F() local
2217 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2257 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2276 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2297 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2356 SessionPtr sess; HWTEST_F() local
2382 SessionPtr sess; HWTEST_F() local
2404 SessionPtr sess; HWTEST_F() local
2435 SessionPtr sess; HWTEST_F() local
2465 SessionPtr sess; HWTEST_F() local
2487 SessionPtr sess; HWTEST_F() local
2513 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2531 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2550 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2569 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2591 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2613 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2634 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2661 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2681 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2701 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
2721 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/message_handle/src/
H A Dserver_msg_handler.cpp72 {MmiMessageId::DISPLAY_INFO, [this] (SessionPtr sess, NetPacket &pkt) { in Init()
73 return this->OnDisplayInfo(sess, pkt); }}, in Init()
75 {MmiMessageId::WINDOW_AREA_INFO, [this] (SessionPtr sess, NetPacket &pkt) { in Init()
76 return this->OnWindowAreaInfo(sess, pkt); }}, in Init()
78 {MmiMessageId::WINDOW_INFO, [this] (SessionPtr sess, NetPacket &pkt) { in Init()
79 return this->OnWindowGroupInfo(sess, pkt); }}, in Init()
80 {MmiMessageId::WINDOW_STATE_ERROR_CALLBACK, [this] (SessionPtr sess, NetPacket &pkt) { in Init()
81 return this->RegisterWindowStateErrorCallback(sess, pkt); }}, in Init()
83 {MmiMessageId::SCINFO_CONFIG, [this] (SessionPtr sess, NetPacket &pkt) { in Init()
84 return this->OnEnhanceConfig(sess, pk in Init()
97 OnMsgHandler(SessionPtr sess, NetPacket& pkt) OnMsgHandler() argument
510 OnDisplayInfo(SessionPtr sess, NetPacket &pkt) OnDisplayInfo() argument
559 OnWindowAreaInfo(SessionPtr sess, NetPacket &pkt) OnWindowAreaInfo() argument
577 OnWindowGroupInfo(SessionPtr sess, NetPacket &pkt) OnWindowGroupInfo() argument
607 RegisterWindowStateErrorCallback(SessionPtr sess, NetPacket &pkt) RegisterWindowStateErrorCallback() argument
617 OnEnhanceConfig(SessionPtr sess, NetPacket &pkt) OnEnhanceConfig() argument
645 OnAddInputHandler(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, int32_t priority, uint32_t deviceTags) OnAddInputHandler() argument
667 OnRemoveInputHandler(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, int32_t priority, uint32_t deviceTags) OnRemoveInputHandler() argument
690 OnAddInputHandler(SessionPtr sess, InputHandlerType handlerType, std::vector<int32_t> actionsType) OnAddInputHandler() argument
705 OnRemoveInputHandler(SessionPtr sess, InputHandlerType handlerType, std::vector<int32_t> actionsType) OnRemoveInputHandler() argument
723 OnAddGestureMonitor(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, TouchGestureType gestureType, int32_t fingers) OnAddGestureMonitor() argument
736 OnRemoveGestureMonitor(SessionPtr sess, InputHandlerType handlerType, HandleEventType eventType, TouchGestureType gestureType, int32_t fingers) OnRemoveGestureMonitor() argument
751 OnMarkConsumed(SessionPtr sess, int32_t eventId) OnMarkConsumed() argument
783 auto sess = server->GetSessionByPid(pid); OnSubscribeKeyEvent() local
794 auto sess = server->GetSessionByPid(pid); OnUnsubscribeKeyEvent() local
806 auto sess = server->GetSessionByPid(pid); OnSubscribeHotkey() local
817 auto sess = server->GetSessionByPid(pid); OnUnsubscribeHotkey() local
831 auto sess = server->GetSessionByPid(pid); OnSubscribeSwitchEvent() local
842 auto sess = server->GetSessionByPid(pid); OnUnsubscribeSwitchEvent() local
[all...]
/foundation/multimodalinput/input/service/subscriber/src/
H A Dkey_subscriber_handler.cpp106 SessionPtr sess, int32_t subscribeId, std::shared_ptr<KeyOption> keyOption) in SubscribeKeyEvent()
113 CHKPR(sess, ERROR_NULL_POINTER); in SubscribeKeyEvent()
127 keyOption->GetFinalKeyDownDuration(), sess->GetPid()); in SubscribeKeyEvent()
128 auto subscriber = std::make_shared<Subscriber>(subscribeId, sess, keyOption); in SubscribeKeyEvent()
146 int32_t KeySubscriberHandler::UnsubscribeKeyEvent(SessionPtr sess, int32_t subscribeId) in UnsubscribeKeyEvent() argument
148 CHKPR(sess, ERROR_NULL_POINTER); in UnsubscribeKeyEvent()
149 MMI_HILOGI("SubscribeId:%{public}d, pid:%{public}d", subscribeId, sess->GetPid()); in UnsubscribeKeyEvent()
150 int32_t ret = RemoveSubscriber(sess, subscribeId, true); in UnsubscribeKeyEvent()
152 ret = RemoveKeyGestureSubscriber(sess, subscribeId); in UnsubscribeKeyEvent()
157 int32_t KeySubscriberHandler::RemoveSubscriber(SessionPtr sess, int32_ argument
105 SubscribeKeyEvent( SessionPtr sess, int32_t subscribeId, std::shared_ptr<KeyOption> keyOption) SubscribeKeyEvent() argument
211 RemoveKeyGestureSubscriber(SessionPtr sess, int32_t subscribeId) RemoveKeyGestureSubscriber() argument
285 SubscribeHotkey( SessionPtr sess, int32_t subscribeId, std::shared_ptr<KeyOption> keyOption) SubscribeHotkey() argument
312 UnsubscribeHotkey(SessionPtr sess, int32_t subscribeId) UnsubscribeHotkey() argument
606 OnSessionDelete(SessionPtr sess) OnSessionDelete() argument
695 auto sess = item->sess_; IsMatchForegroundPid() local
728 auto sess = subscriber->sess_; NotifyKeyDownRightNow() local
751 auto sess = subscriber->sess_; NotifyKeyDownDelay() local
772 auto sess = subscriber->sess_; NotifyKeyUpSubscriber() local
801 auto sess = subscriber->sess_; NotifySubscriber() local
979 auto sess = subscriber->sess_; SubscriberNotifyNap() local
[all...]
H A Dswitch_subscriber_handler.cpp76 int32_t SwitchSubscriberHandler::SubscribeSwitchEvent(SessionPtr sess, int32_t subscribeId, int32_t switchType) in SubscribeSwitchEvent() argument
87 CHKPR(sess, ERROR_NULL_POINTER); in SubscribeSwitchEvent()
90 auto subscriber = std::make_shared<Subscriber>(subscribeId, sess, switchType); in SubscribeSwitchEvent()
96 int32_t SwitchSubscriberHandler::UnsubscribeSwitchEvent(SessionPtr sess, int32_t subscribeId) in UnsubscribeSwitchEvent() argument
101 if ((*it)->id_ == subscribeId && (*it)->sess_ == sess) { in UnsubscribeSwitchEvent()
155 void SwitchSubscriberHandler::OnSessionDelete(SessionPtr sess) in OnSessionDelete() argument
158 CHKPV(sess); in OnSessionDelete()
160 if ((*it)->sess_ == sess) { in OnSessionDelete()
179 MMI_HILOGE("Subscriber's sess is null"); in NotifySubscriber()
205 [this] (SessionPtr sess) { retur in InitSessionDeleteCallback()
[all...]
/foundation/multimodalinput/input/service/message_handle/test/
H A Dserver_msg_handler_test.cpp307 SessionPtr sess = nullptr; in HWTEST_F() local
312 EXPECT_EQ(servermsghandler.OnAddInputHandler(sess, handlerType, eventType, priority, deviceTags), in HWTEST_F()
326 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F() local
331 EXPECT_EQ(servermsghandler.OnAddInputHandler(sess, handlerType, eventType, priority, deviceTags), in HWTEST_F()
345 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F() local
350 EXPECT_EQ(servermsghandler.OnAddInputHandler(sess, handlerType, eventType, priority, deviceTags), in HWTEST_F()
364 SessionPtr sess = nullptr; in HWTEST_F() local
369 EXPECT_EQ(servermsghandler.OnRemoveInputHandler(sess, handlerType, eventType, priority, deviceTags), in HWTEST_F()
383 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F() local
388 EXPECT_EQ(servermsghandler.OnRemoveInputHandler(sess, handlerTyp in HWTEST_F()
402 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
421 SessionPtr sess = nullptr; HWTEST_F() local
436 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
451 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
470 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
488 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
506 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
524 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
591 SessionPtr sess = nullptr; HWTEST_F() local
615 SessionPtr sess = nullptr; HWTEST_F() local
1036 SessionPtr sess = nullptr; HWTEST_F() local
1064 SessionPtr sess = nullptr; HWTEST_F() local
1148 SessionPtr sess = nullptr; HWTEST_F() local
1175 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
1404 SessionPtr sess = nullptr; HWTEST_F() local
1430 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, HWTEST_F() local
1518 SessionPtr sess = nullptr; HWTEST_F() local
1544 SessionPtr sess = nullptr; HWTEST_F() local
1594 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
1830 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/event_handler/include/
H A Danr_manager.h32 bool TriggerANR(int32_t type, int64_t time, SessionPtr sess);
35 void AddTimer(int32_t type, int32_t id, int64_t currentTime, SessionPtr sess);
37 void RemoveTimers(SessionPtr sess);
38 void RemoveTimersByType(SessionPtr sess, int32_t type);
/foundation/multimodalinput/input/service/subscriber/include/
H A Dswitch_subscriber_handler.h52 int32_t SubscribeSwitchEvent(SessionPtr sess, int32_t subscribeId, int32_t switchType);
53 int32_t UnsubscribeSwitchEvent(SessionPtr sess, int32_t subscribeId);
57 Subscriber(int32_t id, SessionPtr sess, int32_t switchType) in Subscriber()
58 : id_(id), sess_(sess), switchType_(switchType), timerId_(-1) {} in Subscriber()
71 void OnSessionDelete(SessionPtr sess);
H A Dkey_subscriber_handler.h52 int32_t SubscribeKeyEvent(SessionPtr sess, int32_t subscribeId, const std::shared_ptr<KeyOption> keyOption);
53 int32_t UnsubscribeKeyEvent(SessionPtr sess, int32_t subscribeId);
54 int32_t SubscribeHotkey(SessionPtr sess, int32_t subscribeId, std::shared_ptr<KeyOption> keyOption);
55 int32_t UnsubscribeHotkey(SessionPtr sess, int32_t subscribeId);
62 Subscriber(int32_t id, SessionPtr sess, std::shared_ptr<KeyOption> keyOption) in Subscriber()
63 : id_(id), sess_(sess), keyOption_(keyOption), timerId_(-1) {} in Subscriber()
91 void OnSessionDelete(SessionPtr sess);
105 int32_t RemoveKeyGestureSubscriber(SessionPtr sess, int32_t subscribeId);
116 int32_t RemoveSubscriber(SessionPtr sess, int32_t subscribeId, bool isSystem);
/foundation/multimodalinput/input/service/interceptor/test/
H A Devent_interceptor_handler_ex_test.cpp76 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); in HWTEST_F() local
78 deviceTags, sess); in HWTEST_F()
104 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); in HWTEST_F() local
106 deviceTags, sess); in HWTEST_F()
133 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); in HWTEST_F() local
135 deviceTags, sess); in HWTEST_F()
162 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); in HWTEST_F() local
164 deviceTags, sess); in HWTEST_F()
190 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); in HWTEST_F() local
191 EventInterceptorHandler::SessionHandler sessionHandler(handlerType, eventType, priority, deviceTags, sess); in HWTEST_F()
218 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
247 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
277 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
307 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, UDS_FD, UDS_UID, UDS_PID); HWTEST_F() local
[all...]
H A Devent_interceptor_handler_test.cpp483 SessionPtr sess = nullptr; in HWTEST_F() local
488 EXPECT_EQ(interceptorHandler.AddInputHandler(handlerType, eventType, priority, deviceTags, sess), RET_ERR); in HWTEST_F()
501 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F() local
506 EXPECT_EQ(interceptorHandler.AddInputHandler(handlerType, eventType, priority, deviceTags, sess), RET_OK); in HWTEST_F()
519 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F() local
524 ASSERT_NO_FATAL_FAILURE(interceptorHandler.RemoveInputHandler(handlerType, eventType, priority, deviceTags, sess)); in HWTEST_F()
537 SessionPtr sess = nullptr; in HWTEST_F() local
542 int32_t ret = handler.AddInputHandler(handlerType, eventType, priority, deviceTags, sess); in HWTEST_F()
544 sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F()
545 ret = handler.AddInputHandler(handlerType, eventType, priority, deviceTags, sess); in HWTEST_F()
662 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/module_loader/src/
H A Duds_server.cpp119 SessionPtr sess = nullptr; in AddSocketPairInfo() local
129 sess = std::make_shared<UDSSession>(programName, moduleType, serverFd, uid, pid); in AddSocketPairInfo()
130 if (sess == nullptr) { in AddSocketPairInfo()
135 sess->SetTokenType(tokenType); in AddSocketPairInfo()
136 if (!AddSession(sess)) { in AddSocketPairInfo()
140 OnConnected(sess); in AddSocketPairInfo()
206 void UDSServer::OnConnected(SessionPtr sess) in OnConnected() argument
208 CHKPV(sess); in OnConnected()
209 MMI_HILOGI("Session desc:%{public}s", sess->GetDescript().c_str()); in OnConnected()
212 void UDSServer::OnDisconnected(SessionPtr sess) in OnDisconnected() argument
258 auto sess = GetSession(fd); OnPacket() local
[all...]
H A Dmmi_service.cpp413 SetRecvFun([this] (SessionPtr sess, NetPacket& pkt) {sMsgHandler_.OnMsgHandler(sess, pkt);}); in Init()
1668 auto sess = GetSession(GetClientFd(pid)); in OnRegisterDevListener() local
1669 CHKPR(sess, RET_ERR); in OnRegisterDevListener()
1670 INPUT_DEV_MGR->AddDevListener(sess); in OnRegisterDevListener()
1692 auto sess = GetSession(GetClientFd(pid)); in OnUnregisterDevListener() local
1693 INPUT_DEV_MGR->RemoveDevListener(sess); in OnUnregisterDevListener()
1811 auto sess = GetSessionByPid(pid); in CheckAddInput() local
1812 CHKPR(sess, ERROR_NULL_POINTER); in CheckAddInput()
1813 return sMsgHandler_.OnAddInputHandler(sess, handlerTyp in CheckAddInput()
1818 auto sess = GetSessionByPid(pid); CheckAddInput() local
1878 auto sess = GetSessionByPid(pid); CheckRemoveInput() local
1885 auto sess = GetSessionByPid(pid); CheckRemoveInput() local
1896 auto sess = GetSessionByPid(pid); ObserverAddInputHandler() local
1939 auto sess = GetSessionByPid(pid); RemoveInputHandler() local
2038 auto sess = GetSessionByPid(pid); CheckMarkConsumed() local
2278 auto sess = GetSessionByPid(pid); SubscribeKeyEvent() local
2310 auto sess = GetSessionByPid(pid); UnsubscribeKeyEvent() local
2342 auto sess = GetSessionByPid(pid); SubscribeHotkey() local
2374 auto sess = GetSessionByPid(pid); UnsubscribeHotkey() local
3692 auto sess = GetSessionByPid(pid); SetClientInfo() local
[all...]
/foundation/multimodalinput/input/service/event_dispatch/src/
H A Devent_dispatch_handler.cpp239 auto sess = udsServer->GetSessionByPid(WIN_MGR->GetWindowStateNotifyPid()); in SendWindowStateError() local
240 if (sess != nullptr) { in SendWindowStateError()
243 if (!sess->SendMsg(pkt)) { in SendWindowStateError()
308 auto sess = udsServer->GetSession(fd); in DispatchPointerEventInner() local
309 if (sess == nullptr) { in DispatchPointerEventInner()
314 if (ANRMgr->TriggerANR(ANR_DISPATCH, currentTime, sess)) { in DispatchPointerEventInner()
331 NotifyPointerEventToRS(pointerAc, sess->GetProgramName(), in DispatchPointerEventInner()
332 static_cast<uint32_t>(sess->GetPid()), pointerEvent->GetPointerCount()); in DispatchPointerEventInner()
338 sess->GetProgramName().c_str(), sess in DispatchPointerEventInner()
[all...]
/foundation/multimodalinput/input/service/module_loader/test/
H A Duds_server_test.cpp330 SessionPtr sess; in HWTEST_F() local
340 udsServer.OnConnected(sess); in HWTEST_F()
472 SessionPtr sess = nullptr; in HWTEST_F() local
482 sess = std::make_shared<UDSSession>(programName, moduleType, serverFd, uid, pid); in HWTEST_F()
483 udsServer.AddSession(sess); in HWTEST_F()
542 SessionPtr sess = nullptr; in HWTEST_F() local
552 sess = std::make_shared<UDSSession>(programName, moduleType, serverFd, uid, pid); in HWTEST_F()
553 udsServer.NotifySessionDeleted(sess); in HWTEST_F()
640 SessionPtr sess = nullptr; in HWTEST_F() local
641 ASSERT_NO_FATAL_FAILURE(udsServer.OnConnected(sess)); in HWTEST_F()
654 SessionPtr sess = nullptr; HWTEST_F() local
802 SessionPtr sess = nullptr; HWTEST_F() local
936 SessionPtr sess = std::make_shared<UDSSession>(PROGRAM_NAME, MODULE_TYPE, udsSessionFd, UDS_UID, udsSessionPid); HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/device_manager/include/
H A Dinput_device_manager.h67 void AddDevListener(SessionPtr sess);
68 void RemoveDevListener(SessionPtr sess);
99 int32_t NotifyMessage(SessionPtr sess, int32_t id, const std::string &type);
/foundation/multimodalinput/input/service/monitor/src/
H A Devent_monitor_handler.cpp455 auto sess = mon.session_; in HandleEvent() local
456 if (!sess) { in HandleEvent()
459 napData.pid = sess->GetPid(); in HandleEvent()
460 napData.uid = sess->GetUid(); in HandleEvent()
461 napData.bundleName = sess->GetProgramName(); in HandleEvent()
643 auto sess = mon.session_; in Monitor() local
644 if (!sess) { in Monitor()
647 napData.pid = sess->GetPid(); in Monitor()
648 napData.uid = sess->GetUid(); in Monitor()
649 napData.bundleName = sess in Monitor()
[all...]
/foundation/multimodalinput/input/service/event_dispatch/test/
H A Devent_dispatch_test.cpp855 SessionPtr sess = nullptr; in HWTEST_F() local
862 sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F()
863 bool ret = ANRMgr->TriggerANR(type, time, sess); in HWTEST_F()
877 SessionPtr sess = nullptr; in HWTEST_F() local
884 sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F()
885 bool ret = ANRMgr->TriggerANR(type, time, sess); in HWTEST_F()
901 SessionPtr sess = nullptr; in HWTEST_F() local
908 sess = std::make_shared<UDSSession>(PROGRAM_NAME, g_moduleType, g_writeFd, UID_ROOT, g_pid); in HWTEST_F()
909 bool ret = ANRMgr->TriggerANR(type, time, sess); in HWTEST_F()
925 SessionPtr sess in HWTEST_F() local
949 SessionPtr sess = nullptr; HWTEST_F() local
973 SessionPtr sess = nullptr; HWTEST_F() local
1056 SessionPtr sess = nullptr; HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/device_manager/src/
H A Dinput_device_manager.cpp311 void InputDeviceManager::AddDevListener(SessionPtr sess) in AddDevListener() argument
315 devListeners_.push_back(sess); in AddDevListener()
318 void InputDeviceManager::RemoveDevListener(SessionPtr sess) in RemoveDevListener() argument
321 devListeners_.remove(sess); in RemoveDevListener()
817 int32_t InputDeviceManager::NotifyMessage(SessionPtr sess, int32_t id, const std::string &type) in NotifyMessage() argument
820 CHKPR(sess, ERROR_NULL_POINTER); in NotifyMessage()
827 if (!sess->SendMsg(pkt)) { in NotifyMessage()
/foundation/multimodalinput/input/service/dfx/src/
H A Ddfx_hisysevent.cpp335 void DfxHisysevent::ApplicationBlockInput(const SessionPtr& sess) in ApplicationBlockInput() argument
341 "PID", sess->GetPid(), in ApplicationBlockInput()
342 "UID", sess->GetUid(), in ApplicationBlockInput()
343 "PACKAGE_NAME", sess->GetProgramName(), in ApplicationBlockInput()
344 "PROCESS_NAME", sess->GetProgramName(), in ApplicationBlockInput()
/foundation/multimodalinput/input/service/dfx/include/
H A Ddfx_hisysevent.h81 static void ApplicationBlockInput(const SessionPtr& sess);
/foundation/multimodalinput/input/service/window_manager/test/
H A Dmock.cpp144 void UDSServer::OnConnected(SessionPtr sess) in OnConnected() argument
147 void UDSServer::OnDisconnected(SessionPtr sess) in OnDisconnected() argument

Completed in 25 milliseconds

12