| #include "aidl/android/hardware/neuralnetworks/IBurst.h" |
| |
| #include <android/binder_parcel_utils.h> |
| #include <aidl/android/hardware/neuralnetworks/BnBurst.h> |
| #include <aidl/android/hardware/neuralnetworks/BpBurst.h> |
| |
| namespace aidl { |
| namespace android { |
| namespace hardware { |
| namespace neuralnetworks { |
| static binder_status_t _aidl_android_hardware_neuralnetworks_IBurst_onTransact(AIBinder* _aidl_binder, transaction_code_t _aidl_code, const AParcel* _aidl_in, AParcel* _aidl_out) { |
| (void)_aidl_in; |
| (void)_aidl_out; |
| binder_status_t _aidl_ret_status = STATUS_UNKNOWN_TRANSACTION; |
| std::shared_ptr<BnBurst> _aidl_impl = std::static_pointer_cast<BnBurst>(::ndk::ICInterface::asInterface(_aidl_binder)); |
| switch (_aidl_code) { |
| case (FIRST_CALL_TRANSACTION + 0 /*executeSynchronously*/): { |
| ::aidl::android::hardware::neuralnetworks::Request in_request; |
| std::vector<int64_t> in_memoryIdentifierTokens; |
| bool in_measureTiming; |
| int64_t in_deadlineNs; |
| int64_t in_loopTimeoutDurationNs; |
| ::aidl::android::hardware::neuralnetworks::ExecutionResult _aidl_return; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_request); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_memoryIdentifierTokens); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_measureTiming); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_deadlineNs); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_loopTimeoutDurationNs); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| ::ndk::ScopedAStatus _aidl_status = _aidl_impl->executeSynchronously(in_request, in_memoryIdentifierTokens, in_measureTiming, in_deadlineNs, in_loopTimeoutDurationNs, &_aidl_return); |
| _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get()); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| if (!AStatus_isOk(_aidl_status.get())) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_out, _aidl_return); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| break; |
| } |
| case (FIRST_CALL_TRANSACTION + 1 /*releaseMemoryResource*/): { |
| int64_t in_memoryIdentifierToken; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_memoryIdentifierToken); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| ::ndk::ScopedAStatus _aidl_status = _aidl_impl->releaseMemoryResource(in_memoryIdentifierToken); |
| _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get()); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| if (!AStatus_isOk(_aidl_status.get())) break; |
| |
| break; |
| } |
| case (FIRST_CALL_TRANSACTION + 2 /*executeSynchronouslyWithConfig*/): { |
| ::aidl::android::hardware::neuralnetworks::Request in_request; |
| std::vector<int64_t> in_memoryIdentifierTokens; |
| ::aidl::android::hardware::neuralnetworks::ExecutionConfig in_config; |
| int64_t in_deadlineNs; |
| ::aidl::android::hardware::neuralnetworks::ExecutionResult _aidl_return; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_request); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_memoryIdentifierTokens); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_config); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_deadlineNs); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| ::ndk::ScopedAStatus _aidl_status = _aidl_impl->executeSynchronouslyWithConfig(in_request, in_memoryIdentifierTokens, in_config, in_deadlineNs, &_aidl_return); |
| _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get()); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| if (!AStatus_isOk(_aidl_status.get())) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_out, _aidl_return); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| break; |
| } |
| case (FIRST_CALL_TRANSACTION + 16777214 /*getInterfaceVersion*/): { |
| int32_t _aidl_return; |
| |
| ::ndk::ScopedAStatus _aidl_status = _aidl_impl->getInterfaceVersion(&_aidl_return); |
| _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get()); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| if (!AStatus_isOk(_aidl_status.get())) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_out, _aidl_return); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| break; |
| } |
| case (FIRST_CALL_TRANSACTION + 16777213 /*getInterfaceHash*/): { |
| std::string _aidl_return; |
| |
| ::ndk::ScopedAStatus _aidl_status = _aidl_impl->getInterfaceHash(&_aidl_return); |
| _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get()); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| if (!AStatus_isOk(_aidl_status.get())) break; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_out, _aidl_return); |
| if (_aidl_ret_status != STATUS_OK) break; |
| |
| break; |
| } |
| } |
| return _aidl_ret_status; |
| } |
| |
| static AIBinder_Class* _g_aidl_android_hardware_neuralnetworks_IBurst_clazz = ::ndk::ICInterface::defineClass(IBurst::descriptor, _aidl_android_hardware_neuralnetworks_IBurst_onTransact); |
| |
| BpBurst::BpBurst(const ::ndk::SpAIBinder& binder) : BpCInterface(binder) {} |
| BpBurst::~BpBurst() {} |
| |
| ::ndk::ScopedAStatus BpBurst::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) { |
| binder_status_t _aidl_ret_status = STATUS_OK; |
| ::ndk::ScopedAStatus _aidl_status; |
| ::ndk::ScopedAParcel _aidl_in; |
| ::ndk::ScopedAParcel _aidl_out; |
| |
| _aidl_ret_status = AIBinder_prepareTransaction(asBinder().get(), _aidl_in.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_request); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_memoryIdentifierTokens); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_measureTiming); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_deadlineNs); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_loopTimeoutDurationNs); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AIBinder_transact( |
| asBinder().get(), |
| (FIRST_CALL_TRANSACTION + 0 /*executeSynchronously*/), |
| _aidl_in.getR(), |
| _aidl_out.getR(), |
| 0 |
| #ifdef BINDER_STABILITY_SUPPORT |
| | FLAG_PRIVATE_LOCAL |
| #endif // BINDER_STABILITY_SUPPORT |
| ); |
| if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IBurst::getDefaultImpl()) { |
| _aidl_status = IBurst::getDefaultImpl()->executeSynchronously(in_request, in_memoryIdentifierTokens, in_measureTiming, in_deadlineNs, in_loopTimeoutDurationNs, _aidl_return); |
| goto _aidl_status_return; |
| } |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return; |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_out.get(), _aidl_return); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_error: |
| _aidl_status.set(AStatus_fromStatus(_aidl_ret_status)); |
| _aidl_status_return: |
| return _aidl_status; |
| } |
| ::ndk::ScopedAStatus BpBurst::releaseMemoryResource(int64_t in_memoryIdentifierToken) { |
| binder_status_t _aidl_ret_status = STATUS_OK; |
| ::ndk::ScopedAStatus _aidl_status; |
| ::ndk::ScopedAParcel _aidl_in; |
| ::ndk::ScopedAParcel _aidl_out; |
| |
| _aidl_ret_status = AIBinder_prepareTransaction(asBinder().get(), _aidl_in.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_memoryIdentifierToken); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AIBinder_transact( |
| asBinder().get(), |
| (FIRST_CALL_TRANSACTION + 1 /*releaseMemoryResource*/), |
| _aidl_in.getR(), |
| _aidl_out.getR(), |
| 0 |
| #ifdef BINDER_STABILITY_SUPPORT |
| | FLAG_PRIVATE_LOCAL |
| #endif // BINDER_STABILITY_SUPPORT |
| ); |
| if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IBurst::getDefaultImpl()) { |
| _aidl_status = IBurst::getDefaultImpl()->releaseMemoryResource(in_memoryIdentifierToken); |
| goto _aidl_status_return; |
| } |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return; |
| _aidl_error: |
| _aidl_status.set(AStatus_fromStatus(_aidl_ret_status)); |
| _aidl_status_return: |
| return _aidl_status; |
| } |
| ::ndk::ScopedAStatus BpBurst::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) { |
| binder_status_t _aidl_ret_status = STATUS_OK; |
| ::ndk::ScopedAStatus _aidl_status; |
| ::ndk::ScopedAParcel _aidl_in; |
| ::ndk::ScopedAParcel _aidl_out; |
| |
| _aidl_ret_status = AIBinder_prepareTransaction(asBinder().get(), _aidl_in.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_request); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_memoryIdentifierTokens); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_config); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_deadlineNs); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AIBinder_transact( |
| asBinder().get(), |
| (FIRST_CALL_TRANSACTION + 2 /*executeSynchronouslyWithConfig*/), |
| _aidl_in.getR(), |
| _aidl_out.getR(), |
| 0 |
| #ifdef BINDER_STABILITY_SUPPORT |
| | FLAG_PRIVATE_LOCAL |
| #endif // BINDER_STABILITY_SUPPORT |
| ); |
| if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IBurst::getDefaultImpl()) { |
| _aidl_status = IBurst::getDefaultImpl()->executeSynchronouslyWithConfig(in_request, in_memoryIdentifierTokens, in_config, in_deadlineNs, _aidl_return); |
| goto _aidl_status_return; |
| } |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return; |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_out.get(), _aidl_return); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_error: |
| _aidl_status.set(AStatus_fromStatus(_aidl_ret_status)); |
| _aidl_status_return: |
| return _aidl_status; |
| } |
| ::ndk::ScopedAStatus BpBurst::getInterfaceVersion(int32_t* _aidl_return) { |
| binder_status_t _aidl_ret_status = STATUS_OK; |
| ::ndk::ScopedAStatus _aidl_status; |
| if (_aidl_cached_version != -1) { |
| *_aidl_return = _aidl_cached_version; |
| _aidl_status.set(AStatus_fromStatus(_aidl_ret_status)); |
| return _aidl_status; |
| } |
| ::ndk::ScopedAParcel _aidl_in; |
| ::ndk::ScopedAParcel _aidl_out; |
| |
| _aidl_ret_status = AIBinder_prepareTransaction(asBinder().get(), _aidl_in.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AIBinder_transact( |
| asBinder().get(), |
| (FIRST_CALL_TRANSACTION + 16777214 /*getInterfaceVersion*/), |
| _aidl_in.getR(), |
| _aidl_out.getR(), |
| 0 |
| #ifdef BINDER_STABILITY_SUPPORT |
| | FLAG_PRIVATE_LOCAL |
| #endif // BINDER_STABILITY_SUPPORT |
| ); |
| if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IBurst::getDefaultImpl()) { |
| _aidl_status = IBurst::getDefaultImpl()->getInterfaceVersion(_aidl_return); |
| goto _aidl_status_return; |
| } |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return; |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_out.get(), _aidl_return); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_cached_version = *_aidl_return; |
| _aidl_error: |
| _aidl_status.set(AStatus_fromStatus(_aidl_ret_status)); |
| _aidl_status_return: |
| return _aidl_status; |
| } |
| ::ndk::ScopedAStatus BpBurst::getInterfaceHash(std::string* _aidl_return) { |
| binder_status_t _aidl_ret_status = STATUS_OK; |
| ::ndk::ScopedAStatus _aidl_status; |
| const std::lock_guard<std::mutex> lock(_aidl_cached_hash_mutex); |
| if (_aidl_cached_hash != "-1") { |
| *_aidl_return = _aidl_cached_hash; |
| _aidl_status.set(AStatus_fromStatus(_aidl_ret_status)); |
| return _aidl_status; |
| } |
| ::ndk::ScopedAParcel _aidl_in; |
| ::ndk::ScopedAParcel _aidl_out; |
| |
| _aidl_ret_status = AIBinder_prepareTransaction(asBinder().get(), _aidl_in.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AIBinder_transact( |
| asBinder().get(), |
| (FIRST_CALL_TRANSACTION + 16777213 /*getInterfaceHash*/), |
| _aidl_in.getR(), |
| _aidl_out.getR(), |
| 0 |
| #ifdef BINDER_STABILITY_SUPPORT |
| | FLAG_PRIVATE_LOCAL |
| #endif // BINDER_STABILITY_SUPPORT |
| ); |
| if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IBurst::getDefaultImpl()) { |
| _aidl_status = IBurst::getDefaultImpl()->getInterfaceHash(_aidl_return); |
| goto _aidl_status_return; |
| } |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR()); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return; |
| _aidl_ret_status = ::ndk::AParcel_readData(_aidl_out.get(), _aidl_return); |
| if (_aidl_ret_status != STATUS_OK) goto _aidl_error; |
| |
| _aidl_cached_hash = *_aidl_return; |
| _aidl_error: |
| _aidl_status.set(AStatus_fromStatus(_aidl_ret_status)); |
| _aidl_status_return: |
| return _aidl_status; |
| } |
| // Source for BnBurst |
| BnBurst::BnBurst() {} |
| BnBurst::~BnBurst() {} |
| ::ndk::SpAIBinder BnBurst::createBinder() { |
| AIBinder* binder = AIBinder_new(_g_aidl_android_hardware_neuralnetworks_IBurst_clazz, static_cast<void*>(this)); |
| #ifdef BINDER_STABILITY_SUPPORT |
| AIBinder_markVintfStability(binder); |
| #endif // BINDER_STABILITY_SUPPORT |
| return ::ndk::SpAIBinder(binder); |
| } |
| ::ndk::ScopedAStatus BnBurst::getInterfaceVersion(int32_t* _aidl_return) { |
| *_aidl_return = IBurst::version; |
| return ::ndk::ScopedAStatus(AStatus_newOk()); |
| } |
| ::ndk::ScopedAStatus BnBurst::getInterfaceHash(std::string* _aidl_return) { |
| *_aidl_return = IBurst::hash; |
| return ::ndk::ScopedAStatus(AStatus_newOk()); |
| } |
| // Source for IBurst |
| const char* IBurst::descriptor = "android.hardware.neuralnetworks.IBurst"; |
| IBurst::IBurst() {} |
| IBurst::~IBurst() {} |
| |
| |
| std::shared_ptr<IBurst> IBurst::fromBinder(const ::ndk::SpAIBinder& binder) { |
| if (!AIBinder_associateClass(binder.get(), _g_aidl_android_hardware_neuralnetworks_IBurst_clazz)) { return nullptr; } |
| std::shared_ptr<::ndk::ICInterface> interface = ::ndk::ICInterface::asInterface(binder.get()); |
| if (interface) { |
| return std::static_pointer_cast<IBurst>(interface); |
| } |
| return ::ndk::SharedRefBase::make<BpBurst>(binder); |
| } |
| |
| binder_status_t IBurst::writeToParcel(AParcel* parcel, const std::shared_ptr<IBurst>& instance) { |
| return AParcel_writeStrongBinder(parcel, instance ? instance->asBinder().get() : nullptr); |
| } |
| binder_status_t IBurst::readFromParcel(const AParcel* parcel, std::shared_ptr<IBurst>* instance) { |
| ::ndk::SpAIBinder binder; |
| binder_status_t status = AParcel_readStrongBinder(parcel, binder.getR()); |
| if (status != STATUS_OK) return status; |
| *instance = IBurst::fromBinder(binder); |
| return STATUS_OK; |
| } |
| bool IBurst::setDefaultImpl(const std::shared_ptr<IBurst>& impl) { |
| // Only one user of this interface can use this function |
| // at a time. This is a heuristic to detect if two different |
| // users in the same process use this function. |
| assert(!IBurst::default_impl); |
| if (impl) { |
| IBurst::default_impl = impl; |
| return true; |
| } |
| return false; |
| } |
| const std::shared_ptr<IBurst>& IBurst::getDefaultImpl() { |
| return IBurst::default_impl; |
| } |
| std::shared_ptr<IBurst> IBurst::default_impl = nullptr; |
| ::ndk::ScopedAStatus IBurstDefault::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*/) { |
| ::ndk::ScopedAStatus _aidl_status; |
| _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); |
| return _aidl_status; |
| } |
| ::ndk::ScopedAStatus IBurstDefault::releaseMemoryResource(int64_t /*in_memoryIdentifierToken*/) { |
| ::ndk::ScopedAStatus _aidl_status; |
| _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); |
| return _aidl_status; |
| } |
| ::ndk::ScopedAStatus IBurstDefault::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*/) { |
| ::ndk::ScopedAStatus _aidl_status; |
| _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION)); |
| return _aidl_status; |
| } |
| ::ndk::ScopedAStatus IBurstDefault::getInterfaceVersion(int32_t* _aidl_return) { |
| *_aidl_return = 0; |
| return ::ndk::ScopedAStatus(AStatus_newOk()); |
| } |
| ::ndk::ScopedAStatus IBurstDefault::getInterfaceHash(std::string* _aidl_return) { |
| *_aidl_return = ""; |
| return ::ndk::ScopedAStatus(AStatus_newOk()); |
| } |
| ::ndk::SpAIBinder IBurstDefault::asBinder() { |
| return ::ndk::SpAIBinder(); |
| } |
| bool IBurstDefault::isRemote() { |
| return false; |
| } |
| } // namespace neuralnetworks |
| } // namespace hardware |
| } // namespace android |
| } // namespace aidl |