Home
last modified time | relevance | path

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

123

/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/benchmarks/
DInputDispatcher_benchmarks.cpp49 PointerProperties pointerProperties[1]; in generateMotionEvent() local
52 pointerProperties[0].clear(); in generateMotionEvent()
53 pointerProperties[0].id = 0; in generateMotionEvent()
54 pointerProperties[0].toolType = ToolType::FINGER; in generateMotionEvent()
72 /*pointerCount*/ 1, pointerProperties, pointerCoords); in generateMotionEvent()
77 PointerProperties pointerProperties[1]; in generateMotionArgs() local
80 pointerProperties[0].clear(); in generateMotionArgs()
81 pointerProperties[0].id = 0; in generateMotionArgs()
82 pointerProperties[0].toolType = ToolType::FINGER; in generateMotionArgs()
95 pointerProperties, pointerCoords, in generateMotionArgs()
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp104 if (isStylusEvent(lastMemento.source, lastMemento.pointerProperties) && in trackMotion()
105 !isStylusEvent(entry.source, entry.pointerProperties)) { in trackMotion()
209 return std::make_pair(mMotionMementos[index].pointerProperties, in getPointersOfLastEvent()
273 pointerProperties.clear(); in setPointers()
285 pointerProperties.push_back(entry.pointerProperties[i]); in setPointers()
295 other.pointerProperties.push_back(pointerProperties[i]); in mergePointerStateTo()
301 return pointerProperties.size(); in getPointerCount()
361 if (isStylusEvent(lastMemento.source, lastMemento.pointerProperties)) { in shouldCancelPreviousStream()
363 if (isStylusEvent(motionEntry.source, motionEntry.pointerProperties) && in shouldCancelPreviousStream()
419 memento.pointerProperties, memento.pointerCoords); in createCancelEntryForMemento()
[all …]
/frameworks/native/services/inputflinger/tests/
DNotifyArgs_test.cpp49 PointerProperties pointerProperties[pointerCount]; in TEST() local
55 pointerProperties[i].clear(); in TEST()
56 pointerProperties[i].id = i; in TEST()
57 pointerProperties[i].toolType = ToolType::FINGER; in TEST()
75 edgeFlags, pointerCount, pointerProperties, pointerCoords, in TEST()
DUnwantedInteractionBlocker_test.cpp75 PointerProperties pointerProperties[pointerCount]; in generateMotionArgs() local
79 pointerProperties[i].clear(); in generateMotionArgs()
80 pointerProperties[i].id = i; in generateMotionArgs()
81 pointerProperties[i].toolType = ToolType::FINGER; in generateMotionArgs()
94 AMOTION_EVENT_EDGE_FLAG_NONE, pointerCount, pointerProperties, in generateMotionArgs()
145 ASSERT_EQ(pointerId, args.pointerProperties[i].id); in assertArgs()
487 args.pointerProperties[0].toolType = ToolType::FINGER; in TEST_F()
521 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F()
525 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F()
529 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F()
[all …]
DPreferStylusOverTouch_test.cpp43 PointerProperties pointerProperties[pointerCount]; in generateMotionArgs() local
50 pointerProperties[i].clear(); in generateMotionArgs()
51 pointerProperties[i].id = i; in generateMotionArgs()
52 pointerProperties[i].toolType = toolType; in generateMotionArgs()
70 AMOTION_EVENT_EDGE_FLAG_NONE, pointerCount, pointerProperties, in generateMotionArgs()
281 args.pointerProperties[0].toolType = ToolType::FINGER; in TEST_F()
288 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F()
294 args.pointerProperties[0].toolType = ToolType::FINGER; in TEST_F()
421 args.pointerProperties[1].toolType = ToolType::STYLUS; in TEST_F()
428 args.pointerProperties[1].toolType = ToolType::STYLUS; in TEST_F()
DInputReader_test.cpp3628 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3629 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3652 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3653 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3675 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3676 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3725 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3726 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
3748 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
3749 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
[all …]
DAndroidInputEventProtoConverter_test.cpp120 event.pointerProperties.emplace_back(PointerProperties{ in TEST()
124 event.pointerProperties.emplace_back(PointerProperties{ in TEST()
215 event.pointerProperties.emplace_back(PointerProperties{ in TEST()
219 event.pointerProperties.emplace_back(PointerProperties{ in TEST()
313 event.pointerProperties.emplace_back(PointerProperties{ in TEST()
317 event.pointerProperties.emplace_back(PointerProperties{ in TEST()
457 motion.pointerProperties.emplace_back(PointerProperties{ in TEST()
494 motion.pointerProperties.emplace_back(PointerProperties{ in TEST()
534 motion.pointerProperties.emplace_back(PointerProperties{ in TEST()
/frameworks/native/services/inputflinger/
DNotifyArgs.cpp64 int32_t edgeFlags, uint32_t pointerCount, const PointerProperties* pointerProperties, in NotifyMotionArgs() argument
89 this->pointerProperties.emplace_back(pointerProperties[i]); in NotifyMotionArgs()
104 edgeFlags == rhs.edgeFlags && pointerProperties == rhs.pointerProperties && in operator ==()
120 StringPrintf("id=%" PRIu32 " x=%.1f y=%.1f pressure=%.1f", pointerProperties[i].id, in dump()
123 const ToolType toolType = pointerProperties[i].toolType; in dump()
DUnwantedInteractionBlocker.cpp134 if (pointerId == args.pointerProperties[i].id) { in getActionUpForPointerId()
172 newArgs.pointerProperties.clear(); in removePointerIds()
176 const int32_t pointerId = args.pointerProperties[i].id; in removePointerIds()
187 newArgs.pointerProperties.push_back(args.pointerProperties[i]); in removePointerIds()
218 if (isStylusToolType(args.pointerProperties[i].toolType)) { in removeStylusPointerIds()
219 stylusPointerIds.insert(args.pointerProperties[i].id); in removeStylusPointerIds()
297 args.pointerProperties[MotionEvent::getActionIndex(args.action)].id; in cancelSuppressedPointers()
302 const int32_t pointerId = oldArgs.pointerProperties[i].id; in cancelSuppressedPointers()
489 const int32_t pointerId = args.pointerProperties[i].id; in update()
587 const int32_t pointerId = args.pointerProperties[i].id; in getTouches()
[all …]
/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/reader/mapper/
DRotaryEncoderInputMapper.cpp195 PointerProperties pointerProperties; in sync() local
196 pointerProperties.clear(); in sync()
197 pointerProperties.id = 0; in sync()
198 pointerProperties.toolType = ToolType::UNKNOWN; in sync()
209 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
DCursorInputMapper.cpp270 PointerProperties pointerProperties; in sync() local
271 pointerProperties.clear(); in sync()
272 pointerProperties.id = 0; in sync()
273 pointerProperties.toolType = ToolType::MOUSE; in sync()
343 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
353 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
367 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
382 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
397 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
/frameworks/native/libs/input/tests/
DVerifiedInputEvent_test.cpp35 PointerProperties pointerProperties[pointerCount]; in getMotionEventWithFlags() local
38 pointerProperties[i].clear(); in getMotionEventWithFlags()
39 pointerProperties[i].id = i; in getMotionEventWithFlags()
52 /*eventTime=*/200, pointerCount, pointerProperties, pointerCoords); in getMotionEventWithFlags()
DInputPublisherAndConsumer_test.cpp75 std::vector<PointerProperties> pointerProperties; member
100 pointerProperties.push_back({}); in PublishMotionArgs()
101 pointerProperties[i].clear(); in PublishMotionArgs()
102 pointerProperties[i].id = pointers[i].id; in PublishMotionArgs()
103 pointerProperties[i].toolType = ToolType::FINGER; in PublishMotionArgs()
157 EXPECT_EQ(args.pointerProperties[i].id, motionEvent.getPointerId(i)); in verifyArgsEqualToEvent()
158 EXPECT_EQ(args.pointerProperties[i].toolType, motionEvent.getToolType(i)); in verifyArgsEqualToEvent()
190 a.pointerCount, a.pointerProperties.data(), in publishMotionEvent()
618 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
621 pointerProperties[i].clear(); in TEST_F()
[all …]
DInputPublisherAndConsumerNoResampling_test.cpp85 std::vector<PointerProperties> pointerProperties; member
110 pointerProperties.push_back({}); in PublishMotionArgs()
111 pointerProperties[i].clear(); in PublishMotionArgs()
112 pointerProperties[i].id = pointers[i].id; in PublishMotionArgs()
113 pointerProperties[i].toolType = ToolType::FINGER; in PublishMotionArgs()
167 EXPECT_EQ(args.pointerProperties[i].id, motionEvent.getPointerId(i)); in verifyArgsEqualToEvent()
168 EXPECT_EQ(args.pointerProperties[i].toolType, motionEvent.getToolType(i)); in verifyArgsEqualToEvent()
200 a.pointerCount, a.pointerProperties.data(), in publishMotionEvent()
884 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
887 pointerProperties[i].clear(); in TEST_F()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DTouchEventGenerator.java119 MotionEvent.PointerProperties pointerProperties = new MotionEvent.PointerProperties(); in generateMultiplePointersEvent() local
120 pointerProperties.id = i; in generateMultiplePointersEvent()
121 pointerProperties.toolType = MotionEvent.TOOL_TYPE_FINGER; in generateMultiplePointersEvent()
122 pointerPropertiesArray[i] = pointerProperties; in generateMultiplePointersEvent()
/frameworks/native/libs/input/
DInputVerifier.cpp44 const PointerProperties* pointerProperties, in processMovement() argument
49 rpp.emplace_back(RustPointerProperties{.id = pointerProperties[i].id}); in processMovement()
DInput.cpp61 int32_t action, int32_t flags, const std::vector<PointerProperties>& pointerProperties, in resolveActionForSplitMotionEvent() argument
71 if (CC_UNLIKELY(actionIndex >= pointerProperties.size())) { in resolveActionForSplitMotionEvent()
75 const auto affectedPointerId = pointerProperties[actionIndex].id; in resolveActionForSplitMotionEvent()
279 for (const PointerProperties& pointerProperties : properties) { in isStylusEvent() local
280 if (isStylusToolType(pointerProperties.toolType)) { in isStylusEvent()
591 const PointerProperties* pointerProperties, in initialize() argument
609 mPointerProperties.insert(mPointerProperties.end(), &pointerProperties[0], in initialize()
610 &pointerProperties[pointerCount]); in initialize()
657 auto [action, pointerProperties, pointerCoords] = in splitFrom()
667 pointerProperties.data(), pointerCoords.data()); in splitFrom()
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DFuzzedInputStream.h172 std::vector<PointerProperties> pointerProperties; in generateFuzzedMotionArgs() local
178 pointerProperties.push_back(properties); in generateFuzzedMotionArgs()
204 pointerProperties.data(), pointerCoords.data(), /*xPrecision=*/0, in generateFuzzedMotionArgs()
/frameworks/native/services/inputflinger/dispatcher/trace/
DAndroidInputEventProtoConverter.h89 for (uint32_t i = 0; i < event.pointerProperties.size(); i++) { in toProtoMotionEvent()
92 const auto& props = event.pointerProperties[i]; in toProtoMotionEvent()
146 for (size_t i = 0; i < motion->pointerProperties.size(); i++) { in toProtoWindowDispatchEvent()
148 pointerProto->set_pointer_id(motion->pointerProperties[i].id); in toProtoWindowDispatchEvent()
/frameworks/base/tests/Input/src/com/android/server/input/debug/
DFocusEventDebugViewTest.java92 PointerProperties pointerProperties = new PointerProperties(); in createRotaryMotionEvent() local
99 /* pointerProperties */ new PointerProperties[] {pointerProperties}, in createRotaryMotionEvent()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/classifier/
DClassifierTest.java157 MotionEvent.PointerProperties[] pointerProperties = in appendTrackpadMotionEvent() local
161 pointerProperties[i] = getPointerProperties(i); in appendTrackpadMotionEvent()
164 return MotionEvent.obtain(1, eventTime, actionType, pointerCount, pointerProperties, in appendTrackpadMotionEvent()
/frameworks/native/services/inputflinger/include/
DNotifyArgs.h93 std::vector<PointerProperties> pointerProperties; member
114 uint32_t pointerCount, const PointerProperties* pointerProperties,
124 inline size_t getPointerCount() const { return pointerProperties.size(); } in getPointerCount()
DNotifyArgsBuilders.h111 std::vector<PointerProperties> pointerProperties; in build() local
114 pointerProperties.push_back(pointer.buildProperties()); in build()
144 pointerProperties.data(), in build()

123