Lines Matching refs:int32_t
73 int32_t deviceId;
74 int32_t type;
75 int32_t code;
76 int32_t value;
83 int32_t minValue; // minimum value
84 int32_t maxValue; // maximum value
85 int32_t flat; // center flat position, eg. flat == 8 means center is between -8 and 8
86 int32_t fuzz; // error tolerance, eg. fuzz == 4 means value is +/- 4 due to noise
87 int32_t resolution; // resolution in units per mm or radians per mm
153 extern uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses);
187 virtual uint32_t getDeviceClasses(int32_t deviceId) const = 0;
189 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const = 0;
191 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const = 0;
193 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const = 0;
195 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
198 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0;
200 virtual bool hasInputProperty(int32_t deviceId, int property) const = 0;
202 virtual status_t mapKey(int32_t deviceId,
203 int32_t scanCode, int32_t usageCode, int32_t metaState,
204 int32_t* outKeycode, int32_t *outMetaState, uint32_t* outFlags) const = 0;
206 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
230 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const = 0;
231 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const = 0;
232 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const = 0;
233 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis,
234 int32_t* outValue) const = 0;
239 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
242 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const = 0;
245 virtual bool hasLed(int32_t deviceId, int32_t led) const = 0;
246 virtual void setLedState(int32_t deviceId, int32_t led, bool on) = 0;
248 virtual void getVirtualKeyDefinitions(int32_t deviceId,
251 virtual sp<KeyCharacterMap> getKeyCharacterMap(int32_t deviceId) const = 0;
252 virtual bool setKeyboardLayoutOverlay(int32_t deviceId, const sp<KeyCharacterMap>& map) = 0;
255 virtual void vibrate(int32_t deviceId, nsecs_t duration) = 0;
256 virtual void cancelVibrate(int32_t deviceId) = 0;
271 virtual bool isDeviceEnabled(int32_t deviceId) = 0;
274 virtual status_t enableDevice(int32_t deviceId) = 0;
277 virtual status_t disableDevice(int32_t deviceId) = 0;
285 virtual uint32_t getDeviceClasses(int32_t deviceId) const;
287 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const;
289 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const;
291 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const;
293 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
296 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const;
298 virtual bool hasInputProperty(int32_t deviceId, int property) const;
300 virtual status_t mapKey(int32_t deviceId,
301 int32_t scanCode, int32_t usageCode, int32_t metaState,
302 int32_t* outKeycode, int32_t *outMetaState, uint32_t* outFlags) const;
304 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
309 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const;
310 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const;
311 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const;
312 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const;
314 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes,
315 const int32_t* keyCodes, uint8_t* outFlags) const;
319 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const;
320 virtual bool hasLed(int32_t deviceId, int32_t led) const;
321 virtual void setLedState(int32_t deviceId, int32_t led, bool on);
323 virtual void getVirtualKeyDefinitions(int32_t deviceId,
326 virtual sp<KeyCharacterMap> getKeyCharacterMap(int32_t deviceId) const;
327 virtual bool setKeyboardLayoutOverlay(int32_t deviceId, const sp<KeyCharacterMap>& map);
329 virtual void vibrate(int32_t deviceId, nsecs_t duration);
330 virtual void cancelVibrate(int32_t deviceId);
347 const int32_t id;
372 int32_t controllerNumber;
374 int32_t timestampOverrideSec;
375 int32_t timestampOverrideUsec;
377 Device(int fd, int32_t id, const String8& path, const InputDeviceIdentifier& identifier);
407 bool isDeviceEnabled(int32_t deviceId);
408 status_t enableDevice(int32_t deviceId);
409 status_t disableDevice(int32_t deviceId);
418 Device* getDeviceLocked(int32_t deviceId) const;
430 int32_t getNextControllerNumberLocked(Device* device);
434 status_t mapLed(Device* device, int32_t led, int32_t* outScanCode) const;
435 void setLedStateLocked(Device* device, int32_t led, bool on);
447 int32_t mBuiltInKeyboardId;
449 int32_t mNextDeviceId;
453 KeyedVector<int32_t, Device*> mDevices;