1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 4 --hash 53178f8de9b8861df391cf0593f6f3e08adad33d -t --stability vintf --min_sdk_version 30 -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common_interface/6/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/staging/android/hardware/neuralnetworks/IExecution.cpp.d -h out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/neuralnetworks/aidl/android.hardware.neuralnetworks-V4-ndk-source/gen/staging -Nhardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4 hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/IExecution.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/neuralnetworks/ExecutionResult.h> 18 #include <aidl/android/hardware/neuralnetworks/FencedExecutionResult.h> 19 #ifdef BINDER_STABILITY_SUPPORT 20 #include <android/binder_stability.h> 21 #endif // BINDER_STABILITY_SUPPORT 22 23 namespace aidl::android::hardware::neuralnetworks { 24 class ExecutionResult; 25 class FencedExecutionResult; 26 } // namespace aidl::android::hardware::neuralnetworks 27 namespace aidl { 28 namespace android { 29 namespace hardware { 30 namespace neuralnetworks { 31 class IExecutionDelegator; 32 33 class IExecution : public ::ndk::ICInterface { 34 public: 35 typedef IExecutionDelegator DefaultDelegator; 36 static const char* descriptor; 37 IExecution(); 38 virtual ~IExecution(); 39 40 static inline const int32_t version = 4; 41 static inline const std::string hash = "53178f8de9b8861df391cf0593f6f3e08adad33d"; 42 static constexpr uint32_t TRANSACTION_executeSynchronously = FIRST_CALL_TRANSACTION + 0; 43 static constexpr uint32_t TRANSACTION_executeFenced = FIRST_CALL_TRANSACTION + 1; 44 45 static std::shared_ptr<IExecution> fromBinder(const ::ndk::SpAIBinder& binder); 46 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IExecution>& instance); 47 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IExecution>* instance); 48 static bool setDefaultImpl(const std::shared_ptr<IExecution>& impl); 49 static const std::shared_ptr<IExecution>& getDefaultImpl(); 50 virtual ::ndk::ScopedAStatus executeSynchronously(int64_t in_deadlineNs, ::aidl::android::hardware::neuralnetworks::ExecutionResult* _aidl_return) = 0; 51 virtual ::ndk::ScopedAStatus executeFenced(const std::vector<::ndk::ScopedFileDescriptor>& in_waitFor, int64_t in_deadlineNs, int64_t in_durationNs, ::aidl::android::hardware::neuralnetworks::FencedExecutionResult* _aidl_return) = 0; 52 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 53 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 54 private: 55 static std::shared_ptr<IExecution> default_impl; 56 }; 57 class IExecutionDefault : public IExecution { 58 public: 59 ::ndk::ScopedAStatus executeSynchronously(int64_t in_deadlineNs, ::aidl::android::hardware::neuralnetworks::ExecutionResult* _aidl_return) override; 60 ::ndk::ScopedAStatus executeFenced(const std::vector<::ndk::ScopedFileDescriptor>& in_waitFor, int64_t in_deadlineNs, int64_t in_durationNs, ::aidl::android::hardware::neuralnetworks::FencedExecutionResult* _aidl_return) override; 61 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 62 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 63 ::ndk::SpAIBinder asBinder() override; 64 bool isRemote() override; 65 }; 66 } // namespace neuralnetworks 67 } // namespace hardware 68 } // namespace android 69 } // namespace aidl 70