Home
last modified time | relevance | path

Searched refs:eventHubId (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/services/inputflinger/reader/
DInputReader.cpp187 void InputReader::addDeviceLocked(nsecs_t when, int32_t eventHubId) { in addDeviceLocked() argument
188 if (mDevices.find(eventHubId) != mDevices.end()) { in addDeviceLocked()
189 ALOGW("Ignoring spurious device added event for eventHubId %d.", eventHubId); in addDeviceLocked()
193 InputDeviceIdentifier identifier = mEventHub->getDeviceIdentifier(eventHubId); in addDeviceLocked()
194 std::shared_ptr<InputDevice> device = createDeviceLocked(eventHubId, identifier); in addDeviceLocked()
201 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str()); in addDeviceLocked()
204 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str(), in addDeviceLocked()
208 mDevices.emplace(eventHubId, device); in addDeviceLocked()
216 void InputReader::removeDeviceLocked(nsecs_t when, int32_t eventHubId) { in removeDeviceLocked() argument
217 auto deviceIt = mDevices.find(eventHubId); in removeDeviceLocked()
[all …]
DInputDevice.cpp129 void InputDevice::addEventHubDevice(int32_t eventHubId, bool populateMappers) { in addEventHubDevice() argument
130 if (mDevices.find(eventHubId) != mDevices.end()) { in addEventHubDevice()
133 std::unique_ptr<InputDeviceContext> contextPtr(new InputDeviceContext(*this, eventHubId)); in addEventHubDevice()
139 mDevices.insert({eventHubId, std::make_pair(std::move(contextPtr), std::move(mappers))}); in addEventHubDevice()
202 mDevices.insert({eventHubId, std::make_pair(std::move(contextPtr), std::move(mappers))}); in addEventHubDevice()
205 void InputDevice::removeEventHubDevice(int32_t eventHubId) { in removeEventHubDevice() argument
206 mDevices.erase(eventHubId); in removeEventHubDevice()
483 InputDeviceContext::InputDeviceContext(InputDevice& device, int32_t eventHubId) in InputDeviceContext() argument
487 mId(eventHubId), in InputDeviceContext()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h70 void addEventHubDevice(int32_t eventHubId, bool populateMappers = true);
71 void removeEventHubDevice(int32_t eventHubId);
104 T& addMapper(int32_t eventHubId, Args... args) { in addMapper() argument
106 addEventHubDevice(eventHubId, false); in addMapper()
109 auto& devicePair = mDevices[eventHubId]; in addMapper()
202 InputDeviceContext(InputDevice& device, int32_t eventHubId);
DInputReader.h147 void addDeviceLocked(nsecs_t when, int32_t eventHubId);
148 void removeDeviceLocked(nsecs_t when, int32_t eventHubId);
149 void processEventsForDeviceLocked(int32_t eventHubId, const RawEvent* rawEvents, size_t count);
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1158 int32_t eventHubId, const InputDeviceIdentifier& identifier) { in createDeviceLocked() argument
1164 return InputReader::createDeviceLocked(eventHubId, identifier); in createDeviceLocked()
1375 void addDevice(int32_t eventHubId, const std::string& name, uint32_t classes, in addDevice() argument
1377 mFakeEventHub->addDevice(eventHubId, name, classes); in addDevice()
1380 mFakeEventHub->addConfigurationMap(eventHubId, configuration); in addDevice()
1399 FakeInputMapper& addDeviceWithFakeInputMapper(int32_t deviceId, int32_t eventHubId, in addDeviceWithFakeInputMapper() argument
1404 FakeInputMapper& mapper = device->addMapper<FakeInputMapper>(eventHubId, sources); in addDeviceWithFakeInputMapper()
1406 addDevice(eventHubId, name, classes, configuration); in addDeviceWithFakeInputMapper()
1439 constexpr int32_t eventHubId = 1; in TEST_F() local
1442 device->addMapper<FakeInputMapper>(eventHubId, AINPUT_SOURCE_KEYBOARD); in TEST_F()
[all …]