Lines Matching refs:motionArgs

53 std::set<InputDeviceUsageSource> getUsageSourcesForMotionArgs(const NotifyMotionArgs& motionArgs) {  in getUsageSourcesForMotionArgs()  argument
54 LOG_ALWAYS_FATAL_IF(motionArgs.getPointerCount() < 1, "Received motion args without pointers"); in getUsageSourcesForMotionArgs()
57 for (uint32_t i = 0; i < motionArgs.getPointerCount(); i++) { in getUsageSourcesForMotionArgs()
58 const auto toolType = motionArgs.pointerProperties[i].toolType; in getUsageSourcesForMotionArgs()
59 if (isFromSource(motionArgs.source, AINPUT_SOURCE_MOUSE)) { in getUsageSourcesForMotionArgs()
73 if (isFromSource(motionArgs.source, AINPUT_SOURCE_MOUSE_RELATIVE) && in getUsageSourcesForMotionArgs()
78 if (isFromSource(motionArgs.source, AINPUT_SOURCE_TOUCHPAD) && in getUsageSourcesForMotionArgs()
83 if (isFromSource(motionArgs.source, AINPUT_SOURCE_BLUETOOTH_STYLUS) && in getUsageSourcesForMotionArgs()
88 if (isFromSource(motionArgs.source, AINPUT_SOURCE_STYLUS) && isStylusToolType(toolType)) { in getUsageSourcesForMotionArgs()
92 if (isFromSource(motionArgs.source, AINPUT_SOURCE_TOUCH_NAVIGATION)) { in getUsageSourcesForMotionArgs()
96 if (isFromSource(motionArgs.source, AINPUT_SOURCE_JOYSTICK)) { in getUsageSourcesForMotionArgs()
100 if (isFromSource(motionArgs.source, AINPUT_SOURCE_ROTARY_ENCODER)) { in getUsageSourcesForMotionArgs()
104 if (isFromSource(motionArgs.source, AINPUT_SOURCE_TRACKBALL)) { in getUsageSourcesForMotionArgs()
108 if (isFromSource(motionArgs.source, AINPUT_SOURCE_TOUCHSCREEN)) { in getUsageSourcesForMotionArgs()