Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/include/
DInputListener.h96 struct NotifyMotionArgs : public NotifyArgs { struct
128 inline NotifyMotionArgs() { } in NotifyMotionArgs() argument
130 NotifyMotionArgs(int32_t id, nsecs_t eventTime, nsecs_t readTime, int32_t deviceId,
139 NotifyMotionArgs(const NotifyMotionArgs& other);
141 virtual ~NotifyMotionArgs() { } in ~NotifyMotionArgs() argument
143 bool operator==(const NotifyMotionArgs& rhs) const;
258 virtual void notifyMotion(const NotifyMotionArgs* args) = 0;
280 virtual void notifyMotion(const NotifyMotionArgs* args) override;
/frameworks/native/services/inputflinger/tests/
DInputClassifier_test.cpp33 static NotifyMotionArgs generateBasicMotionArgs() { in generateBasicMotionArgs()
44 NotifyMotionArgs motionArgs(1 /*sequenceNum*/, downTime /*eventTime*/, 2 /*readTime*/, in generateBasicMotionArgs()
105 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
107 NotifyMotionArgs args; in TEST_F()
217 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
228 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
244 NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST_F()
DTestInputListener.cpp66 void TestInputListener::assertNotifyMotionWasCalled(NotifyMotionArgs* outEventArgs) { in assertNotifyMotionWasCalled()
68 assertCalled<NotifyMotionArgs>(outEventArgs, in assertNotifyMotionWasCalled()
74 assertNotCalled<NotifyMotionArgs>("notifyMotion() should not be called.")); in assertNotifyMotionWasNotCalled()
158 void TestInputListener::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
159 notify<NotifyMotionArgs>(args); in notifyMotion()
DInputClassifierConverter_test.cpp29 static NotifyMotionArgs generateBasicMotionArgs() { in generateBasicMotionArgs()
41 NotifyMotionArgs motionArgs(1 /*sequenceNum*/, downTime /*eventTime*/, 2 /*readTime*/, in generateBasicMotionArgs()
65 const NotifyMotionArgs motionArgs = generateBasicMotionArgs(); in TEST()
DTestInputListener.h51 void assertNotifyMotionWasCalled(NotifyMotionArgs* outEventArgs = nullptr);
77 virtual void notifyMotion(const NotifyMotionArgs* args) override;
95 std::vector<NotifyMotionArgs>, //
DInputDispatcher_test.cpp88 void assertFilterInputEventWasCalled(const NotifyMotionArgs& args) { in assertFilterInputEventWasCalled()
1345 static NotifyMotionArgs generateMotionArgs(int32_t action, int32_t source, int32_t displayId, in generateMotionArgs()
1367 NotifyMotionArgs args(/* id */ 0, currentTime, 0 /*readTime*/, DEVICE_ID, source, displayId, in generateMotionArgs()
1378 static NotifyMotionArgs generateMotionArgs(int32_t action, int32_t source, int32_t displayId) { in generateMotionArgs()
1716 NotifyMotionArgs motionArgs = in TEST_F()
1751 NotifyMotionArgs downMotionArgs = in TEST_P()
1768 NotifyMotionArgs upMotionArgs = in TEST_P()
1792 NotifyMotionArgs downMotionArgs = in TEST_P()
1801 NotifyMotionArgs pointerDownMotionArgs = in TEST_P()
1821 NotifyMotionArgs pointerUpMotionArgs = in TEST_P()
[all …]
DInputReader_test.cpp2275 NotifyMotionArgs args; in TEST_F()
2296 NotifyMotionArgs args; in TEST_F()
2334 NotifyMotionArgs args; in TEST_F()
3829 NotifyMotionArgs args; in testMotionRotation()
3910 NotifyMotionArgs args; in TEST_F()
3996 NotifyMotionArgs args; in TEST_F()
4020 NotifyMotionArgs args; in TEST_F()
4049 NotifyMotionArgs args; in TEST_F()
4159 NotifyMotionArgs motionArgs; in TEST_F()
4446 NotifyMotionArgs args; in TEST_F()
[all …]
/frameworks/native/services/inputflinger/
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()
271 MotionClassification MotionClassifier::classify(const NotifyMotionArgs& args) { in classify()
276 ClassifierEvent event(std::make_unique<NotifyMotionArgs>(args)); in classify()
380 void InputClassifier::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
389 NotifyMotionArgs newArgs(*args); in notifyMotion()
DInputListener.cpp98 NotifyMotionArgs::NotifyMotionArgs( in NotifyMotionArgs() function in android::NotifyMotionArgs
132 NotifyMotionArgs::NotifyMotionArgs(const NotifyMotionArgs& other) in NotifyMotionArgs() function in android::NotifyMotionArgs
163 bool NotifyMotionArgs::operator==(const NotifyMotionArgs& rhs) const { in operator ==()
191 void NotifyMotionArgs::notify(const sp<InputListenerInterface>& listener) const { in notify()
337 void QueuedInputListener::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
339 mArgsQueue.push_back(new NotifyMotionArgs(*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;
230 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.cpp419 NotifyMotionArgs releaseArgs(getContext()->getNextId(), when, readTime, in sync()
431 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in sync()
444 NotifyMotionArgs pressArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
460 NotifyMotionArgs hoverArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
475 NotifyMotionArgs scrollArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
DRotaryEncoderInputMapper.cpp124 NotifyMotionArgs scrollArgs(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
DJoystickInputMapper.cpp340 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), in sync()
DTouchInputMapper.cpp2573 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerGestures()
3486 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3500 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3516 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3527 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3542 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3553 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3575 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, getDeviceId(), mSource, in dispatchPointerSimple()
3655 NotifyMotionArgs args(getContext()->getNextId(), when, readTime, deviceId, source, displayId, in dispatchMotion()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp243 static NotifyMotionArgs generateMotionArgs() { in generateMotionArgs()
257 NotifyMotionArgs args(IInputConstants::INVALID_INPUT_EVENT_ID, currentTime, currentTime, in generateMotionArgs()
283 NotifyMotionArgs motionArgs = generateMotionArgs(); in benchmarkNotifyMotion()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.h98 void notifyMotion(const NotifyMotionArgs* args) override;
302 bool shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) REQUIRES(mLock);
DInputDispatcher.cpp3817 void InputDispatcher::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion()
3942 bool InputDispatcher::shouldSendMotionToInputFilterLocked(const NotifyMotionArgs* args) { in shouldSendMotionToInputFilterLocked()