Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp143 PointerProperties pointerProperties[MAX_POINTERS + 1]; in TEST_F() local
146 pointerProperties[i].clear(); in TEST_F()
147 pointerProperties[i].id = i; in TEST_F()
155 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
166 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
176 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
187 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
197 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
207 /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F()
216 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F()
[all …]
DInputReader_test.cpp2109 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2110 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
2128 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2129 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
2150 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2151 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
2169 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2170 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
3231 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3232 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
[all …]
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp148 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent() local
151 pointerProperties[i].clear(); in PublishAndConsumeMotionEvent()
152 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent()
153 pointerProperties[i].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in PublishAndConsumeMotionEvent()
170 pointerProperties, pointerCoords); in PublishAndConsumeMotionEvent()
203 EXPECT_EQ(pointerProperties[i].id, motionEvent->getPointerId(i)); in PublishAndConsumeMotionEvent()
204 EXPECT_EQ(pointerProperties[i].toolType, motionEvent->getToolType(i)); in PublishAndConsumeMotionEvent()
256 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
260 pointerCount, pointerProperties, pointerCoords); in TEST_F()
268 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
[all …]
DInputEvent_test.cpp222 PointerProperties pointerProperties[2]; in initializeEventWithHistory() local
223 pointerProperties[0].clear(); in initializeEventWithHistory()
224 pointerProperties[0].id = 1; in initializeEventWithHistory()
225 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in initializeEventWithHistory()
226 pointerProperties[1].clear(); in initializeEventWithHistory()
227 pointerProperties[1].id = 2; in initializeEventWithHistory()
228 pointerProperties[1].toolType = AMOTION_EVENT_TOOL_TYPE_STYLUS; in initializeEventWithHistory()
256 2, pointerProperties, pointerCoords); in initializeEventWithHistory()
548 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
552 pointerProperties[i].clear(); in TEST_F()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DPinchZoomAction.java67 MotionEvent.PointerProperties[] pointerProperties = in sendPinchZoomAction() local
87 eventTime, MotionEvent.ACTION_DOWN, 1, pointerProperties, pointerCoords, in sendPinchZoomAction()
94 2, pointerProperties, pointerCoords, 0, 0, 1, 1, 0, 0, 0, 0); in sendPinchZoomAction()
132 MotionEvent.ACTION_MOVE, 2, pointerProperties, pointerCoords, in sendPinchZoomAction()
152 MotionEvent.ACTION_POINTER_UP, 2, pointerProperties, pointerCoords, in sendPinchZoomAction()
167 MotionEvent.ACTION_POINTER_UP, 1, pointerProperties, pointerCoords, in sendPinchZoomAction()
/frameworks/native/services/inputflinger/
DInputListener.cpp73 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, in NotifyMotionArgs() argument
81 this->pointerProperties[i].copyFrom(pointerProperties[i]); in NotifyMotionArgs()
94 pointerProperties[i].copyFrom(other.pointerProperties[i]); in NotifyMotionArgs()
DInputListener.h94 PointerProperties pointerProperties[MAX_POINTERS]; member
106 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
DInputDispatcher.cpp148 const PointerProperties* pointerProperties) { in validateMotionEvent() argument
160 int32_t id = pointerProperties[i].id; in validateMotionEvent()
906 i, entry->pointerProperties[i].id, in logOutboundMotionDetailsLocked()
907 entry->pointerProperties[i].toolType, in logOutboundMotionDetailsLocked()
1284 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked()
1339 pointerIds.markBit(entry->pointerProperties[0].id); in findTouchedWindowTargetsLocked()
1519 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked()
2035 motionEntry->pointerCount, motionEntry->pointerProperties, in startDispatchCycleLocked()
2295 const PointerProperties& pointerProperties = in splitMotionEvent() local
2296 originalMotionEntry->pointerProperties[originalPointerIndex]; in splitMotionEvent()
[all …]
DInputReader.cpp1654 pointerProperties[i].copyFrom(other.pointerProperties[i]); in copyFrom()
1657 int id = pointerProperties[i].id; in copyFrom()
2700 PointerProperties pointerProperties; in sync() local
2701 pointerProperties.clear(); in sync()
2702 pointerProperties.id = 0; in sync()
2703 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_MOUSE; in sync()
2783 displayId, 1, &pointerProperties, &pointerCoords, in sync()
2792 displayId, 1, &pointerProperties, &pointerCoords, in sync()
2804 displayId, 1, &pointerProperties, &pointerCoords, in sync()
2818 displayId, 1, &pointerProperties, &pointerCoords, in sync()
[all …]
DInputDispatcher.h523 PointerProperties pointerProperties[MAX_POINTERS]; member
532 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
775 PointerProperties pointerProperties[MAX_POINTERS]; member
DInputReader.h819 PointerProperties pointerProperties[MAX_POINTERS]; member
837 return pointerProperties[idToIndex[id]]; in editPointerPropertiesWithId()
841 return hoveringIdBits.hasBit(pointerProperties[pointerIndex].id); in isHovering()
845 return touchingIdBits.hasBit(pointerProperties[pointerIndex].id); in isTouching()
/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()
353 PointerProperties pointerProperties[pointerCount]; in android_view_MotionEvent_nativeInitialize() local
361 pointerPropertiesToNative(env, pointerPropertiesObj, &pointerProperties[i]); in android_view_MotionEvent_nativeInitialize()
375 downTimeNanos, eventTimeNanos, pointerCount, pointerProperties, rawPointerCoords); in android_view_MotionEvent_nativeInitialize()
450 const PointerProperties* pointerProperties = event->getPointerProperties(pointerIndex); in android_view_MotionEvent_nativeGetPointerProperties() local
451 pointerPropertiesFromNative(env, pointerProperties, outPointerPropertiesObj); in android_view_MotionEvent_nativeGetPointerProperties()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewOnGenericMotionEventTest.java120 MotionEvent.PointerProperties[] pointerProperties = { new MotionEvent.PointerProperties() }; in obtainScrollMotionEvent() local
130 1, pointerProperties, pointerCoords, 0, 0, xPrecision, yPrecision, deviceId, in obtainScrollMotionEvent()
/frameworks/native/libs/input/
DInputTransport.cpp301 const PointerProperties* pointerProperties, in publishMotionEvent() argument
344 msg.body.motion.pointers[i].properties.copyFrom(pointerProperties[i]); in publishMotionEvent()
915 PointerProperties pointerProperties[pointerCount]; in initializeMotionEvent() local
918 pointerProperties[i].copyFrom(msg->body.motion.pointers[i].properties); in initializeMotionEvent()
938 pointerProperties, in initializeMotionEvent()
DInput.cpp231 const PointerProperties* pointerProperties, in initialize() argument
246 mPointerProperties.appendArray(pointerProperties, pointerCount); in initialize()
/frameworks/native/include/input/
DInputTransport.h248 const PointerProperties* pointerProperties,
DInput.h572 const PointerProperties* pointerProperties,
/frameworks/base/core/java/android/view/
DMotionEvent.java1625 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1634 pointerCount, pointerProperties, pointerCoords); in obtain()