Change InputReporter to InputReporterInterface
This CL changes InputReporter.h to InputReporterInterface.h to follow the
convention established with InputReader. InputReporterInterface will act
as an interface instead of a class definition, consiting only of pure
virtual methods. This makes libinputreporter more closely analogous to
libinputreader than before.
The new class, InputReporter which extends InputReporterInterface is
defined in its cpp file, InputReporter.cpp.
Bug: 119312287
Test: Build, test touch input
Change-Id: I05eb71ccec9303bd5c240e4571116f7347cafe0a
diff --git a/services/inputflinger/InputDispatcher.h b/services/inputflinger/InputDispatcher.h
index 970632e..ecd5cb9 100644
--- a/services/inputflinger/InputDispatcher.h
+++ b/services/inputflinger/InputDispatcher.h
@@ -37,7 +37,7 @@
#include <unordered_map>
#include "InputListener.h"
-#include "InputReporter.h"
+#include "InputReporterInterface.h"
namespace android {
@@ -1190,7 +1190,7 @@
void traceOutboundQueueLengthLocked(const sp<Connection>& connection);
void traceWaitQueueLengthLocked(const sp<Connection>& connection);
- sp<InputReporter> mReporter;
+ sp<InputReporterInterface> mReporter;
};
/* Enqueues and dispatches input events, endlessly. */