blob: eef370e7069b2c2fa7796b59d7b78d15b871d277 [file] [log] [blame]
Siarhei Vishniakoua0e7f732018-01-17 11:49:04 -08001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_HARDWARE_INPUT_CLASSIFIER_V1_0_INPUTCLASSIFIER_H
18#define ANDROID_HARDWARE_INPUT_CLASSIFIER_V1_0_INPUTCLASSIFIER_H
19
20#include <android/hardware/input/classifier/1.0/IInputClassifier.h>
21#include <hidl/Status.h>
22
23namespace android {
24namespace hardware {
25namespace input {
26namespace classifier {
27namespace V1_0 {
28namespace implementation {
29
30using ::android::hardware::Return;
31
32struct InputClassifier : public IInputClassifier {
33 // Methods from ::android::hardware::input::classifier::V1_0::IInputClassifier follow.
Siarhei Vishniakou45c1d0c2019-01-24 10:38:02 -080034
35 Return<android::hardware::input::common::V1_0::Classification> classify(
36 const android::hardware::input::common::V1_0::MotionEvent& event) override;
Siarhei Vishniakouba9d3c82019-01-23 15:14:20 -080037
38 Return<void> reset() override;
39 Return<void> resetDevice(int32_t deviceId) override;
Siarhei Vishniakoua0e7f732018-01-17 11:49:04 -080040};
41
42} // namespace implementation
43} // namespace V1_0
44} // namespace classifier
45} // namespace input
46} // namespace hardware
47} // namespace android
48
49#endif // ANDROID_HARDWARE_INPUT_CLASSIFIER_V1_0_INPUTCLASSIFIER_H