Searched refs:pressedKey (Results 1 – 5 of 5) sorted by relevance
143 int32_t pressedKey = *(reinterpret_cast<const int32_t*>(data)); in IsNeedFilterOutFuzzTest() local147 event.pressedKeys.push_back(pressedKey); in IsNeedFilterOutFuzzTest()
521 for (const auto &pressedKey : pressedKeys) { in IsPreKeysMatch() local522 auto it = std::find(preKeys.begin(), preKeys.end(), pressedKey); in IsPreKeysMatch()539 for (const auto &pressedKey : pressedKeys) { in IsEqualPreKeys() local540 auto it = std::find(preKeys.begin(), preKeys.end(), pressedKey); in IsEqualPreKeys()
40 int32_t pressedKey { -1 };93 bool IsKeyPressed(int32_t pressedKey, std::vector<KeyEvent::KeyItem> &keyItems);
4638 whitelistItem.pressedKey = -1;4649 whitelistItem.pressedKey = 2;4652 whitelistItem.pressedKey = -1;4673 whitelistItem.pressedKey = 1;5046 int32_t pressedKey = 2024; variable5051 EXPECT_FALSE(inputWinMgr.IsKeyPressed(pressedKey, keyItems));5065 int32_t pressedKey = 2024; variable5070 EXPECT_TRUE(inputWinMgr.IsKeyPressed(pressedKey, keyItems));5088 switchFocusKey.pressedKey = -1;5097 inputWinMgr.vecWhiteList_[0].pressedKey = 2024;
4357 switchFocusKey.pressedKey = pressedKeyJson->valueint; in UpdateDisplayInfo()4390 bool InputWindowsManager::IsKeyPressed(int32_t pressedKey, std::vector<KeyEvent::KeyItem> &keyItems) in UpdateDisplayInfo() argument4394 if (item.GetKeyCode() == pressedKey && item.IsPressed()) { in UpdateDisplayInfo()4408 if (item.pressedKey == -1 && keyItems.size() == 1) { in UpdateDisplayInfo()4411 … bool flag = ((item.pressedKey != -1) && (keyEvent->GetKeyAction() == KeyEvent::KEY_ACTION_DOWN) && in UpdateDisplayInfo()4412 (keyItems.size() == 2) && IsKeyPressed(item.pressedKey, keyItems)); in UpdateDisplayInfo()