Home
last modified time | relevance | path

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

12

/foundation/multimodalinput/input/service/touch_event_normalize/src/
H A Dtablet_tool_tranform_processor.cpp78 int32_t toolType = libinput_event_tablet_tool_get_tool_type(tabletEvent); in GetToolType() local
79 if (toolType != 0) { in GetToolType()
157 int32_t toolType = GetToolType(event); in OnTipDown() local
179 item.SetToolType(toolType); in OnTipDown()
208 int32_t toolType = GetToolType(tabletEvent); in OnTipMotion() local
222 item.SetToolType(toolType); in OnTipMotion()
280 int32_t toolType = GetToolType(tabletEvent); in OnTipProximity() local
296 item.SetToolType(toolType); in OnTipProximity()
H A Dtouch_transform_processor.cpp90 int32_t toolType = GetTouchToolType(touch, device); in OnEventTouchDown() local
92 NotifyFingersenseProcess(item, toolType); in OnEventTouchDown()
94 item.SetToolType(toolType); in OnEventTouchDown()
119 void TouchTransformProcessor::NotifyFingersenseProcess(PointerEvent::PointerItem &pointerItem, int32_t &toolType) in NotifyFingersenseProcess() argument
133 FINGERSENSE_WRAPPER->setCurrentToolType_(rawTouchTmp, toolType); in NotifyFingersenseProcess()
287 int32_t toolType = libinput_event_touch_get_tool_type(data); in GetTouchToolType() local
288 switch (toolType) { in GetTouchToolType()
299 MMI_HILOGW("Unknown tool type, identified as finger, toolType:%{public}d", toolType); in GetTouchToolType()
H A Dtouchpad_transform_processor.cpp88 int32_t toolType = GetTouchPadToolType(touchpad, device); in OnEventTouchPadDown() local
89 if (toolType == PointerEvent::TOOL_TYPE_PALM) { in OnEventTouchPadDown()
96 item.SetToolType(toolType); in OnEventTouchPadDown()
142 int32_t toolType = GetTouchPadToolType(touchpad, device); in OnEventTouchPadMotion() local
143 if (toolType == PointerEvent::TOOL_TYPE_PALM) { in OnEventTouchPadMotion()
264 int32_t toolType = libinput_event_touchpad_get_tool_type(touchpad); in GetTouchPadToolType() local
265 switch (toolType) { in GetTouchPadToolType()
276 MMI_HILOGD("toolType is MT_TOOL_PALM"); in GetTouchPadToolType()
280 MMI_HILOGW("Unknown tool type, identified as finger, toolType:%{public}d", toolType); in GetTouchPadToolType()
[all...]
/foundation/multimodalinput/input/frameworks/napi/touch_event/src/
H A Djs_touch_event.cpp73 napi_value toolType = nullptr; in Export() local
75 sizeof(toolTypeArr) / sizeof(*toolTypeArr), toolTypeArr, &toolType), DEFINE_CLASS); in Export()
76 CHKRP(napi_set_named_property(env, exports, "ToolType", toolType), SET_NAMED_PROPERTY); in Export()
/foundation/multimodalinput/input/service/event_resample/include/
H A Devent_resample.h68 int32_t toolType; member
75 toolType = other.toolType; in CopyFrom()
83 toolType = 0; in Reset()
137 pointer.toolType = item.GetToolType(); in InitializeFrom()
262 bool ShouldResampleTool(int32_t toolType);
/foundation/multimodalinput/input/frameworks/napi/mouse_event/src/
H A Djs_mouse_event.cpp113 napi_value toolType = nullptr; in Export() local
115 sizeof(toolTypeArr) / sizeof(*toolTypeArr), toolTypeArr, &toolType), DEFINE_CLASS); in Export()
116 CHKRP(napi_set_named_property(env, exports, "ToolType", toolType), SET_NAMED_PROPERTY); in Export()
/foundation/multimodalinput/input/test/facility/libinput_interface/include/
H A Dlibinput_interface.h61 enum libinput_tablet_tool_type toolType; member
69 int32_t toolType; member
/foundation/multimodalinput/input/frameworks/napi/input_event_client/src/
H A Djs_register_module.cpp329 int32_t toolType = 0; in HandleMousePropertyInt32() local
330 if (GetNamedPropertyInt32(env, mouseHandle, "toolType", toolType) != RET_OK) { in HandleMousePropertyInt32()
331 MMI_HILOGE("Get toolType failed"); in HandleMousePropertyInt32()
333 if (toolType < 0) { in HandleMousePropertyInt32()
334 MMI_HILOGE("toolType:%{public}d is less 0, can not process", toolType); in HandleMousePropertyInt32()
335 THROWERR_CUSTOM(env, COMMON_PARAMETER_ERROR, "toolType must be greater than or equal to 0"); in HandleMousePropertyInt32()
337 pointerEvent->SetSourceType(toolType); in HandleMousePropertyInt32()
472 int32_t toolType in HandleTouchPropertyInt32() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/window_scene/mock/
H A Dmock_mmi_event_convertor.cpp46 bool GetPointerEventToolType(const std::shared_ptr<MMI::PointerEvent>& pointerEvent, int32_t& toolType) in GetPointerEventToolType() argument
/foundation/arkui/ace_engine/interfaces/native/
H A Dnative_interface_xcomponent.cpp67 OH_NativeXComponent* component, uint32_t pointIndex, OH_NativeXComponent_TouchPointToolType* toolType) in OH_NativeXComponent_GetTouchPointToolType()
69 if ((component == nullptr) || (toolType == nullptr)) { in OH_NativeXComponent_GetTouchPointToolType()
72 return component->GetToolType(pointIndex, toolType); in OH_NativeXComponent_GetTouchPointToolType()
66 OH_NativeXComponent_GetTouchPointToolType( OH_NativeXComponent* component, uint32_t pointIndex, OH_NativeXComponent_TouchPointToolType* toolType) OH_NativeXComponent_GetTouchPointToolType() argument
H A Dnative_interface_xcomponent.h409 * @param toolType Indicates the tool Type of the pointer.
415 OH_NativeXComponent* component, uint32_t pointIndex, OH_NativeXComponent_TouchPointToolType* toolType);
/foundation/multimodalinput/input/service/touch_event_normalize/include/
H A Dtouch_transform_processor.h44 void NotifyFingersenseProcess(PointerEvent::PointerItem &pointerItem, int32_t &toolType);
/foundation/multimodalinput/input/service/event_resample/src/
H A Devent_resample.cpp97 MMI_HILOGD("ID:%{public}d, coordX:%d, coordY:%d, toolType:%{public}d", in EventDump()
98 it.second.id, it.second.coordX, it.second.coordY, it.second.toolType); in EventDump()
433 if (other->HasPointerId(id) && ShouldResampleTool(item->second.toolType)) { in ResampleCoordinates()
504 bool EventResample::ShouldResampleTool(int32_t toolType) in ShouldResampleTool() argument
506 switch (toolType) { in ShouldResampleTool()
/foundation/multimodalinput/input/service/touch_event_normalize/test/src/
H A Dtouch_transform_processor_test.cpp200 int32_t toolType = processor.GetTouchToolType(device); in HWTEST_F() local
201 ASSERT_EQ(toolType, PointerEvent::TOOL_TYPE_FINGER); in HWTEST_F()
283 int32_t toolType = 0; in HWTEST_F() local
284 EXPECT_NO_FATAL_FAILURE(processor.NotifyFingersenseProcess(item, toolType)); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/
H A Dnative_interface_xcomponent_impl.h225 void SetToolType(size_t pointIndex, OH_NativeXComponent_TouchPointToolType toolType) in SetToolType() argument
230 touchPoints_[pointIndex].sourceToolType = toolType; in SetToolType()
484 int32_t GetToolType(size_t pointIndex, OH_NativeXComponent_TouchPointToolType* toolType);
H A Dnative_interface_xcomponent_impl.cpp112 int32_t OH_NativeXComponent::GetToolType(size_t pointIndex, OH_NativeXComponent_TouchPointToolType* toolType) in GetToolType() argument
117 (*toolType) = xcomponentImpl_->GetToolType(pointIndex); in GetToolType()
H A Drender_xcomponent.cpp24 OH_NativeXComponent_TouchPointToolType ConvertNativeXComponentTouchToolType(const SourceTool& toolType) in ConvertNativeXComponentTouchToolType() argument
26 switch (toolType) { in ConvertNativeXComponentTouchToolType()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_view_ohos.cpp125 int32_t toolType = MMI::PointerEvent::TOOL_TYPE_MOUSE; in DispatchTouchEvent() local
126 if (!GetPointerEventToolType(pointerEvent, toolType)) { in DispatchTouchEvent()
134 (toolType == MMI::PointerEvent::TOOL_TYPE_TOUCHPAD && in DispatchTouchEvent()
H A Dmmi_event_convertor.h98 bool GetPointerEventToolType(const std::shared_ptr<MMI::PointerEvent>& pointerEvent, int32_t& toolType);
/foundation/arkui/ace_engine/interfaces/native/node/
H A Dnative_compatible.h147 ArkUI_NodeToolType toolType; member
H A Devent_converter.cpp86 event.actionTouch.toolType = static_cast<ArkUI_NodeToolType>(origin.actionTouchPoint.toolType); in ConvertToTouchEvent()
111 (*points)[index].toolType = static_cast<ArkUI_NodeToolType>(touchPoints[index].toolType); in ConvertToTouchEvent()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_gesture_modifier.cpp224 points[i].toolType = static_cast<int32_t>(touchPoint.sourceTool); in ConvertTouchPointsToPoints()
248 touchEvent.actionTouchPoint.toolType = touchEvent.touchPointes[0].toolType; in ConvertIMMEventToTouchEvent()
290 rawInputEvent.actionTouchPoint.toolType = static_cast<ArkUI_Int32>(info->GetSourceTool());
391 mouseEvent.actionTouchPoint.toolType = static_cast<int32_t>(tempMouseEvent.sourceTool); in ConvertIMMEventToMouseEvent()
413 axisEvent.actionTouchPoint.toolType = static_cast<int32_t>(tempAxisEvent.sourceTool); in ConvertIMMEventToAxisEvent()
/foundation/multimodalinput/input/service/event_resample/test/
H A Devent_resample_test.cpp643 p.toolType = 1; in HWTEST_F()
670 p.toolType = 2; in HWTEST_F()
851 p.toolType = 2; in HWTEST_F()
882 p.toolType = 9; in HWTEST_F()
957 p.toolType = 2; in HWTEST_F()
/foundation/multimodalinput/input/service/event_handler/src/
H A Dinput_event_handler.cpp233 int32_t toolType = libinput_event_touchpad_get_tool_type(touchpadEvent); in IsTouchpadMistouch() local
234 if (toolType == MT_TOOL_PALM) { in IsTouchpadMistouch()
/foundation/multimodalinput/input/service/key_command/src/
H A Dkey_command_handler.cpp130 int32_t toolType = item.GetToolType(); in HandleTouchEvent() local
131 if (toolType == PointerEvent::TOOL_TYPE_KNUCKLE) { in HandleTouchEvent()
197 int32_t toolType = item.GetToolType(); in HandlePointerActionDownEvent() local
198 MMI_HILOGD("Pointer tool type:%{public}d", toolType); in HandlePointerActionDownEvent()
201 switch (toolType) { in HandlePointerActionDownEvent()
214 MMI_HILOGD("Current touch event tool type:%{public}d", toolType); in HandlePointerActionDownEvent()
259 int32_t toolType = item.GetToolType(); in HandlePointerActionUpEvent() local
260 switch (toolType) { in HandlePointerActionUpEvent()
272 MMI_HILOGW("Current touch event tool type:%{public}d", toolType); in HandlePointerActionUpEvent()

Completed in 21 milliseconds

12