Lines Matching refs:mDeviceNode
99 mHost(host), mDeviceNode(node), mDeviceDefinition(mHost->createDeviceDefinition()) { in EvdevDevice()
125 if (mDeviceNode->hasKey(BTN_MOUSE) in createMappers()
126 && mDeviceNode->hasRelativeAxis(REL_X) in createMappers()
127 && mDeviceNode->hasRelativeAxis(REL_Y)) { in createMappers()
133 bool haveGamepadButtons = mDeviceNode->hasKeyInRange(BTN_MISC, BTN_MOUSE) || in createMappers()
134 mDeviceNode->hasKeyInRange(BTN_JOYSTICK, BTN_DIGI); in createMappers()
138 if (mDeviceNode->hasAbsoluteAxis(ABS_MT_POSITION_X) in createMappers()
139 && mDeviceNode->hasAbsoluteAxis(ABS_MT_POSITION_Y)) { in createMappers()
143 if (mDeviceNode->hasKey(BTN_TOUCH) || !haveGamepadButtons) { in createMappers()
148 } else if (mDeviceNode->hasKey(BTN_TOUCH) in createMappers()
149 && mDeviceNode->hasAbsoluteAxis(ABS_X) in createMappers()
150 && mDeviceNode->hasAbsoluteAxis(ABS_Y)) { in createMappers()
154 } else if ((mDeviceNode->hasAbsoluteAxis(ABS_PRESSURE) || mDeviceNode->hasKey(BTN_TOUCH)) in createMappers()
155 && !mDeviceNode->hasAbsoluteAxis(ABS_X) && !mDeviceNode->hasAbsoluteAxis(ABS_Y)) { in createMappers()
169 bool haveKeyboardKeys = mDeviceNode->hasKeyInRange(0, BTN_MISC) || in createMappers()
170 mDeviceNode->hasKeyInRange(KEY_OK, KEY_CNT); in createMappers()
184 if (mDeviceNode->hasAbsoluteAxis(i) in createMappers()
195 if (mDeviceNode->hasSwitch(i)) { in createMappers()
204 if (mDeviceNode->hasForceFeedback(FF_RUMBLE)) { in createMappers()
209 ALOGD("device %s classes=0x%x %zu mappers", mDeviceNode->getPath().c_str(), mClasses, in createMappers()
216 if (mapper->configureInputReport(mDeviceNode.get(), reportDef)) { in configureDevice()
223 if (mapper->configureOutputReport(mDeviceNode.get(), reportDef)) { in configureDevice()
239 ALOGD(log.c_str(), mDeviceNode->getPath().c_str(), event.when, event.type, event.code, in processInput()
285 mDeviceNode->getPath().c_str(), event.when, time, currentTime); in processInput()