summaryrefslogtreecommitdiff
path: root/input/classifier/1.0/default/InputClassifier.cpp
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2019-01-23 15:14:20 -0800
committerSiarhei Vishniakou <svv@google.com>2019-01-28 13:52:10 -0800
commitba9d3c83b7c1a7cd6d48c1f49c7f3cfc418592fe (patch)
treec706ddb95e1e2eefef2bf2f3154c36c588307a24 /input/classifier/1.0/default/InputClassifier.cpp
parent45c1d0c19285f3abcbf394357541027841995c8e (diff)
Add reset to InputClassifier HAL
The reset will be used to prevent an inconsistent stream of events to be sent to the HAL. Bug: 111480215 Test: make only Change-Id: I40c7d671f094065e3fcaff0d83e826c580dcae7a
Diffstat (limited to 'input/classifier/1.0/default/InputClassifier.cpp')
-rw-r--r--input/classifier/1.0/default/InputClassifier.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/input/classifier/1.0/default/InputClassifier.cpp b/input/classifier/1.0/default/InputClassifier.cpp
index 7005e9d8b6..a78bbc5c94 100644
--- a/input/classifier/1.0/default/InputClassifier.cpp
+++ b/input/classifier/1.0/default/InputClassifier.cpp
@@ -57,6 +57,18 @@ Return<Classification> InputClassifier::classify(const MotionEvent& event) {
return Classification::NONE;
}
+Return<void> InputClassifier::reset() {
+ // We don't have any internal state in this example implementation,
+ // so no work needed here.
+ return Void();
+}
+
+Return<void> InputClassifier::resetDevice(int32_t /*deviceId*/) {
+ // We don't have any internal per-device state in this example implementation,
+ // so no work needed here.
+ return Void();
+}
+
} // namespace implementation
} // namespace V1_0
} // namespace classifier