1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash 037b467eb02b172a3161e11bbc3dd691aebb5fce -t --min_sdk_version 30 --ninja -d out/soong/.intermediates/packages/modules/Connectivity/service/connectivity_native_aidl_interface-V1-ndk-source/gen/staging/android/net/connectivity/aidl/ConnectivityNative.cpp.d -h out/soong/.intermediates/packages/modules/Connectivity/service/connectivity_native_aidl_interface-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/packages/modules/Connectivity/service/connectivity_native_aidl_interface-V1-ndk-source/gen/staging -Npackages/modules/Connectivity/service/aidl_api/connectivity_native_aidl_interface/1 packages/modules/Connectivity/service/aidl_api/connectivity_native_aidl_interface/1/android/net/connectivity/aidl/ConnectivityNative.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 android {
23 namespace net {
24 namespace connectivity {
25 namespace aidl {
26 class IConnectivityNativeDelegator;
27 
28 class IConnectivityNative : public ::ndk::ICInterface {
29 public:
30   typedef IConnectivityNativeDelegator DefaultDelegator;
31   static const char* descriptor;
32   IConnectivityNative();
33   virtual ~IConnectivityNative();
34 
35   static inline const int32_t version = 1;
36   static inline const std::string hash = "037b467eb02b172a3161e11bbc3dd691aebb5fce";
37   static constexpr uint32_t TRANSACTION_blockPortForBind = FIRST_CALL_TRANSACTION + 0;
38   static constexpr uint32_t TRANSACTION_unblockPortForBind = FIRST_CALL_TRANSACTION + 1;
39   static constexpr uint32_t TRANSACTION_unblockAllPortsForBind = FIRST_CALL_TRANSACTION + 2;
40   static constexpr uint32_t TRANSACTION_getPortsBlockedForBind = FIRST_CALL_TRANSACTION + 3;
41 
42   static std::shared_ptr<IConnectivityNative> fromBinder(const ::ndk::SpAIBinder& binder);
43   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IConnectivityNative>& instance);
44   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IConnectivityNative>* instance);
45   static bool setDefaultImpl(const std::shared_ptr<IConnectivityNative>& impl);
46   static const std::shared_ptr<IConnectivityNative>& getDefaultImpl();
47   virtual ::ndk::ScopedAStatus blockPortForBind(int32_t in_port) = 0;
48   virtual ::ndk::ScopedAStatus unblockPortForBind(int32_t in_port) = 0;
49   virtual ::ndk::ScopedAStatus unblockAllPortsForBind() = 0;
50   virtual ::ndk::ScopedAStatus getPortsBlockedForBind(std::vector<int32_t>* _aidl_return) = 0;
51   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
52   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
53 private:
54   static std::shared_ptr<IConnectivityNative> default_impl;
55 };
56 class IConnectivityNativeDefault : public IConnectivityNative {
57 public:
58   ::ndk::ScopedAStatus blockPortForBind(int32_t in_port) override;
59   ::ndk::ScopedAStatus unblockPortForBind(int32_t in_port) override;
60   ::ndk::ScopedAStatus unblockAllPortsForBind() override;
61   ::ndk::ScopedAStatus getPortsBlockedForBind(std::vector<int32_t>* _aidl_return) override;
62   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
63   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
64   ::ndk::SpAIBinder asBinder() override;
65   bool isRemote() override;
66 };
67 }  // namespace aidl
68 }  // namespace connectivity
69 }  // namespace net
70 }  // namespace android
71 }  // namespace aidl
72