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