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 #include "aidl/android/net/connectivity/aidl/ConnectivityNative.h"
10 
11 #include <android/binder_parcel_utils.h>
12 #include <aidl/android/net/connectivity/aidl/BnConnectivityNative.h>
13 #include <aidl/android/net/connectivity/aidl/BpConnectivityNative.h>
14 
15 namespace aidl {
16 namespace android {
17 namespace net {
18 namespace connectivity {
19 namespace aidl {
_aidl_android_net_connectivity_aidl_ConnectivityNative_onTransact(AIBinder * _aidl_binder,transaction_code_t _aidl_code,const AParcel * _aidl_in,AParcel * _aidl_out)20 static binder_status_t _aidl_android_net_connectivity_aidl_ConnectivityNative_onTransact(AIBinder* _aidl_binder, transaction_code_t _aidl_code, const AParcel* _aidl_in, AParcel* _aidl_out) {
21   (void)_aidl_in;
22   (void)_aidl_out;
23   binder_status_t _aidl_ret_status = STATUS_UNKNOWN_TRANSACTION;
24   std::shared_ptr<BnConnectivityNative> _aidl_impl = std::static_pointer_cast<BnConnectivityNative>(::ndk::ICInterface::asInterface(_aidl_binder));
25   switch (_aidl_code) {
26     case (FIRST_CALL_TRANSACTION + 0 /*blockPortForBind*/): {
27       int32_t in_port;
28 
29       _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_port);
30       if (_aidl_ret_status != STATUS_OK) break;
31 
32       ::ndk::ScopedAStatus _aidl_status = _aidl_impl->blockPortForBind(in_port);
33       _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get());
34       if (_aidl_ret_status != STATUS_OK) break;
35 
36       if (!AStatus_isOk(_aidl_status.get())) break;
37 
38       break;
39     }
40     case (FIRST_CALL_TRANSACTION + 1 /*unblockPortForBind*/): {
41       int32_t in_port;
42 
43       _aidl_ret_status = ::ndk::AParcel_readData(_aidl_in, &in_port);
44       if (_aidl_ret_status != STATUS_OK) break;
45 
46       ::ndk::ScopedAStatus _aidl_status = _aidl_impl->unblockPortForBind(in_port);
47       _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get());
48       if (_aidl_ret_status != STATUS_OK) break;
49 
50       if (!AStatus_isOk(_aidl_status.get())) break;
51 
52       break;
53     }
54     case (FIRST_CALL_TRANSACTION + 2 /*unblockAllPortsForBind*/): {
55 
56       ::ndk::ScopedAStatus _aidl_status = _aidl_impl->unblockAllPortsForBind();
57       _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get());
58       if (_aidl_ret_status != STATUS_OK) break;
59 
60       if (!AStatus_isOk(_aidl_status.get())) break;
61 
62       break;
63     }
64     case (FIRST_CALL_TRANSACTION + 3 /*getPortsBlockedForBind*/): {
65       std::vector<int32_t> _aidl_return;
66 
67       ::ndk::ScopedAStatus _aidl_status = _aidl_impl->getPortsBlockedForBind(&_aidl_return);
68       _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get());
69       if (_aidl_ret_status != STATUS_OK) break;
70 
71       if (!AStatus_isOk(_aidl_status.get())) break;
72 
73       _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_out, _aidl_return);
74       if (_aidl_ret_status != STATUS_OK) break;
75 
76       break;
77     }
78     case (FIRST_CALL_TRANSACTION + 16777214 /*getInterfaceVersion*/): {
79       int32_t _aidl_return;
80 
81       ::ndk::ScopedAStatus _aidl_status = _aidl_impl->getInterfaceVersion(&_aidl_return);
82       _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get());
83       if (_aidl_ret_status != STATUS_OK) break;
84 
85       if (!AStatus_isOk(_aidl_status.get())) break;
86 
87       _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_out, _aidl_return);
88       if (_aidl_ret_status != STATUS_OK) break;
89 
90       break;
91     }
92     case (FIRST_CALL_TRANSACTION + 16777213 /*getInterfaceHash*/): {
93       std::string _aidl_return;
94 
95       ::ndk::ScopedAStatus _aidl_status = _aidl_impl->getInterfaceHash(&_aidl_return);
96       _aidl_ret_status = AParcel_writeStatusHeader(_aidl_out, _aidl_status.get());
97       if (_aidl_ret_status != STATUS_OK) break;
98 
99       if (!AStatus_isOk(_aidl_status.get())) break;
100 
101       _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_out, _aidl_return);
102       if (_aidl_ret_status != STATUS_OK) break;
103 
104       break;
105     }
106   }
107   return _aidl_ret_status;
108 }
109 
110 static const char* _g_aidl_android_net_connectivity_aidl_ConnectivityNative_clazz_code_to_function[] = { "blockPortForBind","unblockPortForBind","unblockAllPortsForBind","getPortsBlockedForBind",};
111 static AIBinder_Class* _g_aidl_android_net_connectivity_aidl_ConnectivityNative_clazz = ::ndk::ICInterface::defineClass(IConnectivityNative::descriptor, _aidl_android_net_connectivity_aidl_ConnectivityNative_onTransact, _g_aidl_android_net_connectivity_aidl_ConnectivityNative_clazz_code_to_function, 4);
112 
BpConnectivityNative(const::ndk::SpAIBinder & binder)113 BpConnectivityNative::BpConnectivityNative(const ::ndk::SpAIBinder& binder) : BpCInterface(binder) {}
~BpConnectivityNative()114 BpConnectivityNative::~BpConnectivityNative() {}
115 
blockPortForBind(int32_t in_port)116 ::ndk::ScopedAStatus BpConnectivityNative::blockPortForBind(int32_t in_port) {
117   binder_status_t _aidl_ret_status = STATUS_OK;
118   ::ndk::ScopedAStatus _aidl_status;
119   ::ndk::ScopedAParcel _aidl_in;
120   ::ndk::ScopedAParcel _aidl_out;
121 
122   _aidl_ret_status = AIBinder_prepareTransaction(asBinderReference().get(), _aidl_in.getR());
123   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
124 
125   _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_port);
126   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
127 
128   _aidl_ret_status = AIBinder_transact(
129     asBinderReference().get(),
130     (FIRST_CALL_TRANSACTION + 0 /*blockPortForBind*/),
131     _aidl_in.getR(),
132     _aidl_out.getR(),
133     0
134     #ifdef BINDER_STABILITY_SUPPORT
135     | static_cast<int>(FLAG_PRIVATE_LOCAL)
136     #endif  // BINDER_STABILITY_SUPPORT
137     );
138   if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IConnectivityNative::getDefaultImpl()) {
139     _aidl_status = IConnectivityNative::getDefaultImpl()->blockPortForBind(in_port);
140     goto _aidl_status_return;
141   }
142   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
143 
144   _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR());
145   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
146 
147   if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return;
148   _aidl_error:
149   _aidl_status.set(AStatus_fromStatus(_aidl_ret_status));
150   _aidl_status_return:
151   return _aidl_status;
152 }
unblockPortForBind(int32_t in_port)153 ::ndk::ScopedAStatus BpConnectivityNative::unblockPortForBind(int32_t in_port) {
154   binder_status_t _aidl_ret_status = STATUS_OK;
155   ::ndk::ScopedAStatus _aidl_status;
156   ::ndk::ScopedAParcel _aidl_in;
157   ::ndk::ScopedAParcel _aidl_out;
158 
159   _aidl_ret_status = AIBinder_prepareTransaction(asBinderReference().get(), _aidl_in.getR());
160   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
161 
162   _aidl_ret_status = ::ndk::AParcel_writeData(_aidl_in.get(), in_port);
163   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
164 
165   _aidl_ret_status = AIBinder_transact(
166     asBinderReference().get(),
167     (FIRST_CALL_TRANSACTION + 1 /*unblockPortForBind*/),
168     _aidl_in.getR(),
169     _aidl_out.getR(),
170     0
171     #ifdef BINDER_STABILITY_SUPPORT
172     | static_cast<int>(FLAG_PRIVATE_LOCAL)
173     #endif  // BINDER_STABILITY_SUPPORT
174     );
175   if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IConnectivityNative::getDefaultImpl()) {
176     _aidl_status = IConnectivityNative::getDefaultImpl()->unblockPortForBind(in_port);
177     goto _aidl_status_return;
178   }
179   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
180 
181   _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR());
182   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
183 
184   if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return;
185   _aidl_error:
186   _aidl_status.set(AStatus_fromStatus(_aidl_ret_status));
187   _aidl_status_return:
188   return _aidl_status;
189 }
unblockAllPortsForBind()190 ::ndk::ScopedAStatus BpConnectivityNative::unblockAllPortsForBind() {
191   binder_status_t _aidl_ret_status = STATUS_OK;
192   ::ndk::ScopedAStatus _aidl_status;
193   ::ndk::ScopedAParcel _aidl_in;
194   ::ndk::ScopedAParcel _aidl_out;
195 
196   _aidl_ret_status = AIBinder_prepareTransaction(asBinderReference().get(), _aidl_in.getR());
197   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
198 
199   _aidl_ret_status = AIBinder_transact(
200     asBinderReference().get(),
201     (FIRST_CALL_TRANSACTION + 2 /*unblockAllPortsForBind*/),
202     _aidl_in.getR(),
203     _aidl_out.getR(),
204     0
205     #ifdef BINDER_STABILITY_SUPPORT
206     | static_cast<int>(FLAG_PRIVATE_LOCAL)
207     #endif  // BINDER_STABILITY_SUPPORT
208     );
209   if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IConnectivityNative::getDefaultImpl()) {
210     _aidl_status = IConnectivityNative::getDefaultImpl()->unblockAllPortsForBind();
211     goto _aidl_status_return;
212   }
213   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
214 
215   _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR());
216   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
217 
218   if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return;
219   _aidl_error:
220   _aidl_status.set(AStatus_fromStatus(_aidl_ret_status));
221   _aidl_status_return:
222   return _aidl_status;
223 }
getPortsBlockedForBind(std::vector<int32_t> * _aidl_return)224 ::ndk::ScopedAStatus BpConnectivityNative::getPortsBlockedForBind(std::vector<int32_t>* _aidl_return) {
225   binder_status_t _aidl_ret_status = STATUS_OK;
226   ::ndk::ScopedAStatus _aidl_status;
227   ::ndk::ScopedAParcel _aidl_in;
228   ::ndk::ScopedAParcel _aidl_out;
229 
230   _aidl_ret_status = AIBinder_prepareTransaction(asBinderReference().get(), _aidl_in.getR());
231   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
232 
233   _aidl_ret_status = AIBinder_transact(
234     asBinderReference().get(),
235     (FIRST_CALL_TRANSACTION + 3 /*getPortsBlockedForBind*/),
236     _aidl_in.getR(),
237     _aidl_out.getR(),
238     0
239     #ifdef BINDER_STABILITY_SUPPORT
240     | static_cast<int>(FLAG_PRIVATE_LOCAL)
241     #endif  // BINDER_STABILITY_SUPPORT
242     );
243   if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IConnectivityNative::getDefaultImpl()) {
244     _aidl_status = IConnectivityNative::getDefaultImpl()->getPortsBlockedForBind(_aidl_return);
245     goto _aidl_status_return;
246   }
247   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
248 
249   _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR());
250   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
251 
252   if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return;
253   _aidl_ret_status = ::ndk::AParcel_readData(_aidl_out.get(), _aidl_return);
254   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
255 
256   _aidl_error:
257   _aidl_status.set(AStatus_fromStatus(_aidl_ret_status));
258   _aidl_status_return:
259   return _aidl_status;
260 }
getInterfaceVersion(int32_t * _aidl_return)261 ::ndk::ScopedAStatus BpConnectivityNative::getInterfaceVersion(int32_t* _aidl_return) {
262   binder_status_t _aidl_ret_status = STATUS_OK;
263   ::ndk::ScopedAStatus _aidl_status;
264   if (_aidl_cached_version != -1) {
265     *_aidl_return = _aidl_cached_version;
266     _aidl_status.set(AStatus_fromStatus(_aidl_ret_status));
267     return _aidl_status;
268   }
269   ::ndk::ScopedAParcel _aidl_in;
270   ::ndk::ScopedAParcel _aidl_out;
271 
272   _aidl_ret_status = AIBinder_prepareTransaction(asBinderReference().get(), _aidl_in.getR());
273   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
274 
275   _aidl_ret_status = AIBinder_transact(
276     asBinderReference().get(),
277     (FIRST_CALL_TRANSACTION + 16777214 /*getInterfaceVersion*/),
278     _aidl_in.getR(),
279     _aidl_out.getR(),
280     0
281     #ifdef BINDER_STABILITY_SUPPORT
282     | static_cast<int>(FLAG_PRIVATE_LOCAL)
283     #endif  // BINDER_STABILITY_SUPPORT
284     );
285   if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IConnectivityNative::getDefaultImpl()) {
286     _aidl_status = IConnectivityNative::getDefaultImpl()->getInterfaceVersion(_aidl_return);
287     goto _aidl_status_return;
288   }
289   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
290 
291   _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR());
292   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
293 
294   if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return;
295   _aidl_ret_status = ::ndk::AParcel_readData(_aidl_out.get(), _aidl_return);
296   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
297 
298   _aidl_cached_version = *_aidl_return;
299   _aidl_error:
300   _aidl_status.set(AStatus_fromStatus(_aidl_ret_status));
301   _aidl_status_return:
302   return _aidl_status;
303 }
getInterfaceHash(std::string * _aidl_return)304 ::ndk::ScopedAStatus BpConnectivityNative::getInterfaceHash(std::string* _aidl_return) {
305   binder_status_t _aidl_ret_status = STATUS_OK;
306   ::ndk::ScopedAStatus _aidl_status;
307   const std::lock_guard<std::mutex> lock(_aidl_cached_hash_mutex);
308   if (_aidl_cached_hash != "-1") {
309     *_aidl_return = _aidl_cached_hash;
310     _aidl_status.set(AStatus_fromStatus(_aidl_ret_status));
311     return _aidl_status;
312   }
313   ::ndk::ScopedAParcel _aidl_in;
314   ::ndk::ScopedAParcel _aidl_out;
315 
316   _aidl_ret_status = AIBinder_prepareTransaction(asBinderReference().get(), _aidl_in.getR());
317   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
318 
319   _aidl_ret_status = AIBinder_transact(
320     asBinderReference().get(),
321     (FIRST_CALL_TRANSACTION + 16777213 /*getInterfaceHash*/),
322     _aidl_in.getR(),
323     _aidl_out.getR(),
324     0
325     #ifdef BINDER_STABILITY_SUPPORT
326     | static_cast<int>(FLAG_PRIVATE_LOCAL)
327     #endif  // BINDER_STABILITY_SUPPORT
328     );
329   if (_aidl_ret_status == STATUS_UNKNOWN_TRANSACTION && IConnectivityNative::getDefaultImpl()) {
330     _aidl_status = IConnectivityNative::getDefaultImpl()->getInterfaceHash(_aidl_return);
331     goto _aidl_status_return;
332   }
333   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
334 
335   _aidl_ret_status = AParcel_readStatusHeader(_aidl_out.get(), _aidl_status.getR());
336   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
337 
338   if (!AStatus_isOk(_aidl_status.get())) goto _aidl_status_return;
339   _aidl_ret_status = ::ndk::AParcel_readData(_aidl_out.get(), _aidl_return);
340   if (_aidl_ret_status != STATUS_OK) goto _aidl_error;
341 
342   _aidl_cached_hash = *_aidl_return;
343   _aidl_error:
344   _aidl_status.set(AStatus_fromStatus(_aidl_ret_status));
345   _aidl_status_return:
346   return _aidl_status;
347 }
348 // Source for BnConnectivityNative
BnConnectivityNative()349 BnConnectivityNative::BnConnectivityNative() {}
~BnConnectivityNative()350 BnConnectivityNative::~BnConnectivityNative() {}
createBinder()351 ::ndk::SpAIBinder BnConnectivityNative::createBinder() {
352   AIBinder* binder = AIBinder_new(_g_aidl_android_net_connectivity_aidl_ConnectivityNative_clazz, static_cast<void*>(this));
353   #ifdef BINDER_STABILITY_SUPPORT
354   AIBinder_markCompilationUnitStability(binder);
355   #endif  // BINDER_STABILITY_SUPPORT
356   return ::ndk::SpAIBinder(binder);
357 }
getInterfaceVersion(int32_t * _aidl_return)358 ::ndk::ScopedAStatus BnConnectivityNative::getInterfaceVersion(int32_t* _aidl_return) {
359   *_aidl_return = IConnectivityNative::version;
360   return ::ndk::ScopedAStatus(AStatus_newOk());
361 }
getInterfaceHash(std::string * _aidl_return)362 ::ndk::ScopedAStatus BnConnectivityNative::getInterfaceHash(std::string* _aidl_return) {
363   *_aidl_return = IConnectivityNative::hash;
364   return ::ndk::ScopedAStatus(AStatus_newOk());
365 }
366 // Source for IConnectivityNative
367 const char* IConnectivityNative::descriptor = "android.net.connectivity.aidl.ConnectivityNative";
IConnectivityNative()368 IConnectivityNative::IConnectivityNative() {}
~IConnectivityNative()369 IConnectivityNative::~IConnectivityNative() {}
370 
371 
fromBinder(const::ndk::SpAIBinder & binder)372 std::shared_ptr<IConnectivityNative> IConnectivityNative::fromBinder(const ::ndk::SpAIBinder& binder) {
373   if (!AIBinder_associateClass(binder.get(), _g_aidl_android_net_connectivity_aidl_ConnectivityNative_clazz)) {
374     #if __ANDROID_API__ >= 31
375     const AIBinder_Class* originalClass = AIBinder_getClass(binder.get());
376     if (originalClass == nullptr) return nullptr;
377     if (0 == strcmp(AIBinder_Class_getDescriptor(originalClass), descriptor)) {
378       return ::ndk::SharedRefBase::make<BpConnectivityNative>(binder);
379     }
380     #endif
381     return nullptr;
382   }
383   std::shared_ptr<::ndk::ICInterface> interface = ::ndk::ICInterface::asInterface(binder.get());
384   if (interface) {
385     return std::static_pointer_cast<IConnectivityNative>(interface);
386   }
387   return ::ndk::SharedRefBase::make<BpConnectivityNative>(binder);
388 }
389 
writeToParcel(AParcel * parcel,const std::shared_ptr<IConnectivityNative> & instance)390 binder_status_t IConnectivityNative::writeToParcel(AParcel* parcel, const std::shared_ptr<IConnectivityNative>& instance) {
391   return AParcel_writeStrongBinder(parcel, instance ? instance->asBinder().get() : nullptr);
392 }
readFromParcel(const AParcel * parcel,std::shared_ptr<IConnectivityNative> * instance)393 binder_status_t IConnectivityNative::readFromParcel(const AParcel* parcel, std::shared_ptr<IConnectivityNative>* instance) {
394   ::ndk::SpAIBinder binder;
395   binder_status_t status = AParcel_readStrongBinder(parcel, binder.getR());
396   if (status != STATUS_OK) return status;
397   *instance = IConnectivityNative::fromBinder(binder);
398   return STATUS_OK;
399 }
setDefaultImpl(const std::shared_ptr<IConnectivityNative> & impl)400 bool IConnectivityNative::setDefaultImpl(const std::shared_ptr<IConnectivityNative>& impl) {
401   // Only one user of this interface can use this function
402   // at a time. This is a heuristic to detect if two different
403   // users in the same process use this function.
404   assert(!IConnectivityNative::default_impl);
405   if (impl) {
406     IConnectivityNative::default_impl = impl;
407     return true;
408   }
409   return false;
410 }
getDefaultImpl()411 const std::shared_ptr<IConnectivityNative>& IConnectivityNative::getDefaultImpl() {
412   return IConnectivityNative::default_impl;
413 }
414 std::shared_ptr<IConnectivityNative> IConnectivityNative::default_impl = nullptr;
blockPortForBind(int32_t)415 ::ndk::ScopedAStatus IConnectivityNativeDefault::blockPortForBind(int32_t /*in_port*/) {
416   ::ndk::ScopedAStatus _aidl_status;
417   _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
418   return _aidl_status;
419 }
unblockPortForBind(int32_t)420 ::ndk::ScopedAStatus IConnectivityNativeDefault::unblockPortForBind(int32_t /*in_port*/) {
421   ::ndk::ScopedAStatus _aidl_status;
422   _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
423   return _aidl_status;
424 }
unblockAllPortsForBind()425 ::ndk::ScopedAStatus IConnectivityNativeDefault::unblockAllPortsForBind() {
426   ::ndk::ScopedAStatus _aidl_status;
427   _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
428   return _aidl_status;
429 }
getPortsBlockedForBind(std::vector<int32_t> *)430 ::ndk::ScopedAStatus IConnectivityNativeDefault::getPortsBlockedForBind(std::vector<int32_t>* /*_aidl_return*/) {
431   ::ndk::ScopedAStatus _aidl_status;
432   _aidl_status.set(AStatus_fromStatus(STATUS_UNKNOWN_TRANSACTION));
433   return _aidl_status;
434 }
getInterfaceVersion(int32_t * _aidl_return)435 ::ndk::ScopedAStatus IConnectivityNativeDefault::getInterfaceVersion(int32_t* _aidl_return) {
436   *_aidl_return = 0;
437   return ::ndk::ScopedAStatus(AStatus_newOk());
438 }
getInterfaceHash(std::string * _aidl_return)439 ::ndk::ScopedAStatus IConnectivityNativeDefault::getInterfaceHash(std::string* _aidl_return) {
440   *_aidl_return = "";
441   return ::ndk::ScopedAStatus(AStatus_newOk());
442 }
asBinder()443 ::ndk::SpAIBinder IConnectivityNativeDefault::asBinder() {
444   return ::ndk::SpAIBinder();
445 }
isRemote()446 bool IConnectivityNativeDefault::isRemote() {
447   return false;
448 }
449 }  // namespace aidl
450 }  // namespace connectivity
451 }  // namespace net
452 }  // namespace android
453 }  // namespace aidl
454