1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=cpp -Weverything -Wno-missing-permission-annotation -t --min_sdk_version current --ninja -d out/soong/.intermediates/system/gsid/gsi_aidl_interface-cpp-source/gen/staging/android/gsi/IGsiService.cpp.d -h out/soong/.intermediates/system/gsid/gsi_aidl_interface-cpp-source/gen/include/staging -o out/soong/.intermediates/system/gsid/gsi_aidl_interface-cpp-source/gen/staging -Nsystem/gsid/aidl system/gsid/aidl/android/gsi/IGsiService.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 <binder/IInterface.h>
12 #include <android/gsi/IGsiService.h>
13 #include <android/gsi/BnGsiService.h>
14 #include <android/gsi/BnGsiServiceCallback.h>
15 #include <android/gsi/BnImageService.h>
16 #include <binder/Delegate.h>
17 
18 
19 namespace android {
20 namespace gsi {
21 class LIBBINDER_EXPORTED BnGsiService : public ::android::BnInterface<IGsiService> {
22 public:
23   static constexpr uint32_t TRANSACTION_commitGsiChunkFromStream = ::android::IBinder::FIRST_CALL_TRANSACTION + 0;
24   static constexpr uint32_t TRANSACTION_getInstallProgress = ::android::IBinder::FIRST_CALL_TRANSACTION + 1;
25   static constexpr uint32_t TRANSACTION_setGsiAshmem = ::android::IBinder::FIRST_CALL_TRANSACTION + 2;
26   static constexpr uint32_t TRANSACTION_commitGsiChunkFromAshmem = ::android::IBinder::FIRST_CALL_TRANSACTION + 3;
27   static constexpr uint32_t TRANSACTION_enableGsi = ::android::IBinder::FIRST_CALL_TRANSACTION + 4;
28   static constexpr uint32_t TRANSACTION_enableGsiAsync = ::android::IBinder::FIRST_CALL_TRANSACTION + 5;
29   static constexpr uint32_t TRANSACTION_isGsiEnabled = ::android::IBinder::FIRST_CALL_TRANSACTION + 6;
30   static constexpr uint32_t TRANSACTION_cancelGsiInstall = ::android::IBinder::FIRST_CALL_TRANSACTION + 7;
31   static constexpr uint32_t TRANSACTION_isGsiInstallInProgress = ::android::IBinder::FIRST_CALL_TRANSACTION + 8;
32   static constexpr uint32_t TRANSACTION_removeGsi = ::android::IBinder::FIRST_CALL_TRANSACTION + 9;
33   static constexpr uint32_t TRANSACTION_removeGsiAsync = ::android::IBinder::FIRST_CALL_TRANSACTION + 10;
34   static constexpr uint32_t TRANSACTION_disableGsi = ::android::IBinder::FIRST_CALL_TRANSACTION + 11;
35   static constexpr uint32_t TRANSACTION_isGsiInstalled = ::android::IBinder::FIRST_CALL_TRANSACTION + 12;
36   static constexpr uint32_t TRANSACTION_isGsiRunning = ::android::IBinder::FIRST_CALL_TRANSACTION + 13;
37   static constexpr uint32_t TRANSACTION_getActiveDsuSlot = ::android::IBinder::FIRST_CALL_TRANSACTION + 14;
38   static constexpr uint32_t TRANSACTION_getInstalledGsiImageDir = ::android::IBinder::FIRST_CALL_TRANSACTION + 15;
39   static constexpr uint32_t TRANSACTION_getInstalledDsuSlots = ::android::IBinder::FIRST_CALL_TRANSACTION + 16;
40   static constexpr uint32_t TRANSACTION_openInstall = ::android::IBinder::FIRST_CALL_TRANSACTION + 17;
41   static constexpr uint32_t TRANSACTION_closeInstall = ::android::IBinder::FIRST_CALL_TRANSACTION + 18;
42   static constexpr uint32_t TRANSACTION_createPartition = ::android::IBinder::FIRST_CALL_TRANSACTION + 19;
43   static constexpr uint32_t TRANSACTION_closePartition = ::android::IBinder::FIRST_CALL_TRANSACTION + 20;
44   static constexpr uint32_t TRANSACTION_zeroPartition = ::android::IBinder::FIRST_CALL_TRANSACTION + 21;
45   static constexpr uint32_t TRANSACTION_openImageService = ::android::IBinder::FIRST_CALL_TRANSACTION + 22;
46   static constexpr uint32_t TRANSACTION_dumpDeviceMapperDevices = ::android::IBinder::FIRST_CALL_TRANSACTION + 23;
47   static constexpr uint32_t TRANSACTION_getAvbPublicKey = ::android::IBinder::FIRST_CALL_TRANSACTION + 24;
48   static constexpr uint32_t TRANSACTION_suggestScratchSize = ::android::IBinder::FIRST_CALL_TRANSACTION + 25;
49   explicit BnGsiService();
50   ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override;
51 };  // class BnGsiService
52 
53 class LIBBINDER_EXPORTED IGsiServiceDelegator : public BnGsiService {
54 public:
IGsiServiceDelegator(const::android::sp<IGsiService> & impl)55   explicit IGsiServiceDelegator(const ::android::sp<IGsiService> &impl) : _aidl_delegate(impl) {}
56 
getImpl()57   ::android::sp<IGsiService> getImpl() { return _aidl_delegate; }
commitGsiChunkFromStream(const::android::os::ParcelFileDescriptor & stream,int64_t bytes,bool * _aidl_return)58   ::android::binder::Status commitGsiChunkFromStream(const ::android::os::ParcelFileDescriptor& stream, int64_t bytes, bool* _aidl_return) override {
59     return _aidl_delegate->commitGsiChunkFromStream(stream, bytes, _aidl_return);
60   }
getInstallProgress(::android::gsi::GsiProgress * _aidl_return)61   ::android::binder::Status getInstallProgress(::android::gsi::GsiProgress* _aidl_return) override {
62     return _aidl_delegate->getInstallProgress(_aidl_return);
63   }
setGsiAshmem(const::android::os::ParcelFileDescriptor & stream,int64_t size,bool * _aidl_return)64   ::android::binder::Status setGsiAshmem(const ::android::os::ParcelFileDescriptor& stream, int64_t size, bool* _aidl_return) override {
65     return _aidl_delegate->setGsiAshmem(stream, size, _aidl_return);
66   }
commitGsiChunkFromAshmem(int64_t bytes,bool * _aidl_return)67   ::android::binder::Status commitGsiChunkFromAshmem(int64_t bytes, bool* _aidl_return) override {
68     return _aidl_delegate->commitGsiChunkFromAshmem(bytes, _aidl_return);
69   }
enableGsi(bool oneShot,const::std::string & dsuSlot,int32_t * _aidl_return)70   ::android::binder::Status enableGsi(bool oneShot, const ::std::string& dsuSlot, int32_t* _aidl_return) override {
71     return _aidl_delegate->enableGsi(oneShot, dsuSlot, _aidl_return);
72   }
enableGsiAsync(bool oneShot,const::std::string & dsuSlot,const::android::sp<::android::gsi::IGsiServiceCallback> & result)73   ::android::binder::Status enableGsiAsync(bool oneShot, const ::std::string& dsuSlot, const ::android::sp<::android::gsi::IGsiServiceCallback>& result) override {
74     ::android::sp<::android::gsi::IGsiServiceCallbackDelegator> _result;
75     if (result) {
76       _result = ::android::sp<::android::gsi::IGsiServiceCallbackDelegator>::cast(delegate(result));
77     }
78     return _aidl_delegate->enableGsiAsync(oneShot, dsuSlot, _result);
79   }
isGsiEnabled(bool * _aidl_return)80   ::android::binder::Status isGsiEnabled(bool* _aidl_return) override {
81     return _aidl_delegate->isGsiEnabled(_aidl_return);
82   }
cancelGsiInstall(bool * _aidl_return)83   ::android::binder::Status cancelGsiInstall(bool* _aidl_return) override {
84     return _aidl_delegate->cancelGsiInstall(_aidl_return);
85   }
isGsiInstallInProgress(bool * _aidl_return)86   ::android::binder::Status isGsiInstallInProgress(bool* _aidl_return) override {
87     return _aidl_delegate->isGsiInstallInProgress(_aidl_return);
88   }
removeGsi(bool * _aidl_return)89   ::android::binder::Status removeGsi(bool* _aidl_return) override {
90     return _aidl_delegate->removeGsi(_aidl_return);
91   }
removeGsiAsync(const::android::sp<::android::gsi::IGsiServiceCallback> & result)92   ::android::binder::Status removeGsiAsync(const ::android::sp<::android::gsi::IGsiServiceCallback>& result) override {
93     ::android::sp<::android::gsi::IGsiServiceCallbackDelegator> _result;
94     if (result) {
95       _result = ::android::sp<::android::gsi::IGsiServiceCallbackDelegator>::cast(delegate(result));
96     }
97     return _aidl_delegate->removeGsiAsync(_result);
98   }
disableGsi(bool * _aidl_return)99   ::android::binder::Status disableGsi(bool* _aidl_return) override {
100     return _aidl_delegate->disableGsi(_aidl_return);
101   }
isGsiInstalled(bool * _aidl_return)102   ::android::binder::Status isGsiInstalled(bool* _aidl_return) override {
103     return _aidl_delegate->isGsiInstalled(_aidl_return);
104   }
isGsiRunning(bool * _aidl_return)105   ::android::binder::Status isGsiRunning(bool* _aidl_return) override {
106     return _aidl_delegate->isGsiRunning(_aidl_return);
107   }
getActiveDsuSlot(::std::string * _aidl_return)108   ::android::binder::Status getActiveDsuSlot(::std::string* _aidl_return) override {
109     return _aidl_delegate->getActiveDsuSlot(_aidl_return);
110   }
getInstalledGsiImageDir(::std::string * _aidl_return)111   ::android::binder::Status getInstalledGsiImageDir(::std::string* _aidl_return) override {
112     return _aidl_delegate->getInstalledGsiImageDir(_aidl_return);
113   }
getInstalledDsuSlots(::std::vector<::std::string> * _aidl_return)114   ::android::binder::Status getInstalledDsuSlots(::std::vector<::std::string>* _aidl_return) override {
115     return _aidl_delegate->getInstalledDsuSlots(_aidl_return);
116   }
openInstall(const::std::string & installDir,int32_t * _aidl_return)117   ::android::binder::Status openInstall(const ::std::string& installDir, int32_t* _aidl_return) override {
118     return _aidl_delegate->openInstall(installDir, _aidl_return);
119   }
closeInstall(int32_t * _aidl_return)120   ::android::binder::Status closeInstall(int32_t* _aidl_return) override {
121     return _aidl_delegate->closeInstall(_aidl_return);
122   }
createPartition(const::std::string & name,int64_t size,bool readOnly,int32_t * _aidl_return)123   ::android::binder::Status createPartition(const ::std::string& name, int64_t size, bool readOnly, int32_t* _aidl_return) override {
124     return _aidl_delegate->createPartition(name, size, readOnly, _aidl_return);
125   }
closePartition(int32_t * _aidl_return)126   ::android::binder::Status closePartition(int32_t* _aidl_return) override {
127     return _aidl_delegate->closePartition(_aidl_return);
128   }
zeroPartition(const::std::string & name,int32_t * _aidl_return)129   ::android::binder::Status zeroPartition(const ::std::string& name, int32_t* _aidl_return) override {
130     return _aidl_delegate->zeroPartition(name, _aidl_return);
131   }
openImageService(const::std::string & prefix,::android::sp<::android::gsi::IImageService> * _aidl_return)132   ::android::binder::Status openImageService(const ::std::string& prefix, ::android::sp<::android::gsi::IImageService>* _aidl_return) override {
133     auto _status = _aidl_delegate->openImageService(prefix, _aidl_return);
134     if (*_aidl_return) {
135       *_aidl_return = ::android::sp<::android::gsi::IImageServiceDelegator>::cast(delegate(*_aidl_return));
136     }
137     return _status;
138   }
dumpDeviceMapperDevices(::std::string * _aidl_return)139   ::android::binder::Status dumpDeviceMapperDevices(::std::string* _aidl_return) override {
140     return _aidl_delegate->dumpDeviceMapperDevices(_aidl_return);
141   }
getAvbPublicKey(::android::gsi::AvbPublicKey * dst,int32_t * _aidl_return)142   ::android::binder::Status getAvbPublicKey(::android::gsi::AvbPublicKey* dst, int32_t* _aidl_return) override {
143     return _aidl_delegate->getAvbPublicKey(dst, _aidl_return);
144   }
suggestScratchSize(int64_t * _aidl_return)145   ::android::binder::Status suggestScratchSize(int64_t* _aidl_return) override {
146     return _aidl_delegate->suggestScratchSize(_aidl_return);
147   }
148 private:
149   ::android::sp<IGsiService> _aidl_delegate;
150 };  // class IGsiServiceDelegator
151 }  // namespace gsi
152 }  // namespace android
153