/foundation/multimodalinput/input/service/event_resample/include/ |
H A D | event_resample.h | 89 std::map<uint32_t, Pointer> pointers; member 99 pointers.clear(); in Reset() 110 for (auto &it : other.pointers) { in InitializeFrom() 111 pointers[it.first] = it.second; in InitializeFrom() 139 pointers[pointer.id] = pointer; in InitializeFrom() 152 std::map<uint32_t, Pointer> pointers; member 158 for (auto &it : event.pointers) { in InitializeFrom() 159 pointers[it.first] = it.second; in InitializeFrom() 166 for (auto &it : other.pointers) { in InitializeFrom() 167 pointers[i in InitializeFrom() [all...] |
/foundation/multimodalinput/input/service/event_resample/src/ |
H A D | event_resample.cpp | 96 for (auto &it : event.pointers) { in EventDump() 182 for (auto &it : outEvent->pointers) { in UpdatePointerEvent() 296 for (auto &it : event->pointers) { in AddSample() 297 outEvent->pointers[it.first] = it.second; in AddSample() 363 // Ensure that the current sample has all of the pointers that need to be reported. in ResampleTouchState() 365 for (auto &it : event->pointers) { in ResampleTouchState() 415 for (auto &it : event->pointers) { in ResampleCoordinates() 418 auto lastItem = touchState.lastResample.pointers.find(id); in ResampleCoordinates() 419 if (lastItem != touchState.lastResample.pointers.end()) { in ResampleCoordinates() 420 auto oldLastItem = oldLastResample.pointers in ResampleCoordinates() [all...] |
/foundation/arkui/ace_engine/frameworks/core/event/ |
H A D | event_convertor.cpp | 67 std::vector<TouchPoint> pointers; in UpdateTouchEvent() local 79 pointers.emplace_back(std::move(touchPoint)); in UpdateTouchEvent() 82 std::copy(pointers.begin(), pointers.end(), std::back_inserter(event.pointers)); in UpdateTouchEvent()
|
H A D | touch_event.cpp | 132 TouchEvent& TouchEvent::SetPointers(std::vector<TouchPoint> pointers) in SetPointers() argument 134 this->pointers = std::move(pointers); in SetPointers() 200 event.pointers = std::move(pointers); in CloneWith() 286 auto temp = pointers; in CreateScalePoint() 298 auto temp = pointers; in UpdateScalePoint() 345 event.pointers.emplace_back(std::move(point)); in UpdatePointers()
|
H A D | touch_event.h | 84 std::vector<TouchPoint> pointers; member 120 TouchEvent& SetPointers(std::vector<TouchPoint> pointers);
|
H A D | mouse_event.h | 231 event.pointers.emplace_back(std::move(point)); in CreateTouchPoint()
|
/foundation/arkui/ace_engine/test/unittest/core/accessibility/ |
H A D | accessibility_manager_ng_test_ng.cpp | 124 touchEvent.pointers.push_back(pointOne); in HWTEST_F() 126 touchEvent.pointers.push_back(pointTwo); in HWTEST_F() 139 touchEvent.pointers.push_back(pointOne); in HWTEST_F() 140 touchEvent.pointers.push_back(pointTwo); in HWTEST_F() 145 touchEvent.pointers.push_back(pointOne); in HWTEST_F() 146 touchEvent.pointers.push_back(pointTwo); in HWTEST_F() 328 // pointers.size in HWTEST_F() 335 touchEvent.pointers.clear(); in HWTEST_F() 346 touchEvent.pointers.push_back(pointOne); in HWTEST_F() 347 touchEvent.pointers in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/ |
H A D | multi_fingers_recognizer.cpp | 48 && point.second.pointers.size() >= touchPoints_.size()) { in UpdateFingerListInfo() 121 touchPoints_[event.id].pointers = { point }; in UpdateTouchPointWithAxisEvent()
|
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_mouse_autoclick.cpp | 59 std::vector<int32_t> pointers = event.GetPointerIds(); in OnPointerEvent() local 60 size_t pointerCount = pointers.size(); in OnPointerEvent()
|
H A D | accessibility_mouse_key.cpp | 105 std::vector<int32_t> pointers = event.GetPointerIds(); in OnPointerEvent() local 106 size_t pointerCount = pointers.size(); in OnPointerEvent()
|
/foundation/arkui/ace_engine/adapter/preview/external/multimodalinput/ |
H A D | pointer_event.h | 81 std::vector<TouchPoint> pointers; member in OHOS::MMI::PointerEvent
|
/foundation/multimodalinput/input/frameworks/napi/input_monitor/src/ |
H A D | js_input_monitor.cpp | 609 napi_value pointers = nullptr; in TransformPointerEvent() local 610 CHKRR(napi_create_array(jsEnv_, &pointers), "napi_create_array is", RET_ERR); in TransformPointerEvent() 628 CHKRR(napi_set_element(jsEnv_, pointers, index, element), "napi_set_element is", RET_ERR); in TransformPointerEvent() 631 CHKRR(SetNameProperty(jsEnv_, result, "touches", pointers), "Set touches", RET_ERR); in TransformPointerEvent() 1385 napi_value pointers = nullptr; in TransformGestureEvent() local 1386 CHKRR(napi_create_array(jsEnv_, &pointers), "napi_create_array is", RET_ERR); in TransformGestureEvent() 1404 CHKRR(napi_set_element(jsEnv_, pointers, index, element), "napi_set_element is", RET_ERR); in TransformGestureEvent() 1407 CHKRR(SetNameProperty(jsEnv_, result, "touches", pointers), "Set touches", RET_ERR); in TransformGestureEvent()
|
/foundation/multimodalinput/input/service/event_resample/test/ |
H A D | event_resample_test.cpp | 645 outEvent.pointers.insert(std::make_pair(1, p)); in HWTEST_F() 672 outEvent.pointers.insert(std::make_pair(1, p)); in HWTEST_F() 853 event.pointers.insert(std::make_pair(1, p)); in HWTEST_F() 884 event.pointers.insert(std::make_pair(1, p)); in HWTEST_F() 959 event.pointers.insert(std::make_pair(1, p)); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/base/ |
H A D | frame_node_test_ng_coverage_new.cpp | 363 touchEvent.pointers.emplace_back(touchPoint); in HWTEST_F() 367 touchEvent.pointers.emplace_back(touchPoint1); in HWTEST_F()
|
/foundation/arkui/ace_engine/adapter/preview/entrance/samples/ |
H A D | event_adapter.cpp | 192 pointerEvent_->pointers = {}; in RecognizePointerEvent()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_gesture_modifier.cpp | 239 ConvertTouchPointsToPoints(info, tempTouchEvent.pointers, points); in ConvertIMMEventToTouchEvent() 240 if (tempTouchEvent.pointers.size() > 0) { in ConvertIMMEventToTouchEvent() 250 touchEvent.touchPointSize = tempTouchEvent.pointers.size() < MAX_POINTS ? in ConvertIMMEventToTouchEvent() 251 tempTouchEvent.pointers.size() : MAX_POINTS; in ConvertIMMEventToTouchEvent()
|
H A D | node_common_modifier.cpp | 6681 tempTouchEvent.pointers, allHistoryPoints[i], *historyLoacationIterator, usePx); in SetOnTouch() 6682 if (tempTouchEvent.pointers.size() > 0) { in SetOnTouch() 6686 tempTouchEvent.pointers.size() < MAX_POINTS ? tempTouchEvent.pointers.size() : MAX_POINTS; in SetOnTouch()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/ |
H A D | touch_event.cpp | 81 for (const auto& item : lastPoint.pointers) { in TriggerTouchCallBack()
|
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | raw_recognizer.cpp | 130 for (auto&& touchPoint : point.pointers) { in CreateTouchEventInfo()
|
/foundation/arkui/ace_engine/frameworks/core/accessibility/ |
H A D | accessibility_manager_ng.cpp | 71 if (event.pointers.size() > 1 && event.sourceType == SourceType::TOUCH) { in HandleAccessibilityHoverEvent()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_base_node.cpp | 308 touchEvent.pointers.emplace_back(point); in InitTouchEvent()
|
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | event_manager.cpp | 434 event.pointers.emplace_back(std::move(point)); in ConvertAxisEventToTouchEvent() 2223 falsifyEvent.pointers = lastTouchEvent_.pointers; in FalsifyCancelEventAndDispatch()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | mmi_event_convertor.cpp | 90 touchEvent.pointers.emplace_back(std::move(touchPoint)); in UpdateTouchEvent()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline_ng/ |
H A D | pipeline_context.cpp | 2837 auto& pointers = iter->pointers; in CompensateTouchMoveEventFromUnhandledEvents() local 2838 for (auto pointerIter = pointers.begin(); pointerIter != pointers.end();) { in CompensateTouchMoveEventFromUnhandledEvents() 2840 pointerIter = pointers.erase(pointerIter); in CompensateTouchMoveEventFromUnhandledEvents()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | frame_node.cpp | 5054 for (const auto& item : touchEvent.pointers) { in AddTouchEventAllFingersInfo()
|