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 "aidl/android/hardware/neuralnetworks/IBurst.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 neuralnetworks {
26 class BnBurst : public ::ndk::BnCInterface<IBurst> {
27 public:
28   BnBurst();
29   virtual ~BnBurst();
30   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final;
31   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final;
32 protected:
33   ::ndk::SpAIBinder createBinder() override;
34 private:
35 };
36 class IBurstDelegator : public BnBurst {
37 public:
IBurstDelegator(const std::shared_ptr<IBurst> & impl)38   explicit IBurstDelegator(const std::shared_ptr<IBurst> &impl) : _impl(impl) {
39      int32_t _impl_ver = 0;
40      if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {;
41         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation.");
42      }
43      if (_impl_ver != IBurst::version) {
44         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
45      }
46   }
47 
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)48   ::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 {
49     return _impl->executeSynchronously(in_request, in_memoryIdentifierTokens, in_measureTiming, in_deadlineNs, in_loopTimeoutDurationNs, _aidl_return);
50   }
releaseMemoryResource(int64_t in_memoryIdentifierToken)51   ::ndk::ScopedAStatus releaseMemoryResource(int64_t in_memoryIdentifierToken) override {
52     return _impl->releaseMemoryResource(in_memoryIdentifierToken);
53   }
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)54   ::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 {
55     return _impl->executeSynchronouslyWithConfig(in_request, in_memoryIdentifierTokens, in_config, in_deadlineNs, _aidl_return);
56   }
57 protected:
58 private:
59   std::shared_ptr<IBurst> _impl;
60 };
61 
62 }  // namespace neuralnetworks
63 }  // namespace hardware
64 }  // namespace android
65 }  // namespace aidl
66