Lines Matching full:deviceid
199 nsecs_t when, int32_t deviceId, uint32_t source,
209 NotifyKeyArgs args(when, deviceId, source, policyFlags,
216 nsecs_t when, int32_t deviceId, uint32_t source,
218 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
221 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
349 int32_t deviceId = rawEvent->deviceId;
352 || rawEvent[batchSize].deviceId != deviceId) {
360 processEventsForDeviceLocked(deviceId, rawEvent, batchSize);
364 addDeviceLocked(rawEvent->when, rawEvent->deviceId);
367 removeDeviceLocked(rawEvent->when, rawEvent->deviceId);
382 void InputReader::addDeviceLocked(nsecs_t when, int32_t deviceId) {
383 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
385 ALOGW("Ignoring spurious device added event for deviceId %d.", deviceId);
389 InputDeviceIdentifier identifier = mEventHub->getDeviceIdentifier(deviceId);
390 uint32_t classes = mEventHub->getDeviceClasses(deviceId);
391 int32_t controllerNumber = mEventHub->getDeviceControllerNumber(deviceId);
393 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes);
398 ALOGI("Device added: id=%d, name='%s' (ignored non-input device)", deviceId,
401 ALOGI("Device added: id=%d, name='%s', sources=0x%08x", deviceId,
405 mDevices.add(deviceId, device);
413 void InputReader::removeDeviceLocked(nsecs_t when, int32_t deviceId) {
415 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
417 ALOGW("Ignoring spurious device removed event for deviceId %d.", deviceId);
441 InputDevice* InputReader::createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
443 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(),
516 void InputReader::processEventsForDeviceLocked(int32_t deviceId,
518 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
520 ALOGW("Discarding event for unknown deviceId %d.", deviceId);
526 //ALOGD("Discarding event for ignored deviceId %d.", deviceId);
658 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
662 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState);
665 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask,
669 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState);
672 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) {
675 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState);
678 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code,
681 if (deviceId >= 0) {
682 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
708 void InputReader::toggleCapsLockState(int32_t deviceId) {
709 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
711 ALOGW("Ignoring toggleCapsLock for unknown deviceId %" PRId32 ".", deviceId);
723 bool InputReader::hasKeys(int32_t deviceId, uint32_t sourceMask,
728 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags);
731 bool InputReader::markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask,
734 if (deviceId >= 0) {
735 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
769 void InputReader::vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize,
773 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
780 void InputReader::cancelVibrate(int32_t deviceId, int32_t token) {
783 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
1065 rawEvent->deviceId, rawEvent->type, rawEvent->code, rawEvent->value,
2037 ALOGD("vibrate: deviceId
2053 ALOGD("cancelVibrate: deviceId=%d, token=%d", getDeviceId(), token);
2086 ALOGD("nextStep: sending vibrate deviceId=%d, duration=%lld",
2092 ALOGD("nextStep: sending cancel vibrate deviceId=%d", getDeviceId());
2107 ALOGD("stopVibrating: sending cancel vibrate deviceId=%d", getDeviceId());