Home | History | Annotate | Download | only in input

Lines Matching defs:Device

48     // Device id of a special "virtual" keyboard that is always present.
50 // Device id of the "built-in" keyboard if there is one.
86 * Input device classes.
89 /* The input device is a keyboard or has buttons. */
92 /* The input device is an alpha-numeric keyboard (not just a dial pad). */
95 /* The input device is a touchscreen or a touchpad (either single-touch or multi-touch). */
98 /* The input device is a cursor device such as a trackball or mouse. */
101 /* The input device is a multi-touch touchscreen. */
104 /* The input device is a directional pad (implies keyboard, has DPAD keys). */
107 /* The input device is a gamepad (implies keyboard, has BUTTON keys). */
110 /* The input device has switches. */
113 /* The input device is a joystick (implies gamepad, has joystick absolute axes). */
116 /* The input device has a vibrator (supports FF_RUMBLE). */
119 /* The input device is virtual (not a real device, not part of UI configuration). */
122 /* The input device is external (not built-in). */
153 // Sent when a device is added.
155 // Sent when a device is removed.
190 * This ensures that the device will not go to sleep while the event is being processed.
191 * If the device needs to remain awake longer than that, then the caller is responsible
194 * The timeout is advisory only. If the device is asleep, it will not wake just to
303 struct Device {
304 Device* next;
306 int fd; // may be -1 if device is virtual
332 Device(int fd, int32_t id, const String8& path, const InputDeviceIdentifier& identifier);
333 ~Device();
349 void addDeviceLocked(Device* device);
352 void closeDeviceLocked(Device* device);
359 Device* getDeviceLocked(int32_t deviceId) const;
360 Device* getDeviceByPathLocked(const char* devicePath) const;
362 bool hasKeycodeLocked(Device* device, int keycode) const;
364 void loadConfigurationLocked(Device* device);
365 status_t loadVirtualKeyMapLocked(Device* device);
366 status_t loadKeyMapLocked(Device* device);
368 bool isExternalDeviceLocked(Device* device);
376 // Must not conflict with any other assigned device ids, including
384 KeyedVector<int32_t, Device*> mDevices;
386 Device *mOpeningDevices;
387 Device *mClosingDevices;