Home
last modified time | relevance | path

Searched refs:NotifyMotionArgs (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/native/services/inputflinger/tests/
DPreferStylusOverTouch_test.cpp36 static NotifyMotionArgs generateMotionArgs(nsecs_t downTime, nsecs_t eventTime, int32_t action, in generateMotionArgs()
66 NotifyMotionArgs args(/*id=*/0, eventTime, /*readTime=*/0, deviceId, source, in generateMotionArgs()
80 void assertNotBlocked(const NotifyMotionArgs& args) { assertResponse(args, {args}); } in assertNotBlocked()
82 void assertDropped(const NotifyMotionArgs& args) { assertResponse(args, {}); } in assertDropped()
84 void assertResponse(const NotifyMotionArgs& args, in assertResponse()
85 const std::vector<NotifyMotionArgs>& expected) { in assertResponse()
86 std::vector<NotifyMotionArgs> receivedArgs = mBlocker.processMotion(args); in assertResponse()
110 NotifyMotionArgs args; in TEST_F()
123 NotifyMotionArgs args; in TEST_F()
140 NotifyMotionArgs args; in TEST_F()
[all …]
DGestureConverter_test.cpp101 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
104 VariantWith<NotifyMotionArgs>( in TEST_F()
109 Each(VariantWith<NotifyMotionArgs>( in TEST_F()
116 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
133 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
136 VariantWith<NotifyMotionArgs>( in TEST_F()
141 Each(VariantWith<NotifyMotionArgs>( in TEST_F()
158 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
162 VariantWith<NotifyMotionArgs>( in TEST_F()
166 VariantWith<NotifyMotionArgs>( in TEST_F()
[all …]
DCursorInputMapper_test.cpp186 ElementsAre(VariantWith<NotifyMotionArgs>( in testMotionRotation()
227 ASSERT_THAT(args, ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_MOVE)))); in TEST_F()
234 ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_DOWN)), in TEST_F()
235 VariantWith<NotifyMotionArgs>(WithMotionAction(BUTTON_PRESS)))); in TEST_F()
242 ASSERT_THAT(args, ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_MOVE)))); in TEST_F()
249 ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(BUTTON_RELEASE)), in TEST_F()
250 VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_UP)), in TEST_F()
251 VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_MOVE)))); in TEST_F()
274 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
286 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
[all …]
DUnwantedInteractionBlocker_test.cpp68 static NotifyMotionArgs generateMotionArgs(nsecs_t downTime, nsecs_t eventTime, int32_t action, in generateMotionArgs()
90 NotifyMotionArgs args(/*id=*/0, eventTime, /*readTime=*/0, DEVICE_ID, AINPUT_SOURCE_TOUCHSCREEN, in generateMotionArgs()
138 static void assertArgs(const NotifyMotionArgs& args, int32_t action, in assertArgs()
154 NotifyMotionArgs args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, in TEST()
157 NotifyMotionArgs pointer1Only = removePointerIds(args, {0}); in TEST()
160 NotifyMotionArgs pointer0Only = removePointerIds(args, {1}); in TEST()
168 NotifyMotionArgs args = in TEST()
172 NotifyMotionArgs pointer1Only = removePointerIds(args, {0, 2}); in TEST()
181 NotifyMotionArgs args = generateMotionArgs(/*downTime=*/0, /*eventTime=*/0, POINTER_1_DOWN, in TEST()
184 NotifyMotionArgs pointers0And2 = removePointerIds(args, {1}); in TEST()
[all …]
DMultiTouchInputMapper_test.cpp191 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
193 VariantWith<NotifyMotionArgs>( in TEST_F()
209 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
211 const auto pointerCoordsBeforeReset = std::get<NotifyMotionArgs>(args.back()).pointerCoords; in TEST_F()
227 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
233 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
235 VariantWith<NotifyMotionArgs>( in TEST_F()
237 ASSERT_EQ(std::get<NotifyMotionArgs>(args.back()).pointerCoords, pointerCoordsBeforeReset); in TEST_F()
252 ElementsAre(VariantWith<NotifyMotionArgs>( in TEST_F()
262 ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_POINTER_0_UP)))); in TEST_F()
[all …]
DCapturedTouchpadEventConverter_test.cpp109 NotifyMotionArgs processSyncAndExpectSingleMotionArg(CapturedTouchpadEventConverter& conv) { in processSyncAndExpectSingleMotionArg()
112 return std::get<NotifyMotionArgs>(args.front()); in processSyncAndExpectSingleMotionArg()
250 EXPECT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
254 EXPECT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
469 EXPECT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
472 EXPECT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
577 EXPECT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
581 EXPECT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
596 EXPECT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
599 EXPECT_THAT(std::get<NotifyMotionArgs>(args.front()), in TEST_F()
[all …]
DTouchpadInputMapper_test.cpp159 ElementsAre(VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_ENTER)), in TEST_F()
160 VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_MOVE)), in TEST_F()
161 VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_EXIT)), in TEST_F()
162 VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_DOWN)), in TEST_F()
163 VariantWith<NotifyMotionArgs>(WithMotionAction(BUTTON_PRESS)), in TEST_F()
164 VariantWith<NotifyMotionArgs>(WithMotionAction(BUTTON_RELEASE)), in TEST_F()
165 VariantWith<NotifyMotionArgs>(WithMotionAction(ACTION_UP)), in TEST_F()
166 VariantWith<NotifyMotionArgs>(WithMotionAction(HOVER_ENTER)))); in TEST_F()
DTestInputListener.cpp92 void TestInputListener::assertNotifyMotionWasCalled(NotifyMotionArgs* outEventArgs, in assertNotifyMotionWasCalled()
95 assertCalled<NotifyMotionArgs>(outEventArgs, in assertNotifyMotionWasCalled()
101 const ::testing::Matcher<NotifyMotionArgs>& matcher, std::optional<TimePoint> waitUntil) { in assertNotifyMotionWasCalled()
102 NotifyMotionArgs outEventArgs; in assertNotifyMotionWasCalled()
109 assertNotCalled<NotifyMotionArgs>("notifyMotion() should not be called.", waitUntil)); in assertNotifyMotionWasNotCalled()
207 void TestInputListener::notifyMotion(const NotifyMotionArgs& args) { in notifyMotion()
208 addToQueue<NotifyMotionArgs>(args); in notifyMotion()
DInputProcessor_test.cpp35 static NotifyMotionArgs generateBasicMotionArgs() { in generateBasicMotionArgs()
46 NotifyMotionArgs motionArgs(/*sequenceNum=*/1, /*eventTime=*/downTime, /*readTime=*/2, in generateBasicMotionArgs()
96 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
195 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
206 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
222 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
DTestInputListener.h60 void assertNotifyMotionWasCalled(NotifyMotionArgs* outEventArgs = nullptr,
63 void assertNotifyMotionWasCalled(const ::testing::Matcher<NotifyMotionArgs>& matcher,
94 virtual void notifyMotion(const NotifyMotionArgs& args) override;
113 std::vector<NotifyMotionArgs>, //
DInputProcessorConverter_test.cpp28 static NotifyMotionArgs generateBasicMotionArgs() { in generateBasicMotionArgs()
40 NotifyMotionArgs motionArgs(/*sequenceNum=*/1, /*eventTime=*/downTime, /*readTime=*/2, in generateBasicMotionArgs()
63 const NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST()
DTestEventMatchers.h51 bool MatchAndExplain(const NotifyMotionArgs& args, std::ostream*) const { in MatchAndExplain()
111 bool MatchAndExplain(const NotifyMotionArgs& args, std::ostream*) const { in MatchAndExplain()
150 bool MatchAndExplain(const NotifyMotionArgs& args, std::ostream*) const { in MatchAndExplain()
180 bool MatchAndExplain(const NotifyMotionArgs& args, std::ostream*) const { in MatchAndExplain()
214 bool MatchAndExplain(const NotifyMotionArgs& args, std::ostream*) const { in MatchAndExplain()
250 bool MatchAndExplain(const NotifyMotionArgs& args, std::ostream*) const { in MatchAndExplain()
300 bool MatchAndExplain(const NotifyMotionArgs& event, std::ostream* os) const { in MatchAndExplain()
395 bool MatchAndExplain(const NotifyMotionArgs& event, std::ostream* os) const { in MatchAndExplain()
437 bool MatchAndExplain(const NotifyMotionArgs& event, std::ostream* os) const { in MatchAndExplain()
489 bool MatchAndExplain(const NotifyMotionArgs& event, std::ostream* os) const { in MatchAndExplain()
[all …]
DNotifyArgs_test.cpp73 const NotifyMotionArgs args(id, eventTime, readTime, deviceId, source, displayId, policyFlags, in TEST()
79 NotifyMotionArgs otherArgs{}; in TEST()
/frameworks/native/services/inputflinger/
DUnwantedInteractionBlocker.h65 NotifyMotionArgs removePointerIds(const NotifyMotionArgs& args,
68 std::vector<NotifyMotionArgs> cancelSuppressedPointers(
69 const NotifyMotionArgs& args, const std::set<int32_t>& oldSuppressedPointerIds,
96 void notifyMotion(const NotifyMotionArgs& args) override;
122 void notifyMotionLocked(const NotifyMotionArgs& args) REQUIRES(mLock);
125 void enqueueOutboundMotionLocked(const NotifyMotionArgs& args) REQUIRES(mLock);
135 void update(const NotifyMotionArgs& args);
159 std::vector<::ui::InProgressTouchEvdev> getTouches(const NotifyMotionArgs& args,
168 std::vector<NotifyMotionArgs> processMotion(const NotifyMotionArgs& args);
185 std::set<int32_t> detectPalmPointers(const NotifyMotionArgs& args);
DUnwantedInteractionBlocker.cpp132 static int32_t getActionUpForPointerId(const NotifyMotionArgs& args, int32_t pointerId) { in getActionUpForPointerId()
164 NotifyMotionArgs removePointerIds(const NotifyMotionArgs& args, in removePointerIds()
171 NotifyMotionArgs newArgs{args}; in removePointerIds()
215 static std::optional<NotifyMotionArgs> removeStylusPointerIds(const NotifyMotionArgs& args) { in removeStylusPointerIds()
222 NotifyMotionArgs withoutStylusPointers = removePointerIds(args, stylusPointerIds); in removeStylusPointerIds()
286 std::vector<NotifyMotionArgs> cancelSuppressedPointers( in cancelSuppressedPointers()
287 const NotifyMotionArgs& args, const std::set<int32_t>& oldSuppressedPointerIds, in cancelSuppressedPointers()
292 NotifyMotionArgs oldArgs = removePointerIds(args, oldSuppressedPointerIds); in cancelSuppressedPointers()
295 std::vector<NotifyMotionArgs> out; in cancelSuppressedPointers()
300 NotifyMotionArgs removedArgs{oldArgs}; in cancelSuppressedPointers()
[all …]
DPointerChoreographer.h110 void notifyMotion(const NotifyMotionArgs& args) override;
134 NotifyMotionArgs processMotion(const NotifyMotionArgs& args);
135 NotifyMotionArgs processMouseEventLocked(const NotifyMotionArgs& args) REQUIRES(mLock);
136 NotifyMotionArgs processTouchpadEventLocked(const NotifyMotionArgs& args) REQUIRES(mLock);
137 void processDrawingTabletEventLocked(const NotifyMotionArgs& args) REQUIRES(mLock);
138 void processTouchscreenAndStylusEventLocked(const NotifyMotionArgs& args) REQUIRES(mLock);
139 void processStylusHoverEventLocked(const NotifyMotionArgs& args) REQUIRES(mLock);
DPreferStylusOverTouchBlocker.h44 std::vector<NotifyMotionArgs> processMotion(const NotifyMotionArgs& args);
56 std::map<int32_t /*deviceId*/, NotifyMotionArgs> mLastTouchEvents;
DInputCommonConverter.h29 const NotifyMotionArgs& args);
32 MotionEvent toMotionEvent(const NotifyMotionArgs&, const ui::Transform* transform = nullptr,
DPreferStylusOverTouchBlocker.cpp27 static std::pair<bool, bool> checkToolType(const NotifyMotionArgs& args) { in checkToolType()
101 std::vector<NotifyMotionArgs> PreferStylusOverTouchBlocker::processMotion( in processMotion()
102 const NotifyMotionArgs& args) { in processMotion()
141 std::vector<NotifyMotionArgs> result; in processMotion()
213 static std::string dumpArgs(const NotifyMotionArgs& args) { in dumpArgs()
DNotifyArgs.cpp65 NotifyMotionArgs::NotifyMotionArgs( in NotifyMotionArgs() function in android::NotifyMotionArgs
103 bool NotifyMotionArgs::operator==(const NotifyMotionArgs& rhs) const { in operator ==()
117 std::string NotifyMotionArgs::dump() const { in dump()
203 [&](const NotifyMotionArgs&) { return "NotifyMotionArgs"; }, in toString()
DInputProcessor.cpp70 static bool isTouchEvent(const NotifyMotionArgs& args) { in isTouchEvent()
127 ClassifierEvent::ClassifierEvent(const NotifyMotionArgs& args) in ClassifierEvent()
153 const NotifyMotionArgs& motionArgs = std::get<NotifyMotionArgs>(*args); in getDeviceId()
214 NotifyMotionArgs& motionArgs = std::get<NotifyMotionArgs>(*event.args); in processEvents()
304 MotionClassification MotionClassifier::classify(const NotifyMotionArgs& args) { in classify()
434 void InputProcessor::notifyMotion(const NotifyMotionArgs& args) { in notifyMotion()
442 NotifyMotionArgs newArgs(args); in notifyMotion()
DPointerChoreographer.cpp36 bool isFromMouse(const NotifyMotionArgs& args) { in isFromMouse()
41 bool isFromTouchpad(const NotifyMotionArgs& args) { in isFromTouchpad()
46 bool isFromDrawingTablet(const NotifyMotionArgs& args) { in isFromDrawingTablet()
56 bool isStylusHoverEvent(const NotifyMotionArgs& args) { in isStylusHoverEvent()
177 void PointerChoreographer::notifyMotion(const NotifyMotionArgs& args) { in notifyMotion()
178 NotifyMotionArgs newArgs = processMotion(args); in notifyMotion()
209 NotifyMotionArgs PointerChoreographer::processMotion(const NotifyMotionArgs& args) { in processMotion()
226 NotifyMotionArgs PointerChoreographer::processMouseEventLocked(const NotifyMotionArgs& args) { in processMouseEventLocked()
234 NotifyMotionArgs newArgs(args); in processMouseEventLocked()
263 NotifyMotionArgs PointerChoreographer::processTouchpadEventLocked(const NotifyMotionArgs& args) { in processTouchpadEventLocked()
[all …]
DInputProcessor.h41 ClassifierEvent(const NotifyMotionArgs& args);
69 virtual MotionClassification classify(const NotifyMotionArgs& args) = 0;
157 virtual MotionClassification classify(const NotifyMotionArgs& args) override;
251 void notifyMotion(const NotifyMotionArgs& args) override;
/frameworks/native/services/inputflinger/include/
DNotifyArgs.h88 struct NotifyMotionArgs { struct
123 inline NotifyMotionArgs() {} in NotifyMotionArgs() argument
125 NotifyMotionArgs(int32_t id, nsecs_t eventTime, nsecs_t readTime, int32_t deviceId,
134 NotifyMotionArgs(const NotifyMotionArgs& other) = default;
135 NotifyMotionArgs& operator=(const android::NotifyMotionArgs&) = default; argument
137 bool operator==(const NotifyMotionArgs& rhs) const;
238 NotifyMotionArgs, NotifySensorArgs, NotifySwitchArgs, NotifyDeviceResetArgs,
DInputListener.h43 virtual void notifyMotion(const NotifyMotionArgs& args) = 0;
65 virtual void notifyMotion(const NotifyMotionArgs& args) override;
89 virtual void notifyMotion(const NotifyMotionArgs& args) override;

123