Home
last modified time | relevance | path

Searched refs:pointerProperties (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DPointerCountClassifierTest.java68 MotionEvent.PointerProperties[] pointerProperties = in testFail_multiPointer() local
70 pointerProperties[0].id = 0; in testFail_multiPointer()
71 pointerProperties[1].id = 1; in testFail_multiPointer()
74 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testFail_multiPointer()
85 MotionEvent.PointerProperties[] pointerProperties = in testPass_multiPointerDragDown() local
87 pointerProperties[0].id = 0; in testPass_multiPointerDragDown()
88 pointerProperties[1].id = 1; in testPass_multiPointerDragDown()
91 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testPass_multiPointerDragDown()
/frameworks/native/services/inputflinger/reader/mapper/
DRotaryEncoderInputMapper.cpp98 PointerProperties pointerProperties; in sync() local
99 pointerProperties.clear(); in sync()
100 pointerProperties.id = 0; in sync()
101 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_UNKNOWN; in sync()
127 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
DCursorInputMapper.cpp323 PointerProperties pointerProperties; in sync() local
324 pointerProperties.clear(); in sync()
325 pointerProperties.id = 0; in sync()
326 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_MOUSE; in sync()
423 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
434 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, &pointerCoords, in sync()
448 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
464 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
479 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
DJoystickInputMapper.cpp317 PointerProperties pointerProperties; in sync() local
318 pointerProperties.clear(); in sync()
319 pointerProperties.id = 0; in sync()
320 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_UNKNOWN; in sync()
344 &pointerProperties, &pointerCoords, 0, 0, in sync()
DTouchInputMapper.cpp156 pointerProperties[i].copyFrom(other.pointerProperties[i]); in copyFrom()
159 int id = pointerProperties[i].id; in copyFrom()
308 const PointerProperties& pointerProperties = in dump() local
309 mLastCookedState.cookedPointerData.pointerProperties[i]; in dump()
316 i, pointerProperties.id, pointerCoords.getX(), pointerCoords.getY(), in dump()
327 pointerProperties.toolType, in dump()
1896 mCurrentCookedState.cookedPointerData.pointerProperties, in abortTouches()
1916 mCurrentCookedState.cookedPointerData.pointerProperties, in dispatchTouches()
1932 updateMovedPointers(mCurrentCookedState.cookedPointerData.pointerProperties, in dispatchTouches()
1935 mLastCookedState.cookedPointerData.pointerProperties, in dispatchTouches()
[all …]
DTouchInputMapper.h104 PointerProperties pointerProperties[MAX_POINTERS]; member
122 return pointerProperties[idToIndex[id]]; in editPointerPropertiesWithId()
126 return hoveringIdBits.hasBit(pointerProperties[pointerIndex].id); in isHovering()
130 return touchingIdBits.hasBit(pointerProperties[pointerIndex].id); in isTouching()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp216 PointerProperties pointerProperties[1]; in generateMotionEvent() local
219 pointerProperties[0].clear(); in generateMotionEvent()
220 pointerProperties[0].id = 0; in generateMotionEvent()
221 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in generateMotionEvent()
239 /*pointerCount*/ 1, pointerProperties, pointerCoords); in generateMotionEvent()
244 PointerProperties pointerProperties[1]; in generateMotionArgs() local
247 pointerProperties[0].clear(); in generateMotionArgs()
248 pointerProperties[0].id = 0; in generateMotionArgs()
249 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in generateMotionArgs()
262 pointerProperties, pointerCoords, in generateMotionArgs()
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp262 PointerProperties pointerProperties[2]; in initializeEventWithHistory() local
263 pointerProperties[0].clear(); in initializeEventWithHistory()
264 pointerProperties[0].id = 1; in initializeEventWithHistory()
265 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in initializeEventWithHistory()
266 pointerProperties[1].clear(); in initializeEventWithHistory()
267 pointerProperties[1].id = 2; in initializeEventWithHistory()
268 pointerProperties[1].toolType = AMOTION_EVENT_TOOL_TYPE_STYLUS; in initializeEventWithHistory()
297 ARBITRARY_DOWN_TIME, ARBITRARY_EVENT_TIME, 2, pointerProperties, in initializeEventWithHistory()
600 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
604 pointerProperties[i].clear(); in TEST_F()
[all …]
DInputPublisherAndConsumer_test.cpp171 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent() local
174 pointerProperties[i].clear(); in PublishAndConsumeMotionEvent()
175 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent()
176 pointerProperties[i].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in PublishAndConsumeMotionEvent()
197 pointerProperties, pointerCoords); in PublishAndConsumeMotionEvent()
243 EXPECT_EQ(pointerProperties[i].id, motionEvent->getPointerId(i)); in PublishAndConsumeMotionEvent()
244 EXPECT_EQ(pointerProperties[i].toolType, motionEvent->getToolType(i)); in PublishAndConsumeMotionEvent()
452 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
455 pointerProperties[i].clear(); in TEST_F()
464 pointerCount, pointerProperties, pointerCoords); in TEST_F()
[all …]
DVerifiedInputEvent_test.cpp35 PointerProperties pointerProperties[pointerCount]; in getMotionEventWithFlags() local
38 pointerProperties[i].clear(); in getMotionEventWithFlags()
39 pointerProperties[i].id = i; in getMotionEventWithFlags()
51 100 /*downTime*/, 200 /*eventTime*/, pointerCount, pointerProperties, in getMotionEventWithFlags()
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp254 pointerProperties[i].copyFrom(entry.pointerProperties[i]); in setPointers()
264 other.pointerProperties[other.pointerCount].copyFrom(pointerProperties[i]); in mergePointerStateTo()
298 memento.pointerCount, memento.pointerProperties, in synthesizeCancelationEvents()
319 PointerProperties pointerProperties[MAX_POINTERS]; in synthesizePointerDownEvents() local
324 pointerProperties[i].copyFrom(memento.pointerProperties[i]); in synthesizePointerDownEvents()
333 pointerProperties[i].copyFrom(memento.pointerProperties[i]); in synthesizePointerDownEvents()
352 pointerCount, pointerProperties, pointerCoords, in synthesizePointerDownEvents()
DEntry.cpp202 uint32_t pointerCount, const PointerProperties* pointerProperties, in MotionEntry() argument
222 this->pointerProperties[i].copyFrom(pointerProperties[i]); in MotionEntry()
252 msg += StringPrintf("%d: (%.1f, %.1f)", pointerProperties[i].id, pointerCoords[i].getX(), in getDescription()
DEntry.h176 PointerProperties pointerProperties[MAX_POINTERS]; member
184 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
DInputState.h103 PointerProperties pointerProperties[MAX_POINTERS]; member
/frameworks/base/core/tests/coretests/src/android/view/
DPinchZoomAction.java66 MotionEvent.PointerProperties[] pointerProperties = in sendPinchZoomAction() local
86 eventTime, MotionEvent.ACTION_DOWN, 1, pointerProperties, pointerCoords, in sendPinchZoomAction()
93 2, pointerProperties, pointerCoords, 0, 0, 1, 1, 0, 0, 0, 0); in sendPinchZoomAction()
131 MotionEvent.ACTION_MOVE, 2, pointerProperties, pointerCoords, in sendPinchZoomAction()
151 MotionEvent.ACTION_POINTER_UP, 2, pointerProperties, pointerCoords, in sendPinchZoomAction()
166 MotionEvent.ACTION_POINTER_UP, 1, pointerProperties, pointerCoords, in sendPinchZoomAction()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DTouchEventGenerator.java93 MotionEvent.PointerProperties pointerProperties = new MotionEvent.PointerProperties(); in generateMultiplePointersEvent() local
94 pointerProperties.id = i; in generateMultiplePointersEvent()
95 pointerProperties.toolType = MotionEvent.TOOL_TYPE_FINGER; in generateMultiplePointersEvent()
96 pointerPropertiesArray[i] = pointerProperties; in generateMultiplePointersEvent()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp3927 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
3928 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
3945 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
3946 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
3966 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
3967 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
3984 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
3985 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
5049 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
5050 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
[all …]
DInputDispatcher_test.cpp511 PointerProperties pointerProperties[MAX_POINTERS + 1]; in TEST_F() local
514 pointerProperties[i].clear(); in TEST_F()
515 pointerProperties[i].id = i; in TEST_F()
532 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
545 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, in TEST_F()
558 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, in TEST_F()
572 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, in TEST_F()
585 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, in TEST_F()
598 /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F()
609 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp102 int32_t edgeFlags, uint32_t pointerCount, const PointerProperties* pointerProperties, in NotifyMotionArgs() argument
127 this->pointerProperties[i].copyFrom(pointerProperties[i]); in NotifyMotionArgs()
154 pointerProperties[i].copyFrom(other.pointerProperties[i]); in NotifyMotionArgs()
182 pointerProperties[i] == rhs.pointerProperties[i] in operator ==()
DInputClassifierConverter.cpp340 properties.id = args.pointerProperties[i].id; in getHidlPropertiesAndCoords()
341 properties.toolType = getToolType(args.pointerProperties[i].toolType); in getHidlPropertiesAndCoords()
373 std::vector<common::V1_0::PointerProperties> pointerProperties; in notifyMotionArgsToHalMotionEvent() local
375 getHidlPropertiesAndCoords(args, /*out*/&pointerProperties, /*out*/&pointerCoords); in notifyMotionArgsToHalMotionEvent()
376 event.pointerProperties = pointerProperties; in notifyMotionArgsToHalMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingDataProvider.java268 PointerProperties pointerProperties = new PointerProperties(); in unpackMotionEvent() local
269 motionEvent.getPointerProperties(i, pointerProperties); in unpackMotionEvent()
270 pointerPropertiesList.add(pointerProperties); in unpackMotionEvent()
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java117 MotionEvent.PointerProperties[] pointerProperties = in injectMotionEvent() local
121 pointerProperties[i] = new MotionEvent.PointerProperties(); in injectMotionEvent()
122 pointerProperties[i].id = i; in injectMotionEvent()
123 pointerProperties[i].toolType = getToolType(inputSource); in injectMotionEvent()
135 pointerProperties, pointerCoords, DEFAULT_META_STATE, DEFAULT_BUTTON_STATE, in injectMotionEvent()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp325 static void pointerPropertiesFromNative(JNIEnv* env, const PointerProperties* pointerProperties, in pointerPropertiesFromNative() argument
328 pointerProperties->id); in pointerPropertiesFromNative()
330 pointerProperties->toolType); in pointerPropertiesFromNative()
355 PointerProperties pointerProperties[pointerCount]; in android_view_MotionEvent_nativeInitialize() local
363 pointerPropertiesToNative(env, pointerPropertiesObj, &pointerProperties[i]); in android_view_MotionEvent_nativeInitialize()
383 pointerCount, pointerProperties, rawPointerCoords); in android_view_MotionEvent_nativeInitialize()
451 const PointerProperties* pointerProperties = event->getPointerProperties(pointerIndex); in android_view_MotionEvent_nativeGetPointerProperties() local
452 pointerPropertiesFromNative(env, pointerProperties, outPointerPropertiesObj); in android_view_MotionEvent_nativeGetPointerProperties()
/frameworks/native/services/inputflinger/include/
DInputListener.h113 PointerProperties pointerProperties[MAX_POINTERS]; member
134 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DFullScreenMagnificationGestureHandlerTest.java779 MotionEvent.PointerProperties pointerProperties = new MotionEvent.PointerProperties();
780 pointerProperties.id = i;
781 pointerProperties.toolType = MotionEvent.TOOL_TYPE_FINGER;
782 PointerPropertiesArray[i] = pointerProperties;

12