Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/
DInputReader.cpp188 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()
[all …]
DInputDevice.cpp143 void InputDevice::addEventHubDevice(int32_t eventHubId, bool populateMappers) { in addEventHubDevice() argument
144 if (mDevices.find(eventHubId) != mDevices.end()) { in addEventHubDevice()
147 std::unique_ptr<InputDeviceContext> contextPtr(new InputDeviceContext(*this, eventHubId)); in addEventHubDevice()
153 mDevices.insert({eventHubId, std::make_pair(std::move(contextPtr), std::move(mappers))}); in addEventHubDevice()
227 mDevices.insert({eventHubId, std::make_pair(std::move(contextPtr), std::move(mappers))}); in addEventHubDevice()
232 void InputDevice::removeEventHubDevice(int32_t eventHubId) { in removeEventHubDevice() argument
233 mDevices.erase(eventHubId); in removeEventHubDevice()
600 InputDeviceContext::InputDeviceContext(InputDevice& device, int32_t eventHubId) in InputDeviceContext() argument
604 mId(eventHubId), in InputDeviceContext()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h75 void addEventHubDevice(int32_t eventHubId, bool populateMappers = true);
76 void removeEventHubDevice(int32_t eventHubId);
125 T& addMapper(int32_t eventHubId, Args... args) { in addMapper() argument
127 addEventHubDevice(eventHubId, false); in addMapper()
130 auto& devicePair = mDevices[eventHubId]; in addMapper()
140 T& addController(int32_t eventHubId) { in addController() argument
142 addEventHubDevice(eventHubId, false); in addController()
145 auto& devicePair = mDevices[eventHubId]; in addController()
241 InputDeviceContext(InputDevice& device, int32_t eventHubId);
DInputReader.h188 void addDeviceLocked(nsecs_t when, int32_t eventHubId) REQUIRES(mLock);
189 void removeDeviceLocked(nsecs_t when, int32_t eventHubId) REQUIRES(mLock);
190 void processEventsForDeviceLocked(int32_t eventHubId, const RawEvent* rawEvents, size_t count)
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1179 virtual std::shared_ptr<InputDevice> createDeviceLocked(int32_t eventHubId, in createDeviceLocked() argument
1187 return InputReader::createDeviceLocked(eventHubId, identifier); in createDeviceLocked()
1491 void addDevice(int32_t eventHubId, const std::string& name, Flags<InputDeviceClass> classes, in addDevice() argument
1493 mFakeEventHub->addDevice(eventHubId, name, classes); in addDevice()
1496 mFakeEventHub->addConfigurationMap(eventHubId, configuration); in addDevice()
1515 FakeInputMapper& addDeviceWithFakeInputMapper(int32_t deviceId, int32_t eventHubId, in addDeviceWithFakeInputMapper() argument
1520 FakeInputMapper& mapper = device->addMapper<FakeInputMapper>(eventHubId, sources); in addDeviceWithFakeInputMapper()
1522 addDevice(eventHubId, name, classes, configuration); in addDeviceWithFakeInputMapper()
1592 constexpr int32_t eventHubId = 1; in TEST_F() local
1595 device->addMapper<FakeInputMapper>(eventHubId, AINPUT_SOURCE_KEYBOARD); in TEST_F()
[all …]