Home
last modified time | relevance | path

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

12

/frameworks/native/services/inputflinger/reader/include/
DStylusState.h34 int32_t toolType; member
40 toolType = other.toolType; in copyFrom()
47 toolType = AMOTION_EVENT_TOOL_TYPE_UNKNOWN; in clear()
/frameworks/native/services/inputflinger/reader/mapper/
DExternalStylusInputMapper.cpp73 mStylusState.toolType = mTouchButtonAccumulator.getToolType(); in sync()
74 if (mStylusState.toolType == AMOTION_EVENT_TOOL_TYPE_UNKNOWN) { in sync()
75 mStylusState.toolType = AMOTION_EVENT_TOOL_TYPE_STYLUS; in sync()
DSingleTouchInputMapper.cpp62 outPointer.toolType = mTouchButtonAccumulator.getToolType(); in syncTouch()
63 if (outPointer.toolType == AMOTION_EVENT_TOOL_TYPE_UNKNOWN) { in syncTouch()
64 outPointer.toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in syncTouch()
DMultiTouchInputMapper.cpp283 outPointer.toolType = inSlot->getToolType(); in syncTouch()
284 if (outPointer.toolType == AMOTION_EVENT_TOOL_TYPE_UNKNOWN) { in syncTouch()
285 outPointer.toolType = mTouchButtonAccumulator.getToolType(); in syncTouch()
286 if (outPointer.toolType == AMOTION_EVENT_TOOL_TYPE_UNKNOWN) { in syncTouch()
287 outPointer.toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in syncTouch()
DTouchInputMapper.cpp276 pointer.distance, pointer.toolType, toString(pointer.isHovering)); in dump()
301 pointerProperties.toolType, in dump()
1554 if (pointer.toolType == AMOTION_EVENT_TOOL_TYPE_STYLUS || in cookAndDispatch()
1555 pointer.toolType == AMOTION_EVENT_TOOL_TYPE_ERASER) { in cookAndDispatch()
1557 } else if (pointer.toolType == AMOTION_EVENT_TOOL_TYPE_FINGER || in cookAndDispatch()
1558 pointer.toolType == AMOTION_EVENT_TOOL_TYPE_UNKNOWN) { in cookAndDispatch()
1560 } else if (pointer.toolType == AMOTION_EVENT_TOOL_TYPE_MOUSE) { in cookAndDispatch()
1568 if (pointer.toolType == AMOTION_EVENT_TOOL_TYPE_STYLUS || in cookAndDispatch()
1569 pointer.toolType == AMOTION_EVENT_TOOL_TYPE_ERASER) { in cookAndDispatch()
1650 if (mExternalStylusState.toolType != AMOTION_EVENT_TOOL_TYPE_UNKNOWN) { in applyExternalStylusTouchState()
[all …]
DInputMapper.cpp96 dump += StringPrintf(INDENT4 "Tool Type: %" PRId32 "\n", state.toolType); in dumpStylusState()
DRotaryEncoderInputMapper.cpp99 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_UNKNOWN; in sync()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp3148 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
3167 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
3189 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
3208 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
4279 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4303 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4326 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4376 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4399 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4444 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
[all …]
DUinputDevice.cpp188 void UinputTouchScreen::sendToolType(int32_t toolType) { in sendToolType() argument
189 injectEvent(EV_ABS, ABS_MT_TOOL_TYPE, toolType); in sendToolType()
DInputClassifierConverter_test.cpp33 properties.toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in generateBasicMotionArgs()
DUinputDevice.h143 void sendToolType(int32_t toolType);
DInputClassifier_test.cpp37 properties.toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in generateBasicMotionArgs()
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java58 p.toolType = TOOL_TYPE_FINGER; in testObtainWithDisplayId()
130 properties[i].toolType = MotionEvent.TOOL_TYPE_FINGER; in testCalculatesCursorPositionForMultiTouchMouseEvents()
DViewGroupTest.java67 properties[0].toolType = MotionEvent.TOOL_TYPE_FINGER; in testDispatchMouseEventsUnderCursor()
70 properties[1].toolType = MotionEvent.TOOL_TYPE_FINGER; in testDispatchMouseEventsUnderCursor()
DPinchZoomAction.java62 pp1.toolType = MotionEvent.TOOL_TYPE_FINGER; in sendPinchZoomAction()
65 pp2.toolType = MotionEvent.TOOL_TYPE_FINGER; in sendPinchZoomAction()
/frameworks/native/libs/input/
DInput.cpp309 && toolType == other.toolType; in operator ==()
314 toolType = other.toolType; in copyFrom()
601 properties.toolType = parcel->readInt32(); in readFromParcel()
651 parcel->writeInt32(properties.toolType); in writeToParcel()
DInputTransport.cpp223 msg->body.motion.pointers[i].properties.toolType = in getSanitizedCopy()
224 body.motion.pointers[i].properties.toolType, in getSanitizedCopy()
1063 bool InputConsumer::shouldResampleTool(int32_t toolType) { in shouldResampleTool() argument
1064 return toolType == AMOTION_EVENT_TOOL_TYPE_FINGER in shouldResampleTool()
1065 || toolType == AMOTION_EVENT_TOOL_TYPE_UNKNOWN; in shouldResampleTool()
/frameworks/base/core/java/android/view/
DMotionEvent.java3736 public static String toolTypeToString(int toolType) { in toolTypeToString() argument
3737 String symbolicName = TOOL_TYPE_SYMBOLIC_NAMES.get(toolType); in toolTypeToString()
3738 return symbolicName != null ? symbolicName : Integer.toString(toolType); in toolTypeToString()
4142 public int toolType; field in MotionEvent.PointerProperties
4149 toolType = TOOL_TYPE_UNKNOWN; in clear()
4159 toolType = other.toolType; in copyFrom()
4171 return other != null && id == other.id && toolType == other.toolType; in equals()
4176 return id | (toolType << 8); in hashCode()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp197 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in generateMotionEvent()
224 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in generateMotionArgs()
/frameworks/native/include/input/
DInput.h376 int32_t toolType; member
380 toolType = 0; in clear()
559 return mPointerProperties[pointerIndex].toolType; in getToolType()
DInputTransport.h552 static bool shouldResampleTool(int32_t toolType);
/frameworks/native/services/inputflinger/
DInputClassifierConverter.cpp202 static common::V1_0::ToolType getToolType(int32_t toolType) { in getToolType() argument
213 return static_cast<common::V1_0::ToolType>(toolType); in getToolType()
341 properties.toolType = getToolType(args.pointerProperties[i].toolType); in getHidlPropertiesAndCoords()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp174 pointerProperties[i].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in PublishAndConsumeMotionEvent()
239 EXPECT_EQ(pointerProperties[i].toolType, motionEvent->getToolType(i)); in PublishAndConsumeMotionEvent()
DInputEvent_test.cpp240 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in initializeEventWithHistory()
243 pointerProperties[1].toolType = AMOTION_EVENT_TOOL_TYPE_STYLUS; in initializeEventWithHistory()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java345 pointerProperty.toolType = MotionEvent.TOOL_TYPE_FINGER; in manyPointerEvent()

12