Lines Matching refs:args

27 static std::pair<bool, bool> checkToolType(const NotifyMotionArgs& args) {  in checkToolType()  argument
30 for (size_t i = 0; i < args.getPointerCount(); i++) { in checkToolType()
32 const ToolType toolType = args.pointerProperties[i].toolType; in checkToolType()
102 const NotifyMotionArgs& args) { in processMotion() argument
103 const auto [hasTouch, hasStylus] = checkToolType(args); in processMotion()
105 ? (args.action == AMOTION_EVENT_ACTION_HOVER_EXIT || in processMotion()
106 args.action == AMOTION_EVENT_ACTION_UP || args.action == AMOTION_EVENT_ACTION_CANCEL) in processMotion()
107 : (args.action == AMOTION_EVENT_ACTION_UP || in processMotion()
108 args.action == AMOTION_EVENT_ACTION_CANCEL); in processMotion()
111 mDevicesWithMixedToolType.insert(args.deviceId); in processMotion()
115 if (mDevicesWithMixedToolType.find(args.deviceId) != mDevicesWithMixedToolType.end()) { in processMotion()
117 if (mCanceledDevices.find(args.deviceId) != mCanceledDevices.end()) { in processMotion()
121 mCanceledDevices.erase(args.deviceId); in processMotion()
122 mLastTouchEvents.erase(args.deviceId); in processMotion()
126 return {args}; in processMotion()
131 ? (args.action == AMOTION_EVENT_ACTION_DOWN || in processMotion()
132 args.action == AMOTION_EVENT_ACTION_HOVER_ENTER) in processMotion()
133 : (args.action == AMOTION_EVENT_ACTION_DOWN); in processMotion()
138 mActiveStyli.insert(args.deviceId); in processMotion()
154 result.push_back(args); in processMotion()
158 mActiveStyli.erase(args.deviceId); in processMotion()
161 return {args}; in processMotion()
168 mCanceledDevices.insert(args.deviceId); in processMotion()
171 const bool shouldDrop = mCanceledDevices.find(args.deviceId) != mCanceledDevices.end(); in processMotion()
173 mCanceledDevices.erase(args.deviceId); in processMotion()
174 mLastTouchEvents.erase(args.deviceId); in processMotion()
184 mLastTouchEvents[args.deviceId] = args; in processMotion()
186 return {args}; in processMotion()
190 return {args}; in processMotion()
206 void PreferStylusOverTouchBlocker::notifyDeviceReset(const NotifyDeviceResetArgs& args) { in notifyDeviceReset() argument
207 mDevicesWithMixedToolType.erase(args.deviceId); in notifyDeviceReset()
208 mLastTouchEvents.erase(args.deviceId); in notifyDeviceReset()
209 mCanceledDevices.erase(args.deviceId); in notifyDeviceReset()
210 mActiveStyli.erase(args.deviceId); in notifyDeviceReset()
213 static std::string dumpArgs(const NotifyMotionArgs& args) { in dumpArgs() argument
214 return args.dump(); in dumpArgs()