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/IOtDaemonCallback.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/IOtDaemonCallback.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 #include <aidl/com/android/server/thread/openthread/BackboneRouterState.h>
18 #include <aidl/com/android/server/thread/openthread/Ipv6AddressInfo.h>
19 #include <aidl/com/android/server/thread/openthread/OnMeshPrefixConfig.h>
20 #include <aidl/com/android/server/thread/openthread/OtDaemonState.h>
21 #ifdef BINDER_STABILITY_SUPPORT
22 #include <android/binder_stability.h>
23 #endif  // BINDER_STABILITY_SUPPORT
24 
25 namespace aidl::com::android::server::thread::openthread {
26 class BackboneRouterState;
27 class Ipv6AddressInfo;
28 class OnMeshPrefixConfig;
29 class OtDaemonState;
30 }  // namespace aidl::com::android::server::thread::openthread
31 namespace aidl {
32 namespace com {
33 namespace android {
34 namespace server {
35 namespace thread {
36 namespace openthread {
37 class IOtDaemonCallbackDelegator;
38 
39 class IOtDaemonCallback : public ::ndk::ICInterface {
40 public:
41   typedef IOtDaemonCallbackDelegator DefaultDelegator;
42   static const char* descriptor;
43   IOtDaemonCallback();
44   virtual ~IOtDaemonCallback();
45 
46   static constexpr uint32_t TRANSACTION_onStateChanged = FIRST_CALL_TRANSACTION + 0;
47   static constexpr uint32_t TRANSACTION_onAddressChanged = FIRST_CALL_TRANSACTION + 1;
48   static constexpr uint32_t TRANSACTION_onBackboneRouterStateChanged = FIRST_CALL_TRANSACTION + 2;
49   static constexpr uint32_t TRANSACTION_onPrefixChanged = FIRST_CALL_TRANSACTION + 3;
50 
51   static std::shared_ptr<IOtDaemonCallback> fromBinder(const ::ndk::SpAIBinder& binder);
52   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IOtDaemonCallback>& instance);
53   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IOtDaemonCallback>* instance);
54   static bool setDefaultImpl(const std::shared_ptr<IOtDaemonCallback>& impl);
55   static const std::shared_ptr<IOtDaemonCallback>& getDefaultImpl();
56   virtual ::ndk::ScopedAStatus onStateChanged(const ::aidl::com::android::server::thread::openthread::OtDaemonState& in_newState, int64_t in_listenerId) = 0;
57   virtual ::ndk::ScopedAStatus onAddressChanged(const std::vector<::aidl::com::android::server::thread::openthread::Ipv6AddressInfo>& in_addressInfoList) = 0;
58   virtual ::ndk::ScopedAStatus onBackboneRouterStateChanged(const ::aidl::com::android::server::thread::openthread::BackboneRouterState& in_bbrState) = 0;
59   virtual ::ndk::ScopedAStatus onPrefixChanged(const std::vector<::aidl::com::android::server::thread::openthread::OnMeshPrefixConfig>& in_onMeshPrefixConfigList) = 0;
60 private:
61   static std::shared_ptr<IOtDaemonCallback> default_impl;
62 };
63 class IOtDaemonCallbackDefault : public IOtDaemonCallback {
64 public:
65   ::ndk::ScopedAStatus onStateChanged(const ::aidl::com::android::server::thread::openthread::OtDaemonState& in_newState, int64_t in_listenerId) override;
66   ::ndk::ScopedAStatus onAddressChanged(const std::vector<::aidl::com::android::server::thread::openthread::Ipv6AddressInfo>& in_addressInfoList) override;
67   ::ndk::ScopedAStatus onBackboneRouterStateChanged(const ::aidl::com::android::server::thread::openthread::BackboneRouterState& in_bbrState) override;
68   ::ndk::ScopedAStatus onPrefixChanged(const std::vector<::aidl::com::android::server::thread::openthread::OnMeshPrefixConfig>& in_onMeshPrefixConfigList) override;
69   ::ndk::SpAIBinder asBinder() override;
70   bool isRemote() override;
71 };
72 }  // namespace openthread
73 }  // namespace thread
74 }  // namespace server
75 }  // namespace android
76 }  // namespace com
77 }  // namespace aidl
78