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/IApInterfaceEventCallback.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/IApInterfaceEventCallback.aidl out/soong/.temp/sbox/a8f9401e4a6a0738b82469769f9c394354986721/out out/soong/.temp/sbox/a8f9401e4a6a0738b82469769f9c394354986721/out/android/net/wifi/nl80211/IApInterfaceEventCallback.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 #include <android/net/wifi/nl80211/IApInterfaceEventCallback.h>
10 #include <android/net/wifi/nl80211/BpApInterfaceEventCallback.h>
11 namespace android {
12 namespace net {
13 namespace wifi {
14 namespace nl80211 {
15 DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(ApInterfaceEventCallback, "android.net.wifi.nl80211.IApInterfaceEventCallback")
16 }  // namespace nl80211
17 }  // namespace wifi
18 }  // namespace net
19 }  // namespace android
20 #include <android/net/wifi/nl80211/BpApInterfaceEventCallback.h>
21 #include <android/net/wifi/nl80211/BnApInterfaceEventCallback.h>
22 #include <binder/Parcel.h>
23 
24 namespace android {
25 namespace net {
26 namespace wifi {
27 namespace nl80211 {
28 
BpApInterfaceEventCallback(const::android::sp<::android::IBinder> & _aidl_impl)29 BpApInterfaceEventCallback::BpApInterfaceEventCallback(const ::android::sp<::android::IBinder>& _aidl_impl)
30     : BpInterface<IApInterfaceEventCallback>(_aidl_impl){
31 }
32 
onConnectedClientsChanged(const::android::net::wifi::nl80211::NativeWifiClient & client,bool isConnected)33 ::android::binder::Status BpApInterfaceEventCallback::onConnectedClientsChanged(const ::android::net::wifi::nl80211::NativeWifiClient& client, bool isConnected) {
34   ::android::Parcel _aidl_data;
35   _aidl_data.markForBinder(remoteStrong());
36   ::android::Parcel _aidl_reply;
37   ::android::status_t _aidl_ret_status = ::android::OK;
38   ::android::binder::Status _aidl_status;
39   ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IApInterfaceEventCallback::onConnectedClientsChanged::cppClient");
40   _aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor());
41   if (((_aidl_ret_status) != (::android::OK))) {
42     goto _aidl_error;
43   }
44   _aidl_ret_status = _aidl_data.writeParcelable(client);
45   if (((_aidl_ret_status) != (::android::OK))) {
46     goto _aidl_error;
47   }
48   _aidl_ret_status = _aidl_data.writeBool(isConnected);
49   if (((_aidl_ret_status) != (::android::OK))) {
50     goto _aidl_error;
51   }
52   _aidl_ret_status = remote()->transact(BnApInterfaceEventCallback::TRANSACTION_onConnectedClientsChanged, _aidl_data, &_aidl_reply, ::android::IBinder::FLAG_ONEWAY);
53   if (_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IApInterfaceEventCallback::getDefaultImpl()) [[unlikely]] {
54      return IApInterfaceEventCallback::getDefaultImpl()->onConnectedClientsChanged(client, isConnected);
55   }
56   if (((_aidl_ret_status) != (::android::OK))) {
57     goto _aidl_error;
58   }
59   _aidl_error:
60   _aidl_status.setFromStatusT(_aidl_ret_status);
61   return _aidl_status;
62 }
63 
onSoftApChannelSwitched(int32_t frequency,int32_t bandwidth)64 ::android::binder::Status BpApInterfaceEventCallback::onSoftApChannelSwitched(int32_t frequency, int32_t bandwidth) {
65   ::android::Parcel _aidl_data;
66   _aidl_data.markForBinder(remoteStrong());
67   ::android::Parcel _aidl_reply;
68   ::android::status_t _aidl_ret_status = ::android::OK;
69   ::android::binder::Status _aidl_status;
70   ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IApInterfaceEventCallback::onSoftApChannelSwitched::cppClient");
71   _aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor());
72   if (((_aidl_ret_status) != (::android::OK))) {
73     goto _aidl_error;
74   }
75   _aidl_ret_status = _aidl_data.writeInt32(frequency);
76   if (((_aidl_ret_status) != (::android::OK))) {
77     goto _aidl_error;
78   }
79   _aidl_ret_status = _aidl_data.writeInt32(bandwidth);
80   if (((_aidl_ret_status) != (::android::OK))) {
81     goto _aidl_error;
82   }
83   _aidl_ret_status = remote()->transact(BnApInterfaceEventCallback::TRANSACTION_onSoftApChannelSwitched, _aidl_data, &_aidl_reply, ::android::IBinder::FLAG_ONEWAY);
84   if (_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IApInterfaceEventCallback::getDefaultImpl()) [[unlikely]] {
85      return IApInterfaceEventCallback::getDefaultImpl()->onSoftApChannelSwitched(frequency, bandwidth);
86   }
87   if (((_aidl_ret_status) != (::android::OK))) {
88     goto _aidl_error;
89   }
90   _aidl_error:
91   _aidl_status.setFromStatusT(_aidl_ret_status);
92   return _aidl_status;
93 }
94 
95 }  // namespace nl80211
96 }  // namespace wifi
97 }  // namespace net
98 }  // namespace android
99 #include <android/net/wifi/nl80211/BnApInterfaceEventCallback.h>
100 #include <binder/Parcel.h>
101 #include <binder/Stability.h>
102 
103 namespace android {
104 namespace net {
105 namespace wifi {
106 namespace nl80211 {
107 
BnApInterfaceEventCallback()108 BnApInterfaceEventCallback::BnApInterfaceEventCallback()
109 {
110   ::android::internal::Stability::markCompilationUnit(this);
111 }
112 
onTransact(uint32_t _aidl_code,const::android::Parcel & _aidl_data,::android::Parcel * _aidl_reply,uint32_t _aidl_flags)113 ::android::status_t BnApInterfaceEventCallback::onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) {
114   ::android::status_t _aidl_ret_status = ::android::OK;
115   switch (_aidl_code) {
116   case BnApInterfaceEventCallback::TRANSACTION_onConnectedClientsChanged:
117   {
118     ::android::net::wifi::nl80211::NativeWifiClient in_client;
119     bool in_isConnected;
120     if (!(_aidl_data.checkInterface(this))) {
121       _aidl_ret_status = ::android::BAD_TYPE;
122       break;
123     }
124     ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IApInterfaceEventCallback::onConnectedClientsChanged::cppServer");
125     _aidl_ret_status = _aidl_data.readParcelable(&in_client);
126     if (((_aidl_ret_status) != (::android::OK))) {
127       break;
128     }
129     _aidl_ret_status = _aidl_data.readBool(&in_isConnected);
130     if (((_aidl_ret_status) != (::android::OK))) {
131       break;
132     }
133     if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) {
134       _aidl_ret_status = st.writeToParcel(_aidl_reply);
135       break;
136     }
137     ::android::binder::Status _aidl_status(onConnectedClientsChanged(in_client, in_isConnected));
138   }
139   break;
140   case BnApInterfaceEventCallback::TRANSACTION_onSoftApChannelSwitched:
141   {
142     int32_t in_frequency;
143     int32_t in_bandwidth;
144     if (!(_aidl_data.checkInterface(this))) {
145       _aidl_ret_status = ::android::BAD_TYPE;
146       break;
147     }
148     ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IApInterfaceEventCallback::onSoftApChannelSwitched::cppServer");
149     _aidl_ret_status = _aidl_data.readInt32(&in_frequency);
150     if (((_aidl_ret_status) != (::android::OK))) {
151       break;
152     }
153     _aidl_ret_status = _aidl_data.readInt32(&in_bandwidth);
154     if (((_aidl_ret_status) != (::android::OK))) {
155       break;
156     }
157     if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) {
158       _aidl_ret_status = st.writeToParcel(_aidl_reply);
159       break;
160     }
161     ::android::binder::Status _aidl_status(onSoftApChannelSwitched(in_frequency, in_bandwidth));
162   }
163   break;
164   default:
165   {
166     _aidl_ret_status = ::android::BBinder::onTransact(_aidl_code, _aidl_data, _aidl_reply, _aidl_flags);
167   }
168   break;
169   }
170   if (_aidl_ret_status == ::android::UNEXPECTED_NULL) {
171     _aidl_ret_status = ::android::binder::Status::fromExceptionCode(::android::binder::Status::EX_NULL_POINTER).writeOverParcel(_aidl_reply);
172   }
173   return _aidl_ret_status;
174 }
175 
176 }  // namespace nl80211
177 }  // namespace wifi
178 }  // namespace net
179 }  // namespace android
180