Lines Matching refs:keyOption
218 bool KeyGestureManager::LongPressSingleKey::ShouldIntercept(std::shared_ptr<KeyOption> keyOption) const
220 std::set<int32_t> keys = keyOption->GetPreKeys();
222 (keyOption->GetFinalKey() == keyCode_) &&
223 keyOption->IsFinalKeyDown() &&
224 (keyOption->GetFinalKeyDownDuration() < COMBINATION_KEY_TIMEOUT));
274 bool KeyGestureManager::LongPressCombinationKey::ShouldIntercept(std::shared_ptr<KeyOption> keyOption) const
276 std::set<int32_t> keys = keyOption->GetPreKeys();
277 keys.insert(keyOption->GetFinalKey());
410 bool KeyGestureManager::ShouldIntercept(std::shared_ptr<KeyOption> keyOption) const
413 CHKPF(keyOption);
415 [keyOption](const auto &keyGesture) {
416 return keyGesture->ShouldIntercept(keyOption);
420 int32_t KeyGestureManager::AddKeyGesture(int32_t pid, std::shared_ptr<KeyOption> keyOption,
423 CHKPR(keyOption, INVALID_ENTITY_ID);
425 if (keyGesture->ShouldIntercept(keyOption)) {
426 auto downDuration = std::max(keyOption->GetFinalKeyDownDuration(), COMBINATION_KEY_TIMEOUT);