Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DPointerCountClassifierTest.java66 MotionEvent.PointerProperties[] pointerProperties = in testFail_multiPointer() local
68 pointerProperties[0].id = 0; in testFail_multiPointer()
69 pointerProperties[1].id = 1; in testFail_multiPointer()
72 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testFail_multiPointer()
82 MotionEvent.PointerProperties[] pointerProperties = in testPass_multiPointerDragDown() local
84 pointerProperties[0].id = 0; in testPass_multiPointerDragDown()
85 pointerProperties[1].id = 1; in testPass_multiPointerDragDown()
88 1, 1, MotionEvent.ACTION_DOWN, 2, pointerProperties, pointerCoords, 0, 0, 0, 0, 0, in testPass_multiPointerDragDown()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp152 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent() local
155 pointerProperties[i].clear(); in PublishAndConsumeMotionEvent()
156 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent()
157 pointerProperties[i].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in PublishAndConsumeMotionEvent()
174 pointerProperties, pointerCoords); in PublishAndConsumeMotionEvent()
209 EXPECT_EQ(pointerProperties[i].id, motionEvent->getPointerId(i)); in PublishAndConsumeMotionEvent()
210 EXPECT_EQ(pointerProperties[i].toolType, motionEvent->getToolType(i)); in PublishAndConsumeMotionEvent()
262 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
265 pointerProperties[i].clear(); in TEST_F()
271 pointerCount, pointerProperties, pointerCoords); in TEST_F()
[all …]
DInputEvent_test.cpp228 PointerProperties pointerProperties[2]; in initializeEventWithHistory() local
229 pointerProperties[0].clear(); in initializeEventWithHistory()
230 pointerProperties[0].id = 1; in initializeEventWithHistory()
231 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in initializeEventWithHistory()
232 pointerProperties[1].clear(); in initializeEventWithHistory()
233 pointerProperties[1].id = 2; in initializeEventWithHistory()
234 pointerProperties[1].toolType = AMOTION_EVENT_TOOL_TYPE_STYLUS; in initializeEventWithHistory()
262 2, pointerProperties, pointerCoords); in initializeEventWithHistory()
561 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
565 pointerProperties[i].clear(); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp238 PointerProperties pointerProperties[MAX_POINTERS + 1]; in TEST_F() local
241 pointerProperties[i].clear(); in TEST_F()
242 pointerProperties[i].id = i; in TEST_F()
255 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
265 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
274 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
284 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
293 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
302 ARBITRARY_TIME, ARBITRARY_TIME, /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F()
311 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F()
[all …]
DInputReader_test.cpp2525 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2526 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
2544 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2545 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
2566 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2567 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
2585 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2586 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
3682 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3683 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DRotaryEncoderInputMapper.cpp96 PointerProperties pointerProperties; in sync() local
97 pointerProperties.clear(); in sync()
98 pointerProperties.id = 0; in sync()
99 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_UNKNOWN; in sync()
126 /* deviceTimestamp */ 0, 1, &pointerProperties, &pointerCoords, in sync()
DCursorInputMapper.cpp319 PointerProperties pointerProperties; in sync() local
320 pointerProperties.clear(); in sync()
321 pointerProperties.id = 0; in sync()
322 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_MOUSE; in sync()
403 /* deviceTimestamp */ 0, 1, &pointerProperties, in sync()
414 /* deviceTimestamp */ 0, 1, &pointerProperties, &pointerCoords, in sync()
428 /* deviceTimestamp */ 0, 1, &pointerProperties, in sync()
443 /* deviceTimestamp */ 0, 1, &pointerProperties, in sync()
459 /* deviceTimestamp */ 0, 1, &pointerProperties, in sync()
DJoystickInputMapper.cpp310 PointerProperties pointerProperties; in sync() local
311 pointerProperties.clear(); in sync()
312 pointerProperties.id = 0; in sync()
313 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_UNKNOWN; in sync()
338 /* deviceTimestamp */ 0, 1, &pointerProperties, &pointerCoords, 0, 0, 0, in sync()
DTouchInputMapper.cpp154 pointerProperties[i].copyFrom(other.pointerProperties[i]); in copyFrom()
157 int id = pointerProperties[i].id; in copyFrom()
289 const PointerProperties& pointerProperties = in dump() local
290 mLastCookedState.cookedPointerData.pointerProperties[i]; in dump()
297 i, pointerProperties.id, pointerCoords.getX(), pointerCoords.getY(), in dump()
306 pointerProperties.toolType, in dump()
1870 mCurrentCookedState.cookedPointerData.pointerProperties, in abortTouches()
1891 mCurrentCookedState.cookedPointerData.pointerProperties, in dispatchTouches()
1907 updateMovedPointers(mCurrentCookedState.cookedPointerData.pointerProperties, in dispatchTouches()
1910 mLastCookedState.cookedPointerData.pointerProperties, in dispatchTouches()
[all …]
DTouchInputMapper.h165 PointerProperties pointerProperties[MAX_POINTERS]; member
183 return pointerProperties[idToIndex[id]]; in editPointerPropertiesWithId()
187 return hoveringIdBits.hasBit(pointerProperties[pointerIndex].id); in isHovering()
191 return touchingIdBits.hasBit(pointerProperties[pointerIndex].id); in isTouching()
/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/native/services/inputflinger/
DInputListener.cpp95 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, in NotifyMotionArgs() argument
107 this->pointerProperties[i].copyFrom(pointerProperties[i]); in NotifyMotionArgs()
122 pointerProperties[i].copyFrom(other.pointerProperties[i]); in NotifyMotionArgs()
155 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()
372 std::vector<common::V1_0::PointerProperties> pointerProperties; in notifyMotionArgsToHalMotionEvent() local
374 getHidlPropertiesAndCoords(args, /*out*/&pointerProperties, /*out*/&pointerCoords); in notifyMotionArgsToHalMotionEvent()
375 event.pointerProperties = pointerProperties; in notifyMotionArgsToHalMotionEvent()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp165 uint32_t pointerCount, const PointerProperties* pointerProperties, in MotionEntry() argument
184 this->pointerProperties[i].copyFrom(pointerProperties[i]); in MotionEntry()
213 msg += StringPrintf("%d: (%.1f, %.1f)", pointerProperties[i].id, pointerCoords[i].getX(), in appendDescription()
DEntry.h133 PointerProperties pointerProperties[MAX_POINTERS]; member
141 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
DInputState.cpp245 pointerProperties[i].copyFrom(entry->pointerProperties[i]); in setPointers()
275 memento.pointerProperties, memento.pointerCoords, 0 /*xOffset*/, in synthesizeCancelationEvents()
DInputDispatcher.cpp159 const PointerProperties* pointerProperties) { in validateMotionEvent() argument
171 int32_t id = pointerProperties[i].id; in validateMotionEvent()
981 i, entry->pointerProperties[i].id, entry->pointerProperties[i].toolType, in logOutboundMotionDetails()
1375 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked()
1434 pointerIds.markBit(entry->pointerProperties[0].id); in findTouchedWindowTargetsLocked()
1626 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked()
2238 motionEntry->pointerProperties, usingCoords); in startDispatchCycleLocked()
2514 const PointerProperties& pointerProperties = in splitMotionEvent() local
2515 originalMotionEntry->pointerProperties[originalPointerIndex]; in splitMotionEvent()
2516 uint32_t pointerId = uint32_t(pointerProperties.id); in splitMotionEvent()
[all …]
DInputState.h99 PointerProperties pointerProperties[MAX_POINTERS]; member
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DFalsingDataProvider.java216 PointerProperties pointerProperties = new PointerProperties(); in unpackMotionEvent() local
217 motionEvent.getPointerProperties(i, pointerProperties); in unpackMotionEvent()
218 pointerPropertiesList.add(pointerProperties); in unpackMotionEvent()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp323 static void pointerPropertiesFromNative(JNIEnv* env, const PointerProperties* pointerProperties, in pointerPropertiesFromNative() argument
326 pointerProperties->id); in pointerPropertiesFromNative()
328 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()
378 downTimeNanos, eventTimeNanos, pointerCount, pointerProperties, rawPointerCoords); in android_view_MotionEvent_nativeInitialize()
453 const PointerProperties* pointerProperties = event->getPointerProperties(pointerIndex); in android_view_MotionEvent_nativeGetPointerProperties() local
454 pointerPropertiesFromNative(env, pointerProperties, outPointerPropertiesObj); in android_view_MotionEvent_nativeGetPointerProperties()
/frameworks/native/services/inputflinger/include/
DInputListener.h118 PointerProperties pointerProperties[MAX_POINTERS]; member
132 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationGestureHandlerTest.java624 MotionEvent.PointerProperties pointerProperties = new MotionEvent.PointerProperties();
625 pointerProperties.id = 1;
626 pointerProperties.toolType = MotionEvent.TOOL_TYPE_FINGER;
641 defPointerProperties, pointerProperties },
/frameworks/native/libs/input/
DInputTransport.cpp486 const PointerProperties* pointerProperties, in publishMotionEvent() argument
539 msg.body.motion.pointers[i].properties.copyFrom(pointerProperties[i]); in publishMotionEvent()
1131 PointerProperties pointerProperties[pointerCount]; in initializeMotionEvent() local
1134 pointerProperties[i].copyFrom(msg->body.motion.pointers[i].properties); in initializeMotionEvent()
1156 pointerProperties, in initializeMotionEvent()
DInput.cpp256 const PointerProperties* pointerProperties, in initialize() argument
272 mPointerProperties.appendArray(pointerProperties, pointerCount); in initialize()
/frameworks/base/core/java/android/view/
DMotionEvent.java1689 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1698 pointerCount, pointerProperties, pointerCoords); in obtain()
1736 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1740 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain()

12