Home
last modified time | relevance | path

Searched refs:EventHubInterface (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DEventHub_test.cpp31 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 …]
DInputReader_test.cpp355 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/
DInputReaderContext.h26 class EventHubInterface; variable
59 virtual EventHubInterface* getEventHub() = 0;
DInputReader.h52 InputReader(std::shared_ptr<EventHubInterface> eventHub,
114 virtual EventHubInterface* getEventHub() override;
130 std::shared_ptr<EventHubInterface> mEventHub;
DEventHub.h148 class EventHubInterface {
150 EventHubInterface() {} in EventHubInterface() function
151 virtual ~EventHubInterface() {} in ~EventHubInterface()
259 class EventHub : public EventHubInterface {
DInputDevice.h96 inline EventHubInterface* getEventHub() { return mContext->getEventHub(); } in getEventHub()
301 EventHubInterface* mEventHub;
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp43 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()