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/IPnoScanEvent.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/IPnoScanEvent.aidl out/soong/.temp/sbox/a8f9401e4a6a0738b82469769f9c394354986721/out out/soong/.temp/sbox/a8f9401e4a6a0738b82469769f9c394354986721/out/android/net/wifi/nl80211/IPnoScanEvent.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/IPnoScanEvent.h>
10 #include <android/net/wifi/nl80211/BpPnoScanEvent.h>
11 namespace android {
12 namespace net {
13 namespace wifi {
14 namespace nl80211 {
15 DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(PnoScanEvent, "android.net.wifi.nl80211.IPnoScanEvent")
16 } // namespace nl80211
17 } // namespace wifi
18 } // namespace net
19 } // namespace android
20 #include <android/net/wifi/nl80211/BpPnoScanEvent.h>
21 #include <android/net/wifi/nl80211/BnPnoScanEvent.h>
22 #include <binder/Parcel.h>
23
24 namespace android {
25 namespace net {
26 namespace wifi {
27 namespace nl80211 {
28
BpPnoScanEvent(const::android::sp<::android::IBinder> & _aidl_impl)29 BpPnoScanEvent::BpPnoScanEvent(const ::android::sp<::android::IBinder>& _aidl_impl)
30 : BpInterface<IPnoScanEvent>(_aidl_impl){
31 }
32
OnPnoNetworkFound()33 ::android::binder::Status BpPnoScanEvent::OnPnoNetworkFound() {
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::IPnoScanEvent::OnPnoNetworkFound::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 = remote()->transact(BnPnoScanEvent::TRANSACTION_OnPnoNetworkFound, _aidl_data, &_aidl_reply, ::android::IBinder::FLAG_ONEWAY);
45 if (_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IPnoScanEvent::getDefaultImpl()) [[unlikely]] {
46 return IPnoScanEvent::getDefaultImpl()->OnPnoNetworkFound();
47 }
48 if (((_aidl_ret_status) != (::android::OK))) {
49 goto _aidl_error;
50 }
51 _aidl_error:
52 _aidl_status.setFromStatusT(_aidl_ret_status);
53 return _aidl_status;
54 }
55
OnPnoScanFailed()56 ::android::binder::Status BpPnoScanEvent::OnPnoScanFailed() {
57 ::android::Parcel _aidl_data;
58 _aidl_data.markForBinder(remoteStrong());
59 ::android::Parcel _aidl_reply;
60 ::android::status_t _aidl_ret_status = ::android::OK;
61 ::android::binder::Status _aidl_status;
62 ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IPnoScanEvent::OnPnoScanFailed::cppClient");
63 _aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor());
64 if (((_aidl_ret_status) != (::android::OK))) {
65 goto _aidl_error;
66 }
67 _aidl_ret_status = remote()->transact(BnPnoScanEvent::TRANSACTION_OnPnoScanFailed, _aidl_data, &_aidl_reply, ::android::IBinder::FLAG_ONEWAY);
68 if (_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IPnoScanEvent::getDefaultImpl()) [[unlikely]] {
69 return IPnoScanEvent::getDefaultImpl()->OnPnoScanFailed();
70 }
71 if (((_aidl_ret_status) != (::android::OK))) {
72 goto _aidl_error;
73 }
74 _aidl_error:
75 _aidl_status.setFromStatusT(_aidl_ret_status);
76 return _aidl_status;
77 }
78
79 } // namespace nl80211
80 } // namespace wifi
81 } // namespace net
82 } // namespace android
83 #include <android/net/wifi/nl80211/BnPnoScanEvent.h>
84 #include <binder/Parcel.h>
85 #include <binder/Stability.h>
86
87 namespace android {
88 namespace net {
89 namespace wifi {
90 namespace nl80211 {
91
BnPnoScanEvent()92 BnPnoScanEvent::BnPnoScanEvent()
93 {
94 ::android::internal::Stability::markCompilationUnit(this);
95 }
96
onTransact(uint32_t _aidl_code,const::android::Parcel & _aidl_data,::android::Parcel * _aidl_reply,uint32_t _aidl_flags)97 ::android::status_t BnPnoScanEvent::onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) {
98 ::android::status_t _aidl_ret_status = ::android::OK;
99 switch (_aidl_code) {
100 case BnPnoScanEvent::TRANSACTION_OnPnoNetworkFound:
101 {
102 if (!(_aidl_data.checkInterface(this))) {
103 _aidl_ret_status = ::android::BAD_TYPE;
104 break;
105 }
106 ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IPnoScanEvent::OnPnoNetworkFound::cppServer");
107 ::android::binder::Status _aidl_status(OnPnoNetworkFound());
108 }
109 break;
110 case BnPnoScanEvent::TRANSACTION_OnPnoScanFailed:
111 {
112 if (!(_aidl_data.checkInterface(this))) {
113 _aidl_ret_status = ::android::BAD_TYPE;
114 break;
115 }
116 ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IPnoScanEvent::OnPnoScanFailed::cppServer");
117 ::android::binder::Status _aidl_status(OnPnoScanFailed());
118 }
119 break;
120 default:
121 {
122 _aidl_ret_status = ::android::BBinder::onTransact(_aidl_code, _aidl_data, _aidl_reply, _aidl_flags);
123 }
124 break;
125 }
126 if (_aidl_ret_status == ::android::UNEXPECTED_NULL) {
127 _aidl_ret_status = ::android::binder::Status::fromExceptionCode(::android::binder::Status::EX_NULL_POINTER).writeOverParcel(_aidl_reply);
128 }
129 return _aidl_ret_status;
130 }
131
132 } // namespace nl80211
133 } // namespace wifi
134 } // namespace net
135 } // namespace android
136