Home
last modified time | relevance | path

Searched refs:pointerProperties (Results 1 – 25 of 58) 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()
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/dispatcher/
DInputState.cpp102 if (isStylusEvent(lastMemento.source, lastMemento.pointerProperties) && in trackMotion()
103 !isStylusEvent(entry.source, entry.pointerProperties)) { in trackMotion()
207 return std::make_pair(mMotionMementos[index].pointerProperties, in getPointersOfLastEvent()
266 pointerProperties.clear(); in setPointers()
278 pointerProperties.push_back(entry.pointerProperties[i]); in setPointers()
288 other.pointerProperties.push_back(pointerProperties[i]); in mergePointerStateTo()
294 return pointerProperties.size(); in getPointerCount()
351 if (isStylusEvent(lastMemento.source, lastMemento.pointerProperties)) { in shouldCancelPreviousStream()
353 if (isStylusEvent(motionEntry.source, motionEntry.pointerProperties) && in shouldCancelPreviousStream()
409 memento.pointerProperties, memento.pointerCoords); in createCancelEntryForMemento()
[all …]
/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/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()
501 args.pointerProperties[0].toolType = ToolType::FINGER; in TEST_F()
535 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F()
539 args.pointerProperties[0].toolType = ToolType::STYLUS; in TEST_F()
543 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.cpp4770 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4771 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4794 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4795 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4817 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4818 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4867 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4868 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
4890 ASSERT_EQ(0, motionArgs.pointerProperties[0].id); in TEST_F()
4891 ASSERT_EQ(ToolType::FINGER, motionArgs.pointerProperties[0].toolType); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DRotaryEncoderInputMapper.cpp138 PointerProperties pointerProperties; in sync() local
139 pointerProperties.clear(); in sync()
140 pointerProperties.id = 0; in sync()
141 pointerProperties.toolType = ToolType::UNKNOWN; in sync()
152 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()
342 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
352 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
366 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
381 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
396 AMOTION_EVENT_EDGE_FLAG_NONE, 1, &pointerProperties, in sync()
/frameworks/native/services/inputflinger/
DNotifyArgs.cpp69 int32_t edgeFlags, uint32_t pointerCount, const PointerProperties* pointerProperties, in NotifyMotionArgs() argument
94 this->pointerProperties.emplace_back(pointerProperties[i]); in NotifyMotionArgs()
109 edgeFlags == rhs.edgeFlags && pointerProperties == rhs.pointerProperties && in operator ==()
125 StringPrintf("id=%" PRIu32 " x=%.1f y=%.1f pressure=%.1f", pointerProperties[i].id, in dump()
128 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()
495 const int32_t pointerId = args.pointerProperties[i].id; in update()
593 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/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.cpp82 std::vector<PointerProperties> pointerProperties; member
107 pointerProperties.push_back({}); in PublishMotionArgs()
108 pointerProperties[i].clear(); in PublishMotionArgs()
109 pointerProperties[i].id = pointers[i].id; in PublishMotionArgs()
110 pointerProperties[i].toolType = ToolType::FINGER; in PublishMotionArgs()
164 EXPECT_EQ(args.pointerProperties[i].id, motionEvent.getPointerId(i)); in verifyArgsEqualToEvent()
165 EXPECT_EQ(args.pointerProperties[i].toolType, motionEvent.getToolType(i)); in verifyArgsEqualToEvent()
197 a.pointerCount, a.pointerProperties.data(), in publishMotionEvent()
733 PointerProperties pointerProperties[pointerCount]; in TEST_F() local
736 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.cpp38 const PointerProperties* pointerProperties, in processMovement() argument
42 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()
561 const PointerProperties* pointerProperties, in initialize() argument
579 mPointerProperties.insert(mPointerProperties.end(), &pointerProperties[0], in initialize()
580 &pointerProperties[pointerCount]); in initialize()
627 auto [action, pointerProperties, pointerCoords] = in splitFrom()
637 pointerProperties.data(), pointerCoords.data()); in splitFrom()
[all …]
/frameworks/native/services/inputflinger/dispatcher/trace/
DAndroidInputEventProtoConverter.cpp61 for (uint32_t i = 0; i < event.pointerProperties.size(); i++) { in toProtoMotionEvent()
64 const auto& props = event.pointerProperties[i]; in toProtoMotionEvent()
115 for (size_t i = 0; i < motion->pointerProperties.size(); i++) { in toProtoWindowDispatchEvent()
117 pointerProto->set_pointer_id(motion->pointerProperties[i].id); in toProtoWindowDispatchEvent()
/frameworks/native/services/inputflinger/tests/fuzzers/
DFuzzedInputStream.h166 std::vector<PointerProperties> pointerProperties; in generateFuzzedMotionArgs() local
172 pointerProperties.push_back(properties); in generateFuzzedMotionArgs()
198 pointerProperties.data(), pointerCoords.data(), in generateFuzzedMotionArgs()
/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/native/services/inputflinger/include/
DNotifyArgsBuilders.h104 std::vector<PointerProperties> pointerProperties; in build() local
107 pointerProperties.push_back(pointer.buildProperties()); in build()
137 pointerProperties.data(), in build()
DNotifyArgs.h108 std::vector<PointerProperties> pointerProperties; member
129 uint32_t pointerCount, const PointerProperties* pointerProperties,
139 inline size_t getPointerCount() const { return pointerProperties.size(); } in getPointerCount()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessorTest.kt606 val pointerProperties = in genPositiveTestCases() constant
631 pointerProperties = pointerProperties, in genPositiveTestCases()
691 pointerProperties: Array<MotionEvent.PointerProperties>, in obtainMotionEvent()
701 pointerProperties /* pointerProperties */, in obtainMotionEvent()
728 pointerProperties: List<MotionEvent.PointerProperties>, in copy()
735 pointerProperties.toTypedArray(), in copy()

123