Lines Matching refs:int32_t

54     int32_t deviceId;
55 int32_t type;
56 int32_t code;
57 int32_t value;
64 int32_t minValue; // minimum value
65 int32_t maxValue; // maximum value
66 int32_t flat; // center flat position, eg. flat == 8 means center is between -8 and 8
67 int32_t fuzz; // error tolerance, eg. fuzz == 4 means value is +/- 4 due to noise
68 int32_t resolution; // resolution in units per mm or radians per mm
134 extern uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses);
168 virtual uint32_t getDeviceClasses(int32_t deviceId) const = 0;
170 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const = 0;
172 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const = 0;
174 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const = 0;
176 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
179 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0;
181 virtual bool hasInputProperty(int32_t deviceId, int property) const = 0;
183 virtual status_t mapKey(int32_t deviceId,
184 int32_t scanCode, int32_t usageCode, int32_t metaState,
185 int32_t* outKeycode, int32_t *outMetaState, uint32_t* outFlags) const = 0;
187 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
207 virtual std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId) = 0;
212 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const = 0;
213 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const = 0;
214 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const = 0;
215 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis,
216 int32_t* outValue) const = 0;
221 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
224 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const = 0;
227 virtual bool hasLed(int32_t deviceId, int32_t led) const = 0;
228 virtual void setLedState(int32_t deviceId, int32_t led, bool on) = 0;
230 virtual void getVirtualKeyDefinitions(int32_t deviceId,
233 virtual sp<KeyCharacterMap> getKeyCharacterMap(int32_t deviceId) const = 0;
234 virtual bool setKeyboardLayoutOverlay(int32_t deviceId, const sp<KeyCharacterMap>& map) = 0;
237 virtual void vibrate(int32_t deviceId, nsecs_t duration) = 0;
238 virtual void cancelVibrate(int32_t deviceId) = 0;
253 virtual bool isDeviceEnabled(int32_t deviceId) = 0;
256 virtual status_t enableDevice(int32_t deviceId) = 0;
259 virtual status_t disableDevice(int32_t deviceId) = 0;
267 virtual uint32_t getDeviceClasses(int32_t deviceId) const;
269 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const;
271 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const;
273 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const;
275 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
278 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const;
280 virtual bool hasInputProperty(int32_t deviceId, int property) const;
282 virtual status_t mapKey(int32_t deviceId,
283 int32_t scanCode, int32_t usageCode, int32_t metaState,
284 int32_t* outKeycode, int32_t *outMetaState, uint32_t* outFlags) const;
286 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
291 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const;
292 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const;
293 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const;
294 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const;
296 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes,
297 const int32_t* keyCodes, uint8_t* outFlags) const;
300 virtual std::vector<TouchVideoFrame> getVideoFrames(int32_t deviceId);
302 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const;
303 virtual bool hasLed(int32_t deviceId, int32_t led) const;
304 virtual void setLedState(int32_t deviceId, int32_t led, bool on);
306 virtual void getVirtualKeyDefinitions(int32_t deviceId,
309 virtual sp<KeyCharacterMap> getKeyCharacterMap(int32_t deviceId) const;
310 virtual bool setKeyboardLayoutOverlay(int32_t deviceId, const sp<KeyCharacterMap>& map);
312 virtual void vibrate(int32_t deviceId, nsecs_t duration);
313 virtual void cancelVibrate(int32_t deviceId);
330 const int32_t id;
357 int32_t controllerNumber;
359 Device(int fd, int32_t id, const std::string& path,
392 bool isDeviceEnabled(int32_t deviceId);
393 status_t enableDevice(int32_t deviceId);
394 status_t disableDevice(int32_t deviceId);
408 Device* getDeviceLocked(int32_t deviceId) const;
425 int32_t getNextControllerNumberLocked(Device* device);
429 status_t mapLed(Device* device, int32_t led, int32_t* outScanCode) const;
430 void setLedStateLocked(Device* device, int32_t led, bool on);
442 int32_t mBuiltInKeyboardId;
444 int32_t mNextDeviceId;
448 KeyedVector<int32_t, Device*> mDevices;