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 <cstdint> 12 #include <memory> 13 #include <optional> 14 #include <string> 15 #include <vector> 16 #include <android/binder_interface_utils.h> 17 #include <aidl/android/hardware/input/common/Classification.h> 18 #include <aidl/android/hardware/input/common/MotionEvent.h> 19 #ifdef BINDER_STABILITY_SUPPORT 20 #include <android/binder_stability.h> 21 #endif // BINDER_STABILITY_SUPPORT 22 23 namespace aidl::android::hardware::input::common { 24 class MotionEvent; 25 } // namespace aidl::android::hardware::input::common 26 namespace aidl { 27 namespace android { 28 namespace hardware { 29 namespace input { 30 namespace processor { 31 class IInputProcessorDelegator; 32 33 class IInputProcessor : public ::ndk::ICInterface { 34 public: 35 typedef IInputProcessorDelegator DefaultDelegator; 36 static const char* descriptor; 37 IInputProcessor(); 38 virtual ~IInputProcessor(); 39 40 static inline const int32_t version = 1; 41 static inline const std::string hash = "8caabf520f562590b693af83b1d2a0c409fb0236"; 42 static constexpr uint32_t TRANSACTION_classify = FIRST_CALL_TRANSACTION + 0; 43 static constexpr uint32_t TRANSACTION_reset = FIRST_CALL_TRANSACTION + 1; 44 static constexpr uint32_t TRANSACTION_resetDevice = FIRST_CALL_TRANSACTION + 2; 45 46 static std::shared_ptr<IInputProcessor> fromBinder(const ::ndk::SpAIBinder& binder); 47 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IInputProcessor>& instance); 48 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IInputProcessor>* instance); 49 static bool setDefaultImpl(const std::shared_ptr<IInputProcessor>& impl); 50 static const std::shared_ptr<IInputProcessor>& getDefaultImpl(); 51 virtual ::ndk::ScopedAStatus classify(const ::aidl::android::hardware::input::common::MotionEvent& in_event, ::aidl::android::hardware::input::common::Classification* _aidl_return) = 0; 52 virtual ::ndk::ScopedAStatus reset() = 0; 53 virtual ::ndk::ScopedAStatus resetDevice(int32_t in_deviceId) = 0; 54 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 55 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 56 private: 57 static std::shared_ptr<IInputProcessor> default_impl; 58 }; 59 class IInputProcessorDefault : public IInputProcessor { 60 public: 61 ::ndk::ScopedAStatus classify(const ::aidl::android::hardware::input::common::MotionEvent& in_event, ::aidl::android::hardware::input::common::Classification* _aidl_return) override; 62 ::ndk::ScopedAStatus reset() override; 63 ::ndk::ScopedAStatus resetDevice(int32_t in_deviceId) override; 64 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 65 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 66 ::ndk::SpAIBinder asBinder() override; 67 bool isRemote() override; 68 }; 69 } // namespace processor 70 } // namespace input 71 } // namespace hardware 72 } // namespace android 73 } // namespace aidl 74