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 "aidl/android/hardware/fastboot/IFastboot.h" 12 13 #include <android/binder_ibinder.h> 14 #include <cassert> 15 16 #ifndef __BIONIC__ 17 #ifndef __assert2 18 #define __assert2(a,b,c,d) ((void)0) 19 #endif 20 #endif 21 22 namespace aidl { 23 namespace android { 24 namespace hardware { 25 namespace fastboot { 26 class BnFastboot : public ::ndk::BnCInterface<IFastboot> { 27 public: 28 BnFastboot(); 29 virtual ~BnFastboot(); 30 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final; 31 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final; 32 protected: 33 ::ndk::SpAIBinder createBinder() override; 34 private: 35 }; 36 class IFastbootDelegator : public BnFastboot { 37 public: IFastbootDelegator(const std::shared_ptr<IFastboot> & impl)38 explicit IFastbootDelegator(const std::shared_ptr<IFastboot> &impl) : _impl(impl) { 39 int32_t _impl_ver = 0; 40 if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {; 41 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation."); 42 } 43 if (_impl_ver != IFastboot::version) { 44 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed."); 45 } 46 } 47 doOemCommand(const std::string & in_oemCmd,std::string * _aidl_return)48 ::ndk::ScopedAStatus doOemCommand(const std::string& in_oemCmd, std::string* _aidl_return) override { 49 return _impl->doOemCommand(in_oemCmd, _aidl_return); 50 } doOemSpecificErase()51 ::ndk::ScopedAStatus doOemSpecificErase() override { 52 return _impl->doOemSpecificErase(); 53 } getBatteryVoltageFlashingThreshold(int32_t * _aidl_return)54 ::ndk::ScopedAStatus getBatteryVoltageFlashingThreshold(int32_t* _aidl_return) override { 55 return _impl->getBatteryVoltageFlashingThreshold(_aidl_return); 56 } getOffModeChargeState(bool * _aidl_return)57 ::ndk::ScopedAStatus getOffModeChargeState(bool* _aidl_return) override { 58 return _impl->getOffModeChargeState(_aidl_return); 59 } getPartitionType(const std::string & in_partitionName,::aidl::android::hardware::fastboot::FileSystemType * _aidl_return)60 ::ndk::ScopedAStatus getPartitionType(const std::string& in_partitionName, ::aidl::android::hardware::fastboot::FileSystemType* _aidl_return) override { 61 return _impl->getPartitionType(in_partitionName, _aidl_return); 62 } getVariant(std::string * _aidl_return)63 ::ndk::ScopedAStatus getVariant(std::string* _aidl_return) override { 64 return _impl->getVariant(_aidl_return); 65 } 66 protected: 67 private: 68 std::shared_ptr<IFastboot> _impl; 69 }; 70 71 } // namespace fastboot 72 } // namespace hardware 73 } // namespace android 74 } // namespace aidl 75