Home
last modified time | relevance | path

Searched refs:touch (Results 1 - 25 of 25) sorted by relevance

/foundation/multimodalinput/input/service/touch_event_normalize/src/
H A Dtouch_transform_processor.cpp52 auto touch = libinput_event_get_touch_event(event); in OnEventTouchDown() local
53 CHKPF(touch); in OnEventTouchDown()
58 if (!WIN_MGR->TouchPointToDisplayPoint(deviceId_, touch, touchInfo, logicalDisplayId)) { in OnEventTouchDown()
63 uint64_t time = libinput_event_touch_get_time_usec(touch); in OnEventTouchDown()
71 double pressure = libinput_event_touch_get_pressure(touch); in OnEventTouchDown()
72 int32_t seatSlot = libinput_event_touch_get_seat_slot(touch); in OnEventTouchDown()
78 int32_t moveFlag = libinput_event_touch_get_move_flag(touch); in OnEventTouchDown()
79 int32_t longAxis = libinput_event_get_touch_contact_long_axis(touch); in OnEventTouchDown()
80 int32_t shortAxis = libinput_event_get_touch_contact_short_axis(touch); in OnEventTouchDown()
90 int32_t toolType = GetTouchToolType(touch, devic in OnEventTouchDown()
150 auto touch = libinput_event_get_touch_event(event); OnEventTouchMotion() local
198 auto touch = libinput_event_get_touch_event(event); OnEventTouchUp() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/
H A Dscene_viewer_touch_handler.cpp44 LOGW("unknown touch type"); in HandleEvent()
66 auto touch = touches_.find(point.id); in CreateSceneTouchEvent() local
67 if (touch != touches_.end()) { in CreateSceneTouchEvent()
68 auto oldPoint = touch->second; in CreateSceneTouchEvent()
/foundation/multimodalinput/input/service/touch_event_normalize/test/src/
H A Dtouch_transform_processor_test.cpp263 auto touch = libinput_event_get_touch_event(event); in HWTEST_F() local
264 ASSERT_TRUE(touch != nullptr); in HWTEST_F()
315 auto touch = libinput_event_get_touch_event(event); in HWTEST_F() local
316 ASSERT_TRUE(touch != nullptr); in HWTEST_F()
349 auto touch = libinput_event_get_touch_event(event); in HWTEST_F() local
350 ASSERT_TRUE(touch != nullptr); in HWTEST_F()
487 auto touch = libinput_event_get_touch_event(event); in HWTEST_F() local
488 ASSERT_TRUE(touch != nullptr); in HWTEST_F()
489 int32_t moveFlag = libinput_event_touch_get_move_flag(touch); in HWTEST_F()
532 auto touch in HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_touch_handler.cpp46 LOGW("unknown touch type"); in HandleTouchEvent()
91 auto touch = touches_.find(point.id); in CreateSceneTouchEvent() local
92 if (touch != touches_.end()) { in CreateSceneTouchEvent()
93 auto oldPoint = touch->second; in CreateSceneTouchEvent()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dradio_model_impl.cpp141 auto touch = ViewStackProcessor::GetInstance()->GetTouchListenerComponent(); in SetResponseRegion() local
142 touch->SetResponseRegion(responseRegion); in SetResponseRegion()
143 touch->MarkResponseRegion(true); in SetResponseRegion()
H A Dview_abstract_model_impl.cpp1241 auto touch = ViewStackProcessor::GetInstance()->GetTouchListenerComponent(); in SetResponseRegion() local
1242 touch->SetResponseRegion(responseRegion); in SetResponseRegion()
1243 touch->MarkResponseRegion(true); in SetResponseRegion()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/wrapper/
H A Dmenu_wrapper_pattern.cpp113 auto touch = info.GetChangedTouches().front(); in HandleInteraction() local
117 static_cast<float>(touch.GetGlobalLocation().GetX()), static_cast<float>(touch.GetGlobalLocation().GetY())); in HandleInteraction()
123 // get menuNode's touch region in HandleInteraction()
374 // if already initialized touch event in RegisterOnTouch()
393 auto touch = info.GetChangedTouches().front(); in OnTouchEvent() local
394 // filter out other touch types in OnTouchEvent()
395 if (touch.GetTouchType() != TouchType::DOWN && in OnTouchEvent()
406 static_cast<float>(touch.GetGlobalLocation().GetX()), static_cast<float>(touch in OnTouchEvent()
[all...]
/foundation/graphic/graphic_3d/lume/LumeDotfield/src/systems/
H A Ddotfield_system.cpp183 prim.touch = dfc.touchPosition; in Update()
211 prim.touch = dfc.touchPosition; in OnComponentEvent()
/foundation/graphic/graphic_3d/lume/LumeDotfield/api/dotfield/render/
H A Dintf_render_data_store_default_dotfield.h45 BASE_NS::Math::Vec2 touch{ 0.0f, 0.0f };
/foundation/resourceschedule/ffrt/benchmarks/
H A Dbenchmarks.sh49 touch $output_dir/perf_$1.csv
/foundation/arkui/ace_engine/frameworks/core/common/
H A Devent_dump.cpp90 // multi fingers touch down will be in one tree in AddTouchPoint()
206 // dump needful touch points: in Dump()
208 dumpList.emplace_back(std::make_pair(listDepth, "touch points:")); in Dump()
262 std::unique_ptr<JsonValue> touch = JsonUtil::CreateArray(true); in BuildTouchPoints() local
266 touch->Put(child); in BuildTouchPoints()
268 json->Put("touch points", touch); in BuildTouchPoints()
/foundation/graphic/graphic_3d/lume/LumeDotfield/src/render/
H A Drender_node_dotfield_simulation.cpp173 { dotfieldPrimitive.touch.x, dotfieldPrimitive.touch.y, dotfieldPrimitive.touchRadius, 0.f }, in ComputeSimulate()
/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_scroller_event_test_ng.cpp623 TouchLocationInfo touch(0); in HWTEST_F()
624 touch.SetLocalLocation(Offset(0, 850)); in HWTEST_F()
626 info.AddTouchLocationInfo(std::move(touch)); in HWTEST_F()
/foundation/multimodalinput/input/service/window_manager/test/
H A Dinput_windows_manager_ex_test.cpp753 libinput_event_touch *touch = nullptr; in HWTEST_F() local
767 EXPECT_NO_FATAL_FAILURE(inputWindowsMgr->GetPhysicalDisplayCoord(touch, info, touchInfo)); in HWTEST_F()
782 libinput_event_touch *touch = nullptr; in HWTEST_F() local
792 EXPECT_NO_FATAL_FAILURE(inputWindowsMgr->TouchPointToDisplayPoint(deviceId, touch, touchInfo, physicalDisplayId)); in HWTEST_F()
2358 libinput_event_touch touch {}; in HWTEST_F()
2362 EXPECT_NO_FATAL_FAILURE(inputWindowsManager->GetPhysicalDisplayCoord(&touch, info, touchInfo)); in HWTEST_F()
2364 EXPECT_NO_FATAL_FAILURE(inputWindowsManager->GetPhysicalDisplayCoord(&touch, info, touchInfo)); in HWTEST_F()
2366 EXPECT_NO_FATAL_FAILURE(inputWindowsManager->GetPhysicalDisplayCoord(&touch, info, touchInfo)); in HWTEST_F()
2613 libinput_event_touch touch {}; in HWTEST_F()
2618 (deviceId, &touch, touchInf in HWTEST_F()
[all...]
/foundation/multimodalinput/input/service/window_manager/include/
H A Di_input_windows_manager.h127 virtual bool TouchPointToDisplayPoint(int32_t deviceId, struct libinput_event_touch* touch,
H A Dinput_windows_manager.h130 bool TouchPointToDisplayPoint(int32_t deviceId, struct libinput_event_touch* touch,
293 void GetPhysicalDisplayCoord(struct libinput_event_touch* touch,
/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/
H A Dscrollable_cover_test_ng.cpp1808 TouchLocationInfo touch(0); in HWTEST_F()
1809 touch.SetTouchType(TouchType::DOWN); in HWTEST_F()
1810 touchEventInfo.AddTouchLocationInfo(std::move(touch)); in HWTEST_F()
1821 touch.SetTouchType(TouchType::UP); in HWTEST_F()
1822 touchEventInfo.AddTouchLocationInfo(std::move(touch)); in HWTEST_F()
1830 touch.SetTouchType(TouchType::CANCEL); in HWTEST_F()
1831 touchEventInfo.AddTouchLocationInfo(std::move(touch)); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/
H A Dscroll_bar.cpp360 auto touch = info.GetTouches().front(); in SetGestureEvent()
361 if (touch.GetTouchType() == TouchType::DOWN) { in SetGestureEvent()
362 TAG_LOGI(AceLogTag::ACE_SCROLL_BAR, "inner scrollBar touch down, panDirection: %{public}u", in SetGestureEvent()
364 Point point(touch.GetLocalLocation().GetX(), touch.GetLocalLocation().GetY()); in SetGestureEvent()
577 // if historical touch point slope is zero but delta is not zero, no need to update. in HandleDragUpdate()
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenuitem_pattern_test_ng.cpp753 auto touch = itemNode->GetOrCreateGestureEventHub()->touchEventActuator_; in HWTEST_F() local
754 ASSERT_TRUE(touch); in HWTEST_F()
755 ASSERT_FALSE(touch->touchEvents_.empty()); in HWTEST_F()
781 // execute touch down event in HWTEST_F()
942 // execute touch down event in HWTEST_F()
951 // excute touch up event in HWTEST_F()
960 // excute touch move event in HWTEST_F()
1677 auto touch = itemNode->GetOrCreateGestureEventHub()->touchEventActuator_; in HWTEST_F() local
1678 ASSERT_TRUE(touch); in HWTEST_F()
1679 ASSERT_FALSE(touch in HWTEST_F()
[all...]
/foundation/multimodalinput/input/service/window_manager/src/
H A Dinput_windows_manager.cpp212 /* Fold status is indicated by 27th bit of long axis of touch. */ in IgnoreTouchEvent()
423 MMI_HILOG_DISPATCHD("Unable to find finger information for touch.pointerId:%{public}d", in FoldScreenRotation()
461 MMI_HILOG_DISPATCHI("touch event send cancel"); in FoldScreenRotation()
1676 void InputWindowsManager::GetPhysicalDisplayCoord(struct libinput_event_touch* touch, in UpdateDisplayInfo() argument
1688 .x = libinput_event_touch_get_x_transformed(touch, width), in UpdateDisplayInfo()
1689 .y = libinput_event_touch_get_y_transformed(touch, height), in UpdateDisplayInfo()
1696 touchInfo.toolRect.point.x = static_cast<int32_t>(libinput_event_touch_get_tool_x_transformed(touch, width)); in UpdateDisplayInfo()
1697 touchInfo.toolRect.point.y = static_cast<int32_t>(libinput_event_touch_get_tool_y_transformed(touch, height)); in UpdateDisplayInfo()
1699 libinput_event_touch_get_tool_width_transformed(touch, width)); in UpdateDisplayInfo()
1701 libinput_event_touch_get_tool_height_transformed(touch, heigh in UpdateDisplayInfo()
1714 TouchPointToDisplayPoint(int32_t deviceId, struct libinput_event_touch* touch, EventTouch& touchInfo, int32_t& physicalDisplayId) UpdateDisplayInfo() argument
[all...]
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_view.h244 * @brief Defines a touch event listener. You need to register this listener with the view to listen to touch
621 * @brief Sets a touch event listener for the view.
622 * @param onTouchListener Indicates the pointer to the touch event listener to set.
629 * @brief Obtains the touch event listener for the view.
630 * @return Returns the touch event listener.
647 * include the specified coordinates and is a visible top view that can respond to touch events, and the
715 void SetTouchable(bool touch);
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_animation_test_ng.cpp37 TouchLocationInfo touch(0); in SimulateSwipe()
38 pattern_->HandleTouchDown({ touch }); in SimulateSwipe()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_view.cpp649 void UIView::SetTouchable(bool touch) in SetTouchable() argument
651 touchable_ = touch; in SetTouchable()
/foundation/arkui/ace_engine/test/unittest/core/pattern/web/
H A Dweb_pattern_window_test_ng.cpp883 auto touch = std::make_shared<TouchEventListener>(); in HWTEST_F() local
884 webPattern->touchEventListener_ = touch; in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/bubble/
H A Dbubble_test_ng.cpp569 TouchEventInfo touchEventInfo2 = TouchEventInfo("touch"); in HWTEST_F()
1134 * @tc.desc: Test bubble hover and touch callback.
1171 * @tc.steps: step4. call hover, touch callback. in HWTEST_F()
1191 TouchLocationInfo touch(0); in HWTEST_F()
1192 touch.SetTouchType(TouchType::DOWN); in HWTEST_F()
1193 touchEventInfo.AddTouchLocationInfo(std::move(touch)); in HWTEST_F()
1200 touch.SetTouchType(TouchType::UP); in HWTEST_F()
1202 touchEventInfo.AddTouchLocationInfo(std::move(touch)); in HWTEST_F()
2543 TouchEventInfo touchEventInfo = TouchEventInfo("touch"); in HWTEST_F()
2551 TouchEventInfo touchEventInfo1 = TouchEventInfo("touch"); in HWTEST_F()
[all...]

Completed in 46 milliseconds