1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation --structured --version 4 --hash notfrozen -t --stability vintf --min_sdk_version 33 --previous_api_dir=hardware/interfaces/contexthub/aidl/aidl_api/android.hardware.contexthub/3 --previous_hash 03f1982c8e20e58494a4ff8c9736b1c257dfeb6c --ninja -d out/soong/.intermediates/hardware/interfaces/contexthub/aidl/android.hardware.contexthub-V4-ndk-source/gen/staging/android/hardware/contexthub/IContextHubCallback.cpp.d -h out/soong/.intermediates/hardware/interfaces/contexthub/aidl/android.hardware.contexthub-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/contexthub/aidl/android.hardware.contexthub-V4-ndk-source/gen/staging -Nhardware/interfaces/contexthub/aidl hardware/interfaces/contexthub/aidl/android/hardware/contexthub/IContextHubCallback.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/contexthub/IContextHubCallback.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 contexthub { 26 class BnContextHubCallback : public ::ndk::BnCInterface<IContextHubCallback> { 27 public: 28 BnContextHubCallback(); 29 virtual ~BnContextHubCallback(); 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 IContextHubCallbackDelegator : public BnContextHubCallback { 37 public: IContextHubCallbackDelegator(const std::shared_ptr<IContextHubCallback> & impl)38 explicit IContextHubCallbackDelegator(const std::shared_ptr<IContextHubCallback> &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 != IContextHubCallback::version) { 44 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed."); 45 } 46 } 47 handleNanoappInfo(const std::vector<::aidl::android::hardware::contexthub::NanoappInfo> & in_appInfo)48 ::ndk::ScopedAStatus handleNanoappInfo(const std::vector<::aidl::android::hardware::contexthub::NanoappInfo>& in_appInfo) override { 49 return _impl->handleNanoappInfo(in_appInfo); 50 } handleContextHubMessage(const::aidl::android::hardware::contexthub::ContextHubMessage & in_msg,const std::vector<std::string> & in_msgContentPerms)51 ::ndk::ScopedAStatus handleContextHubMessage(const ::aidl::android::hardware::contexthub::ContextHubMessage& in_msg, const std::vector<std::string>& in_msgContentPerms) override { 52 return _impl->handleContextHubMessage(in_msg, in_msgContentPerms); 53 } handleContextHubAsyncEvent(::aidl::android::hardware::contexthub::AsyncEventType in_evt)54 ::ndk::ScopedAStatus handleContextHubAsyncEvent(::aidl::android::hardware::contexthub::AsyncEventType in_evt) override { 55 return _impl->handleContextHubAsyncEvent(in_evt); 56 } handleTransactionResult(int32_t in_transactionId,bool in_success)57 ::ndk::ScopedAStatus handleTransactionResult(int32_t in_transactionId, bool in_success) override { 58 return _impl->handleTransactionResult(in_transactionId, in_success); 59 } handleNanSessionRequest(const::aidl::android::hardware::contexthub::NanSessionRequest & in_request)60 ::ndk::ScopedAStatus handleNanSessionRequest(const ::aidl::android::hardware::contexthub::NanSessionRequest& in_request) override { 61 return _impl->handleNanSessionRequest(in_request); 62 } handleMessageDeliveryStatus(char16_t in_hostEndpointId,const::aidl::android::hardware::contexthub::MessageDeliveryStatus & in_messageDeliveryStatus)63 ::ndk::ScopedAStatus handleMessageDeliveryStatus(char16_t in_hostEndpointId, const ::aidl::android::hardware::contexthub::MessageDeliveryStatus& in_messageDeliveryStatus) override { 64 return _impl->handleMessageDeliveryStatus(in_hostEndpointId, in_messageDeliveryStatus); 65 } getUuid(std::array<uint8_t,16> * _aidl_return)66 ::ndk::ScopedAStatus getUuid(std::array<uint8_t, 16>* _aidl_return) override { 67 return _impl->getUuid(_aidl_return); 68 } getName(std::string * _aidl_return)69 ::ndk::ScopedAStatus getName(std::string* _aidl_return) override { 70 return _impl->getName(_aidl_return); 71 } 72 protected: 73 private: 74 std::shared_ptr<IContextHubCallback> _impl; 75 }; 76 77 } // namespace contexthub 78 } // namespace hardware 79 } // namespace android 80 } // namespace aidl 81