1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash da59ee6c3e1088cbace3b6a913077ce52ca2ef25 -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/fastboot/aidl/android.hardware.fastboot-V1-ndk-source/gen/staging/android/hardware/fastboot/IFastboot.cpp.d -h out/soong/.intermediates/hardware/interfaces/fastboot/aidl/android.hardware.fastboot-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/fastboot/aidl/android.hardware.fastboot-V1-ndk-source/gen/staging -Nhardware/interfaces/fastboot/aidl/aidl_api/android.hardware.fastboot/1 hardware/interfaces/fastboot/aidl/aidl_api/android.hardware.fastboot/1/android/hardware/fastboot/IFastboot.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/fastboot/FileSystemType.h> 18 #ifdef BINDER_STABILITY_SUPPORT 19 #include <android/binder_stability.h> 20 #endif // BINDER_STABILITY_SUPPORT 21 22 namespace aidl { 23 namespace android { 24 namespace hardware { 25 namespace fastboot { 26 class IFastbootDelegator; 27 28 class IFastboot : public ::ndk::ICInterface { 29 public: 30 typedef IFastbootDelegator DefaultDelegator; 31 static const char* descriptor; 32 IFastboot(); 33 virtual ~IFastboot(); 34 35 enum : int32_t { FAILURE_UNKNOWN = 1 }; 36 static inline const int32_t version = 1; 37 static inline const std::string hash = "da59ee6c3e1088cbace3b6a913077ce52ca2ef25"; 38 static constexpr uint32_t TRANSACTION_doOemCommand = FIRST_CALL_TRANSACTION + 0; 39 static constexpr uint32_t TRANSACTION_doOemSpecificErase = FIRST_CALL_TRANSACTION + 1; 40 static constexpr uint32_t TRANSACTION_getBatteryVoltageFlashingThreshold = FIRST_CALL_TRANSACTION + 2; 41 static constexpr uint32_t TRANSACTION_getOffModeChargeState = FIRST_CALL_TRANSACTION + 3; 42 static constexpr uint32_t TRANSACTION_getPartitionType = FIRST_CALL_TRANSACTION + 4; 43 static constexpr uint32_t TRANSACTION_getVariant = FIRST_CALL_TRANSACTION + 5; 44 45 static std::shared_ptr<IFastboot> fromBinder(const ::ndk::SpAIBinder& binder); 46 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IFastboot>& instance); 47 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IFastboot>* instance); 48 static bool setDefaultImpl(const std::shared_ptr<IFastboot>& impl); 49 static const std::shared_ptr<IFastboot>& getDefaultImpl(); 50 virtual ::ndk::ScopedAStatus doOemCommand(const std::string& in_oemCmd, std::string* _aidl_return) = 0; 51 virtual ::ndk::ScopedAStatus doOemSpecificErase() = 0; 52 virtual ::ndk::ScopedAStatus getBatteryVoltageFlashingThreshold(int32_t* _aidl_return) = 0; 53 virtual ::ndk::ScopedAStatus getOffModeChargeState(bool* _aidl_return) = 0; 54 virtual ::ndk::ScopedAStatus getPartitionType(const std::string& in_partitionName, ::aidl::android::hardware::fastboot::FileSystemType* _aidl_return) = 0; 55 virtual ::ndk::ScopedAStatus getVariant(std::string* _aidl_return) = 0; 56 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 57 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 58 private: 59 static std::shared_ptr<IFastboot> default_impl; 60 }; 61 class IFastbootDefault : public IFastboot { 62 public: 63 ::ndk::ScopedAStatus doOemCommand(const std::string& in_oemCmd, std::string* _aidl_return) override; 64 ::ndk::ScopedAStatus doOemSpecificErase() override; 65 ::ndk::ScopedAStatus getBatteryVoltageFlashingThreshold(int32_t* _aidl_return) override; 66 ::ndk::ScopedAStatus getOffModeChargeState(bool* _aidl_return) override; 67 ::ndk::ScopedAStatus getPartitionType(const std::string& in_partitionName, ::aidl::android::hardware::fastboot::FileSystemType* _aidl_return) override; 68 ::ndk::ScopedAStatus getVariant(std::string* _aidl_return) override; 69 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 70 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 71 ::ndk::SpAIBinder asBinder() override; 72 bool isRemote() override; 73 }; 74 } // namespace fastboot 75 } // namespace hardware 76 } // namespace android 77 } // namespace aidl 78