Searched refs:IsPreKeysMatch (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/multimodalinput/input/service/subscriber/include/ |
H A D | key_subscriber_handler.h | 79 …bool IsPreKeysMatch(const std::set<int32_t> &preKeys, const std::vector<int32_t> &pressedKeys) con…
|
/ohos5.0/foundation/multimodalinput/input/service/subscriber/src/ |
H A D | key_subscriber_handler.cpp | 508 bool KeySubscriberHandler::IsPreKeysMatch(const std::set<int32_t> &preKeys, in IsPreKeysMatch() function in OHOS::MMI::KeySubscriberHandler 807 if (!IsPreKeysMatch(keyOption->GetPreKeys(), pressedKeys)) { in HandleKeyDown() 865 if (!IsPreKeysMatch(keyOption->GetPreKeys(), pressedKeys)) { in HandleKeyUp()
|
/ohos5.0/foundation/multimodalinput/input/service/subscriber/test/ |
H A D | key_subscriber_handler_test.cpp | 293 ASSERT_TRUE(handler.IsPreKeysMatch(preKeys, pressedKeys)); 295 ASSERT_TRUE(handler.IsPreKeysMatch(preKeys, pressedKeys)); 297 ASSERT_FALSE(handler.IsPreKeysMatch(preKeys, pressedKeys)); 300 ASSERT_FALSE(handler.IsPreKeysMatch(preKeys, pressedKeys)); 1345 ASSERT_FALSE(handler.IsPreKeysMatch(preKeys, pressedKeys)); 1350 ASSERT_TRUE(handler.IsPreKeysMatch(preKeys, pressedKeys));
|