Home
last modified time | relevance | path

Searched refs:NotifyMotionArgs (Results 1 – 15 of 15) 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.cpp30 static NotifyMotionArgs generateBasicMotionArgs() { in generateBasicMotionArgs()
41 NotifyMotionArgs motionArgs(1/*sequenceNum*/, downTime/*eventTime*/, 3/*deviceId*/, in generateBasicMotionArgs()
98 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
100 NotifyMotionArgs args; in TEST_F()
160 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
171 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
187 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.cpp2410 NotifyMotionArgs args; in testMotionRotation()
2496 NotifyMotionArgs args; in TEST_F()
2587 NotifyMotionArgs args; in TEST_F()
2611 NotifyMotionArgs args; in TEST_F()
2645 NotifyMotionArgs args; in TEST_F()
2760 NotifyMotionArgs motionArgs; in TEST_F()
3048 NotifyMotionArgs args; in TEST_F()
3076 NotifyMotionArgs args; in TEST_F()
3161 NotifyMotionArgs args; in TEST_F()
3652 NotifyMotionArgs motionArgs; in TEST_F()
[all …]
DInputDispatcher_test.cpp58 void assertFilterInputEventWasCalledWithExpectedArgs(const NotifyMotionArgs* args) { in assertFilterInputEventWasCalledWithExpectedArgs()
564 static NotifyMotionArgs generateMotionArgs(int32_t action, int32_t source, int32_t displayId) { in generateMotionArgs()
578 NotifyMotionArgs args(/* sequenceNum */ 0, currentTime, DEVICE_ID, source, displayId, in generateMotionArgs()
867 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.cpp78 static bool isTouchEvent(const NotifyMotionArgs& args) { in isTouchEvent()
98 ClassifierEvent::ClassifierEvent(std::unique_ptr<NotifyMotionArgs> args) : in ClassifierEvent()
125 NotifyMotionArgs* motionArgs = static_cast<NotifyMotionArgs*>(args.get()); in getDeviceId()
238 NotifyMotionArgs* motionArgs = static_cast<NotifyMotionArgs*>(event.args.get()); in callInputClassifierHal()
324 MotionClassification MotionClassifier::classify(const NotifyMotionArgs& args) { in classify()
329 ClassifierEvent event(std::make_unique<NotifyMotionArgs>(args)); in classify()
416 void InputClassifier::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
425 NotifyMotionArgs newArgs(*args); in notifyMotion()
DInputClassifier.h43 ClassifierEvent(std::unique_ptr<NotifyMotionArgs> args);
71 virtual MotionClassification classify(const NotifyMotionArgs& args) = 0;
137 virtual MotionClassification classify(const NotifyMotionArgs& args) override;
242 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()
DInputReader.cpp2847 NotifyMotionArgs releaseArgs(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
2858 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), mSource, in sync()
2870 NotifyMotionArgs pressArgs(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
2885 NotifyMotionArgs hoverArgs(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
2899 NotifyMotionArgs scrollArgs(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
3044 NotifyMotionArgs scrollArgs(mContext->getNextSequenceNum(), when, getDeviceId(), in sync()
5453 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), in dispatchPointerGestures()
6379 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), in dispatchPointerSimple()
6393 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), in dispatchPointerSimple()
6409 NotifyMotionArgs args(mContext->getNextSequenceNum(), when, getDeviceId(), in dispatchPointerSimple()
[all …]
DInputDispatcher.h425 virtual void notifyMotion(const NotifyMotionArgs* args) override;
1032 bool shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) REQUIRES(mLock);
DInputDispatcher.cpp2723 void InputDispatcher::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
2805 bool InputDispatcher::shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) { in shouldSendMotionToInputFilterLocked()