diff options
author | Siarhei Vishniakou <svv@google.com> | 2019-01-23 15:14:20 -0800 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2019-01-28 13:52:10 -0800 |
commit | ba9d3c83b7c1a7cd6d48c1f49c7f3cfc418592fe (patch) | |
tree | c706ddb95e1e2eefef2bf2f3154c36c588307a24 /input/classifier/1.0/default/InputClassifier.cpp | |
parent | 45c1d0c19285f3abcbf394357541027841995c8e (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.cpp | 12 |
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 |