Lines Matching refs:deviceId

250 InputDeviceIdentifier EventHub::getDeviceIdentifier(int32_t deviceId) const {  in getDeviceIdentifier()
252 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier()
257 uint32_t EventHub::getDeviceClasses(int32_t deviceId) const { in getDeviceClasses()
259 Device* device = getDeviceLocked(deviceId); in getDeviceClasses()
264 int32_t EventHub::getDeviceControllerNumber(int32_t deviceId) const { in getDeviceControllerNumber()
266 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber()
271 void EventHub::getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const { in getConfiguration() argument
273 Device* device = getDeviceLocked(deviceId); in getConfiguration()
281 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, in getAbsoluteAxisInfo() argument
288 Device* device = getDeviceLocked(deviceId); in getAbsoluteAxisInfo()
311 bool EventHub::hasRelativeAxis(int32_t deviceId, int axis) const { in hasRelativeAxis() argument
315 Device* device = getDeviceLocked(deviceId); in hasRelativeAxis()
323 bool EventHub::hasInputProperty(int32_t deviceId, int property) const { in hasInputProperty() argument
327 Device* device = getDeviceLocked(deviceId); in hasInputProperty()
335 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState() argument
339 Device* device = getDeviceLocked(deviceId); in getScanCodeState()
351 int32_t EventHub::getKeyCodeState(int32_t deviceId, int32_t keyCode) const { in getKeyCodeState() argument
354 Device* device = getDeviceLocked(deviceId); in getKeyCodeState()
375 int32_t EventHub::getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() argument
379 Device* device = getDeviceLocked(deviceId); in getSwitchState()
391 status_t EventHub::getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const { in getAbsoluteAxisValue() argument
397 Device* device = getDeviceLocked(deviceId); in getAbsoluteAxisValue()
413 bool EventHub::markSupportedKeyCodes(int32_t deviceId, size_t numCodes, in markSupportedKeyCodes() argument
417 Device* device = getDeviceLocked(deviceId); in markSupportedKeyCodes()
441 status_t EventHub::mapKey(int32_t deviceId, in mapKey() argument
445 Device* device = getDeviceLocked(deviceId); in mapKey()
484 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { in mapAxis() argument
486 Device* device = getDeviceLocked(deviceId); in mapAxis()
504 bool EventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const { in hasScanCode() argument
506 Device* device = getDeviceLocked(deviceId); in hasScanCode()
515 bool EventHub::hasLed(int32_t deviceId, int32_t led) const { in hasLed() argument
517 Device* device = getDeviceLocked(deviceId); in hasLed()
527 void EventHub::setLedState(int32_t deviceId, int32_t led, bool on) { in setLedState() argument
529 Device* device = getDeviceLocked(deviceId); in setLedState()
550 void EventHub::getVirtualKeyDefinitions(int32_t deviceId, in getVirtualKeyDefinitions() argument
555 Device* device = getDeviceLocked(deviceId); in getVirtualKeyDefinitions()
561 sp<KeyCharacterMap> EventHub::getKeyCharacterMap(int32_t deviceId) const { in getKeyCharacterMap()
563 Device* device = getDeviceLocked(deviceId); in getKeyCharacterMap()
570 bool EventHub::setKeyboardLayoutOverlay(int32_t deviceId, in setKeyboardLayoutOverlay() argument
573 Device* device = getDeviceLocked(deviceId); in setKeyboardLayoutOverlay()
636 void EventHub::vibrate(int32_t deviceId, nsecs_t duration) { in vibrate() argument
638 Device* device = getDeviceLocked(deviceId); in vibrate()
670 void EventHub::cancelVibrate(int32_t deviceId) { in cancelVibrate() argument
672 Device* device = getDeviceLocked(deviceId); in cancelVibrate()
703 EventHub::Device* EventHub::getDeviceLocked(int32_t deviceId) const { in getDeviceLocked()
704 if (deviceId == BUILT_IN_KEYBOARD_ID) { in getDeviceLocked()
705 deviceId = mBuiltInKeyboardId; in getDeviceLocked()
707 ssize_t index = mDevices.indexOfKey(deviceId); in getDeviceLocked()
752 event->deviceId = device->id == mBuiltInKeyboardId ? BUILT_IN_KEYBOARD_ID : device->id; in getEvents()
774 event->deviceId = device->id == mBuiltInKeyboardId ? 0 : device->id; in getEvents()
847 int32_t deviceId = device->id == mBuiltInKeyboardId ? 0 : device->id; in getEvents() local
932 event->deviceId = deviceId; in getEvents()
1146 int32_t deviceId = mNextDeviceId++; in openDeviceLocked() local
1147 Device* device = new Device(fd, deviceId, String8(devicePath), identifier); in openDeviceLocked()
1149 ALOGV("add device %d: %s\n", deviceId, devicePath); in openDeviceLocked()
1317 deviceId, devicePath, device->identifier.name.string()); in openDeviceLocked()
1345 eventItem.data.u32 = deviceId; in openDeviceLocked()
1388 deviceId, fd, devicePath, device->identifier.name.string(), in openDeviceLocked()
1393 toString(mBuiltInKeyboardId == deviceId), in openDeviceLocked()