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/IChannelMasksReceiver.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/IChannelMasksReceiver.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 IChannelMasksReceiverDelegator; 28 29 class IChannelMasksReceiver : public ::ndk::ICInterface { 30 public: 31 typedef IChannelMasksReceiverDelegator DefaultDelegator; 32 static const char* descriptor; 33 IChannelMasksReceiver(); 34 virtual ~IChannelMasksReceiver(); 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<IChannelMasksReceiver> fromBinder(const ::ndk::SpAIBinder& binder); 40 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IChannelMasksReceiver>& instance); 41 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IChannelMasksReceiver>* instance); 42 static bool setDefaultImpl(const std::shared_ptr<IChannelMasksReceiver>& impl); 43 static const std::shared_ptr<IChannelMasksReceiver>& getDefaultImpl(); 44 virtual ::ndk::ScopedAStatus onSuccess(int32_t in_supportedChannelMask, int32_t in_preferredChannelMask) = 0; 45 virtual ::ndk::ScopedAStatus onError(int32_t in_errorCode, const std::string& in_errorMessage) = 0; 46 private: 47 static std::shared_ptr<IChannelMasksReceiver> default_impl; 48 }; 49 class IChannelMasksReceiverDefault : public IChannelMasksReceiver { 50 public: 51 ::ndk::ScopedAStatus onSuccess(int32_t in_supportedChannelMask, int32_t in_preferredChannelMask) 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