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