Lines Matching refs:eventHubId
188 void InputReader::addDeviceLocked(nsecs_t when, int32_t eventHubId) { in addDeviceLocked() argument
189 if (mDevices.find(eventHubId) != mDevices.end()) { in addDeviceLocked()
190 ALOGW("Ignoring spurious device added event for eventHubId %d.", eventHubId); in addDeviceLocked()
194 InputDeviceIdentifier identifier = mEventHub->getDeviceIdentifier(eventHubId); in addDeviceLocked()
195 std::shared_ptr<InputDevice> device = createDeviceLocked(eventHubId, identifier); in addDeviceLocked()
202 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str()); in addDeviceLocked()
205 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str(), in addDeviceLocked()
209 mDevices.emplace(eventHubId, device); in addDeviceLocked()
213 std::vector<int32_t> ids = {eventHubId}; in addDeviceLocked()
216 mapIt->second.push_back(eventHubId); in addDeviceLocked()
227 if (mEventHub->getDeviceClasses(eventHubId).test(InputDeviceClass::SENSOR)) { in addDeviceLocked()
228 mEventHub->disableDevice(eventHubId); in addDeviceLocked()
232 void InputReader::removeDeviceLocked(nsecs_t when, int32_t eventHubId) { in removeDeviceLocked() argument
233 auto deviceIt = mDevices.find(eventHubId); in removeDeviceLocked()
235 ALOGW("Ignoring spurious device removed event for eventHubId %d.", eventHubId); in removeDeviceLocked()
246 [eventHubId](int32_t eId) { return eId == eventHubId; }), in removeDeviceLocked()
257 device->getId(), eventHubId, device->getName().c_str(), in removeDeviceLocked()
261 device->getId(), eventHubId, device->getName().c_str(), in removeDeviceLocked()
265 device->removeEventHubDevice(eventHubId); in removeDeviceLocked()
278 int32_t eventHubId, const InputDeviceIdentifier& identifier) { in createDeviceLocked() argument
288 int32_t deviceId = (eventHubId < END_RESERVED_ID) ? eventHubId : nextInputDeviceIdLocked(); in createDeviceLocked()
292 device->addEventHubDevice(eventHubId); in createDeviceLocked()
296 void InputReader::processEventsForDeviceLocked(int32_t eventHubId, const RawEvent* rawEvents, in processEventsForDeviceLocked() argument
298 auto deviceIt = mDevices.find(eventHubId); in processEventsForDeviceLocked()
300 ALOGW("Discarding event for unknown eventHubId %d.", eventHubId); in processEventsForDeviceLocked()