Home
last modified time | relevance | path

Searched refs:EventHubInterface (Results 1 – 13 of 13) 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()
62 std::unique_ptr<EventHubInterface> mEventHub;
139 EXPECT_EQ(EventHubInterface::DEVICE_ADDED, event.type); in consumeInitialDeviceAddedEvents()
155 EXPECT_EQ(static_cast<int32_t>(EventHubInterface::DEVICE_ADDED), deviceAddedEvent.type); in waitForDeviceCreation()
166 EXPECT_EQ(static_cast<int32_t>(EventHubInterface::DEVICE_REMOVED), deviceRemovedEvent.type); in waitForDeviceClose()
DInstrumentedInputReader.cpp21 InstrumentedInputReader::InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub, in InstrumentedInputReader()
DInstrumentedInputReader.h32 InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub,
DInterfaceMocks.h71 MOCK_METHOD(EventHubInterface*, getEventHub, (), (override));
91 class MockEventHubInterface : public EventHubInterface {
DFakeEventHub.cpp44 enqueueEvent(ARBITRARY_TIME, READ_TIME, deviceId, EventHubInterface::DEVICE_ADDED, 0, 0); in addDevice()
51 enqueueEvent(ARBITRARY_TIME, READ_TIME, deviceId, EventHubInterface::DEVICE_REMOVED, 0, 0); in removeDevice()
DFakeEventHub.h35 class FakeEventHub : public EventHubInterface {
/frameworks/native/services/inputflinger/reader/include/
DInputReaderContext.h28 class EventHubInterface; variable
59 virtual EventHubInterface* getEventHub() = 0;
DInputReader.h54 InputReader(std::shared_ptr<EventHubInterface> eventHub,
162 EventHubInterface* getEventHub() REQUIRES(mReader->mLock) override;
187 std::shared_ptr<EventHubInterface> mEventHub;
DEventHub.h252 class EventHubInterface {
254 EventHubInterface() {} in EventHubInterface() function
255 virtual ~EventHubInterface() {} in ~EventHubInterface()
511 class EventHub : public EventHubInterface {
DInputDevice.h134 inline EventHubInterface* getEventHub() { return mContext->getEventHub(); } in getEventHub()
487 EventHubInterface* mEventHub;
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h34 android::EventHubInterface::DEVICE_ADDED,
35 android::EventHubInterface::DEVICE_REMOVED};
117 class FuzzEventHub : public EventHubInterface {
355 std::shared_ptr<EventHubInterface> mEventHub;
360 FuzzInputReaderContext(std::shared_ptr<EventHubInterface> eventHub, in FuzzInputReaderContext()
378 EventHubInterface* getEventHub() override { return mEventHub.get(); } in getEventHub()
DInputReaderFuzzer.cpp48 FuzzInputReader(std::shared_ptr<EventHubInterface> fuzzEventHub, in FuzzInputReader()
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp123 InputReader::InputReader(std::shared_ptr<EventHubInterface> eventHub, in InputReader()
257 if (type < EventHubInterface::FIRST_SYNTHETIC_EVENT) { in processEventsLocked()
260 if (rawEvent[batchSize].type >= EventHubInterface::FIRST_SYNTHETIC_EVENT || in processEventsLocked()
270 case EventHubInterface::DEVICE_ADDED: in processEventsLocked()
273 case EventHubInterface::DEVICE_REMOVED: in processEventsLocked()
1129 EventHubInterface* InputReader::ContextImpl::getEventHub() { in getEventHub()