Home
last modified time | relevance | path

Searched refs:NotifySwitchArgs (Results 1 – 12 of 12) sorted by relevance

/aosp12/frameworks/native/services/inputflinger/include/
H A DInputListener.h174 struct NotifySwitchArgs : public NotifyArgs { struct
179 inline NotifySwitchArgs() { } in NotifySwitchArgs() argument
181 NotifySwitchArgs(int32_t id, nsecs_t eventTime, uint32_t policyFlags, uint32_t switchValues,
184 NotifySwitchArgs(const NotifySwitchArgs& other);
186 bool operator==(const NotifySwitchArgs rhs) const;
188 virtual ~NotifySwitchArgs() { } in ~NotifySwitchArgs() argument
260 virtual void notifySwitch(const NotifySwitchArgs* args) = 0;
282 virtual void notifySwitch(const NotifySwitchArgs* args) override;
/aosp12/frameworks/native/services/inputflinger/
H A DInputListener.cpp197 NotifySwitchArgs::NotifySwitchArgs(int32_t id, nsecs_t eventTime, uint32_t policyFlags, in NotifySwitchArgs() function in android::NotifySwitchArgs
204 NotifySwitchArgs::NotifySwitchArgs(const NotifySwitchArgs& other) in NotifySwitchArgs() function in android::NotifySwitchArgs
210 bool NotifySwitchArgs::operator==(const NotifySwitchArgs rhs) const { in operator ==()
215 void NotifySwitchArgs::notify(const sp<InputListenerInterface>& listener) const { in notify()
342 void QueuedInputListener::notifySwitch(const NotifySwitchArgs* args) { in notifySwitch()
344 mArgsQueue.push_back(new NotifySwitchArgs(*args)); in notifySwitch()
H A DInputClassifier.h231 virtual void notifySwitch(const NotifySwitchArgs* args) override;
H A DInputClassifier.cpp404 void InputClassifier::notifySwitch(const NotifySwitchArgs* args) { in notifySwitch()
/aosp12/frameworks/native/services/inputflinger/tests/
H A DTestInputListener.cpp77 void TestInputListener::assertNotifySwitchWasCalled(NotifySwitchArgs* outEventArgs) { in assertNotifySwitchWasCalled()
79 assertCalled<NotifySwitchArgs>(outEventArgs, in assertNotifySwitchWasCalled()
167 void TestInputListener::notifySwitch(const NotifySwitchArgs* args) { in notifySwitch()
168 notify<NotifySwitchArgs>(args); in notifySwitch()
H A DTestInputListener.h55 void assertNotifySwitchWasCalled(NotifySwitchArgs* outEventArgs = nullptr);
80 virtual void notifySwitch(const NotifySwitchArgs* args) override;
97 std::vector<NotifySwitchArgs>, //
H A DInputClassifier_test.cpp118 NotifySwitchArgs args(1/*sequenceNum*/, 2/*eventTime*/, 3/*policyFlags*/, 4/*switchValues*/, in TEST_F()
122 NotifySwitchArgs outArgs; in TEST_F()
H A DInputDispatcher_test.cpp110 void assertNotifySwitchWasCalled(const NotifySwitchArgs& args) { in assertNotifySwitchWasCalled()
288 std::optional<NotifySwitchArgs> mLastNotifySwitch GUARDED_BY(mLock);
395 mLastNotifySwitch = NotifySwitchArgs(1 /*id*/, when, policyFlags, switchValues, switchMask); in notifySwitch()
675 NotifySwitchArgs args(10 /*id*/, 20 /*eventTime*/, 0 /*policyFlags*/, 1 /*switchValues*/, in TEST_F()
H A DInputReader_test.cpp2852 NotifySwitchArgs args; in TEST_F()
/aosp12/frameworks/native/services/inputflinger/reader/mapper/
H A DSwitchInputMapper.cpp59 NotifySwitchArgs args(getContext()->getNextId(), when, 0 /*policyFlags*/, in sync()
/aosp12/frameworks/native/services/inputflinger/dispatcher/
H A DInputDispatcher.h100 void notifySwitch(const NotifySwitchArgs* args) override;
H A DInputDispatcher.cpp3992 void InputDispatcher::notifySwitch(const NotifySwitchArgs* args) { in notifySwitch()