Searched refs:EventHubInterface (Results 1 – 13 of 13) 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; 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 …]
|
D | InstrumentedInputReader.cpp | 21 InstrumentedInputReader::InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub, in InstrumentedInputReader()
|
D | InstrumentedInputReader.h | 32 InstrumentedInputReader(std::shared_ptr<EventHubInterface> eventHub,
|
D | InterfaceMocks.h | 68 MOCK_METHOD(EventHubInterface*, getEventHub, (), (override)); 88 class MockEventHubInterface : public EventHubInterface {
|
D | FakeEventHub.cpp | 42 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()
|
D | FakeEventHub.h | 35 class FakeEventHub : public EventHubInterface {
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReaderContext.h | 27 class EventHubInterface; variable 56 virtual EventHubInterface* getEventHub() = 0;
|
D | InputReader.h | 52 InputReader(std::shared_ptr<EventHubInterface> eventHub, 150 EventHubInterface* getEventHub() REQUIRES(mReader->mLock) override; 175 std::shared_ptr<EventHubInterface> mEventHub;
|
D | EventHub.h | 249 class EventHubInterface { 251 EventHubInterface() {} in EventHubInterface() function 252 virtual ~EventHubInterface() {} in ~EventHubInterface() 502 class EventHub : public EventHubInterface {
|
D | InputDevice.h | 136 inline EventHubInterface* getEventHub() { return mContext->getEventHub(); } in getEventHub() 486 EventHubInterface* mEventHub;
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | MapperHelpers.h | 33 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()
|
D | InputReaderFuzzer.cpp | 48 FuzzInputReader(std::shared_ptr<EventHubInterface> fuzzEventHub, in FuzzInputReader()
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 98 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()
|