1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash 8caabf520f562590b693af83b1d2a0c409fb0236 -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/input/common/aidl/android.hardware.input.common_interface/1/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/input/processor/aidl/android.hardware.input.processor-V1-ndk-source/gen/staging/android/hardware/input/processor/IInputProcessor.cpp.d -h out/soong/.intermediates/hardware/interfaces/input/processor/aidl/android.hardware.input.processor-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/input/processor/aidl/android.hardware.input.processor-V1-ndk-source/gen/staging -Nhardware/interfaces/input/processor/aidl/aidl_api/android.hardware.input.processor/1 hardware/interfaces/input/processor/aidl/aidl_api/android.hardware.input.processor/1/android/hardware/input/processor/IInputProcessor.aidl
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include "aidl/android/hardware/input/processor/IInputProcessor.h"
12 
13 #include <android/binder_ibinder.h>
14 #include <cassert>
15 
16 #ifndef __BIONIC__
17 #ifndef __assert2
18 #define __assert2(a,b,c,d) ((void)0)
19 #endif
20 #endif
21 
22 namespace aidl {
23 namespace android {
24 namespace hardware {
25 namespace input {
26 namespace processor {
27 class BnInputProcessor : public ::ndk::BnCInterface<IInputProcessor> {
28 public:
29   BnInputProcessor();
30   virtual ~BnInputProcessor();
31   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final;
32   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final;
33 protected:
34   ::ndk::SpAIBinder createBinder() override;
35 private:
36 };
37 class IInputProcessorDelegator : public BnInputProcessor {
38 public:
IInputProcessorDelegator(const std::shared_ptr<IInputProcessor> & impl)39   explicit IInputProcessorDelegator(const std::shared_ptr<IInputProcessor> &impl) : _impl(impl) {
40      int32_t _impl_ver = 0;
41      if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {;
42         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation.");
43      }
44      if (_impl_ver != IInputProcessor::version) {
45         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
46      }
47   }
48 
classify(const::aidl::android::hardware::input::common::MotionEvent & in_event,::aidl::android::hardware::input::common::Classification * _aidl_return)49   ::ndk::ScopedAStatus classify(const ::aidl::android::hardware::input::common::MotionEvent& in_event, ::aidl::android::hardware::input::common::Classification* _aidl_return) override {
50     return _impl->classify(in_event, _aidl_return);
51   }
reset()52   ::ndk::ScopedAStatus reset() override {
53     return _impl->reset();
54   }
resetDevice(int32_t in_deviceId)55   ::ndk::ScopedAStatus resetDevice(int32_t in_deviceId) override {
56     return _impl->resetDevice(in_deviceId);
57   }
58 protected:
59 private:
60   std::shared_ptr<IInputProcessor> _impl;
61 };
62 
63 }  // namespace processor
64 }  // namespace input
65 }  // namespace hardware
66 }  // namespace android
67 }  // namespace aidl
68