Home
last modified time | relevance | path

Searched refs:pressedKey (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_input/test/fuzztest/distributedinputkit_fuzzer/
H A Ddistributed_input_kit_fuzzer.cpp143 int32_t pressedKey = *(reinterpret_cast<const int32_t*>(data)); in IsNeedFilterOutFuzzTest() local
147 event.pressedKeys.push_back(pressedKey); in IsNeedFilterOutFuzzTest()
/ohos5.0/foundation/multimodalinput/input/service/subscriber/src/
H A Dkey_subscriber_handler.cpp521 for (const auto &pressedKey : pressedKeys) { in IsPreKeysMatch() local
522 auto it = std::find(preKeys.begin(), preKeys.end(), pressedKey); in IsPreKeysMatch()
539 for (const auto &pressedKey : pressedKeys) { in IsEqualPreKeys() local
540 auto it = std::find(preKeys.begin(), preKeys.end(), pressedKey); in IsEqualPreKeys()
/ohos5.0/foundation/multimodalinput/input/service/window_manager/include/
H A Dinput_windows_manager.h40 int32_t pressedKey { -1 };
93 bool IsKeyPressed(int32_t pressedKey, std::vector<KeyEvent::KeyItem> &keyItems);
/ohos5.0/foundation/multimodalinput/input/service/window_manager/test/
H A Dinput_windows_manager_test.cpp4638 whitelistItem.pressedKey = -1;
4649 whitelistItem.pressedKey = 2;
4652 whitelistItem.pressedKey = -1;
4673 whitelistItem.pressedKey = 1;
5046 int32_t pressedKey = 2024; variable
5051 EXPECT_FALSE(inputWinMgr.IsKeyPressed(pressedKey, keyItems));
5065 int32_t pressedKey = 2024; variable
5070 EXPECT_TRUE(inputWinMgr.IsKeyPressed(pressedKey, keyItems));
5088 switchFocusKey.pressedKey = -1;
5097 inputWinMgr.vecWhiteList_[0].pressedKey = 2024;
/ohos5.0/foundation/multimodalinput/input/service/window_manager/src/
H A Dinput_windows_manager.cpp4357 switchFocusKey.pressedKey = pressedKeyJson->valueint; in UpdateDisplayInfo()
4390 bool InputWindowsManager::IsKeyPressed(int32_t pressedKey, std::vector<KeyEvent::KeyItem> &keyItems) in UpdateDisplayInfo() argument
4394 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()