Searched refs:eventHubIds (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 244 std::vector<int32_t>& eventHubIds = mapIt->second; in removeDeviceLocked() local 245 eventHubIds.erase(std::remove_if(eventHubIds.begin(), eventHubIds.end(), in removeDeviceLocked() 247 eventHubIds.end()); in removeDeviceLocked() 248 if (eventHubIds.size() == 0) { in removeDeviceLocked() 497 for (const auto& [device, eventHubIds] : mDeviceToEventHubIdsMap) { in getInputDevicesLocked()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 1544 constexpr int32_t eventHubIds[2] = {END_RESERVED_ID, END_RESERVED_ID + 1}; in TEST_F() local 1548 device->addMapper<FakeInputMapper>(eventHubIds[0], AINPUT_SOURCE_KEYBOARD); in TEST_F() 1549 device->addMapper<FakeInputMapper>(eventHubIds[1], AINPUT_SOURCE_KEYBOARD); in TEST_F() 1555 addDevice(eventHubIds[0], "fake1", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F() 1557 addDevice(eventHubIds[1], "fake2", InputDeviceClass::KEYBOARD, nullptr)); in TEST_F() 1565 constexpr int32_t eventHubIds[2] = {END_RESERVED_ID, END_RESERVED_ID + 1}; in TEST_F() local 1569 device->addMapper<FakeInputMapper>(eventHubIds[0], AINPUT_SOURCE_KEYBOARD); in TEST_F() 1570 device->addMapper<FakeInputMapper>(eventHubIds[1], AINPUT_SOURCE_KEYBOARD); in TEST_F() 1576 ASSERT_NO_FATAL_FAILURE(addDevice(eventHubIds[0], "fake1", in TEST_F() 1580 ASSERT_FALSE(mFakeEventHub->isDeviceEnabled(eventHubIds[0])); in TEST_F() [all …]
|