Searched refs:EventHubInterface (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/services/inputflinger/tests/ |
D | EventHub_test.cpp | 31 using android::EventHubInterface; 43 if (event.type >= EventHubInterface::FIRST_SYNTHETIC_EVENT) { in dumpEvents() 45 case EventHubInterface::DEVICE_ADDED: in dumpEvents() 48 case EventHubInterface::DEVICE_REMOVED: in dumpEvents() 51 case EventHubInterface::FINISHED_DEVICE_SCAN: in dumpEvents() 65 std::unique_ptr<EventHubInterface> mEventHub; 138 EXPECT_EQ(EventHubInterface::DEVICE_ADDED, event.type); in consumeInitialDeviceAddedEvents() 145 EXPECT_EQ(EventHubInterface::FINISHED_DEVICE_SCAN, events[events.size() - 1].type); in consumeInitialDeviceAddedEvents() 156 EXPECT_EQ(static_cast<int32_t>(EventHubInterface::DEVICE_ADDED), deviceAddedEvent.type); in waitForDeviceCreation() 161 EXPECT_EQ(static_cast<int32_t>(EventHubInterface::FINISHED_DEVICE_SCAN), in waitForDeviceCreation() [all …]
|
D | InputReader_test.cpp | 355 class FakeEventHub : public EventHubInterface { 414 enqueueEvent(ARBITRARY_TIME, deviceId, EventHubInterface::DEVICE_ADDED, 0, 0); in addDevice() 421 enqueueEvent(ARBITRARY_TIME, deviceId, EventHubInterface::DEVICE_REMOVED, 0, 0); in removeDevice() 462 enqueueEvent(ARBITRARY_TIME, 0, EventHubInterface::FINISHED_DEVICE_SCAN, 0, 0); in finishDeviceScan() 843 std::shared_ptr<EventHubInterface> mEventHub; 853 FakeInputReaderContext(std::shared_ptr<EventHubInterface> eventHub, in FakeInputReaderContext() 899 virtual EventHubInterface* getEventHub() { in getEventHub() 1135 InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub, in InstrumentedInputReader()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReaderContext.h | 26 class EventHubInterface; variable 59 virtual EventHubInterface* getEventHub() = 0;
|
D | InputReader.h | 52 InputReader(std::shared_ptr<EventHubInterface> eventHub, 114 virtual EventHubInterface* getEventHub() override; 130 std::shared_ptr<EventHubInterface> mEventHub;
|
D | EventHub.h | 148 class EventHubInterface { 150 EventHubInterface() {} in EventHubInterface() function 151 virtual ~EventHubInterface() {} in ~EventHubInterface() 259 class EventHub : public EventHubInterface {
|
D | InputDevice.h | 96 inline EventHubInterface* getEventHub() { return mContext->getEventHub(); } in getEventHub() 301 EventHubInterface* mEventHub;
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 43 InputReader::InputReader(std::shared_ptr<EventHubInterface> eventHub, in InputReader() 153 if (type < EventHubInterface::FIRST_SYNTHETIC_EVENT) { in processEventsLocked() 156 if (rawEvent[batchSize].type >= EventHubInterface::FIRST_SYNTHETIC_EVENT || in processEventsLocked() 168 case EventHubInterface::DEVICE_ADDED: in processEventsLocked() 171 case EventHubInterface::DEVICE_REMOVED: in processEventsLocked() 174 case EventHubInterface::FINISHED_DEVICE_SCAN: in processEventsLocked() 760 EventHubInterface* InputReader::ContextImpl::getEventHub() { in getEventHub()
|