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 --log --ninja -d out/soong/.intermediates/system/extras/partition_tools/aidl/liblpdump_interface-cpp-source/gen/staging/android/lpdump/ILpdump.cpp.d -h out/soong/.intermediates/system/extras/partition_tools/aidl/liblpdump_interface-cpp-source/gen/include/staging -o out/soong/.intermediates/system/extras/partition_tools/aidl/liblpdump_interface-cpp-source/gen/staging -Nsystem/extras/partition_tools/aidl system/extras/partition_tools/aidl/android/lpdump/ILpdump.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/lpdump/ILpdump.h>
13 #include <functional>
14 #include <android/binder_to_string.h>
15 #include <android/lpdump/BnLpdump.h>
16 #include <binder/Delegate.h>
17 
18 
19 namespace android {
20 namespace lpdump {
21 class LIBBINDER_EXPORTED BnLpdump : public ::android::BnInterface<ILpdump> {
22 public:
23   static constexpr uint32_t TRANSACTION_run = ::android::IBinder::FIRST_CALL_TRANSACTION + 0;
24   explicit BnLpdump();
25   ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override;
26   struct TransactionLog {
27     double duration_ms;
28     std::string interface_name;
29     std::string method_name;
30     const void* proxy_address;
31     const void* stub_address;
32     std::vector<std::pair<std::string, std::string>> input_args;
33     std::vector<std::pair<std::string, std::string>> output_args;
34     std::string result;
35     std::string exception_message;
36     int32_t exception_code;
37     int32_t transaction_error;
38     int32_t service_specific_error_code;
39   };
40   static std::function<void(const TransactionLog&)> logFunc;
41 };  // class BnLpdump
42 
43 class LIBBINDER_EXPORTED ILpdumpDelegator : public BnLpdump {
44 public:
ILpdumpDelegator(const::android::sp<ILpdump> & impl)45   explicit ILpdumpDelegator(const ::android::sp<ILpdump> &impl) : _aidl_delegate(impl) {}
46 
getImpl()47   ::android::sp<ILpdump> getImpl() { return _aidl_delegate; }
run(const::std::vector<::std::string> & args,::std::string * _aidl_return)48   ::android::binder::Status run(const ::std::vector<::std::string>& args, ::std::string* _aidl_return) override {
49     return _aidl_delegate->run(args, _aidl_return);
50   }
51 private:
52   ::android::sp<ILpdump> _aidl_delegate;
53 };  // class ILpdumpDelegator
54 }  // namespace lpdump
55 }  // namespace android
56