• Home
  • Raw
  • Download

Lines Matching refs:args

22 static std::pair<bool, bool> checkToolType(const NotifyMotionArgs& args) {  in checkToolType()  argument
25 for (size_t i = 0; i < args.getPointerCount(); i++) { in checkToolType()
27 const ToolType toolType = args.pointerProperties[i].toolType; in checkToolType()
97 const NotifyMotionArgs& args) { in processMotion() argument
98 const auto [hasTouch, hasStylus] = checkToolType(args); in processMotion()
100 args.action == AMOTION_EVENT_ACTION_UP || args.action == AMOTION_EVENT_ACTION_CANCEL; in processMotion()
103 mDevicesWithMixedToolType.insert(args.deviceId); in processMotion()
107 if (mDevicesWithMixedToolType.find(args.deviceId) != mDevicesWithMixedToolType.end()) { in processMotion()
109 if (mCanceledDevices.find(args.deviceId) != mCanceledDevices.end()) { in processMotion()
113 mCanceledDevices.erase(args.deviceId); in processMotion()
114 mLastTouchEvents.erase(args.deviceId); in processMotion()
118 return {args}; in processMotion()
122 const bool isDown = args.action == AMOTION_EVENT_ACTION_DOWN; in processMotion()
127 mActiveStyli.insert(args.deviceId); in processMotion()
143 result.push_back(args); in processMotion()
147 mActiveStyli.erase(args.deviceId); in processMotion()
150 return {args}; in processMotion()
157 mCanceledDevices.insert(args.deviceId); in processMotion()
160 const bool shouldDrop = mCanceledDevices.find(args.deviceId) != mCanceledDevices.end(); in processMotion()
162 mCanceledDevices.erase(args.deviceId); in processMotion()
163 mLastTouchEvents.erase(args.deviceId); in processMotion()
173 mLastTouchEvents[args.deviceId] = args; in processMotion()
175 return {args}; in processMotion()
179 return {args}; in processMotion()
195 void PreferStylusOverTouchBlocker::notifyDeviceReset(const NotifyDeviceResetArgs& args) { in notifyDeviceReset() argument
196 mDevicesWithMixedToolType.erase(args.deviceId); in notifyDeviceReset()
197 mLastTouchEvents.erase(args.deviceId); in notifyDeviceReset()
198 mCanceledDevices.erase(args.deviceId); in notifyDeviceReset()
199 mActiveStyli.erase(args.deviceId); in notifyDeviceReset()
202 static std::string dumpArgs(const NotifyMotionArgs& args) { in dumpArgs() argument
203 return args.dump(); in dumpArgs()