Lines Matching full:deviceid
176 nsecs_t when, int32_t deviceId, uint32_t source,
186 NotifyKeyArgs args(when, deviceId, source, policyFlags,
193 nsecs_t when, int32_t deviceId, uint32_t source,
195 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
198 synthesizeButtonKey(context, action, when, deviceId, source, policyFlags,
315 int32_t deviceId = rawEvent->deviceId;
318 || rawEvent[batchSize].deviceId != deviceId) {
326 processEventsForDeviceLocked(deviceId, rawEvent, batchSize);
330 addDeviceLocked(rawEvent->when, rawEvent->deviceId);
333 removeDeviceLocked(rawEvent->when, rawEvent->deviceId);
348 void InputReader::addDeviceLocked(nsecs_t when, int32_t deviceId) {
349 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
351 ALOGW("Ignoring spurious device added event for deviceId %d.", deviceId);
355 InputDeviceIdentifier identifier = mEventHub->getDeviceIdentifier(deviceId);
356 uint32_t classes = mEventHub->getDeviceClasses(deviceId);
357 int32_t controllerNumber = mEventHub->getDeviceControllerNumber(deviceId);
359 InputDevice* device = createDeviceLocked(deviceId, controllerNumber, identifier, classes);
364 ALOGI("Device added: id=%d, name='%s' (ignored non-input device)", deviceId,
367 ALOGI("Device added: id=%d, name='%s', sources=0x%08x", deviceId,
371 mDevices.add(deviceId, device);
375 void InputReader::removeDeviceLocked(nsecs_t when, int32_t deviceId) {
377 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
379 ALOGW("Ignoring spurious device removed event for deviceId %d.", deviceId);
399 InputDevice* InputReader::createDeviceLocked(int32_t deviceId, int32_t controllerNumber,
401 InputDevice* device = new InputDevice(&mContext, deviceId, bumpGenerationLocked(),
459 void InputReader::processEventsForDeviceLocked(int32_t deviceId,
461 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
463 ALOGW("Discarding event for unknown deviceId %d.", deviceId);
469 //ALOGD("Discarding event for ignored deviceId %d.", deviceId);
580 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
584 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState);
587 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask,
591 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState);
594 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) {
597 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState);
600 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code,
603 if (deviceId >= 0) {
604 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
630 bool InputReader::hasKeys(int32_t deviceId, uint32_t sourceMask,
635 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags);
638 bool InputReader::markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask,
641 if (deviceId >= 0) {
642 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
676 void InputReader::vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize,
680 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
687 void InputReader::cancelVibrate(int32_t deviceId, int32_t token) {
690 ssize_t deviceIndex = mDevices.indexOfKey(deviceId);
962 rawEvent->deviceId, rawEvent->type, rawEvent->code, rawEvent->value,
1887 ALOGD("vibrate: deviceId=%d, pattern=[%s], repeat=%ld, token=%d",
1903 ALOGD("cancelVibrate: deviceId=%d, token=%d", getDeviceId(), token);
1936 ALOGD("nextStep: sending vibrate deviceId=%d, duration=%lld",
1942 ALOGD("nextStep: sending cancel vibrate deviceId=%d", getDeviceId());
1957 ALOGD("stopVibrating: sending cancel vibrate deviceId=%d", getDeviceId());