Home
last modified time | relevance | path

Searched refs:foregroundPids (Results 1 - 7 of 7) sorted by relevance

/foundation/multimodalinput/input/service/subscriber/src/
H A Dkey_gesture_manager.cpp164 std::set<int32_t> foregroundPids = GetForegroundPids(); in TriggerHandlers() local
165 bool haveForeground = HaveForegroundHandler(foregroundPids); in TriggerHandlers()
166 ShowHandlers(std::string("TriggerHandlers"), foregroundPids); in TriggerHandlers()
169 if (!haveForeground || (foregroundPids.find(handler.GetPid()) != foregroundPids.end())) { in TriggerHandlers()
188 std::set<int32_t> foregroundPids = GetForegroundPids(); in NotifyHandlers() local
189 bool haveForeground = HaveForegroundHandler(foregroundPids); in NotifyHandlers()
190 ShowHandlers(std::string("NotifyHandlers"), foregroundPids); in NotifyHandlers()
193 if (!haveForeground || (foregroundPids.find(handler.GetPid()) != foregroundPids in NotifyHandlers()
263 std::set<int32_t> foregroundPids = GetForegroundPids(); RunPendingHandlers() local
[all...]
H A Dkey_shortcut_manager.cpp569 std::set<int32_t> foregroundPids; in GetForegroundPids() local
572 foregroundPids.insert(item.pid); in GetForegroundPids()
577 if (foregroundPids.find(shortcut.second.session) != foregroundPids.cend()) { in GetForegroundPids()
596 std::set<int32_t> foregroundPids = GetForegroundPids(); in HandleKeyDown() local
603 if (!foregroundPids.empty() && in HandleKeyDown()
604 (foregroundPids.find(shortcut.session) == foregroundPids.cend())) { in HandleKeyDown()
623 std::set<int32_t> foregroundPids = GetForegroundPids(); in HandleKeyUp() local
630 if (!foregroundPids in HandleKeyUp()
719 std::set<int32_t> foregroundPids = GetForegroundPids(); RunShortcut() local
[all...]
H A Dkey_subscriber_handler.cpp688 std::set<int32_t> foregroundPids) in IsMatchForegroundPid()
697 if (foregroundPids.find(sess->GetPid()) != foregroundPids.end()) { in IsMatchForegroundPid()
703 MMI_HILOGD("isForegroundExits_:%{public}d, foregroundPids:%{public}zu", in IsMatchForegroundPid()
687 IsMatchForegroundPid(std::list<std::shared_ptr<Subscriber>> subs, std::set<int32_t> foregroundPids) IsMatchForegroundPid() argument
/foundation/multimodalinput/input/service/subscriber/test/
H A Dkey_gesture_manager_test.cpp118 std::set<int32_t> foregroundPids = myKeyGesture->GetForegroundPids(); in HWTEST_F() local
119 bool haveForeground = myKeyGesture->HaveForegroundHandler(foregroundPids); in HWTEST_F()
567 std::set<int32_t> foregroundPids = myKeyGesture->GetForegroundPids(); in HWTEST_F() local
568 bool haveForeground = myKeyGesture->HaveForegroundHandler(foregroundPids); in HWTEST_F()
691 std::set<int32_t> foregroundPids = myKeyGesture->GetForegroundPids(); in HWTEST_F() local
692 bool haveForeground = myKeyGesture->HaveForegroundHandler(foregroundPids); in HWTEST_F()
H A Dkey_gesture_manager_ex_test.cpp188 std::set<int32_t> foregroundPids = { 100, 200 }; in HWTEST_F() local
189 EXPECT_NO_FATAL_FAILURE(myKeyGesture->ShowHandlers(prefix, foregroundPids)); in HWTEST_F()
H A Dkey_subscriber_handler_test.cpp462 std::set<int32_t> foregroundPids = {1, 2, 3}; in HWTEST_F() local
463 ASSERT_FALSE(handler.IsMatchForegroundPid(subs, foregroundPids)); in HWTEST_F()
1431 std::set<int32_t> foregroundPids; in HWTEST_F() local
1433 foregroundPids.insert(1); in HWTEST_F()
1434 ASSERT_FALSE(handler.IsMatchForegroundPid(subscriberList, foregroundPids)); in HWTEST_F()
1436 foregroundPids.insert(100); in HWTEST_F()
1437 ASSERT_TRUE(handler.IsMatchForegroundPid(subscriberList, foregroundPids)); in HWTEST_F()
/foundation/multimodalinput/input/service/subscriber/include/
H A Dkey_subscriber_handler.h117 bool IsMatchForegroundPid(std::list<std::shared_ptr<Subscriber>> subs, std::set<int32_t> foregroundPids);

Completed in 10 milliseconds