Lines Matching refs:deviceId

257 InputDeviceIdentifier EventHub::getDeviceIdentifier(int32_t deviceId) const {
259 Device* device = getDeviceLocked(deviceId);
264 uint32_t EventHub::getDeviceClasses(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, int32_t scanCode, int32_t usageCode,
444 Device* device = getDeviceLocked(deviceId);
470 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const {
472 Device* device = getDeviceLocked(deviceId);
490 bool EventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const {
492 Device* device = getDeviceLocked(deviceId);
501 bool EventHub::hasLed(int32_t deviceId, int32_t led) const {
503 Device* device = getDeviceLocked(deviceId);
512 void EventHub::setLedState(int32_t deviceId, int32_t led, bool on) {
514 Device* device = getDeviceLocked(deviceId);
530 void EventHub::getVirtualKeyDefinitions(int32_t deviceId,
535 Device* device = getDeviceLocked(deviceId);
541 sp<KeyCharacterMap> EventHub::getKeyCharacterMap(int32_t deviceId) const {
543 Device* device = getDeviceLocked(deviceId);
550 bool EventHub::setKeyboardLayoutOverlay(int32_t deviceId,
553 Device* device = getDeviceLocked(deviceId);
565 void EventHub::vibrate(int32_t deviceId, nsecs_t duration) {
567 Device* device = getDeviceLocked(deviceId);
599 void EventHub::cancelVibrate(int32_t deviceId) {
601 Device* device = getDeviceLocked(deviceId);
621 EventHub::Device* EventHub::getDeviceLocked(int32_t deviceId) const {
622 if (deviceId == BUILT_IN_KEYBOARD_ID) {
623 deviceId = mBuiltInKeyboardId;
625 ssize_t index = mDevices.indexOfKey(deviceId);
670 event->deviceId = device->id == mBuiltInKeyboardId ? BUILT_IN_KEYBOARD_ID : device->id;
692 event->deviceId = device->id == mBuiltInKeyboardId ? 0 : device->id;
765 int32_t deviceId = device->id == mBuiltInKeyboardId ? 0 : device->id;
827 event->deviceId = deviceId;
1045 int32_t deviceId = mNextDeviceId++;
1046 Device* device = new Device(fd, deviceId, String8(devicePath), identifier);
1048 ALOGV("add device %d: %s\n", deviceId, devicePath);
1191 deviceId, devicePath, device->identifier.name.string());
1205 eventItem.data.u32 = deviceId;
1237 deviceId, fd, devicePath, device->identifier.name.string(),
1242 toString(mBuiltInKeyboardId == deviceId),