/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_touch_handler.cpp | 30 TouchEventInfo* touchInfo = static_cast<TouchEventInfo*>(info); in CreateComponent() 31 if (!touchInfo) { in CreateComponent() 35 func->Execute(*touchInfo); in CreateComponent() 45 TouchEventInfo* touchInfo = static_cast<TouchEventInfo*>(info); in CreateComponent() 46 if (!touchInfo) { in CreateComponent() 50 func->Execute(*touchInfo); in CreateComponent() 60 TouchEventInfo* touchInfo = static_cast<TouchEventInfo*>(info); in CreateComponent() 61 if (!touchInfo) { in CreateComponent() 65 func->Execute(*touchInfo); in CreateComponent() 75 TouchEventInfo* touchInfo in CreateComponent() [all...] |
/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/ |
H A D | hgm_multi_app_strategy_test.cpp | 166 HgmMultiAppStrategy::TouchInfo touchInfo = { in HWTEST_F() local 171 multiAppStrategy_->HandleTouchInfo(touchInfo); in HWTEST_F() 176 touchInfo = { in HWTEST_F() 179 multiAppStrategy_->HandleTouchInfo(touchInfo); in HWTEST_F() 184 touchInfo = { in HWTEST_F() 187 multiAppStrategy_->HandleTouchInfo(touchInfo); in HWTEST_F() 219 HgmMultiAppStrategy::TouchInfo touchInfo = { in HWTEST_F() local 224 multiAppStrategy_->HandleTouchInfo(touchInfo); in HWTEST_F() 228 touchInfo = { in HWTEST_F() 231 multiAppStrategy_->HandleTouchInfo(touchInfo); in HWTEST_F() 272 HgmMultiAppStrategy::TouchInfo touchInfo = { HWTEST_F() local 314 HgmMultiAppStrategy::TouchInfo touchInfo = { HWTEST_F() local 353 HgmMultiAppStrategy::TouchInfo touchInfo = { HWTEST_F() local 392 HgmMultiAppStrategy::TouchInfo touchInfo = { HWTEST_F() local [all...] |
/foundation/multimodalinput/input/service/touch_event_normalize/src/ |
H A D | touch_transform_processor.cpp | 56 EventTouch touchInfo; in OnEventTouchDown() local 58 if (!WIN_MGR->TouchPointToDisplayPoint(deviceId_, touch, touchInfo, logicalDisplayId)) { in OnEventTouchDown() 88 UpdatePointerItemProperties(item, touchInfo); in OnEventTouchDown() 102 void TouchTransformProcessor::UpdatePointerItemProperties(PointerEvent::PointerItem &item, EventTouch &touchInfo) in UpdatePointerItemProperties() argument 105 item.SetDisplayX(touchInfo.point.x); in UpdatePointerItemProperties() 106 item.SetDisplayY(touchInfo.point.y); in UpdatePointerItemProperties() 107 item.SetDisplayXPos(touchInfo.point.x); in UpdatePointerItemProperties() 108 item.SetDisplayYPos(touchInfo.point.y); in UpdatePointerItemProperties() 109 item.SetRawDisplayX(touchInfo.point.x); in UpdatePointerItemProperties() 110 item.SetRawDisplayY(touchInfo in UpdatePointerItemProperties() 155 EventTouch touchInfo; OnEventTouchMotion() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/ |
H A D | hgm_multi_app_strategy.cpp | 74 void HgmMultiAppStrategy::HandleTouchInfo(const TouchInfo& touchInfo) in HandleTouchInfo() argument 77 touchInfo.pkgName.c_str(), touchInfo.touchState); in HandleTouchInfo() 79 touchInfo.pkgName.c_str(), touchInfo.touchState); in HandleTouchInfo() 80 touchInfo_ = { touchInfo.pkgName, touchInfo.touchState, touchInfo.upExpectFps }; in HandleTouchInfo() 81 if (touchInfo.pkgName == "" && !pkgs_.empty()) { in HandleTouchInfo() 391 auto touchInfo in UpdateStrategyByTouch() [all...] |
/foundation/multimodalinput/input/service/touch_event_normalize/test/src/ |
H A D | touch_event_normalize_test.cpp | 103 EventTouch touchInfo; in HWTEST_F() local 104 touchInfo.point.x = 125; in HWTEST_F() 105 touchInfo.point.y = 300; in HWTEST_F() 106 touchInfo.toolRect.point.x = 300; in HWTEST_F() 107 touchInfo.toolRect.point.y = 600; in HWTEST_F() 108 touchInfo.toolRect.width = 720; in HWTEST_F() 109 touchInfo.toolRect.height = 1000; in HWTEST_F() 110 ASSERT_NO_FATAL_FAILURE(touchTransformProcessor.UpdatePointerItemProperties(item, touchInfo)); in HWTEST_F()
|
H A D | touch_transform_processor_test.cpp | 137 EventTouch touchInfo; in HWTEST_F() local 138 touchInfo.point.x = 10; in HWTEST_F() 139 touchInfo.point.y = 20; in HWTEST_F() 140 touchInfo.toolRect.point.x = 30; in HWTEST_F() 141 touchInfo.toolRect.point.y = 40; in HWTEST_F() 142 touchInfo.toolRect.width = 50; in HWTEST_F() 143 touchInfo.toolRect.height = 60; in HWTEST_F() 146 processor.UpdatePointerItemProperties(item, touchInfo); in HWTEST_F() 147 ASSERT_EQ(item.GetDisplayX(), touchInfo.point.x); in HWTEST_F() 148 ASSERT_EQ(item.GetDisplayY(), touchInfo in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_touch_function.cpp | 25 JSRef<JSObject> JsTouchFunction::CreateTouchInfo(const TouchLocationInfo& touchInfo, TouchEventInfo& info) in CreateTouchInfo() argument 30 const OHOS::Ace::Offset& globalLocation = touchInfo.GetGlobalLocation(); in CreateTouchInfo() 31 const OHOS::Ace::Offset& localLocation = touchInfo.GetLocalLocation(); in CreateTouchInfo() 32 const OHOS::Ace::Offset& screenLocation = touchInfo.GetScreenLocation(); in CreateTouchInfo() 33 touchInfoObj->SetProperty<int32_t>("type", static_cast<int32_t>(touchInfo.GetTouchType())); in CreateTouchInfo() 34 touchInfoObj->SetProperty<int32_t>("id", touchInfo.GetFingerId()); in CreateTouchInfo()
|
H A D | js_on_child_touch_test_function.cpp | 24 JSRef<JSVal> JsOnChildTouchTestFunction::Execute(const std::vector<NG::TouchTestInfo>& touchInfo) in Execute() argument 27 for (size_t i = 0; i < touchInfo.size(); i++) { in Execute() 28 JSRef<JSVal> info = JSRef<JSObject>::Cast(CreateTouchTestInfo(touchInfo[i])); in Execute()
|
H A D | js_touch_function.h | 40 static JSRef<JSObject> CreateTouchInfo(const TouchLocationInfo& touchInfo, TouchEventInfo& info);
|
H A D | js_on_child_touch_test_function.h | 29 JSRef<JSVal> Execute(const std::vector<NG::TouchTestInfo>& touchInfo);
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/hyperlink/ |
H A D | hyperlink_test_ng.cpp | 329 TouchLocationInfo touchInfo(1); in HWTEST_F() 330 touchInfo.SetTouchType(TouchType::DOWN); in HWTEST_F() 332 touchEventInfo.changedTouches_.emplace_back(touchInfo); in HWTEST_F() 345 touchInfo.SetTouchType(TouchType::UP); in HWTEST_F() 347 touchEventInfo.changedTouches_.emplace_back(touchInfo); in HWTEST_F() 350 touchInfo.SetTouchType(TouchType::CANCEL); in HWTEST_F() 352 touchEventInfo.changedTouches_.emplace_back(touchInfo); in HWTEST_F() 521 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 524 touchInfo.SetPreventDefault(true); in HWTEST_F() 525 touchInfo in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/button/ |
H A D | toggle_button_test_ng.cpp | 514 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 517 touchInfo.SetPreventDefault(true); in HWTEST_F() 518 touchInfo.SetSourceDevice(SourceType::TOUCH); in HWTEST_F() 519 touchInfo.AddTouchLocationInfo(std::move(touchDownInfo)); in HWTEST_F() 520 pattern->touchListener_->callback_(touchInfo); in HWTEST_F() 561 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 564 touchInfo.SetPreventDefault(false); in HWTEST_F() 565 touchInfo.SetSourceDevice(SourceType::TOUCH); in HWTEST_F() 566 touchInfo.AddTouchLocationInfo(std::move(touchDownInfo)); in HWTEST_F() 567 pattern->touchListener_->callback_(touchInfo); in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/checkboxgroup/ |
H A D | checkboxgroup_pattern_test_ng.cpp | 494 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 497 touchInfo.SetPreventDefault(true); in HWTEST_F() 498 touchInfo.SetSourceDevice(SourceType::TOUCH); in HWTEST_F() 499 touchInfo.AddTouchLocationInfo(std::move(touchDownInfo)); in HWTEST_F() 500 pattern->touchListener_->callback_(touchInfo); in HWTEST_F() 539 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 542 touchInfo.SetPreventDefault(false); in HWTEST_F() 543 touchInfo.SetSourceDevice(SourceType::TOUCH); in HWTEST_F() 544 touchInfo.AddTouchLocationInfo(std::move(touchDownInfo)); in HWTEST_F() 545 pattern->touchListener_->callback_(touchInfo); in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/ |
H A D | js_frontend.cpp | 27 const auto touchInfo = TypeInfoHelper::DynamicCast<TouchEventInfo>(&info); in TouchInfoToString() local 28 if (touchInfo) { in TouchInfoToString() 29 auto touchList = touchInfo->GetTouches(); in TouchInfoToString() 52 eventParam.append("\"deviceId\":").append(std::to_string(touchInfo->GetDeviceId())).append(","); in TouchInfoToString() 54 auto changeTouch = touchInfo->GetChangedTouches(); in TouchInfoToString() 84 const auto touchInfo = TypeInfoHelper::DynamicCast<DragStartInfo>(&info); in DragStartInfoToString() local 85 if (touchInfo) { in DragStartInfoToString() 86 auto globalLocation = touchInfo->GetGlobalLocation(); in DragStartInfoToString() 98 const auto touchInfo = TypeInfoHelper::DynamicCast<DragUpdateInfo>(&info); in DragUpdateInfoToString() local 99 if (touchInfo) { in DragUpdateInfoToString() 112 const auto touchInfo = TypeInfoHelper::DynamicCast<DragUpdateInfo>(&info); DragEnterInfoToString() local 126 const auto touchInfo = TypeInfoHelper::DynamicCast<DragUpdateInfo>(&info); DragOverInfoToString() local 140 const auto touchInfo = TypeInfoHelper::DynamicCast<DragUpdateInfo>(&info); DragLeaveInfoToString() local 154 const auto touchInfo = TypeInfoHelper::DynamicCast<DragEndInfo>(&info); DragDropInfoToString() local 168 const auto touchInfo = TypeInfoHelper::DynamicCast<DragEndInfo>(&info); DragEndInfoToString() local [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/radio/ |
H A D | radio_node_test_ng.cpp | 1071 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 1074 touchInfo.SetPreventDefault(true); in HWTEST_F() 1075 touchInfo.SetSourceDevice(SourceType::TOUCH); in HWTEST_F() 1076 touchInfo.AddTouchLocationInfo(std::move(touchDownInfo)); in HWTEST_F() 1077 pattern->touchListener_->callback_(touchInfo); in HWTEST_F() 1116 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 1119 touchInfo.SetPreventDefault(false); in HWTEST_F() 1120 touchInfo.SetSourceDevice(SourceType::TOUCH); in HWTEST_F() 1121 touchInfo.AddTouchLocationInfo(std::move(touchDownInfo)); in HWTEST_F() 1122 pattern->touchListener_->callback_(touchInfo); in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/ |
H A D | cj_frontend.cpp | 49 const auto* touchInfo = TypeInfoHelper::DynamicCast<TouchEventInfo>(&info); in CopyEventInfo() local 50 if (touchInfo != nullptr) { in CopyEventInfo() 51 return std::make_shared<TouchEventInfo>(*touchInfo); in CopyEventInfo() 79 const auto touchInfo = TypeInfoHelper::DynamicCast<TouchEventInfo>(&info); in TouchInfoToString() local 80 if (touchInfo) { in TouchInfoToString() 81 auto touchList = touchInfo->GetTouches(); in TouchInfoToString() 101 auto changeTouch = touchInfo->GetChangedTouches(); in TouchInfoToString()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/ |
H A D | rich_editor_pattern_testthree_ng.cpp | 508 auto touchInfo = touchEventInfo.GetTouches().front(); in HWTEST_F() local 509 auto touchType = touchInfo.GetTouchType(); in HWTEST_F() 528 auto touchInfo = touchEventInfo.GetTouches().front(); in HWTEST_F() local 529 auto touchType = touchInfo.GetTouchType(); in HWTEST_F() 548 auto touchInfo = touchEventInfo.GetTouches().front(); in HWTEST_F() local 549 auto touchType = touchInfo.GetTouchType(); in HWTEST_F() 568 auto touchInfo = touchEventInfo.GetTouches().front(); in HWTEST_F() local 569 auto touchType = touchInfo.GetTouchType(); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/checkbox/ |
H A D | checkbox_pattern_sub_test_ng.cpp | 740 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 743 touchInfo.SetPreventDefault(true); in HWTEST_F() 744 touchInfo.SetSourceDevice(SourceType::TOUCH); in HWTEST_F() 745 touchInfo.AddTouchLocationInfo(std::move(touchDownInfo)); in HWTEST_F() 746 pattern->touchListener_->callback_(touchInfo); in HWTEST_F() 785 TouchEventInfo touchInfo("onTouch"); in HWTEST_F() 788 touchInfo.SetPreventDefault(false); in HWTEST_F() 789 touchInfo.SetSourceDevice(SourceType::TOUCH); in HWTEST_F() 790 touchInfo.AddTouchLocationInfo(std::move(touchDownInfo)); in HWTEST_F() 791 pattern->touchListener_->callback_(touchInfo); in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/ |
H A D | interactable_view.h | 32 static void OnTouch(std::function<void(TouchEventInfo& touchInfo)> callback);
|
H A D | interactable_view.cpp | 52 void InteractableView::OnTouch(std::function<void(TouchEventInfo& touchInfo)> callback) in OnTouch()
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | image_analyzer_manager.cpp | 397 analyzerUIConfig_.touchInfo.touchPoint.x = 1.0 * pointX / rectWidth * pixelMap->GetWidth(); in UpdatePressOverlay() 398 analyzerUIConfig_.touchInfo.touchPoint.y = 1.0 * pointY / rectHeight * pixelMap->GetHeight(); in UpdatePressOverlay() 400 analyzerUIConfig_.touchInfo.touchType = TouchType::DOWN; in UpdatePressOverlay() 419 analyzerUIConfig_.touchInfo.touchPoint.x = touchPointX - analyzerUIConfig_.overlayOffset.GetX(); in UpdateOverlayTouchInfo() 420 analyzerUIConfig_.touchInfo.touchPoint.y = touchPointY - analyzerUIConfig_.overlayOffset.GetY(); in UpdateOverlayTouchInfo() 421 analyzerUIConfig_.touchInfo.touchType = touchType; in UpdateOverlayTouchInfo()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_interactable_view_ffi.h | 29 CJ_EXPORT void FfiOHOSAceFrameworkInteractableViewOnTouch(bool (*callback)(CJTouchEvent touchInfo));
|
/foundation/arkui/ace_engine/frameworks/core/components/web/ |
H A D | render_web.cpp | 559 TouchInfo touchInfo; in ParseTouchInfo() local 560 touchInfo.id = point.GetFingerId(); in ParseTouchInfo() 562 touchInfo.x = location.GetX() * viewScale; in ParseTouchInfo() 563 touchInfo.y = location.GetY() * viewScale; in ParseTouchInfo() 564 touchInfos.emplace_back(touchInfo); in ParseTouchInfo() 572 TouchInfo touchInfo; in ParseTouchInfo() local 573 touchInfo.id = point.GetFingerId(); in ParseTouchInfo() 575 touchInfo.x = location.GetX() * viewScale; in ParseTouchInfo() 576 touchInfo.y = location.GetY() * viewScale; in ParseTouchInfo() 577 touchInfos.emplace_back(touchInfo); in ParseTouchInfo() 585 TouchInfo touchInfo; ParseTouchInfo() local [all...] |
/foundation/multimodalinput/input/service/touch_event_normalize/include/ |
H A D | touch_transform_processor.h | 45 void UpdatePointerItemProperties(PointerEvent::PointerItem &item, EventTouch &touchInfo);
|
/foundation/multimodalinput/input/service/window_manager/test/ |
H A D | input_windows_manager_ex_test.cpp | 760 EventTouch touchInfo; in HWTEST_F() local 761 touchInfo.point.x = 125; in HWTEST_F() 762 touchInfo.point.y = 300; in HWTEST_F() 763 touchInfo.toolRect.point.x = 300; in HWTEST_F() 764 touchInfo.toolRect.point.y = 600; in HWTEST_F() 765 touchInfo.toolRect.width = 720; in HWTEST_F() 766 touchInfo.toolRect.height = 1000; in HWTEST_F() 767 EXPECT_NO_FATAL_FAILURE(inputWindowsMgr->GetPhysicalDisplayCoord(touch, info, touchInfo)); in HWTEST_F() 784 EventTouch touchInfo; in HWTEST_F() local 785 touchInfo in HWTEST_F() 2360 EventTouch touchInfo; HWTEST_F() local 2614 EventTouch touchInfo; HWTEST_F() local 3172 EventTouch touchInfo; HWTEST_F() local 3196 EventTouch touchInfo; HWTEST_F() local 3221 EventTouch touchInfo; HWTEST_F() local [all...] |