Lines Matching refs:node

30     auto node = new MockInputDeviceNode();  in getElanTouchscreen()  local
31 node->setPath("/dev/input/event0"); in getElanTouchscreen()
32 node->setName("elan-touchscreen"); in getElanTouchscreen()
35 node->setBusType(0); in getElanTouchscreen()
36 node->setVendorId(0); in getElanTouchscreen()
37 node->setProductId(0); in getElanTouchscreen()
38 node->setVersion(0); in getElanTouchscreen()
42 node->addAbsAxis(ABS_MT_SLOT, nullptr); in getElanTouchscreen()
43 node->addAbsAxis(ABS_MT_TOUCH_MAJOR, nullptr); in getElanTouchscreen()
44 node->addAbsAxis(ABS_MT_POSITION_X, nullptr); in getElanTouchscreen()
45 node->addAbsAxis(ABS_MT_POSITION_Y, nullptr); in getElanTouchscreen()
46 node->addAbsAxis(ABS_MT_TRACKING_ID, nullptr); in getElanTouchscreen()
47 node->addAbsAxis(ABS_MT_PRESSURE, nullptr); in getElanTouchscreen()
50 node->addInputProperty(INPUT_PROP_DIRECT); in getElanTouchscreen()
51 return node; in getElanTouchscreen()
55 auto node = new MockInputDeviceNode(); in getLidInput() local
56 node->setPath("/dev/input/event1"); in getLidInput()
57 node->setName("lid_input"); in getLidInput()
58 node->setLocation("/dev/input/lid_indev"); in getLidInput()
60 node->setBusType(0); in getLidInput()
61 node->setVendorId(0); in getLidInput()
62 node->setProductId(0); in getLidInput()
63 node->setVersion(0); in getLidInput()
67 node->addSwitch(SW_LID); in getLidInput()
69 node->addInputProperty(INPUT_PROP_DIRECT); in getLidInput()
70 return node; in getLidInput()
74 auto node = new MockInputDeviceNode(); in getButtonJack() local
75 node->setPath("/dev/input/event2"); in getButtonJack()
76 node->setName("apq8064-tabla-snd-card Button Jack"); in getButtonJack()
77 node->setLocation("ALSA"); in getButtonJack()
79 node->setBusType(0); in getButtonJack()
80 node->setVendorId(0); in getButtonJack()
81 node->setProductId(0); in getButtonJack()
82 node->setVersion(0); in getButtonJack()
83 node->addKeys(BTN_0, BTN_1, BTN_2, BTN_3, BTN_4, BTN_5, BTN_6, BTN_7); in getButtonJack()
88 node->addInputProperty(INPUT_PROP_DIRECT); in getButtonJack()
89 return node; in getButtonJack()
93 auto node = new MockInputDeviceNode(); in getHeadsetJack() local
94 node->setPath("/dev/input/event3"); in getHeadsetJack()
95 node->setName("apq8064-tabla-snd-card Headset Jack"); in getHeadsetJack()
96 node->setLocation("ALSA"); in getHeadsetJack()
98 node->setBusType(0); in getHeadsetJack()
99 node->setVendorId(0); in getHeadsetJack()
100 node->setProductId(0); in getHeadsetJack()
101 node->setVersion(0); in getHeadsetJack()
105 node->addSwitch(SW_HEADPHONE_INSERT); in getHeadsetJack()
106 node->addSwitch(SW_MICROPHONE_INSERT); in getHeadsetJack()
107 node->addSwitch(SW_LINEOUT_INSERT); in getHeadsetJack()
109 node->addSwitch(0x0e); // SW_HPHL_OVERCURRENT in getHeadsetJack()
110 node->addSwitch(0x0f); // SW_HPHR_OVERCURRENT in getHeadsetJack()
112 node->addInputProperty(INPUT_PROP_DIRECT); in getHeadsetJack()
113 return node; in getHeadsetJack()
117 auto node = new MockInputDeviceNode(); in getH2wButton() local
118 node->setPath("/dev/input/event4"); in getH2wButton()
119 node->setName("h2w button"); in getH2wButton()
122 node->setBusType(0); in getH2wButton()
123 node->setVendorId(0); in getH2wButton()
124 node->setProductId(0); in getH2wButton()
125 node->setVersion(0); in getH2wButton()
126 node->addKeys(KEY_MEDIA); in getH2wButton()
130 node->addInputProperty(INPUT_PROP_DIRECT); in getH2wButton()
131 return node; in getH2wButton()
135 auto node = new MockInputDeviceNode(); in getGpioKeys() local
136 node->setPath("/dev/input/event5"); in getGpioKeys()
137 node->setName("gpio-keys"); in getGpioKeys()
138 node->setLocation("gpio-keys/input0"); in getGpioKeys()
140 node->setBusType(0x0019); in getGpioKeys()
141 node->setVendorId(0x0001); in getGpioKeys()
142 node->setProductId(0x0001); in getGpioKeys()
143 node->setVersion(0x0100); in getGpioKeys()
144 node->addKeys(KEY_VOLUMEDOWN, KEY_VOLUMEUP, KEY_POWER); in getGpioKeys()
148 node->addInputProperty(INPUT_PROP_DIRECT); in getGpioKeys()
149 return node; in getGpioKeys()
157 auto node = new MockInputDeviceNode(); in getGpioKeys() local
158 node->setPath("/dev/input/event0"); in getGpioKeys()
159 node->setName("gpio-keys"); in getGpioKeys()
160 node->setLocation("gpio-keys/input0"); in getGpioKeys()
162 node->setBusType(0x0019); in getGpioKeys()
163 node->setVendorId(0x0001); in getGpioKeys()
164 node->setProductId(0x0001); in getGpioKeys()
165 node->setVersion(0x0100); in getGpioKeys()
166 node->addKeys(KEY_CONNECT); in getGpioKeys()
170 node->addInputProperty(INPUT_PROP_DIRECT); in getGpioKeys()
171 return node; in getGpioKeys()
175 auto node = new MockInputDeviceNode(); in getMidPowerBtn() local
176 node->setPath("/dev/input/event1"); in getMidPowerBtn()
177 node->setName("mid_powerbtn"); in getMidPowerBtn()
178 node->setLocation("power-button/input0"); in getMidPowerBtn()
180 node->setBusType(0x0019); in getMidPowerBtn()
181 node->setVendorId(0); in getMidPowerBtn()
182 node->setProductId(0); in getMidPowerBtn()
183 node->setVersion(0); in getMidPowerBtn()
184 node->addKeys(KEY_POWER); in getMidPowerBtn()
188 node->addInputProperty(INPUT_PROP_DIRECT); in getMidPowerBtn()
189 return node; in getMidPowerBtn()
193 auto node = new MockInputDeviceNode(); in getNexusRemote() local
194 node->setPath("/dev/input/event2"); in getNexusRemote()
195 node->setName("Nexus Remote"); in getNexusRemote()
197 node->setUniqueId("78:86:D9:50:A0:54"); in getNexusRemote()
198 node->setBusType(0x0005); in getNexusRemote()
199 node->setVendorId(0x18d1); in getNexusRemote()
200 node->setProductId(0x2c42); in getNexusRemote()
201 node->setVersion(0); in getNexusRemote()
202 node->addKeys(KEY_UP, KEY_LEFT, KEY_RIGHT, KEY_DOWN, KEY_BACK, KEY_PLAYPAUSE, in getNexusRemote()
205 node->addAbsAxis(ABS_MISC, nullptr); in getNexusRemote()
207 node->addInputProperty(INPUT_PROP_DIRECT); in getNexusRemote()
208 return node; in getNexusRemote()
212 auto node = new MockInputDeviceNode(); in getAsusGamepad() local
213 node->setPath("/dev/input/event3"); in getAsusGamepad()
214 node->setName("ASUS Gamepad"); in getAsusGamepad()
216 node->setUniqueId("C5:30:CD:50:A0:54"); in getAsusGamepad()
217 node->setBusType(0x0005); in getAsusGamepad()
218 node->setVendorId(0x0b05); in getAsusGamepad()
219 node->setProductId(0x4500); in getAsusGamepad()
220 node->setVersion(0x0040); in getAsusGamepad()
221 node->addKeys(KEY_BACK, KEY_HOMEPAGE, BTN_A, BTN_B, BTN_X, BTN_Y, BTN_TL, BTN_TR, in getAsusGamepad()
224 node->addAbsAxis(ABS_X, nullptr); in getAsusGamepad()
225 node->addAbsAxis(ABS_Y, nullptr); in getAsusGamepad()
226 node->addAbsAxis(ABS_Z, nullptr); in getAsusGamepad()
227 node->addAbsAxis(ABS_RZ, nullptr); in getAsusGamepad()
228 node->addAbsAxis(ABS_GAS, nullptr); in getAsusGamepad()
229 node->addAbsAxis(ABS_BRAKE, nullptr); in getAsusGamepad()
230 node->addAbsAxis(ABS_HAT0X, nullptr); in getAsusGamepad()
231 node->addAbsAxis(ABS_HAT0Y, nullptr); in getAsusGamepad()
232 node->addAbsAxis(ABS_MISC, nullptr); in getAsusGamepad()
233 node->addAbsAxis(0x29, nullptr); in getAsusGamepad()
234 node->addAbsAxis(0x2a, nullptr); in getAsusGamepad()
236 node->addInputProperty(INPUT_PROP_DIRECT); in getAsusGamepad()
238 return node; in getAsusGamepad()