Home
last modified time | relevance | path

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

/frameworks/base/services/input/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()
165 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
174 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
184 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
193 /*pointerCount*/ 1, pointerProperties, pointerCoords); in TEST_F()
202 /*pointerCount*/ 0, pointerProperties, pointerCoords); in TEST_F()
210 /*pointerCount*/ MAX_POINTERS + 1, pointerProperties, pointerCoords); in TEST_F()
[all …]
DInputReader_test.cpp2025 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2026 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
2047 ASSERT_EQ(0, args.pointerProperties[0].id); in TEST_F()
2048 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_MOUSE, args.pointerProperties[0].toolType); in TEST_F()
2843 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
2844 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
2867 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
2868 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
2890 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
2891 ASSERT_EQ(AMOTION_EVENT_TOOL_TYPE_FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
[all …]
/frameworks/base/libs/androidfw/tests/
DInputPublisherAndConsumer_test.cpp146 PointerProperties pointerProperties[pointerCount]; in PublishAndConsumeMotionEvent() local
149 pointerProperties[i].clear(); in PublishAndConsumeMotionEvent()
150 pointerProperties[i].id = (i + 2) % pointerCount; in PublishAndConsumeMotionEvent()
151 pointerProperties[i].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in PublishAndConsumeMotionEvent()
168 pointerProperties, pointerCoords); in PublishAndConsumeMotionEvent()
201 EXPECT_EQ(pointerProperties[i].id, motionEvent->getPointerId(i)); in PublishAndConsumeMotionEvent()
202 EXPECT_EQ(pointerProperties[i].toolType, motionEvent->getToolType(i)); in PublishAndConsumeMotionEvent()
254 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
258 pointerCount, pointerProperties, pointerCoords); in TEST_F()
266 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
[all …]
DInputEvent_test.cpp223 PointerProperties pointerProperties[2]; in initializeEventWithHistory() local
224 pointerProperties[0].clear(); in initializeEventWithHistory()
225 pointerProperties[0].id = 1; in initializeEventWithHistory()
226 pointerProperties[0].toolType = AMOTION_EVENT_TOOL_TYPE_FINGER; in initializeEventWithHistory()
227 pointerProperties[1].clear(); in initializeEventWithHistory()
228 pointerProperties[1].id = 2; in initializeEventWithHistory()
229 pointerProperties[1].toolType = AMOTION_EVENT_TOOL_TYPE_STYLUS; in initializeEventWithHistory()
257 2, pointerProperties, pointerCoords); in initializeEventWithHistory()
535 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
539 pointerProperties[i].clear(); in TEST_F()
[all …]
/frameworks/base/services/input/
DInputListener.cpp73 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, in NotifyMotionArgs() argument
80 this->pointerProperties[i].copyFrom(pointerProperties[i]); in NotifyMotionArgs()
93 pointerProperties[i].copyFrom(other.pointerProperties[i]); in NotifyMotionArgs()
DInputDispatcher.cpp142 const PointerProperties* pointerProperties) { in validateMotionEvent() argument
154 int32_t id = pointerProperties[i].id; in validateMotionEvent()
860 i, entry->pointerProperties[i].id, in logOutboundMotionDetailsLocked()
861 entry->pointerProperties[i].toolType, in logOutboundMotionDetailsLocked()
1277 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked()
1331 pointerIds.markBit(entry->pointerProperties[0].id); in findTouchedWindowTargetsLocked()
1516 uint32_t pointerId = entry->pointerProperties[pointerIndex].id; in findTouchedWindowTargetsLocked()
1955 motionEntry->pointerCount, motionEntry->pointerProperties, in startDispatchCycleLocked()
2208 const PointerProperties& pointerProperties = in splitMotionEvent() local
2209 originalMotionEntry->pointerProperties[originalPointerIndex]; in splitMotionEvent()
[all …]
DInputListener.h92 PointerProperties pointerProperties[MAX_POINTERS]; member
103 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords,
DInputReader.cpp1487 pointerProperties[i].copyFrom(other.pointerProperties[i]); in copyFrom()
1490 int id = pointerProperties[i].id; in copyFrom()
2429 PointerProperties pointerProperties; in sync() local
2430 pointerProperties.clear(); in sync()
2431 pointerProperties.id = 0; in sync()
2432 pointerProperties.toolType = AMOTION_EVENT_TOOL_TYPE_MOUSE; in sync()
2500 1, &pointerProperties, &pointerCoords, mXPrecision, mYPrecision, downTime); in sync()
2509 1, &pointerProperties, &pointerCoords, mXPrecision, mYPrecision, downTime); in sync()
2521 1, &pointerProperties, &pointerCoords, mXPrecision, mYPrecision, downTime); in sync()
2652 const PointerProperties& pointerProperties = mLastCookedPointerData.pointerProperties[i]; in dump() local
[all …]
DInputDispatcher.h515 PointerProperties pointerProperties[MAX_POINTERS]; member
523 const PointerProperties* pointerProperties, const PointerCoords* pointerCoords);
756 PointerProperties pointerProperties[MAX_POINTERS]; member
DInputReader.h736 PointerProperties pointerProperties[MAX_POINTERS]; member
746 return hoveringIdBits.hasBit(pointerProperties[pointerIndex].id); in isHovering()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp327 static void pointerPropertiesFromNative(JNIEnv* env, const PointerProperties* pointerProperties, in pointerPropertiesFromNative() argument
330 pointerProperties->id); in pointerPropertiesFromNative()
332 pointerProperties->toolType); in pointerPropertiesFromNative()
357 PointerProperties pointerProperties[pointerCount]; in android_view_MotionEvent_nativeInitialize() local
365 pointerPropertiesToNative(env, pointerPropertiesObj, &pointerProperties[i]); in android_view_MotionEvent_nativeInitialize()
379 downTimeNanos, eventTimeNanos, pointerCount, pointerProperties, rawPointerCoords); in android_view_MotionEvent_nativeInitialize()
669 const PointerProperties* pointerProperties = event->getPointerProperties(pointerIndex); in android_view_MotionEvent_nativeGetPointerProperties() local
670 pointerPropertiesFromNative(env, pointerProperties, outPointerPropertiesObj); in android_view_MotionEvent_nativeGetPointerProperties()
/frameworks/base/libs/androidfw/
DInputTransport.cpp290 const PointerProperties* pointerProperties, in publishMotionEvent() argument
332 msg.body.motion.pointers[i].properties.copyFrom(pointerProperties[i]); in publishMotionEvent()
889 PointerProperties pointerProperties[pointerCount]; in initializeMotionEvent() local
892 pointerProperties[i].copyFrom(msg->body.motion.pointers[i].properties); in initializeMotionEvent()
911 pointerProperties, in initializeMotionEvent()
DInput.cpp297 const PointerProperties* pointerProperties, in initialize() argument
311 mPointerProperties.appendArray(pointerProperties, pointerCount); in initialize()
/frameworks/base/include/androidfw/
DInputTransport.h235 const PointerProperties* pointerProperties,
DInput.h507 const PointerProperties* pointerProperties,
/frameworks/base/core/java/android/view/
DMotionEvent.java1431 int action, int pointerCount, PointerProperties[] pointerProperties, in obtain() argument
1440 pointerCount, pointerProperties, pointerCoords); in obtain()