/foundation/ace/ace_engine/frameworks/core/gestures/ |
D | raw_recognizer.cpp | 30 void RawRecognizer::HandleEvent(const TouchEvent& point, uint32_t stage) in HandleEvent() argument 32 LOGD("raw recognizer handle event, event type is %{public}zu stage=%u", point.type, stage); in HandleEvent() 33 switch (point.type) { in HandleEvent() 37 callback(CreateTouchEventInfo(ON_TOUCH_MOVE_EVENT, point)); in HandleEvent() 44 callback(CreateTouchEventInfo(ON_TOUCH_DOWN_EVENT, point)); in HandleEvent() 51 lastPoint_ = point; in HandleEvent() 52 callback(CreateTouchEventInfo(ON_TOUCH_UP_EVENT, point, true)); in HandleEvent() 59 lastPoint_ = point; in HandleEvent() 60 callback(CreateTouchEventInfo(ON_TOUCH_CANCEL_EVENT, point, true)); in HandleEvent() 68 isFirstTrack_ = point.type == TouchType::DOWN; in HandleEvent() [all …]
|
D | gesture_recognizer.cpp | 23 bool GestureRecognizer::HandleEvent(const TouchEvent& point) in HandleEvent() argument 25 switch (point.type) { in HandleEvent() 27 HandleTouchMoveEvent(point); in HandleEvent() 30 deviceId_ = point.deviceId; in HandleEvent() 31 deviceType_ = point.sourceType; in HandleEvent() 32 HandleTouchDownEvent(point); in HandleEvent() 35 HandleTouchUpEvent(point); in HandleEvent() 38 HandleTouchCancelEvent(point); in HandleEvent()
|
D | swipe_recognizer.cpp | 76 bool SwipeRecognizer::HandleEvent(const TouchEvent& point) in HandleEvent() argument 78 switch (point.type) { in HandleEvent() 81 auto& status = statusMap_[point.id]; in HandleEvent() 82 status.first = point; in HandleEvent() 87 auto& status = statusMap_[point.id]; in HandleEvent() 89 auto direction = GetSwipeDirection(status.first, point); in HandleEvent() 93 … swipeCallback_(SwipeEventInfo(direction, GetSwipeDistance(direction, status.first, point))); in HandleEvent() 98 auto& status = statusMap_[point.id]; in HandleEvent() 103 auto& status = statusMap_[point.id]; in HandleEvent() 113 bool SwipeRecognizer::DispatchEvent(const TouchEvent& point) in DispatchEvent() argument
|
D | sequenced_recognizer.cpp | 76 bool SequencedRecognizer::HandleEvent(const TouchEvent& point) in HandleEvent() argument 79 …spatch to the %{public}zu gesture recognizer, event type is %{public}zu", activeIndex, point.type); in HandleEvent() 80 switch (point.type) { in HandleEvent() 82 curPoints_[point.id] = point; in HandleEvent() 83 curRecognizer->HandleEvent(point); in HandleEvent() 89 curPoints_[point.id] = point; in HandleEvent() 90 curRecognizer->HandleEvent(point); in HandleEvent() 93 curPoints_.erase(point.id); in HandleEvent() 94 curRecognizer->HandleEvent(point); in HandleEvent() 97 curPoints_.erase(point.id); in HandleEvent() [all …]
|
D | multi_fingers_recognizer.cpp | 78 for (auto& point : touchPoints) { in SetFingerList() local 79 Offset localLocation = point.second.GetOffset() - coordinateOffset; in SetFingerList() 80 FingerInfo fingerInfo = {point.first, point.second.GetOffset(), localLocation}; in SetFingerList()
|
/foundation/windowmanager/wmserver/src/ |
D | drag_controller.cpp | 35 PointInfo point; in UpdateDragInfo() local 36 if (!GetHitPoint(windowId, point)) { in UpdateDragInfo() 43 sptr<WindowNode> hitWindowNode = GetHitWindow(dragNode->GetDisplayId(), point); in UpdateDragInfo() 45 WLOGFE("Get point failed %{public}d %{public}d", point.x, point.y); in UpdateDragInfo() 49 hitWindowNode->GetWindowToken()->UpdateWindowDragInfo(point, DragEvent::DRAG_EVENT_MOVE); in UpdateDragInfo() 52 hitWindowNode->GetWindowToken()->UpdateWindowDragInfo(point, DragEvent::DRAG_EVENT_IN); in UpdateDragInfo() 55 oldHitWindow->GetWindowToken()->UpdateWindowDragInfo(point, DragEvent::DRAG_EVENT_OUT); in UpdateDragInfo() 62 PointInfo point; in StartDrag() local 63 if (!GetHitPoint(windowId, point)) { in StartDrag() 71 sptr<WindowNode> hitWindow = GetHitWindow(dragNode->GetDisplayId(), point); in StartDrag() [all …]
|
/foundation/ace/ace_engine/frameworks/core/event/ |
D | touch_event.h | 107 std::for_each(temp.begin(), temp.end(), [scale](auto&& point) { in CreateScalePoint() 108 point.x = point.x / scale; in CreateScalePoint() 109 point.y = point.y / scale; in CreateScalePoint() 110 point.screenX = point.screenX / scale; in CreateScalePoint() 111 point.screenY = point.screenY / scale; in CreateScalePoint() 121 std::for_each(temp.begin(), temp.end(), [offsetX, offsetY](auto&& point) { in UpdateScalePoint() 122 point.x = point.x - offsetX; in UpdateScalePoint() 123 point.y = point.y - offsetY; in UpdateScalePoint() 124 point.screenX = point.screenX - offsetX; in UpdateScalePoint() 125 point.screenY = point.screenY - offsetY; in UpdateScalePoint() [all …]
|
D | event_convertor.cpp | 33 …TouchEvent point { static_cast<int32_t>(current->actionId), static_cast<float>(current->physicalX), in ConvertTouchEvent() local 39 point.type = TouchType::CANCEL; in ConvertTouchEvent() 40 events.push_back(point); in ConvertTouchEvent() 47 point.type = TouchType::DOWN; in ConvertTouchEvent() 48 events.push_back(point); in ConvertTouchEvent() 51 point.type = TouchType::MOVE; in ConvertTouchEvent() 52 events.push_back(point); in ConvertTouchEvent() 55 point.type = TouchType::UP; in ConvertTouchEvent() 56 events.push_back(point); in ConvertTouchEvent()
|
/foundation/ace/ace_engine/frameworks/core/gestures/test/unittest/ |
D | gestures_test.cpp | 378 TouchEvent point { variable 381 rawRecognizer->HandleEvent(point); 414 TouchEvent point { variable 417 rawRecognizer->HandleEvent(point); 451 TouchEvent point { variable 454 rawRecognizer->HandleEvent(point); 487 TouchEvent point { variable 490 rawRecognizer->HandleEvent(point); 666 TouchEvent point { variable 669 longPressRecognizer->HandleEvent(point); [all …]
|
/foundation/ace/ace_engine/frameworks/core/common/ |
D | event_manager.cpp | 38 const Point point { touchPoint.x, touchPoint.y, touchPoint.sourceType }; in TouchTest() local 40 renderNode->TouchTest(point, point, touchRestrict, hitTestResult); in TouchTest() 44 bool EventManager::DispatchTouchEvent(const TouchEvent& point) in DispatchTouchEvent() argument 47 const auto iter = touchTestResults_.find(point.id); in DispatchTouchEvent() 51 if (!(*entry)->DispatchEvent(point)) { in DispatchTouchEvent() 60 if (!entry->HandleEvent(point)) { in DispatchTouchEvent() 66 if (point.type == TouchType::UP || point.type == TouchType::CANCEL) { in DispatchTouchEvent() 67 GestureReferee::GetInstance().CleanGestureScope(point.id); in DispatchTouchEvent() 68 touchTestResults_.erase(point.id); in DispatchTouchEvent() 73 LOGI("the %{public}d touch test result does not exist!", point.id); in DispatchTouchEvent() [all …]
|
/foundation/graphic/ui/frameworks/draw/ |
D | draw_curve.cpp | 31 Point point; in DrawCubicBezier() local 32 point.x = Interpolation::GetBezierInterpolation(t, start.x, control1.x, control2.x, end.x); in DrawCubicBezier() 33 point.y = Interpolation::GetBezierInterpolation(t, start.y, control1.y, control2.y, end.y); in DrawCubicBezier() 34 if ((prePoint.x == point.x) && (prePoint.y == point.y)) { in DrawCubicBezier() 37 …BaseGfxEngine::GetInstance()->DrawLine(gfxDstBuffer, prePoint, point, mask, width, color, opacity); in DrawCubicBezier() 38 prePoint = point; in DrawCubicBezier()
|
/foundation/ace/ace_engine/adapter/preview/entrance/ |
D | flutter_ace_view.cpp | 59 TouchEvent point { in ConvertTouchEvent() local 65 point.pointers.emplace_back(ConvertTouchPoint(current)); in ConvertTouchEvent() 68 point.type = TouchType::CANCEL; in ConvertTouchEvent() 69 events.push_back(point); in ConvertTouchEvent() 76 point.type = TouchType::DOWN; in ConvertTouchEvent() 77 events.push_back(point); in ConvertTouchEvent() 80 point.type = TouchType::MOVE; in ConvertTouchEvent() 81 events.push_back(point); in ConvertTouchEvent() 84 point.type = TouchType::UP; in ConvertTouchEvent() 85 events.push_back(point); in ConvertTouchEvent() [all …]
|
/foundation/ace/ace_engine/frameworks/core/components/touch_listener/ |
D | render_touch_listener.cpp | 93 bool RenderTouchListener::DispatchEvent(const TouchEvent& point) in DispatchEvent() argument 98 bool RenderTouchListener::HandleEvent(const TouchEvent& point) in HandleEvent() argument 103 if (point.type == TouchType::DOWN) { in HandleEvent() 104 touchPointMap_[point.id] = point; in HandleEvent() 105 isPropagation = TriggerTouchCallBack(point); in HandleEvent() 106 } else if (point.type == TouchType::UP) { in HandleEvent() 107 isPropagation = TriggerTouchCallBack(point); in HandleEvent() 108 touchPointMap_.erase(point.id); in HandleEvent() 111 …if (pointPair.first == point.id && (pointPair.second.x != point.x || pointPair.second.y != point.y… in HandleEvent() 112 touchPointMap_[point.id] = point; in HandleEvent() [all …]
|
/foundation/ace/ace_engine/frameworks/base/geometry/ |
D | point.h | 81 Offset operator-(const Point& point) const 83 return Offset(x_ - point.x_, y_ - point.y_); 86 bool operator==(const Point& point) const 88 return NearEqual(x_, point.x_) && NearEqual(y_, point.y_); 91 bool operator!=(const Point& point) const 93 return !operator==(point);
|
/foundation/multimodalinput/input/service/event_dispatch/src/ |
D | event_dispatch.cpp | 95 bool EventDispatch::HandlePointerEventFilter(std::shared_ptr<PointerEvent> point) in HandlePointerEventFilter() argument 97 return EventFilterWrap::GetInstance().HandlePointerEventFilter(point); in HandlePointerEventFilter() 100 void EventDispatch::HandlePointerEventTrace(const std::shared_ptr<PointerEvent> &point) in HandlePointerEventTrace() argument 102 if (point->GetSourceType() == PointerEvent::SOURCE_TYPE_MOUSE) { in HandlePointerEventTrace() 103 int32_t pointerId = point->GetId(); in HandlePointerEventTrace() 107 if (point->GetSourceType() == PointerEvent::SOURCE_TYPE_TOUCHSCREEN) { in HandlePointerEventTrace() 108 int32_t touchId = point->GetId(); in HandlePointerEventTrace() 114 int32_t EventDispatch::HandlePointerEvent(std::shared_ptr<PointerEvent> point) in HandlePointerEvent() argument 116 CHKPR(point, ERROR_NULL_POINTER); in HandlePointerEvent() 117 auto fd = WinMgr->UpdateTargetPointer(point); in HandlePointerEvent() [all …]
|
/foundation/ace/ace_engine/frameworks/core/components/menu/ |
D | menu_element.cpp | 59 …eakClaim(this), isContextMenu = data_->IsContextMenu()](const ComposeId& id, const Offset& point) { in PerformBuild() argument 66 refPtr->OnTargetContextCallback(id, point); in PerformBuild() 68 refPtr->OnTargetCallback(id, point); in PerformBuild() 73 void MenuElement::OnTargetCallback(const ComposeId& id, const Offset& point) in OnTargetCallback() argument 94 popup->ShowDialog(stack, point, point, true); in OnTargetCallback() 99 popup->ShowDialog(stack, point, point, true); in OnTargetCallback() 119 void MenuElement::OnTargetContextCallback(const ComposeId& id, const Offset& point) in OnTargetContextCallback() argument 136 popup->ShowContextMenu(point); in OnTargetContextCallback()
|
/foundation/aafwk/aafwk_lite/services/abilitymgr_lite/include/util/ |
D | abilityms_log.h | 65 #define CHECK_NULLPTR_RETURN_PTR(point, name, fmt) \ argument 67 if ((point) == nullptr) { \ 73 #define CHECK_NULLPTR_RETURN(point, name, fmt) \ argument 75 if ((point) == nullptr) { \ 81 #define CHECK_NULLPTR_RETURN_CODE(point, name, fmt, code) \ argument 83 if ((point) == nullptr) { \
|
/foundation/appexecfwk/appexecfwk_lite/services/bundlemgr_lite/include/ |
D | bundlems_log.h | 65 #define CHECK_NULLPTR_RETURN_PTR(point, name, fmt) \ argument 67 if ((point) == nullptr) { \ 73 #define CHECK_NULLPTR_RETURN(point, name, fmt) \ argument 75 if ((point) == nullptr) { \ 81 #define CHECK_NULLPTR_RETURN_CODE(point, name, fmt, code) \ argument 83 if ((point) == nullptr) { \
|
/foundation/ace/ace_engine/frameworks/core/components/test/unittest/gestures/ |
D | gesture_component_test.cpp | 149 Point point { LOCATION_X, LOCATION_Y }; variable 151 touchListener->TouchTest(point, point, { TouchRestrict::NONE }, result); 200 Point point { LOCATION_X, LOCATION_Y }; variable 202 touchListener->TouchTest(point, point, { TouchRestrict::NONE }, result); 251 Point point { LOCATION_X, LOCATION_Y }; variable 253 touchListener->TouchTest(point, point, { TouchRestrict::NONE }, result); 303 Point point { LOCATION_X, LOCATION_Y }; variable 305 touchListener->TouchTest(point, point, { TouchRestrict::NONE }, result); 354 Point point { LOCATION_X, LOCATION_Y }; variable 356 gestureListener->TouchTest(point, point, { TouchRestrict::NONE }, result); [all …]
|
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
D | js_polyline.cpp | 52 ShapePoint point; in JSPoints() local 66 … point.first = Dimension(pointArray->GetValueAt(0)->ToNumber<double>(), DimensionUnit::VP); in JSPoints() 68 … point.first = StringUtils::StringToDimension(pointArray->GetValueAt(0)->ToString(), true); in JSPoints() 74 … point.second = Dimension(pointArray->GetValueAt(1)->ToNumber<double>(), DimensionUnit::VP); in JSPoints() 76 … point.second = StringUtils::StringToDimension(pointArray->GetValueAt(1)->ToString(), true); in JSPoints() 81 points.push_back(point); in JSPoints()
|
/foundation/graphic/ui/frameworks/dfx/ |
D | point_event_injector.cpp | 50 tmpData->point = data.point; in SetPointEvent() 59 lastX_ = dataList_.Front()->point.x; in Read() 60 lastY_ = dataList_.Front()->point.y; in Read() 70 data.point = {lastX_, lastY_}; in Read()
|
/foundation/graphic/ui/frameworks/components/ |
D | ui_view_group.cpp | 160 void UIViewGroup::GetTargetView(const Point& point, UIView** last) in GetTargetView() argument 171 if (!rect.IsContains(point)) { in GetTargetView() 187 if (rect.IsContains(point)) { in GetTargetView() 188 view->GetTargetView(point, last); in GetTargetView() 192 viewGroup->GetTargetView(point, last); in GetTargetView() 198 void UIViewGroup::GetTargetView(const Point& point, UIView** current, UIView** target) in GetTargetView() argument 210 if (!rect.IsContains(point)) { in GetTargetView() 227 if (rect.IsContains(point)) { in GetTargetView() 228 view->GetTargetView(point, current, target); in GetTargetView() 232 viewGroup->GetTargetView(point, current, target); in GetTargetView()
|
/foundation/windowmanager/utils/src/ |
D | screen_group_info.cpp | 65 Point point; in InnerUnmarshalling() local 66 if (parcel.ReadInt32(point.posX_) && parcel.ReadInt32(point.posY_)) { in InnerUnmarshalling() 67 position_.push_back(point); in InnerUnmarshalling()
|
/foundation/graphic/utils/interfaces/kits/gfx_utils/ |
D | rect.h | 393 bool IsContains(const Vector2<T>& point) const in IsContains() argument 397 if ((point.x_ >= this->left_) && (point.x_ <= this->right_) && (point.y_ >= this->top_) && in IsContains() 398 (point.y_ <= this->bottom_)) { in IsContains() 412 bool IsContains(const Point& point) const in IsContains() argument 416 if ((point.x >= this->left_) && (point.x <= this->right_) && (point.y >= this->top_) && in IsContains() 417 (point.y <= this->bottom_)) { in IsContains()
|
/foundation/multimodalinput/input/service/filter/src/ |
D | event_filter_wrap.cpp | 44 bool EventFilterWrap::HandlePointerEventFilter(std::shared_ptr<PointerEvent> point) in HandlePointerEventFilter() argument 47 CHKPF(point); in HandlePointerEventFilter() 50 if (filter_->HandlePointerEvent(point)) { in HandlePointerEventFilter()
|