1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl-cpp -dout/soong/.temp/sbox/a8f9401e4a6a0738b82469769f9c394354986721/out/android/net/wifi/nl80211/IInterfaceEventCallback.cpp.d --ninja -Isystem/connectivity/wificond/aidl -t --min_sdk_version=platform_apis -Isystem/connectivity/wificond/aidl/ system/connectivity/wificond/aidl/android/net/wifi/nl80211/IInterfaceEventCallback.aidl out/soong/.temp/sbox/a8f9401e4a6a0738b82469769f9c394354986721/out out/soong/.temp/sbox/a8f9401e4a6a0738b82469769f9c394354986721/out/android/net/wifi/nl80211/IInterfaceEventCallback.cpp
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 <binder/IInterface.h>
12 #include <android/net/wifi/nl80211/IInterfaceEventCallback.h>
13 #include <android/net/wifi/nl80211/BnApInterface.h>
14 #include <android/net/wifi/nl80211/BnClientInterface.h>
15 #include <android/net/wifi/nl80211/BnInterfaceEventCallback.h>
16 #include <binder/Delegate.h>
17 
18 
19 namespace android {
20 namespace net {
21 namespace wifi {
22 namespace nl80211 {
23 class LIBBINDER_EXPORTED BnInterfaceEventCallback : public ::android::BnInterface<IInterfaceEventCallback> {
24 public:
25   static constexpr uint32_t TRANSACTION_OnClientInterfaceReady = ::android::IBinder::FIRST_CALL_TRANSACTION + 0;
26   static constexpr uint32_t TRANSACTION_OnApInterfaceReady = ::android::IBinder::FIRST_CALL_TRANSACTION + 1;
27   static constexpr uint32_t TRANSACTION_OnClientTorndownEvent = ::android::IBinder::FIRST_CALL_TRANSACTION + 2;
28   static constexpr uint32_t TRANSACTION_OnApTorndownEvent = ::android::IBinder::FIRST_CALL_TRANSACTION + 3;
29   explicit BnInterfaceEventCallback();
30   ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override;
31 };  // class BnInterfaceEventCallback
32 
33 class LIBBINDER_EXPORTED IInterfaceEventCallbackDelegator : public BnInterfaceEventCallback {
34 public:
IInterfaceEventCallbackDelegator(const::android::sp<IInterfaceEventCallback> & impl)35   explicit IInterfaceEventCallbackDelegator(const ::android::sp<IInterfaceEventCallback> &impl) : _aidl_delegate(impl) {}
36 
getImpl()37   ::android::sp<IInterfaceEventCallback> getImpl() { return _aidl_delegate; }
OnClientInterfaceReady(const::android::sp<::android::net::wifi::nl80211::IClientInterface> & network_interface)38   ::android::binder::Status OnClientInterfaceReady(const ::android::sp<::android::net::wifi::nl80211::IClientInterface>& network_interface) override {
39     ::android::sp<::android::net::wifi::nl80211::IClientInterfaceDelegator> _network_interface;
40     if (network_interface) {
41       _network_interface = ::android::sp<::android::net::wifi::nl80211::IClientInterfaceDelegator>::cast(delegate(network_interface));
42     }
43     return _aidl_delegate->OnClientInterfaceReady(_network_interface);
44   }
OnApInterfaceReady(const::android::sp<::android::net::wifi::nl80211::IApInterface> & network_interface)45   ::android::binder::Status OnApInterfaceReady(const ::android::sp<::android::net::wifi::nl80211::IApInterface>& network_interface) override {
46     ::android::sp<::android::net::wifi::nl80211::IApInterfaceDelegator> _network_interface;
47     if (network_interface) {
48       _network_interface = ::android::sp<::android::net::wifi::nl80211::IApInterfaceDelegator>::cast(delegate(network_interface));
49     }
50     return _aidl_delegate->OnApInterfaceReady(_network_interface);
51   }
OnClientTorndownEvent(const::android::sp<::android::net::wifi::nl80211::IClientInterface> & network_interface)52   ::android::binder::Status OnClientTorndownEvent(const ::android::sp<::android::net::wifi::nl80211::IClientInterface>& network_interface) override {
53     ::android::sp<::android::net::wifi::nl80211::IClientInterfaceDelegator> _network_interface;
54     if (network_interface) {
55       _network_interface = ::android::sp<::android::net::wifi::nl80211::IClientInterfaceDelegator>::cast(delegate(network_interface));
56     }
57     return _aidl_delegate->OnClientTorndownEvent(_network_interface);
58   }
OnApTorndownEvent(const::android::sp<::android::net::wifi::nl80211::IApInterface> & network_interface)59   ::android::binder::Status OnApTorndownEvent(const ::android::sp<::android::net::wifi::nl80211::IApInterface>& network_interface) override {
60     ::android::sp<::android::net::wifi::nl80211::IApInterfaceDelegator> _network_interface;
61     if (network_interface) {
62       _network_interface = ::android::sp<::android::net::wifi::nl80211::IApInterfaceDelegator>::cast(delegate(network_interface));
63     }
64     return _aidl_delegate->OnApTorndownEvent(_network_interface);
65   }
66 private:
67   ::android::sp<IInterfaceEventCallback> _aidl_delegate;
68 };  // class IInterfaceEventCallbackDelegator
69 }  // namespace nl80211
70 }  // namespace wifi
71 }  // namespace net
72 }  // namespace android
73