/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 264 void InputReader::addDeviceLocked(nsecs_t when, int32_t eventHubId) { in addDeviceLocked() argument 265 if (mDevices.find(eventHubId) != mDevices.end()) { in addDeviceLocked() 266 ALOGW("Ignoring spurious device added event for eventHubId %d.", eventHubId); in addDeviceLocked() 270 InputDeviceIdentifier identifier = mEventHub->getDeviceIdentifier(eventHubId); in addDeviceLocked() 271 std::shared_ptr<InputDevice> device = createDeviceLocked(when, eventHubId, identifier); in addDeviceLocked() 279 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str()); in addDeviceLocked() 282 device->getId(), eventHubId, identifier.name.c_str(), identifier.descriptor.c_str(), in addDeviceLocked() 286 mDevices.emplace(eventHubId, device); in addDeviceLocked() 290 std::vector<int32_t> ids = {eventHubId}; in addDeviceLocked() 293 mapIt->second.push_back(eventHubId); in addDeviceLocked() [all …]
|
D | InputDevice.cpp | 172 void InputDevice::addEmptyEventHubDevice(int32_t eventHubId) { in addEmptyEventHubDevice() argument 173 if (mDevices.find(eventHubId) != mDevices.end()) { in addEmptyEventHubDevice() 176 std::unique_ptr<InputDeviceContext> contextPtr(new InputDeviceContext(*this, eventHubId)); in addEmptyEventHubDevice() 179 mDevices.insert({eventHubId, std::make_pair(std::move(contextPtr), std::move(mappers))}); in addEmptyEventHubDevice() 183 nsecs_t when, int32_t eventHubId, const InputReaderConfiguration& readerConfig) { in addEventHubDevice() argument 184 if (mDevices.find(eventHubId) != mDevices.end()) { in addEventHubDevice() 192 addEmptyEventHubDevice(eventHubId); in addEventHubDevice() 195 DevicePair& devicePair = mDevices[eventHubId]; in addEventHubDevice() 203 void InputDevice::removeEventHubDevice(int32_t eventHubId) { in removeEventHubDevice() argument 204 if (mController != nullptr && mController->getEventHubId() == eventHubId) { in removeEventHubDevice() [all …]
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputDevice.h | 87 void addEmptyEventHubDevice(int32_t eventHubId); 89 nsecs_t when, int32_t eventHubId, const InputReaderConfiguration& readerConfig); 90 void removeEventHubDevice(int32_t eventHubId); 146 T& addMapper(int32_t eventHubId, Args... args) { in addMapper() argument 148 addEmptyEventHubDevice(eventHubId); in addMapper() 151 auto& devicePair = mDevices[eventHubId]; in addMapper() 160 T& constructAndAddMapper(int32_t eventHubId, Args... args) { in constructAndAddMapper() argument 162 auto& devicePair = mDevices[eventHubId]; in constructAndAddMapper() 171 T& addController(int32_t eventHubId) { in addController() argument 173 addEmptyEventHubDevice(eventHubId); in addController() [all …]
|
D | InputReader.h | 215 void addDeviceLocked(nsecs_t when, int32_t eventHubId) REQUIRES(mLock); 216 void removeDeviceLocked(nsecs_t when, int32_t eventHubId) REQUIRES(mLock); 217 [[nodiscard]] std::list<NotifyArgs> processEventsForDeviceLocked(int32_t eventHubId,
|
/frameworks/native/services/inputflinger/tests/ |
D | InstrumentedInputReader.cpp | 41 nsecs_t when, int32_t eventHubId, const InputDeviceIdentifier& identifier) REQUIRES(mLock) { in createDeviceLocked() argument 47 return InputReader::createDeviceLocked(when, eventHubId, identifier); in createDeviceLocked()
|
D | InstrumentedInputReader.h | 47 nsecs_t when, int32_t eventHubId, const InputDeviceIdentifier& identifier);
|
D | InputMapperTest.cpp | 159 int32_t eventHubId, in newDevice() argument 170 mFakeEventHub->addDevice(eventHubId, name, classes, bus); in newDevice()
|
D | InputMapperTest.h | 103 const std::string& location, int32_t eventHubId,
|
D | InputReader_test.cpp | 619 void addDevice(int32_t eventHubId, const std::string& name, in addDevice() argument 621 mFakeEventHub->addDevice(eventHubId, name, classes); in addDevice() 624 mFakeEventHub->addConfigurationMap(eventHubId, configuration); in addDevice() 644 FakeInputMapper& addDeviceWithFakeInputMapper(int32_t deviceId, int32_t eventHubId, in addDeviceWithFakeInputMapper() argument 651 device->addMapper<FakeInputMapper>(eventHubId, in addDeviceWithFakeInputMapper() 654 addDevice(eventHubId, name, classes, configuration); in addDeviceWithFakeInputMapper() 752 constexpr int32_t eventHubId = 1; in TEST_F() local 755 device->addMapper<FakeInputMapper>(eventHubId, mFakePolicy->getReaderConfiguration(), in TEST_F() 758 ASSERT_NO_FATAL_FAILURE(addDevice(eventHubId, "fake", deviceClass, nullptr)); in TEST_F() 790 constexpr int32_t eventHubId = 1; in TEST_F() local [all …]
|
D | TouchpadInputMapper_test.cpp | 107 .WillRepeatedly([](int32_t eventHubId, int32_t, int32_t* outValue) { in SetUp() argument
|
D | CursorInputMapper_test.cpp | 106 ViewportFakingInputDeviceContext(InputDevice& device, int32_t eventHubId, in ViewportFakingInputDeviceContext() argument 108 : InputDeviceContext(device, eventHubId), mAssociatedViewport(viewport) {} in ViewportFakingInputDeviceContext() 110 ViewportFakingInputDeviceContext(InputDevice& device, int32_t eventHubId, in ViewportFakingInputDeviceContext() argument 112 : ViewportFakingInputDeviceContext(device, eventHubId, in ViewportFakingInputDeviceContext()
|