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 -t --min_sdk_version 30 --ninja -d out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging/com/android/server/thread/openthread/INsdStatusReceiver.cpp.d -h out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging -Nexternal/ot-br-posix/src/android/aidl -Npackages/modules/Connectivity/thread/framework/java external/ot-br-posix/src/android/aidl/com/android/server/thread/openthread/INsdStatusReceiver.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/com/android/server/thread/openthread/INsdStatusReceiver.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 com { 24 namespace android { 25 namespace server { 26 namespace thread { 27 namespace openthread { 28 class BnNsdStatusReceiver : public ::ndk::BnCInterface<INsdStatusReceiver> { 29 public: 30 BnNsdStatusReceiver(); 31 virtual ~BnNsdStatusReceiver(); 32 protected: 33 ::ndk::SpAIBinder createBinder() override; 34 private: 35 }; 36 class INsdStatusReceiverDelegator : public BnNsdStatusReceiver { 37 public: INsdStatusReceiverDelegator(const std::shared_ptr<INsdStatusReceiver> & impl)38 explicit INsdStatusReceiverDelegator(const std::shared_ptr<INsdStatusReceiver> &impl) : _impl(impl) { 39 } 40 onSuccess()41 ::ndk::ScopedAStatus onSuccess() override { 42 return _impl->onSuccess(); 43 } onError(int32_t in_errorCode)44 ::ndk::ScopedAStatus onError(int32_t in_errorCode) override { 45 return _impl->onError(in_errorCode); 46 } 47 protected: 48 private: 49 std::shared_ptr<INsdStatusReceiver> _impl; 50 }; 51 52 } // namespace openthread 53 } // namespace thread 54 } // namespace server 55 } // namespace android 56 } // namespace com 57 } // namespace aidl 58