1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation -t --min_sdk_version 30 --ninja -d out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging/com/android/server/thread/openthread/IOtStatusReceiver.cpp.d -h out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging -Nexternal/ot-br-posix/src/android/aidl -Npackages/modules/Connectivity/thread/framework/java external/ot-br-posix/src/android/aidl/com/android/server/thread/openthread/IOtStatusReceiver.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 #pragma once
10 
11 #include <cstdint>
12 #include <memory>
13 #include <optional>
14 #include <string>
15 #include <vector>
16 #include <android/binder_interface_utils.h>
17 #ifdef BINDER_STABILITY_SUPPORT
18 #include <android/binder_stability.h>
19 #endif  // BINDER_STABILITY_SUPPORT
20 
21 namespace aidl {
22 namespace com {
23 namespace android {
24 namespace server {
25 namespace thread {
26 namespace openthread {
27 class IOtStatusReceiverDelegator;
28 
29 class IOtStatusReceiver : public ::ndk::ICInterface {
30 public:
31   typedef IOtStatusReceiverDelegator DefaultDelegator;
32   static const char* descriptor;
33   IOtStatusReceiver();
34   virtual ~IOtStatusReceiver();
35 
36   static constexpr uint32_t TRANSACTION_onSuccess = FIRST_CALL_TRANSACTION + 0;
37   static constexpr uint32_t TRANSACTION_onError = FIRST_CALL_TRANSACTION + 1;
38 
39   static std::shared_ptr<IOtStatusReceiver> fromBinder(const ::ndk::SpAIBinder& binder);
40   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IOtStatusReceiver>& instance);
41   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IOtStatusReceiver>* instance);
42   static bool setDefaultImpl(const std::shared_ptr<IOtStatusReceiver>& impl);
43   static const std::shared_ptr<IOtStatusReceiver>& getDefaultImpl();
44   virtual ::ndk::ScopedAStatus onSuccess() = 0;
45   virtual ::ndk::ScopedAStatus onError(int32_t in_errorCode, const std::string& in_errorMessage) = 0;
46 private:
47   static std::shared_ptr<IOtStatusReceiver> default_impl;
48 };
49 class IOtStatusReceiverDefault : public IOtStatusReceiver {
50 public:
51   ::ndk::ScopedAStatus onSuccess() override;
52   ::ndk::ScopedAStatus onError(int32_t in_errorCode, const std::string& in_errorMessage) override;
53   ::ndk::SpAIBinder asBinder() override;
54   bool isRemote() override;
55 };
56 }  // namespace openthread
57 }  // namespace thread
58 }  // namespace server
59 }  // namespace android
60 }  // namespace com
61 }  // namespace aidl
62