1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl-cpp -dout/soong/.temp/sbox/0add8489e5aa81ad87348189d492899f4ed5aa83/out/android/os/IIncidentManager.cpp.d --ninja -Iframeworks/base/core/java -Iframeworks/native/libs/incidentcompanion/binder -t --min_sdk_version=29 -Iframeworks/base/core/java/ frameworks/base/core/java/android/os/IIncidentManager.aidl out/soong/.temp/sbox/0add8489e5aa81ad87348189d492899f4ed5aa83/out out/soong/.temp/sbox/0add8489e5aa81ad87348189d492899f4ed5aa83/out/android/os/IIncidentManager.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/IIncidentManager.h>
13 #include <android/os/BnIncidentDumpCallback.h>
14 #include <android/os/BnIncidentManager.h>
15 #include <android/os/BnIncidentReportStatusListener.h>
16 #include <binder/Delegate.h>
17 
18 
19 namespace android {
20 namespace os {
21 class LIBBINDER_EXPORTED BnIncidentManager : public ::android::BnInterface<IIncidentManager> {
22 public:
23   static constexpr uint32_t TRANSACTION_reportIncident = ::android::IBinder::FIRST_CALL_TRANSACTION + 0;
24   static constexpr uint32_t TRANSACTION_reportIncidentToStream = ::android::IBinder::FIRST_CALL_TRANSACTION + 1;
25   static constexpr uint32_t TRANSACTION_reportIncidentToDumpstate = ::android::IBinder::FIRST_CALL_TRANSACTION + 2;
26   static constexpr uint32_t TRANSACTION_registerSection = ::android::IBinder::FIRST_CALL_TRANSACTION + 3;
27   static constexpr uint32_t TRANSACTION_unregisterSection = ::android::IBinder::FIRST_CALL_TRANSACTION + 4;
28   static constexpr uint32_t TRANSACTION_systemRunning = ::android::IBinder::FIRST_CALL_TRANSACTION + 5;
29   static constexpr uint32_t TRANSACTION_getIncidentReportList = ::android::IBinder::FIRST_CALL_TRANSACTION + 6;
30   static constexpr uint32_t TRANSACTION_getIncidentReport = ::android::IBinder::FIRST_CALL_TRANSACTION + 7;
31   static constexpr uint32_t TRANSACTION_deleteIncidentReports = ::android::IBinder::FIRST_CALL_TRANSACTION + 8;
32   static constexpr uint32_t TRANSACTION_deleteAllIncidentReports = ::android::IBinder::FIRST_CALL_TRANSACTION + 9;
33   explicit BnIncidentManager();
34   ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override;
35 };  // class BnIncidentManager
36 
37 class LIBBINDER_EXPORTED IIncidentManagerDelegator : public BnIncidentManager {
38 public:
IIncidentManagerDelegator(const::android::sp<IIncidentManager> & impl)39   explicit IIncidentManagerDelegator(const ::android::sp<IIncidentManager> &impl) : _aidl_delegate(impl) {}
40 
getImpl()41   ::android::sp<IIncidentManager> getImpl() { return _aidl_delegate; }
reportIncident(const::android::os::IncidentReportArgs & args)42   ::android::binder::Status reportIncident(const ::android::os::IncidentReportArgs& args) override {
43     return _aidl_delegate->reportIncident(args);
44   }
reportIncidentToStream(const::android::os::IncidentReportArgs & args,const::android::sp<::android::os::IIncidentReportStatusListener> & listener,::android::base::unique_fd stream)45   ::android::binder::Status reportIncidentToStream(const ::android::os::IncidentReportArgs& args, const ::android::sp<::android::os::IIncidentReportStatusListener>& listener, ::android::base::unique_fd stream) override {
46     ::android::sp<::android::os::IIncidentReportStatusListenerDelegator> _listener;
47     if (listener) {
48       _listener = ::android::sp<::android::os::IIncidentReportStatusListenerDelegator>::cast(delegate(listener));
49     }
50     return _aidl_delegate->reportIncidentToStream(args, _listener, std::move(stream));
51   }
reportIncidentToDumpstate(::android::base::unique_fd stream,const::android::sp<::android::os::IIncidentReportStatusListener> & listener)52   ::android::binder::Status reportIncidentToDumpstate(::android::base::unique_fd stream, const ::android::sp<::android::os::IIncidentReportStatusListener>& listener) override {
53     ::android::sp<::android::os::IIncidentReportStatusListenerDelegator> _listener;
54     if (listener) {
55       _listener = ::android::sp<::android::os::IIncidentReportStatusListenerDelegator>::cast(delegate(listener));
56     }
57     return _aidl_delegate->reportIncidentToDumpstate(std::move(stream), _listener);
58   }
registerSection(int32_t id,const::android::String16 & name,const::android::sp<::android::os::IIncidentDumpCallback> & callback)59   ::android::binder::Status registerSection(int32_t id, const ::android::String16& name, const ::android::sp<::android::os::IIncidentDumpCallback>& callback) override {
60     ::android::sp<::android::os::IIncidentDumpCallbackDelegator> _callback;
61     if (callback) {
62       _callback = ::android::sp<::android::os::IIncidentDumpCallbackDelegator>::cast(delegate(callback));
63     }
64     return _aidl_delegate->registerSection(id, name, _callback);
65   }
unregisterSection(int32_t id)66   ::android::binder::Status unregisterSection(int32_t id) override {
67     return _aidl_delegate->unregisterSection(id);
68   }
systemRunning()69   ::android::binder::Status systemRunning() override {
70     return _aidl_delegate->systemRunning();
71   }
getIncidentReportList(const::android::String16 & pkg,const::android::String16 & cls,::std::vector<::android::String16> * _aidl_return)72   ::android::binder::Status getIncidentReportList(const ::android::String16& pkg, const ::android::String16& cls, ::std::vector<::android::String16>* _aidl_return) override {
73     return _aidl_delegate->getIncidentReportList(pkg, cls, _aidl_return);
74   }
getIncidentReport(const::android::String16 & pkg,const::android::String16 & cls,const::android::String16 & id,::android::os::IncidentManager::IncidentReport * _aidl_return)75   ::android::binder::Status getIncidentReport(const ::android::String16& pkg, const ::android::String16& cls, const ::android::String16& id, ::android::os::IncidentManager::IncidentReport* _aidl_return) override {
76     return _aidl_delegate->getIncidentReport(pkg, cls, id, _aidl_return);
77   }
deleteIncidentReports(const::android::String16 & pkg,const::android::String16 & cls,const::android::String16 & id)78   ::android::binder::Status deleteIncidentReports(const ::android::String16& pkg, const ::android::String16& cls, const ::android::String16& id) override {
79     return _aidl_delegate->deleteIncidentReports(pkg, cls, id);
80   }
deleteAllIncidentReports(const::android::String16 & pkg)81   ::android::binder::Status deleteAllIncidentReports(const ::android::String16& pkg) override {
82     return _aidl_delegate->deleteAllIncidentReports(pkg);
83   }
84 private:
85   ::android::sp<IIncidentManager> _aidl_delegate;
86 };  // class IIncidentManagerDelegator
87 }  // namespace os
88 }  // namespace android
89