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/IOtOutputReceiver.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/IOtOutputReceiver.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 IOtOutputReceiverDelegator;
28 
29 class IOtOutputReceiver : public ::ndk::ICInterface {
30 public:
31   typedef IOtOutputReceiverDelegator DefaultDelegator;
32   static const char* descriptor;
33   IOtOutputReceiver();
34   virtual ~IOtOutputReceiver();
35 
36   static constexpr uint32_t TRANSACTION_onOutput = FIRST_CALL_TRANSACTION + 0;
37   static constexpr uint32_t TRANSACTION_onComplete = FIRST_CALL_TRANSACTION + 1;
38   static constexpr uint32_t TRANSACTION_onError = FIRST_CALL_TRANSACTION + 2;
39 
40   static std::shared_ptr<IOtOutputReceiver> fromBinder(const ::ndk::SpAIBinder& binder);
41   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IOtOutputReceiver>& instance);
42   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IOtOutputReceiver>* instance);
43   static bool setDefaultImpl(const std::shared_ptr<IOtOutputReceiver>& impl);
44   static const std::shared_ptr<IOtOutputReceiver>& getDefaultImpl();
45   virtual ::ndk::ScopedAStatus onOutput(const std::string& in_output) = 0;
46   virtual ::ndk::ScopedAStatus onComplete() = 0;
47   virtual ::ndk::ScopedAStatus onError(int32_t in_errorCode, const std::string& in_errorMessage) = 0;
48 private:
49   static std::shared_ptr<IOtOutputReceiver> default_impl;
50 };
51 class IOtOutputReceiverDefault : public IOtOutputReceiver {
52 public:
53   ::ndk::ScopedAStatus onOutput(const std::string& in_output) override;
54   ::ndk::ScopedAStatus onComplete() override;
55   ::ndk::ScopedAStatus onError(int32_t in_errorCode, const std::string& in_errorMessage) override;
56   ::ndk::SpAIBinder asBinder() override;
57   bool isRemote() override;
58 };
59 }  // namespace openthread
60 }  // namespace thread
61 }  // namespace server
62 }  // namespace android
63 }  // namespace com
64 }  // namespace aidl
65