Home
last modified time | relevance | path

Searched refs:eventHubIds (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/inputflinger/reader/
DInputReader.cpp321 std::vector<int32_t>& eventHubIds = mapIt->second; in removeDeviceLocked() local
322 std::erase_if(eventHubIds, [eventHubId](int32_t eId) { return eId == eventHubId; }); in removeDeviceLocked()
323 if (eventHubIds.size() == 0) { in removeDeviceLocked()
539 for (const auto& [device, eventHubIds] : mDeviceToEventHubIdsMap) { in getInputDevicesLocked()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp700 constexpr int32_t eventHubIds[2] = {END_RESERVED_ID, END_RESERVED_ID + 1}; in TEST_F() local
704 device->addMapper<FakeInputMapper>(eventHubIds[0], mFakePolicy->getReaderConfiguration(), in TEST_F()
706 device->addMapper<FakeInputMapper>(eventHubIds[1], mFakePolicy->getReaderConfiguration(), in TEST_F()
713 addDevice(eventHubIds[0], "fake1", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F()
715 addDevice(eventHubIds[1], "fake2", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F()
723 constexpr int32_t eventHubIds[2] = {END_RESERVED_ID, END_RESERVED_ID + 1}; in TEST_F() local
727 device->addMapper<FakeInputMapper>(eventHubIds[0], mFakePolicy->getReaderConfiguration(), in TEST_F()
729 device->addMapper<FakeInputMapper>(eventHubIds[1], mFakePolicy->getReaderConfiguration(), in TEST_F()
736 ASSERT_NO_FATAL_FAILURE(addDevice(eventHubIds[0], "fake1", in TEST_F()
740 ASSERT_FALSE(mFakeEventHub->isDeviceEnabled(eventHubIds[0])); in TEST_F()
[all …]