• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
23 namespace android {
24 namespace hardware {
25 namespace input {
26 namespace classifier {
27 namespace V1_0 {
28 namespace implementation {
29 
30 using ::android::hardware::Return;
31 
32 struct InputClassifier : public IInputClassifier {
33     // Methods from ::android::hardware::input::classifier::V1_0::IInputClassifier follow.
34 
35     Return<android::hardware::input::common::V1_0::Classification> classify(
36             const android::hardware::input::common::V1_0::MotionEvent& event) override;
37 
38     Return<void> reset() override;
39     Return<void> resetDevice(int32_t deviceId) override;
40 };
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
50