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/IBurst.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/IBurst.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/ExecutionConfig.h>
18 #include <aidl/android/hardware/neuralnetworks/ExecutionResult.h>
19 #include <aidl/android/hardware/neuralnetworks/Request.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl::android::hardware::neuralnetworks {
25 class ExecutionConfig;
26 class ExecutionResult;
27 class Request;
28 }  // namespace aidl::android::hardware::neuralnetworks
29 namespace aidl {
30 namespace android {
31 namespace hardware {
32 namespace neuralnetworks {
33 class IBurstDelegator;
34 
35 class IBurst : public ::ndk::ICInterface {
36 public:
37   typedef IBurstDelegator DefaultDelegator;
38   static const char* descriptor;
39   IBurst();
40   virtual ~IBurst();
41 
42   static inline const int32_t version = 4;
43   static inline const std::string hash = "53178f8de9b8861df391cf0593f6f3e08adad33d";
44   static constexpr uint32_t TRANSACTION_executeSynchronously = FIRST_CALL_TRANSACTION + 0;
45   static constexpr uint32_t TRANSACTION_releaseMemoryResource = FIRST_CALL_TRANSACTION + 1;
46   static constexpr uint32_t TRANSACTION_executeSynchronouslyWithConfig = FIRST_CALL_TRANSACTION + 2;
47 
48   static std::shared_ptr<IBurst> fromBinder(const ::ndk::SpAIBinder& binder);
49   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IBurst>& instance);
50   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IBurst>* instance);
51   static bool setDefaultImpl(const std::shared_ptr<IBurst>& impl);
52   static const std::shared_ptr<IBurst>& getDefaultImpl();
53   virtual ::ndk::ScopedAStatus executeSynchronously(const ::aidl::android::hardware::neuralnetworks::Request& in_request, const std::vector<int64_t>& in_memoryIdentifierTokens, bool in_measureTiming, int64_t in_deadlineNs, int64_t in_loopTimeoutDurationNs, ::aidl::android::hardware::neuralnetworks::ExecutionResult* _aidl_return) = 0;
54   virtual ::ndk::ScopedAStatus releaseMemoryResource(int64_t in_memoryIdentifierToken) = 0;
55   virtual ::ndk::ScopedAStatus executeSynchronouslyWithConfig(const ::aidl::android::hardware::neuralnetworks::Request& in_request, const std::vector<int64_t>& in_memoryIdentifierTokens, const ::aidl::android::hardware::neuralnetworks::ExecutionConfig& in_config, int64_t in_deadlineNs, ::aidl::android::hardware::neuralnetworks::ExecutionResult* _aidl_return) = 0;
56   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
57   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
58 private:
59   static std::shared_ptr<IBurst> default_impl;
60 };
61 class IBurstDefault : public IBurst {
62 public:
63   ::ndk::ScopedAStatus executeSynchronously(const ::aidl::android::hardware::neuralnetworks::Request& in_request, const std::vector<int64_t>& in_memoryIdentifierTokens, bool in_measureTiming, int64_t in_deadlineNs, int64_t in_loopTimeoutDurationNs, ::aidl::android::hardware::neuralnetworks::ExecutionResult* _aidl_return) override;
64   ::ndk::ScopedAStatus releaseMemoryResource(int64_t in_memoryIdentifierToken) override;
65   ::ndk::ScopedAStatus executeSynchronouslyWithConfig(const ::aidl::android::hardware::neuralnetworks::Request& in_request, const std::vector<int64_t>& in_memoryIdentifierTokens, const ::aidl::android::hardware::neuralnetworks::ExecutionConfig& in_config, int64_t in_deadlineNs, ::aidl::android::hardware::neuralnetworks::ExecutionResult* _aidl_return) override;
66   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
67   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
68   ::ndk::SpAIBinder asBinder() override;
69   bool isRemote() override;
70 };
71 }  // namespace neuralnetworks
72 }  // namespace hardware
73 }  // namespace android
74 }  // namespace aidl
75