1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash 037b467eb02b172a3161e11bbc3dd691aebb5fce -t --min_sdk_version 30 --ninja -d out/soong/.intermediates/packages/modules/Connectivity/service/connectivity_native_aidl_interface-V1-ndk-source/gen/staging/android/net/connectivity/aidl/ConnectivityNative.cpp.d -h out/soong/.intermediates/packages/modules/Connectivity/service/connectivity_native_aidl_interface-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/packages/modules/Connectivity/service/connectivity_native_aidl_interface-V1-ndk-source/gen/staging -Npackages/modules/Connectivity/service/aidl_api/connectivity_native_aidl_interface/1 packages/modules/Connectivity/service/aidl_api/connectivity_native_aidl_interface/1/android/net/connectivity/aidl/ConnectivityNative.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/net/connectivity/aidl/ConnectivityNative.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 net {
25 namespace connectivity {
26 namespace aidl {
27 class BnConnectivityNative : public ::ndk::BnCInterface<IConnectivityNative> {
28 public:
29   BnConnectivityNative();
30   virtual ~BnConnectivityNative();
31   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final;
32   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final;
33 protected:
34   ::ndk::SpAIBinder createBinder() override;
35 private:
36 };
37 class IConnectivityNativeDelegator : public BnConnectivityNative {
38 public:
IConnectivityNativeDelegator(const std::shared_ptr<IConnectivityNative> & impl)39   explicit IConnectivityNativeDelegator(const std::shared_ptr<IConnectivityNative> &impl) : _impl(impl) {
40      int32_t _impl_ver = 0;
41      if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {;
42         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation.");
43      }
44      if (_impl_ver != IConnectivityNative::version) {
45         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
46      }
47   }
48 
blockPortForBind(int32_t in_port)49   ::ndk::ScopedAStatus blockPortForBind(int32_t in_port) override {
50     return _impl->blockPortForBind(in_port);
51   }
unblockPortForBind(int32_t in_port)52   ::ndk::ScopedAStatus unblockPortForBind(int32_t in_port) override {
53     return _impl->unblockPortForBind(in_port);
54   }
unblockAllPortsForBind()55   ::ndk::ScopedAStatus unblockAllPortsForBind() override {
56     return _impl->unblockAllPortsForBind();
57   }
getPortsBlockedForBind(std::vector<int32_t> * _aidl_return)58   ::ndk::ScopedAStatus getPortsBlockedForBind(std::vector<int32_t>* _aidl_return) override {
59     return _impl->getPortsBlockedForBind(_aidl_return);
60   }
61 protected:
62 private:
63   std::shared_ptr<IConnectivityNative> _impl;
64 };
65 
66 }  // namespace aidl
67 }  // namespace connectivity
68 }  // namespace net
69 }  // namespace android
70 }  // namespace aidl
71