Home
last modified time | relevance | path

Searched refs:SubscribeKeyEvent (Results 1 - 25 of 35) sorted by relevance

12

/foundation/multimedia/av_session/services/session/adapter/
H A Dkey_event_adapter.cpp28 void KeyEventAdapter::SubscribeKeyEvent(const std::vector<int32_t>& keyCodes, in SubscribeKeyEvent() function in OHOS::AVSession::KeyEventAdapter
41 if (inputManager->SubscribeKeyEvent(keyOption, callback) < 0) { in SubscribeKeyEvent()
H A Dkey_event_adapter.h26 void SubscribeKeyEvent(const std::vector<int32_t>& keyCodes,
/foundation/multimodalinput/input/service/subscriber/test/src/
H A Dkey_shortcut_rules_test.cpp122 auto subscribe1 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption1, in HWTEST_F()
136 auto subscribe2 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption2, in HWTEST_F()
190 auto subscribe1 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption1, in HWTEST_F()
204 auto subscribe2 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption2, in HWTEST_F()
288 auto subscribe1 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption1, in HWTEST_F()
300 auto subscribe2 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption2, in HWTEST_F()
/foundation/multimodalinput/input/frameworks/proxy/event_handler/src/
H A Dmultimodal_event_handler.cpp66 int32_t MultimodalEventHandler::SubscribeKeyEvent( in SubscribeKeyEvent() function in OHOS::MMI::MultimodalEventHandler
71 return MULTIMODAL_INPUT_CONNECT_MGR->SubscribeKeyEvent(subscribeInfo.GetSubscribeId(), in SubscribeKeyEvent()
H A Dkey_event_input_subscribe_manager.cpp107 int32_t KeyEventInputSubscribeManager::SubscribeKeyEvent(std::shared_ptr<KeyOption> keyOption, in SubscribeKeyEvent() function in OHOS::MMI::KeyEventInputSubscribeManager
130 int32_t ret = MMIEventHdl.SubscribeKeyEvent(*tIter); in SubscribeKeyEvent()
284 if (MMIEventHdl.SubscribeKeyEvent(subscriberInfo) != RET_OK) { in OnConnected()
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_short_key.cpp47 int32_t subscribeId = MMI::InputManager::GetInstance()->SubscribeKeyEvent(keyOption, keyEventCallBack); in SubscribeShortKey()
/foundation/multimodalinput/input/frameworks/proxy/event_handler/include/
H A Dmultimodal_event_handler.h43 int32_t SubscribeKeyEvent(const KeyEventInputSubscribeManager::SubscribeKeyEventInfo& subscribeInfo);
H A Dkey_event_input_subscribe_manager.h69 int32_t SubscribeKeyEvent(std::shared_ptr<KeyOption> keyOption,
H A Dinput_manager_impl.h69 int32_t SubscribeKeyEvent(std::shared_ptr<KeyOption> keyOption,
/foundation/multimodalinput/input/test/fuzztest/subscribekeyevent_fuzzer/
H A Dsubscribekeyevent_fuzzer.cpp79 int32_t subscribeId = InputManager::GetInstance()->SubscribeKeyEvent(keyOption, fun); in SubscribeKeyEventFuzzTest()
/foundation/multimodalinput/input/frameworks/proxy/events/src/
H A Dinput_manager.cpp99 int32_t InputManager::SubscribeKeyEvent(std::shared_ptr<KeyOption> keyOption, in SubscribeKeyEvent() function in OHOS::MMI::InputManager
102 return InputMgrImpl.SubscribeKeyEvent(keyOption, callback); in SubscribeKeyEvent()
/foundation/multimodalinput/input/service/connect_manager/include/
H A Dmultimodal_input_connect_manager.h94 int32_t SubscribeKeyEvent(int32_t subscribeId, const std::shared_ptr<KeyOption> option);
H A Di_multimodal_input_connect.h101 virtual int32_t SubscribeKeyEvent(int32_t subscribeId, const std::shared_ptr<KeyOption> option) = 0;
H A Dmultimodal_input_connect_proxy.h86 int32_t SubscribeKeyEvent(int32_t subscribeId, const std::shared_ptr<KeyOption> option) override;
/foundation/multimodalinput/input/test/fuzztest/stubhandleallocsocketfd_fuzzer/
H A Dstubhandleallocsocketfd_fuzzer.cpp99 MMIService::GetInstance()->SubscribeKeyEvent(tmpfd, p_option); in StubHandleAllocSocketFdFuzzTest()
/foundation/multimodalinput/input/service/subscriber/include/
H A Dkey_subscriber_handler.h52 int32_t SubscribeKeyEvent(SessionPtr sess, int32_t subscribeId, const std::shared_ptr<KeyOption> keyOption);
/foundation/multimodalinput/input/frameworks/proxy/events/test/
H A Dinput_manager_test.cpp345 response = InputManager::GetInstance()->SubscribeKeyEvent(keyOption, nullptr); in HWTEST_F()
367 subscribeId1 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption, [](std::shared_ptr<KeyEvent> keyEvent) { in HWTEST_F()
380 subscribeId2 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption2, [](std::shared_ptr<KeyEvent> keyEvent) { in HWTEST_F()
410 subscribeId1 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption1, [](std::shared_ptr<KeyEvent> keyEvent) { in HWTEST_F()
417 subscribeId2 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption2, [](std::shared_ptr<KeyEvent> keyEvent) { in HWTEST_F()
423 subscribeId3 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption3, [](std::shared_ptr<KeyEvent> keyEvent) { in HWTEST_F()
430 subscribeId4 = InputManager::GetInstance()->SubscribeKeyEvent(keyOption4, [](std::shared_ptr<KeyEvent> keyEvent) { in HWTEST_F()
460 subscribeId = InputManager::GetInstance()->SubscribeKeyEvent(keyOption, [](std::shared_ptr<KeyEvent> keyEvent) { in HWTEST_F()
H A Dinput_manager_inject_test.cpp611 subscribeId = InputManager::GetInstance()->SubscribeKeyEvent(keyOption, keyEventFun); in HWTEST_F()
649 subscribeId = InputManager::GetInstance()->SubscribeKeyEvent(keyOption, keyEventFun); in HWTEST_F()
/foundation/multimodalinput/input/service/subscriber/test/
H A Dkey_subscriber_handler_test.cpp270 ASSERT_EQ(keySubscriberHandler.SubscribeKeyEvent(sess, -1, keyOption), -1); in HWTEST_F()
345 int32_t ret = handler.SubscribeKeyEvent(sess, -1, keyOption); in HWTEST_F()
347 ret = handler.SubscribeKeyEvent(nullptr, 1, keyOption); in HWTEST_F()
349 ret = handler.SubscribeKeyEvent(sess, 1, keyOption); in HWTEST_F()
1129 ASSERT_NE(handler.SubscribeKeyEvent(sess, subscribeId, keyOption), RET_OK); in HWTEST_F()
1137 ASSERT_NE(handler.SubscribeKeyEvent(sess, subscribeId, keyOption), RET_OK); in HWTEST_F()
2517 EXPECT_EQ(handler.SubscribeKeyEvent(sess, subscribeId, keyOption), RET_ERR); in HWTEST_F()
2536 EXPECT_NE(handler.SubscribeKeyEvent(sess, subscribeId, keyOption), RET_OK); in HWTEST_F()
/foundation/multimodalinput/input/interfaces/native/innerkits/proxy/include/
H A Dinput_manager.h137 int32_t SubscribeKeyEvent(std::shared_ptr<KeyOption> keyOption,
142 * @param subscriberId Indicates the subscription ID, which is the return value of <b>SubscribeKeyEvent</b>.
167 * @param subscriberId Indicates the subscription ID, which is the return value of <b>SubscribeKeyEvent</b>.
/foundation/multimodalinput/input/service/connect_manager/src/
H A Dmultimodal_input_connect_manager.cpp401 int32_t MultimodalInputConnectManager::SubscribeKeyEvent(int32_t subscribeId, const std::shared_ptr<KeyOption> option) in SubscribeKeyEvent() function in OHOS::MMI::MultimodalInputConnectManager
405 return multimodalInputConnectService_->SubscribeKeyEvent(subscribeId, option); in SubscribeKeyEvent()
/foundation/multimodalinput/input/service/module_loader/include/
H A Dmmi_service.h100 int32_t SubscribeKeyEvent(int32_t subscribeId, const std::shared_ptr<KeyOption> option) override;
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/
H A Dobserver_manager.cpp442 powerKeySubscribeId_ = MMI::InputManager::GetInstance()->SubscribeKeyEvent(keyOption, in InitMMiEventObserver()
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/
H A Djs_register_module.cpp381 subscribeId = InputManager::GetInstance()->SubscribeKeyEvent(keyOption, SubKeyEventCallback); in SubscribeKey()
/foundation/multimodalinput/input/service/module_loader/test/
H A Dmmi_service_test.cpp845 * @tc.desc: Test the function SubscribeKeyEvent
854 int32_t ret = mmiService.SubscribeKeyEvent(subscribeId, option); in HWTEST_F()

Completed in 25 milliseconds

12