Home
last modified time | relevance | path

Searched refs:detector (Results 1 - 6 of 6) sorted by relevance

/foundation/multimodalinput/input/service/touch_event_normalize/test/src/
H A Dtouch_gesture_detector_test.cpp69 TouchGestureDetector detector(type, listener); in HWTEST_F()
74 detector.gestureEnable_ = true; in HWTEST_F()
75 detector.gestureDisplayId_ = INT32_MAX; in HWTEST_F()
77 EXPECT_FALSE(detector.WhetherDiscardTouchEvent(pointerEvent)); in HWTEST_F()
80 EXPECT_FALSE(detector.OnTouchEvent(pointerEvent)); in HWTEST_F()
83 EXPECT_FALSE(detector.OnTouchEvent(pointerEvent)); in HWTEST_F()
86 EXPECT_FALSE(detector.OnTouchEvent(pointerEvent)); in HWTEST_F()
89 EXPECT_FALSE(detector.OnTouchEvent(pointerEvent)); in HWTEST_F()
103 TouchGestureDetector detector(type, listener); in HWTEST_F()
108 detector in HWTEST_F()
[all...]
/foundation/multimodalinput/input/service/libinput_adapter/test/
H A Dhotplug_detector_test.cpp92 static void PollEvents(const OHOS::MMI::HotplugDetector &detector) in PollEvents() argument
95 struct pollfd buf = { detector.GetFd(), POLLIN, 0 }; in PollEvents()
97 detector.OnEvent(); in PollEvents()
116 OHOS::MMI::HotplugDetector detector; in HWTEST_F() local
120 EXPECT_TRUE(detector.Init(add, remove)); in HWTEST_F()
124 auto fd = detector.GetFd(); in HWTEST_F()
130 PollEvents(detector); in HWTEST_F()
135 PollEvents(detector); in HWTEST_F()
144 PollEvents(detector); in HWTEST_F()
151 PollEvents(detector); in HWTEST_F()
158 OHOS::MMI::HotplugDetector detector; HWTEST_F() local
178 OHOS::MMI::HotplugDetector detector; HWTEST_F() local
[all...]
/foundation/ai/intelligent_voice_framework/services/intell_voice_trigger/server/
H A Dtrigger_manager.cpp83 std::shared_ptr<TriggerDetector> detector = std::make_shared<TriggerDetector>(uuid, service_, callback); in CreateTriggerDetector() local
84 if (detector == nullptr) { in CreateTriggerDetector()
85 INTELL_VOICE_LOG_ERROR("detector is nullptr"); in CreateTriggerDetector()
89 detectors_[uuid] = detector; in CreateTriggerDetector()
90 return detector; in CreateTriggerDetector()
/foundation/ai/intelligent_voice_framework/tests/unittest/intell_voice_test/src/
H A Dtrigger_manager_test.cpp102 auto detector = triggerManager->CreateTriggerDetector(uuid, cb); in HWTEST_F() local
104 detector->StartRecognition(); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/
H A Drs_event_test.cpp34 static inline std::shared_ptr<RSBaseEventDetector> detector = nullptr; member in OHOS::Rosen::RSEventTest
44 * @tc.desc: Verify the main function of detector
57 * @tc.desc: Verify the main function of detector
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/sa/
H A Dintell_voice_service_manager.cpp253 INTELL_VOICE_LOG_INFO("detector is already existed, no need to create, uuid:%{public}d", uuid); in CreateDetector()
269 auto detector = triggerMgr->CreateTriggerDetector(uuid, cb); in CreateDetector() local
270 if (detector == nullptr) { in CreateDetector()
271 INTELL_VOICE_LOG_ERROR("detector is nullptr"); in CreateDetector()
275 detector_[uuid] = detector; in CreateDetector()
289 INTELL_VOICE_LOG_INFO("detector is not existed, uuid:%{public}d", uuid); in StartDetection()
322 INTELL_VOICE_LOG_INFO("detector is not existed, uuid:%{public}d", uuid); in StopDetection()

Completed in 4 milliseconds