Lines Matching defs: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 is virtual (not a real device, not part of UI configuration). */
137 /* The input device is external (not built-in). */
168 // Sent when a device is added.
170 // Sent when a device is removed.
207 * This ensures that the device will not go to sleep while the event is being processed.
208 * If the device needs to remain awake longer than that, then the caller is responsible
211 * The timeout is advisory only. If the device is asleep, it will not wake just to
322 struct Device {
323 Device* next;
325 int fd; // may be -1 if device is virtual
356 Device(int fd, int32_t id, const String8& path, const InputDeviceIdentifier& identifier);
357 ~Device();
373 void addDeviceLocked(Device* device);
376 void closeDeviceLocked(Device* device);
383 Device* getDeviceLocked(int32_t deviceId) const;
384 Device* getDeviceByPathLocked(const char* devicePath) const;
386 bool hasKeycodeLocked(Device* device, int keycode) const;
388 void loadConfigurationLocked(Device* device);
389 status_t loadVirtualKeyMapLocked(Device* device);
390 status_t loadKeyMapLocked(Device* device);
392 bool isExternalDeviceLocked(Device* device);
394 int32_t getNextControllerNumberLocked(Device* device);
395 void releaseControllerNumberLocked(Device* device);
403 // Must not conflict with any other assigned device ids, including
413 KeyedVector<int32_t, Device*> mDevices;
415 Device *mOpeningDevices;
416 Device *mClosingDevices;