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()
51 case EventHubInterface::FINISHED_DEVICE_SCAN: in dumpEvents()
65 std::unique_ptr<EventHubInterface> mEventHub;
142 EXPECT_EQ(EventHubInterface::DEVICE_ADDED, event.type); in consumeInitialDeviceAddedEvents()
149 EXPECT_EQ(EventHubInterface::FINISHED_DEVICE_SCAN, events[events.size() - 1].type); in consumeInitialDeviceAddedEvents()
160 EXPECT_EQ(static_cast<int32_t>(EventHubInterface::DEVICE_ADDED), deviceAddedEvent.type); in waitForDeviceCreation()
165 EXPECT_EQ(static_cast<int32_t>(EventHubInterface::FINISHED_DEVICE_SCAN), in waitForDeviceCreation()
[all …]
DInstrumentedInputReader.cpp21 InstrumentedInputReader::InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub, in InstrumentedInputReader()
DInstrumentedInputReader.h32 InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub,
DInterfaceMocks.h68 MOCK_METHOD(EventHubInterface*, getEventHub, (), (override));
88 class MockEventHubInterface : public EventHubInterface {
DFakeEventHub.cpp42 enqueueEvent(ARBITRARY_TIME, READ_TIME, deviceId, EventHubInterface::DEVICE_ADDED, 0, 0); in addDevice()
49 enqueueEvent(ARBITRARY_TIME, READ_TIME, deviceId, EventHubInterface::DEVICE_REMOVED, 0, 0); in removeDevice()
90 enqueueEvent(ARBITRARY_TIME, READ_TIME, 0, EventHubInterface::FINISHED_DEVICE_SCAN, 0, 0); in finishDeviceScan()
DFakeEventHub.h35 class FakeEventHub : public EventHubInterface {
/frameworks/native/services/inputflinger/reader/include/
DInputReaderContext.h27 class EventHubInterface; variable
56 virtual EventHubInterface* getEventHub() = 0;
DInputReader.h52 InputReader(std::shared_ptr<EventHubInterface> eventHub,
150 EventHubInterface* getEventHub() REQUIRES(mReader->mLock) override;
175 std::shared_ptr<EventHubInterface> mEventHub;
DEventHub.h249 class EventHubInterface {
251 EventHubInterface() {} in EventHubInterface() function
252 virtual ~EventHubInterface() {} in ~EventHubInterface()
502 class EventHub : public EventHubInterface {
DInputDevice.h136 inline EventHubInterface* getEventHub() { return mContext->getEventHub(); } in getEventHub()
486 EventHubInterface* mEventHub;
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h33 android::EventHubInterface::DEVICE_ADDED,
34 android::EventHubInterface::DEVICE_REMOVED,
35 android::EventHubInterface::FINISHED_DEVICE_SCAN};
95 class FuzzEventHub : public EventHubInterface {
307 std::shared_ptr<EventHubInterface> mEventHub;
312 FuzzInputReaderContext(std::shared_ptr<EventHubInterface> eventHub, in FuzzInputReaderContext()
329 EventHubInterface* getEventHub() override { return mEventHub.get(); } in getEventHub()
DInputReaderFuzzer.cpp48 FuzzInputReader(std::shared_ptr<EventHubInterface> fuzzEventHub, in FuzzInputReader()
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp98 InputReader::InputReader(std::shared_ptr<EventHubInterface> eventHub, in InputReader()
229 if (type < EventHubInterface::FIRST_SYNTHETIC_EVENT) { in processEventsLocked()
232 if (rawEvent[batchSize].type >= EventHubInterface::FIRST_SYNTHETIC_EVENT || in processEventsLocked()
244 case EventHubInterface::DEVICE_ADDED: in processEventsLocked()
247 case EventHubInterface::DEVICE_REMOVED: in processEventsLocked()
250 case EventHubInterface::FINISHED_DEVICE_SCAN: in processEventsLocked()
1072 EventHubInterface* InputReader::ContextImpl::getEventHub() { in getEventHub()