Lines Matching refs:device
48 * through evdev from uinput device drivers because there is currently no
63 // Device id of a special "virtual" keyboard that is always present.
65 // Device id of the "built-in" keyboard if there is one.
101 * Input device classes.
104 /* The input device is a keyboard or has buttons. */
107 /* The input device is an alpha-numeric keyboard (not just a dial pad). */
110 /* The input device is a touchscreen or a touchpad (either single-touch or multi-touch). */
113 /* The input device is a cursor device such as a trackball or mouse. */
116 /* The input device is a multi-touch touchscreen. */
119 /* The input device is a directional pad (implies keyboard, has DPAD keys). */
122 /* The input device is a gamepad (implies keyboard, has BUTTON keys). */
125 /* The input device has switches. */
128 /* The input device is a joystick (implies gamepad, has joystick absolute axes). */
131 /* The input device has a vibrator (supports FF_RUMBLE). */
134 /* The input device has a microphone. */
137 /* The input device is an external stylus (has data we want to fuse with touch data). */
140 /* The input device has a rotary encoder */
143 /* The input device is virtual (not a real device, not part of UI configuration). */
146 /* The input device is external (not built-in). */
177 // Sent when a device is added.
179 // Sent when a device is removed.
217 * This ensures that the device will not go to sleep while the event is being processed.
218 * If the device needs to remain awake longer than that, then the caller is responsible
221 * The timeout is advisory only. If the device is asleep, it will not wake just to
335 struct Device {
336 Device* next;
338 int fd; // may be -1 if device is virtual
369 Device(int fd, int32_t id, const String8& path, const InputDeviceIdentifier& identifier);
370 ~Device();
386 void addDeviceLocked(Device* device);
390 void closeDeviceLocked(Device* device);
397 Device* getDeviceByDescriptorLocked(String8& descriptor) const;
398 Device* getDeviceLocked(int32_t deviceId) const;
399 Device* getDeviceByPathLocked(const char* devicePath) const;
401 bool hasKeycodeLocked(Device* device, int keycode) const;
403 void loadConfigurationLocked(Device* device);
404 status_t loadVirtualKeyMapLocked(Device* device);
405 status_t loadKeyMapLocked(Device* device);
407 bool isExternalDeviceLocked(Device* device);
408 bool deviceHasMicLocked(Device* device);
410 int32_t getNextControllerNumberLocked(Device* device);
411 void releaseControllerNumberLocked(Device* device);
412 void setLedForController(Device* device);
414 status_t mapLed(Device* device, int32_t led, int32_t* outScanCode) const;
415 void setLedStateLocked(Device* device, int32_t led, bool on);
423 // Must not conflict with any other assigned device ids, including
433 KeyedVector<int32_t, Device*> mDevices;
435 Device *mOpeningDevices;
436 Device *mClosingDevices;