Searched refs:pressedKey (Results 1 - 5 of 5) sorted by relevance
/foundation/distributedhardware/distributed_input/test/fuzztest/distributedinputkit_fuzzer/ |
H A D | distributed_input_kit_fuzzer.cpp | 143 int32_t pressedKey = *(reinterpret_cast<const int32_t*>(data)); in IsNeedFilterOutFuzzTest() local 147 event.pressedKeys.push_back(pressedKey); in IsNeedFilterOutFuzzTest()
|
/foundation/multimodalinput/input/service/subscriber/src/ |
H A D | key_subscriber_handler.cpp | 660 for (const auto &pressedKey : pressedKeys) { in IsPreKeysMatch() 661 auto it = std::find(preKeys.begin(), preKeys.end(), pressedKey); in IsPreKeysMatch() 677 for (const auto &pressedKey : pressedKeys) { in IsEqualPreKeys() 678 auto it = std::find(preKeys.begin(), preKeys.end(), pressedKey); in IsEqualPreKeys()
|
/foundation/multimodalinput/input/service/window_manager/include/ |
H A D | input_windows_manager.h | 40 int32_t pressedKey { -1 }; 92 bool IsKeyPressed(int32_t pressedKey, std::vector<KeyEvent::KeyItem> &keyItems);
|
/foundation/multimodalinput/input/service/window_manager/test/ |
H A D | input_windows_manager_test.cpp | 4918 int32_t pressedKey = 2024; in HWTEST_F() local 4923 EXPECT_FALSE(inputWinMgr.IsKeyPressed(pressedKey, keyItems)); in HWTEST_F() 4937 int32_t pressedKey = 2024; in HWTEST_F() local 4942 EXPECT_TRUE(inputWinMgr.IsKeyPressed(pressedKey, keyItems)); in HWTEST_F() 4960 switchFocusKey.pressedKey = -1; in HWTEST_F() 4969 inputWinMgr.vecWhiteList_[0].pressedKey = 2024; in HWTEST_F() 5009 whitelistItem.pressedKey = -1; in HWTEST_F() 5020 whitelistItem.pressedKey = 2; in HWTEST_F() 5023 whitelistItem.pressedKey = -1; in HWTEST_F() 5044 whitelistItem.pressedKey in HWTEST_F() [all...] |
/foundation/multimodalinput/input/service/window_manager/src/ |
H A D | input_windows_manager.cpp | 4394 cJSON *pressedKeyJson = cJSON_GetObjectItemCaseSensitive(whiteListJson, "pressedKey"); in UpdateDisplayInfo() 4399 switchFocusKey.pressedKey = pressedKeyJson->valueint; in UpdateDisplayInfo() 4427 bool InputWindowsManager::IsKeyPressed(int32_t pressedKey, std::vector<KeyEvent::KeyItem> &keyItems) in UpdateDisplayInfo() argument 4431 if (item.GetKeyCode() == pressedKey && item.IsPressed()) { in UpdateDisplayInfo() 4445 if (item.pressedKey == -1 && keyItems.size() == 1) { in UpdateDisplayInfo() 4448 bool flag = ((item.pressedKey != -1) && (keyEvent->GetKeyAction() == KeyEvent::KEY_ACTION_DOWN) && in UpdateDisplayInfo() 4449 (keyItems.size() == 2) && IsKeyPressed(item.pressedKey, keyItems)); in UpdateDisplayInfo()
|
Completed in 18 milliseconds