1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash 32dabbc53f6f51763228400e3dea8e11c36d677f -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/wifi/netlinkinterceptor/aidl/android.hardware.net.nlinterceptor-V1-ndk-source/gen/staging/android/hardware/net/nlinterceptor/IInterceptor.cpp.d -h out/soong/.intermediates/hardware/interfaces/wifi/netlinkinterceptor/aidl/android.hardware.net.nlinterceptor-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/wifi/netlinkinterceptor/aidl/android.hardware.net.nlinterceptor-V1-ndk-source/gen/staging -Nhardware/interfaces/wifi/netlinkinterceptor/aidl/aidl_api/android.hardware.net.nlinterceptor/1 hardware/interfaces/wifi/netlinkinterceptor/aidl/aidl_api/android.hardware.net.nlinterceptor/1/android/hardware/net/nlinterceptor/IInterceptor.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/android/hardware/net/nlinterceptor/InterceptedSocket.h> 18 #ifdef BINDER_STABILITY_SUPPORT 19 #include <android/binder_stability.h> 20 #endif // BINDER_STABILITY_SUPPORT 21 22 namespace aidl::android::hardware::net::nlinterceptor { 23 class InterceptedSocket; 24 } // namespace aidl::android::hardware::net::nlinterceptor 25 namespace aidl { 26 namespace android { 27 namespace hardware { 28 namespace net { 29 namespace nlinterceptor { 30 class IInterceptorDelegator; 31 32 class IInterceptor : public ::ndk::ICInterface { 33 public: 34 typedef IInterceptorDelegator DefaultDelegator; 35 static const char* descriptor; 36 IInterceptor(); 37 virtual ~IInterceptor(); 38 39 static inline const int32_t version = 1; 40 static inline const std::string hash = "32dabbc53f6f51763228400e3dea8e11c36d677f"; 41 static constexpr uint32_t TRANSACTION_createSocket = FIRST_CALL_TRANSACTION + 0; 42 static constexpr uint32_t TRANSACTION_closeSocket = FIRST_CALL_TRANSACTION + 1; 43 static constexpr uint32_t TRANSACTION_subscribeGroup = FIRST_CALL_TRANSACTION + 2; 44 static constexpr uint32_t TRANSACTION_unsubscribeGroup = FIRST_CALL_TRANSACTION + 3; 45 46 static std::shared_ptr<IInterceptor> fromBinder(const ::ndk::SpAIBinder& binder); 47 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IInterceptor>& instance); 48 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IInterceptor>* instance); 49 static bool setDefaultImpl(const std::shared_ptr<IInterceptor>& impl); 50 static const std::shared_ptr<IInterceptor>& getDefaultImpl(); 51 virtual ::ndk::ScopedAStatus createSocket(int32_t in_nlFamily, int32_t in_clientNlPid, const std::string& in_clientName, ::aidl::android::hardware::net::nlinterceptor::InterceptedSocket* _aidl_return) = 0; 52 virtual ::ndk::ScopedAStatus closeSocket(const ::aidl::android::hardware::net::nlinterceptor::InterceptedSocket& in_handle) = 0; 53 virtual ::ndk::ScopedAStatus subscribeGroup(const ::aidl::android::hardware::net::nlinterceptor::InterceptedSocket& in_handle, int32_t in_nlGroup) = 0; 54 virtual ::ndk::ScopedAStatus unsubscribeGroup(const ::aidl::android::hardware::net::nlinterceptor::InterceptedSocket& in_handle, int32_t in_nlGroup) = 0; 55 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 56 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 57 private: 58 static std::shared_ptr<IInterceptor> default_impl; 59 }; 60 class IInterceptorDefault : public IInterceptor { 61 public: 62 ::ndk::ScopedAStatus createSocket(int32_t in_nlFamily, int32_t in_clientNlPid, const std::string& in_clientName, ::aidl::android::hardware::net::nlinterceptor::InterceptedSocket* _aidl_return) override; 63 ::ndk::ScopedAStatus closeSocket(const ::aidl::android::hardware::net::nlinterceptor::InterceptedSocket& in_handle) override; 64 ::ndk::ScopedAStatus subscribeGroup(const ::aidl::android::hardware::net::nlinterceptor::InterceptedSocket& in_handle, int32_t in_nlGroup) override; 65 ::ndk::ScopedAStatus unsubscribeGroup(const ::aidl::android::hardware::net::nlinterceptor::InterceptedSocket& in_handle, int32_t in_nlGroup) override; 66 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 67 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 68 ::ndk::SpAIBinder asBinder() override; 69 bool isRemote() override; 70 }; 71 } // namespace nlinterceptor 72 } // namespace net 73 } // namespace hardware 74 } // namespace android 75 } // namespace aidl 76