1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl-cpp -dout/soong/.temp/sbox/8d981a3236beb5759a1978b51b4eb0d8f5124a9a/out/android/os/incremental/IIncrementalService.cpp.d --ninja -Iframeworks/native/aidl/binder -t --min_sdk_version=platform_apis -Iframeworks/base/core/java/ frameworks/base/core/java/android/os/incremental/IIncrementalService.aidl out/soong/.temp/sbox/8d981a3236beb5759a1978b51b4eb0d8f5124a9a/out out/soong/.temp/sbox/8d981a3236beb5759a1978b51b4eb0d8f5124a9a/out/android/os/incremental/IIncrementalService.cpp 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/os/incremental/IIncrementalService.h> 13 #include <android/content/pm/BnDataLoaderStatusListener.h> 14 #include <android/os/incremental/BnIncrementalService.h> 15 #include <android/os/incremental/BnStorageHealthListener.h> 16 #include <android/os/incremental/BnStorageLoadingProgressListener.h> 17 #include <binder/Delegate.h> 18 19 20 namespace android { 21 namespace os { 22 namespace incremental { 23 class LIBBINDER_EXPORTED BnIncrementalService : public ::android::BnInterface<IIncrementalService> { 24 public: 25 static constexpr uint32_t TRANSACTION_openStorage = ::android::IBinder::FIRST_CALL_TRANSACTION + 0; 26 static constexpr uint32_t TRANSACTION_createStorage = ::android::IBinder::FIRST_CALL_TRANSACTION + 1; 27 static constexpr uint32_t TRANSACTION_createLinkedStorage = ::android::IBinder::FIRST_CALL_TRANSACTION + 2; 28 static constexpr uint32_t TRANSACTION_startLoading = ::android::IBinder::FIRST_CALL_TRANSACTION + 3; 29 static constexpr uint32_t TRANSACTION_onInstallationComplete = ::android::IBinder::FIRST_CALL_TRANSACTION + 4; 30 static constexpr uint32_t TRANSACTION_makeBindMount = ::android::IBinder::FIRST_CALL_TRANSACTION + 5; 31 static constexpr uint32_t TRANSACTION_deleteBindMount = ::android::IBinder::FIRST_CALL_TRANSACTION + 6; 32 static constexpr uint32_t TRANSACTION_makeDirectory = ::android::IBinder::FIRST_CALL_TRANSACTION + 7; 33 static constexpr uint32_t TRANSACTION_makeDirectories = ::android::IBinder::FIRST_CALL_TRANSACTION + 8; 34 static constexpr uint32_t TRANSACTION_makeFile = ::android::IBinder::FIRST_CALL_TRANSACTION + 9; 35 static constexpr uint32_t TRANSACTION_makeFileFromRange = ::android::IBinder::FIRST_CALL_TRANSACTION + 10; 36 static constexpr uint32_t TRANSACTION_makeLink = ::android::IBinder::FIRST_CALL_TRANSACTION + 11; 37 static constexpr uint32_t TRANSACTION_unlink = ::android::IBinder::FIRST_CALL_TRANSACTION + 12; 38 static constexpr uint32_t TRANSACTION_isFileFullyLoaded = ::android::IBinder::FIRST_CALL_TRANSACTION + 13; 39 static constexpr uint32_t TRANSACTION_isFullyLoaded = ::android::IBinder::FIRST_CALL_TRANSACTION + 14; 40 static constexpr uint32_t TRANSACTION_getLoadingProgress = ::android::IBinder::FIRST_CALL_TRANSACTION + 15; 41 static constexpr uint32_t TRANSACTION_getMetadataByPath = ::android::IBinder::FIRST_CALL_TRANSACTION + 16; 42 static constexpr uint32_t TRANSACTION_getMetadataById = ::android::IBinder::FIRST_CALL_TRANSACTION + 17; 43 static constexpr uint32_t TRANSACTION_deleteStorage = ::android::IBinder::FIRST_CALL_TRANSACTION + 18; 44 static constexpr uint32_t TRANSACTION_disallowReadLogs = ::android::IBinder::FIRST_CALL_TRANSACTION + 19; 45 static constexpr uint32_t TRANSACTION_configureNativeBinaries = ::android::IBinder::FIRST_CALL_TRANSACTION + 20; 46 static constexpr uint32_t TRANSACTION_waitForNativeBinariesExtraction = ::android::IBinder::FIRST_CALL_TRANSACTION + 21; 47 static constexpr uint32_t TRANSACTION_registerLoadingProgressListener = ::android::IBinder::FIRST_CALL_TRANSACTION + 22; 48 static constexpr uint32_t TRANSACTION_unregisterLoadingProgressListener = ::android::IBinder::FIRST_CALL_TRANSACTION + 23; 49 static constexpr uint32_t TRANSACTION_getMetrics = ::android::IBinder::FIRST_CALL_TRANSACTION + 24; 50 explicit BnIncrementalService(); 51 ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override; 52 }; // class BnIncrementalService 53 54 class LIBBINDER_EXPORTED IIncrementalServiceDelegator : public BnIncrementalService { 55 public: IIncrementalServiceDelegator(const::android::sp<IIncrementalService> & impl)56 explicit IIncrementalServiceDelegator(const ::android::sp<IIncrementalService> &impl) : _aidl_delegate(impl) {} 57 getImpl()58 ::android::sp<IIncrementalService> getImpl() { return _aidl_delegate; } openStorage(const::std::string & path,int32_t * _aidl_return)59 ::android::binder::Status openStorage(const ::std::string& path, int32_t* _aidl_return) override { 60 return _aidl_delegate->openStorage(path, _aidl_return); 61 } createStorage(const::std::string & path,const::android::content::pm::DataLoaderParamsParcel & params,int32_t createMode,int32_t * _aidl_return)62 ::android::binder::Status createStorage(const ::std::string& path, const ::android::content::pm::DataLoaderParamsParcel& params, int32_t createMode, int32_t* _aidl_return) override { 63 return _aidl_delegate->createStorage(path, params, createMode, _aidl_return); 64 } createLinkedStorage(const::std::string & path,int32_t otherStorageId,int32_t createMode,int32_t * _aidl_return)65 ::android::binder::Status createLinkedStorage(const ::std::string& path, int32_t otherStorageId, int32_t createMode, int32_t* _aidl_return) override { 66 return _aidl_delegate->createLinkedStorage(path, otherStorageId, createMode, _aidl_return); 67 } startLoading(int32_t storageId,const::android::content::pm::DataLoaderParamsParcel & params,const::android::sp<::android::content::pm::IDataLoaderStatusListener> & statusListener,const::android::os::incremental::StorageHealthCheckParams & healthCheckParams,const::android::sp<::android::os::incremental::IStorageHealthListener> & healthListener,const::std::vector<::android::os::incremental::PerUidReadTimeouts> & perUidReadTimeouts,bool * _aidl_return)68 ::android::binder::Status startLoading(int32_t storageId, const ::android::content::pm::DataLoaderParamsParcel& params, const ::android::sp<::android::content::pm::IDataLoaderStatusListener>& statusListener, const ::android::os::incremental::StorageHealthCheckParams& healthCheckParams, const ::android::sp<::android::os::incremental::IStorageHealthListener>& healthListener, const ::std::vector<::android::os::incremental::PerUidReadTimeouts>& perUidReadTimeouts, bool* _aidl_return) override { 69 ::android::sp<::android::content::pm::IDataLoaderStatusListenerDelegator> _statusListener; 70 if (statusListener) { 71 _statusListener = ::android::sp<::android::content::pm::IDataLoaderStatusListenerDelegator>::cast(delegate(statusListener)); 72 } 73 ::android::sp<::android::os::incremental::IStorageHealthListenerDelegator> _healthListener; 74 if (healthListener) { 75 _healthListener = ::android::sp<::android::os::incremental::IStorageHealthListenerDelegator>::cast(delegate(healthListener)); 76 } 77 return _aidl_delegate->startLoading(storageId, params, _statusListener, healthCheckParams, _healthListener, perUidReadTimeouts, _aidl_return); 78 } onInstallationComplete(int32_t storageId)79 ::android::binder::Status onInstallationComplete(int32_t storageId) override { 80 return _aidl_delegate->onInstallationComplete(storageId); 81 } makeBindMount(int32_t storageId,const::std::string & sourcePath,const::std::string & targetFullPath,int32_t bindType,int32_t * _aidl_return)82 ::android::binder::Status makeBindMount(int32_t storageId, const ::std::string& sourcePath, const ::std::string& targetFullPath, int32_t bindType, int32_t* _aidl_return) override { 83 return _aidl_delegate->makeBindMount(storageId, sourcePath, targetFullPath, bindType, _aidl_return); 84 } deleteBindMount(int32_t storageId,const::std::string & targetFullPath,int32_t * _aidl_return)85 ::android::binder::Status deleteBindMount(int32_t storageId, const ::std::string& targetFullPath, int32_t* _aidl_return) override { 86 return _aidl_delegate->deleteBindMount(storageId, targetFullPath, _aidl_return); 87 } makeDirectory(int32_t storageId,const::std::string & path,int32_t * _aidl_return)88 ::android::binder::Status makeDirectory(int32_t storageId, const ::std::string& path, int32_t* _aidl_return) override { 89 return _aidl_delegate->makeDirectory(storageId, path, _aidl_return); 90 } makeDirectories(int32_t storageId,const::std::string & path,int32_t * _aidl_return)91 ::android::binder::Status makeDirectories(int32_t storageId, const ::std::string& path, int32_t* _aidl_return) override { 92 return _aidl_delegate->makeDirectories(storageId, path, _aidl_return); 93 } makeFile(int32_t storageId,const::std::string & path,int32_t mode,const::android::os::incremental::IncrementalNewFileParams & params,const::std::optional<::std::vector<uint8_t>> & content,int32_t * _aidl_return)94 ::android::binder::Status makeFile(int32_t storageId, const ::std::string& path, int32_t mode, const ::android::os::incremental::IncrementalNewFileParams& params, const ::std::optional<::std::vector<uint8_t>>& content, int32_t* _aidl_return) override { 95 return _aidl_delegate->makeFile(storageId, path, mode, params, content, _aidl_return); 96 } makeFileFromRange(int32_t storageId,const::std::string & targetPath,const::std::string & sourcePath,int64_t start,int64_t end,int32_t * _aidl_return)97 ::android::binder::Status makeFileFromRange(int32_t storageId, const ::std::string& targetPath, const ::std::string& sourcePath, int64_t start, int64_t end, int32_t* _aidl_return) override { 98 return _aidl_delegate->makeFileFromRange(storageId, targetPath, sourcePath, start, end, _aidl_return); 99 } makeLink(int32_t sourceStorageId,const::std::string & sourcePath,int32_t destStorageId,const::std::string & destPath,int32_t * _aidl_return)100 ::android::binder::Status makeLink(int32_t sourceStorageId, const ::std::string& sourcePath, int32_t destStorageId, const ::std::string& destPath, int32_t* _aidl_return) override { 101 return _aidl_delegate->makeLink(sourceStorageId, sourcePath, destStorageId, destPath, _aidl_return); 102 } unlink(int32_t storageId,const::std::string & path,int32_t * _aidl_return)103 ::android::binder::Status unlink(int32_t storageId, const ::std::string& path, int32_t* _aidl_return) override { 104 return _aidl_delegate->unlink(storageId, path, _aidl_return); 105 } isFileFullyLoaded(int32_t storageId,const::std::string & path,int32_t * _aidl_return)106 ::android::binder::Status isFileFullyLoaded(int32_t storageId, const ::std::string& path, int32_t* _aidl_return) override { 107 return _aidl_delegate->isFileFullyLoaded(storageId, path, _aidl_return); 108 } isFullyLoaded(int32_t storageId,int32_t * _aidl_return)109 ::android::binder::Status isFullyLoaded(int32_t storageId, int32_t* _aidl_return) override { 110 return _aidl_delegate->isFullyLoaded(storageId, _aidl_return); 111 } getLoadingProgress(int32_t storageId,float * _aidl_return)112 ::android::binder::Status getLoadingProgress(int32_t storageId, float* _aidl_return) override { 113 return _aidl_delegate->getLoadingProgress(storageId, _aidl_return); 114 } getMetadataByPath(int32_t storageId,const::std::string & path,::std::vector<uint8_t> * _aidl_return)115 ::android::binder::Status getMetadataByPath(int32_t storageId, const ::std::string& path, ::std::vector<uint8_t>* _aidl_return) override { 116 return _aidl_delegate->getMetadataByPath(storageId, path, _aidl_return); 117 } getMetadataById(int32_t storageId,const::std::vector<uint8_t> & fileId,::std::vector<uint8_t> * _aidl_return)118 ::android::binder::Status getMetadataById(int32_t storageId, const ::std::vector<uint8_t>& fileId, ::std::vector<uint8_t>* _aidl_return) override { 119 return _aidl_delegate->getMetadataById(storageId, fileId, _aidl_return); 120 } deleteStorage(int32_t storageId)121 ::android::binder::Status deleteStorage(int32_t storageId) override { 122 return _aidl_delegate->deleteStorage(storageId); 123 } disallowReadLogs(int32_t storageId)124 ::android::binder::Status disallowReadLogs(int32_t storageId) override { 125 return _aidl_delegate->disallowReadLogs(storageId); 126 } configureNativeBinaries(int32_t storageId,const::std::string & apkFullPath,const::std::string & libDirRelativePath,const::std::string & abi,bool extractNativeLibs,bool * _aidl_return)127 ::android::binder::Status configureNativeBinaries(int32_t storageId, const ::std::string& apkFullPath, const ::std::string& libDirRelativePath, const ::std::string& abi, bool extractNativeLibs, bool* _aidl_return) override { 128 return _aidl_delegate->configureNativeBinaries(storageId, apkFullPath, libDirRelativePath, abi, extractNativeLibs, _aidl_return); 129 } waitForNativeBinariesExtraction(int32_t storageId,bool * _aidl_return)130 ::android::binder::Status waitForNativeBinariesExtraction(int32_t storageId, bool* _aidl_return) override { 131 return _aidl_delegate->waitForNativeBinariesExtraction(storageId, _aidl_return); 132 } registerLoadingProgressListener(int32_t storageId,const::android::sp<::android::os::incremental::IStorageLoadingProgressListener> & listener,bool * _aidl_return)133 ::android::binder::Status registerLoadingProgressListener(int32_t storageId, const ::android::sp<::android::os::incremental::IStorageLoadingProgressListener>& listener, bool* _aidl_return) override { 134 ::android::sp<::android::os::incremental::IStorageLoadingProgressListenerDelegator> _listener; 135 if (listener) { 136 _listener = ::android::sp<::android::os::incremental::IStorageLoadingProgressListenerDelegator>::cast(delegate(listener)); 137 } 138 return _aidl_delegate->registerLoadingProgressListener(storageId, _listener, _aidl_return); 139 } unregisterLoadingProgressListener(int32_t storageId,bool * _aidl_return)140 ::android::binder::Status unregisterLoadingProgressListener(int32_t storageId, bool* _aidl_return) override { 141 return _aidl_delegate->unregisterLoadingProgressListener(storageId, _aidl_return); 142 } getMetrics(int32_t storageId,::android::os::PersistableBundle * _aidl_return)143 ::android::binder::Status getMetrics(int32_t storageId, ::android::os::PersistableBundle* _aidl_return) override { 144 return _aidl_delegate->getMetrics(storageId, _aidl_return); 145 } 146 private: 147 ::android::sp<IIncrementalService> _aidl_delegate; 148 }; // class IIncrementalServiceDelegator 149 } // namespace incremental 150 } // namespace os 151 } // namespace android 152