Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/include/
DInputListener.h95 struct NotifyMotionArgs : public NotifyArgs { struct
125 inline NotifyMotionArgs() { } in NotifyMotionArgs() argument
127 NotifyMotionArgs(uint32_t sequenceNum, nsecs_t eventTime, int32_t deviceId, uint32_t source,
136 NotifyMotionArgs(const NotifyMotionArgs& other);
138 virtual ~NotifyMotionArgs() { } in ~NotifyMotionArgs() argument
140 bool operator==(const NotifyMotionArgs& rhs) const;
197 virtual void notifyMotion(const NotifyMotionArgs* args) = 0;
216 virtual void notifyMotion(const NotifyMotionArgs* args);
/frameworks/native/services/inputflinger/tests/
DInputClassifier_test.cpp33 static NotifyMotionArgs generateBasicMotionArgs() { in generateBasicMotionArgs()
44 NotifyMotionArgs motionArgs(1/*sequenceNum*/, downTime/*eventTime*/, 3/*deviceId*/, in generateBasicMotionArgs()
101 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
103 NotifyMotionArgs args; in TEST_F()
213 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
224 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
240 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
DTestInputListener.h32 std::vector<NotifyMotionArgs> mNotifyMotionArgsQueue;
54 void assertNotifyMotionWasCalled(NotifyMotionArgs* outEventArgs = nullptr);
67 virtual void notifyMotion(const NotifyMotionArgs* args);
DInputClassifierConverter_test.cpp29 static NotifyMotionArgs generateBasicMotionArgs() { in generateBasicMotionArgs()
41 NotifyMotionArgs motionArgs(1/*sequenceNum*/, downTime/*eventTime*/, 3/*deviceId*/, in generateBasicMotionArgs()
62 const NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST()
DTestInputListener.cpp72 void TestInputListener::assertNotifyMotionWasCalled(NotifyMotionArgs* outEventArgs) { in assertNotifyMotionWasCalled()
106 void TestInputListener::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
DInputReader_test.cpp2422 NotifyMotionArgs args; in testMotionRotation()
2508 NotifyMotionArgs args; in TEST_F()
2599 NotifyMotionArgs args; in TEST_F()
2623 NotifyMotionArgs args; in TEST_F()
2657 NotifyMotionArgs args; in TEST_F()
2772 NotifyMotionArgs motionArgs; in TEST_F()
3060 NotifyMotionArgs args; in TEST_F()
3088 NotifyMotionArgs args; in TEST_F()
3179 NotifyMotionArgs args; in TEST_F()
3670 NotifyMotionArgs motionArgs; in TEST_F()
[all …]
DInputDispatcher_test.cpp60 void assertFilterInputEventWasCalledWithExpectedArgs(const NotifyMotionArgs* args) { in assertFilterInputEventWasCalledWithExpectedArgs()
566 static NotifyMotionArgs generateMotionArgs(int32_t action, int32_t source, int32_t displayId) { in generateMotionArgs()
580 NotifyMotionArgs args(/* sequenceNum */ 0, currentTime, DEVICE_ID, source, displayId, in generateMotionArgs()
869 NotifyMotionArgs motionArgs; in testNotifyMotion()
/frameworks/native/services/inputflinger/
DInputListener.cpp90 NotifyMotionArgs::NotifyMotionArgs(uint32_t sequenceNum, nsecs_t eventTime, int32_t deviceId, in NotifyMotionArgs() function in android::NotifyMotionArgs
112 NotifyMotionArgs::NotifyMotionArgs(const NotifyMotionArgs& other) : in NotifyMotionArgs() function in android::NotifyMotionArgs
127 bool NotifyMotionArgs::operator==(const NotifyMotionArgs& rhs) const { in operator ==()
164 void NotifyMotionArgs::notify(const sp<InputListenerInterface>& listener) const { in notify()
239 void QueuedInputListener::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
240 mArgsQueue.push_back(new NotifyMotionArgs(*args)); in notifyMotion()
DInputClassifier.cpp70 static bool isTouchEvent(const NotifyMotionArgs& args) { in isTouchEvent()
76 ClassifierEvent::ClassifierEvent(std::unique_ptr<NotifyMotionArgs> args) : in ClassifierEvent()
103 NotifyMotionArgs* motionArgs = static_cast<NotifyMotionArgs*>(args.get()); in getDeviceId()
179 NotifyMotionArgs* motionArgs = static_cast<NotifyMotionArgs*>(event.args.get()); in processEvents()
265 MotionClassification MotionClassifier::classify(const NotifyMotionArgs& args) { in classify()
270 ClassifierEvent event(std::make_unique<NotifyMotionArgs>(args)); in classify()
374 void InputClassifier::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
383 NotifyMotionArgs newArgs(*args); in notifyMotion()
DInputClassifier.h43 ClassifierEvent(std::unique_ptr<NotifyMotionArgs> args);
71 virtual MotionClassification classify(const NotifyMotionArgs& args) = 0;
138 virtual MotionClassification classify(const NotifyMotionArgs& args) override;
228 virtual void notifyMotion(const NotifyMotionArgs* args) override;
DInputClassifierConverter.h30 const NotifyMotionArgs& args);
DInputClassifierConverter.cpp333 static void getHidlPropertiesAndCoords(const NotifyMotionArgs& args, in getHidlPropertiesAndCoords()
354 common::V1_0::MotionEvent notifyMotionArgsToHalMotionEvent(const NotifyMotionArgs& args) { in notifyMotionArgsToHalMotionEvent()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp398 NotifyMotionArgs releaseArgs(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
410 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in sync()
423 NotifyMotionArgs pressArgs(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
439 NotifyMotionArgs hoverArgs(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in sync()
454 NotifyMotionArgs scrollArgs(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
DRotaryEncoderInputMapper.cpp122 NotifyMotionArgs scrollArgs(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in sync()
DTouchInputMapper.cpp2536 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in dispatchPointerGestures()
3455 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in dispatchPointerSimple()
3469 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in dispatchPointerSimple()
3485 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in dispatchPointerSimple()
3497 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in dispatchPointerSimple()
3512 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in dispatchPointerSimple()
3524 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in dispatchPointerSimple()
3546 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in dispatchPointerSimple()
3615 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, deviceId, source, displayId, in dispatchMotion()
DJoystickInputMapper.cpp334 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.h90 virtual void notifyMotion(const NotifyMotionArgs* args) override;
242 bool shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) REQUIRES(mLock);
DInputDispatcher.cpp2719 void InputDispatcher::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
2800 bool InputDispatcher::shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) { in shouldSendMotionToInputFilterLocked()