1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash cb628c69682659911bca5c1d04042adba7f0de4b -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/staging/android/hardware/usb/gadget/IUsbGadgetCallback.cpp.d -h out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/staging -Nhardware/interfaces/usb/gadget/aidl/aidl_api/android.hardware.usb.gadget/1 hardware/interfaces/usb/gadget/aidl/aidl_api/android.hardware.usb.gadget/1/android/hardware/usb/gadget/IUsbGadgetCallback.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/usb/gadget/Status.h> 18 #include <aidl/android/hardware/usb/gadget/UsbSpeed.h> 19 #ifdef BINDER_STABILITY_SUPPORT 20 #include <android/binder_stability.h> 21 #endif // BINDER_STABILITY_SUPPORT 22 23 namespace aidl { 24 namespace android { 25 namespace hardware { 26 namespace usb { 27 namespace gadget { 28 class IUsbGadgetCallbackDelegator; 29 30 class IUsbGadgetCallback : public ::ndk::ICInterface { 31 public: 32 typedef IUsbGadgetCallbackDelegator DefaultDelegator; 33 static const char* descriptor; 34 IUsbGadgetCallback(); 35 virtual ~IUsbGadgetCallback(); 36 37 static inline const int32_t version = 1; 38 static inline const std::string hash = "cb628c69682659911bca5c1d04042adba7f0de4b"; 39 static constexpr uint32_t TRANSACTION_setCurrentUsbFunctionsCb = FIRST_CALL_TRANSACTION + 0; 40 static constexpr uint32_t TRANSACTION_getCurrentUsbFunctionsCb = FIRST_CALL_TRANSACTION + 1; 41 static constexpr uint32_t TRANSACTION_getUsbSpeedCb = FIRST_CALL_TRANSACTION + 2; 42 static constexpr uint32_t TRANSACTION_resetCb = FIRST_CALL_TRANSACTION + 3; 43 44 static std::shared_ptr<IUsbGadgetCallback> fromBinder(const ::ndk::SpAIBinder& binder); 45 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IUsbGadgetCallback>& instance); 46 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IUsbGadgetCallback>* instance); 47 static bool setDefaultImpl(const std::shared_ptr<IUsbGadgetCallback>& impl); 48 static const std::shared_ptr<IUsbGadgetCallback>& getDefaultImpl(); 49 virtual ::ndk::ScopedAStatus setCurrentUsbFunctionsCb(int64_t in_functions, ::aidl::android::hardware::usb::gadget::Status in_status, int64_t in_transactionId) = 0; 50 virtual ::ndk::ScopedAStatus getCurrentUsbFunctionsCb(int64_t in_functions, ::aidl::android::hardware::usb::gadget::Status in_status, int64_t in_transactionId) = 0; 51 virtual ::ndk::ScopedAStatus getUsbSpeedCb(::aidl::android::hardware::usb::gadget::UsbSpeed in_speed, int64_t in_transactionId) = 0; 52 virtual ::ndk::ScopedAStatus resetCb(::aidl::android::hardware::usb::gadget::Status in_status, int64_t in_transactionId) = 0; 53 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 54 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 55 private: 56 static std::shared_ptr<IUsbGadgetCallback> default_impl; 57 }; 58 class IUsbGadgetCallbackDefault : public IUsbGadgetCallback { 59 public: 60 ::ndk::ScopedAStatus setCurrentUsbFunctionsCb(int64_t in_functions, ::aidl::android::hardware::usb::gadget::Status in_status, int64_t in_transactionId) override; 61 ::ndk::ScopedAStatus getCurrentUsbFunctionsCb(int64_t in_functions, ::aidl::android::hardware::usb::gadget::Status in_status, int64_t in_transactionId) override; 62 ::ndk::ScopedAStatus getUsbSpeedCb(::aidl::android::hardware::usb::gadget::UsbSpeed in_speed, int64_t in_transactionId) override; 63 ::ndk::ScopedAStatus resetCb(::aidl::android::hardware::usb::gadget::Status in_status, int64_t in_transactionId) override; 64 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 65 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 66 ::ndk::SpAIBinder asBinder() override; 67 bool isRemote() override; 68 }; 69 } // namespace gadget 70 } // namespace usb 71 } // namespace hardware 72 } // namespace android 73 } // namespace aidl 74