Lines Matching refs:args

70 static bool isTouchEvent(const NotifyMotionArgs& args) {  in isTouchEvent()  argument
71 return args.source == AINPUT_SOURCE_TOUCHPAD || args.source == AINPUT_SOURCE_TOUCHSCREEN; in isTouchEvent()
76 ClassifierEvent::ClassifierEvent(std::unique_ptr<NotifyMotionArgs> args) : in ClassifierEvent() argument
77 type(ClassifierEventType::MOTION), args(std::move(args)) { }; in ClassifierEvent()
78 ClassifierEvent::ClassifierEvent(std::unique_ptr<NotifyDeviceResetArgs> args) : in ClassifierEvent() argument
79 type(ClassifierEventType::DEVICE_RESET), args(std::move(args)) { }; in ClassifierEvent()
80 ClassifierEvent::ClassifierEvent(ClassifierEventType type, std::unique_ptr<NotifyArgs> args) : in ClassifierEvent() argument
81 type(type), args(std::move(args)) { }; in ClassifierEvent()
84 type(other.type), args(std::move(other.args)) { }; in ClassifierEvent()
88 args = std::move(other.args); in operator =()
103 NotifyMotionArgs* motionArgs = static_cast<NotifyMotionArgs*>(args.get()); in getDeviceId()
108 static_cast<NotifyDeviceResetArgs*>(args.get()); in getDeviceId()
179 NotifyMotionArgs* motionArgs = static_cast<NotifyMotionArgs*>(event.args.get()); in processEvents()
220 ALOGE("Dropped event with eventTime %" PRId64, event.args->eventTime); in enqueueEvent()
265 MotionClassification MotionClassifier::classify(const NotifyMotionArgs& args) { in classify() argument
266 if ((args.action & AMOTION_EVENT_ACTION_MASK) == AMOTION_EVENT_ACTION_DOWN) { in classify()
267 updateLastDownTime(args.deviceId, args.downTime); in classify()
270 ClassifierEvent event(std::make_unique<NotifyMotionArgs>(args)); in classify()
272 return getClassification(args.deviceId); in classify()
284 void MotionClassifier::reset(const NotifyDeviceResetArgs& args) { in reset() argument
285 int32_t deviceId = args.deviceId; in reset()
291 enqueueEvent(std::make_unique<NotifyDeviceResetArgs>(args)); in reset()
364 void InputClassifier::notifyConfigurationChanged(const NotifyConfigurationChangedArgs* args) { in notifyConfigurationChanged() argument
366 mListener->notifyConfigurationChanged(args); in notifyConfigurationChanged()
369 void InputClassifier::notifyKey(const NotifyKeyArgs* args) { in notifyKey() argument
371 mListener->notifyKey(args); in notifyKey()
374 void InputClassifier::notifyMotion(const NotifyMotionArgs* args) { in notifyMotion() argument
377 const bool sendToMotionClassifier = mMotionClassifier && isTouchEvent(*args); in notifyMotion()
379 mListener->notifyMotion(args); in notifyMotion()
383 NotifyMotionArgs newArgs(*args); in notifyMotion()
388 void InputClassifier::notifySwitch(const NotifySwitchArgs* args) { in notifySwitch() argument
390 mListener->notifySwitch(args); in notifySwitch()
393 void InputClassifier::notifyDeviceReset(const NotifyDeviceResetArgs* args) { in notifyDeviceReset() argument
396 mMotionClassifier->reset(*args); in notifyDeviceReset()
399 mListener->notifyDeviceReset(args); in notifyDeviceReset()