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/IStorageLoadingProgressListener.cpp.d --ninja -Iframeworks/native/aidl/binder -t --min_sdk_version=platform_apis -Iframeworks/base/core/java/ frameworks/base/core/java/android/os/incremental/IStorageLoadingProgressListener.aidl out/soong/.temp/sbox/8d981a3236beb5759a1978b51b4eb0d8f5124a9a/out out/soong/.temp/sbox/8d981a3236beb5759a1978b51b4eb0d8f5124a9a/out/android/os/incremental/IStorageLoadingProgressListener.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 #include <android/os/incremental/IStorageLoadingProgressListener.h>
10 #include <android/os/incremental/BpStorageLoadingProgressListener.h>
11 namespace android {
12 namespace os {
13 namespace incremental {
14 DO_NOT_DIRECTLY_USE_ME_IMPLEMENT_META_INTERFACE(StorageLoadingProgressListener, "android.os.incremental.IStorageLoadingProgressListener")
15 }  // namespace incremental
16 }  // namespace os
17 }  // namespace android
18 #include <android/os/incremental/BpStorageLoadingProgressListener.h>
19 #include <android/os/incremental/BnStorageLoadingProgressListener.h>
20 #include <binder/Parcel.h>
21 
22 namespace android {
23 namespace os {
24 namespace incremental {
25 
BpStorageLoadingProgressListener(const::android::sp<::android::IBinder> & _aidl_impl)26 BpStorageLoadingProgressListener::BpStorageLoadingProgressListener(const ::android::sp<::android::IBinder>& _aidl_impl)
27     : BpInterface<IStorageLoadingProgressListener>(_aidl_impl){
28 }
29 
onStorageLoadingProgressChanged(int32_t storageId,float progress)30 ::android::binder::Status BpStorageLoadingProgressListener::onStorageLoadingProgressChanged(int32_t storageId, float progress) {
31   ::android::Parcel _aidl_data;
32   _aidl_data.markForBinder(remoteStrong());
33   ::android::Parcel _aidl_reply;
34   ::android::status_t _aidl_ret_status = ::android::OK;
35   ::android::binder::Status _aidl_status;
36   ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IStorageLoadingProgressListener::onStorageLoadingProgressChanged::cppClient");
37   _aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor());
38   if (((_aidl_ret_status) != (::android::OK))) {
39     goto _aidl_error;
40   }
41   _aidl_ret_status = _aidl_data.writeInt32(storageId);
42   if (((_aidl_ret_status) != (::android::OK))) {
43     goto _aidl_error;
44   }
45   _aidl_ret_status = _aidl_data.writeFloat(progress);
46   if (((_aidl_ret_status) != (::android::OK))) {
47     goto _aidl_error;
48   }
49   _aidl_ret_status = remote()->transact(BnStorageLoadingProgressListener::TRANSACTION_onStorageLoadingProgressChanged, _aidl_data, &_aidl_reply, ::android::IBinder::FLAG_ONEWAY);
50   if (_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IStorageLoadingProgressListener::getDefaultImpl()) [[unlikely]] {
51      return IStorageLoadingProgressListener::getDefaultImpl()->onStorageLoadingProgressChanged(storageId, progress);
52   }
53   if (((_aidl_ret_status) != (::android::OK))) {
54     goto _aidl_error;
55   }
56   _aidl_error:
57   _aidl_status.setFromStatusT(_aidl_ret_status);
58   return _aidl_status;
59 }
60 
61 }  // namespace incremental
62 }  // namespace os
63 }  // namespace android
64 #include <android/os/incremental/BnStorageLoadingProgressListener.h>
65 #include <binder/Parcel.h>
66 #include <binder/Stability.h>
67 
68 namespace android {
69 namespace os {
70 namespace incremental {
71 
BnStorageLoadingProgressListener()72 BnStorageLoadingProgressListener::BnStorageLoadingProgressListener()
73 {
74   ::android::internal::Stability::markCompilationUnit(this);
75 }
76 
onTransact(uint32_t _aidl_code,const::android::Parcel & _aidl_data,::android::Parcel * _aidl_reply,uint32_t _aidl_flags)77 ::android::status_t BnStorageLoadingProgressListener::onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) {
78   ::android::status_t _aidl_ret_status = ::android::OK;
79   switch (_aidl_code) {
80   case BnStorageLoadingProgressListener::TRANSACTION_onStorageLoadingProgressChanged:
81   {
82     int32_t in_storageId;
83     float in_progress;
84     if (!(_aidl_data.checkInterface(this))) {
85       _aidl_ret_status = ::android::BAD_TYPE;
86       break;
87     }
88     ::android::binder::ScopedTrace _aidl_trace(ATRACE_TAG_AIDL, "AIDL::cpp::IStorageLoadingProgressListener::onStorageLoadingProgressChanged::cppServer");
89     _aidl_ret_status = _aidl_data.readInt32(&in_storageId);
90     if (((_aidl_ret_status) != (::android::OK))) {
91       break;
92     }
93     _aidl_ret_status = _aidl_data.readFloat(&in_progress);
94     if (((_aidl_ret_status) != (::android::OK))) {
95       break;
96     }
97     if (auto st = _aidl_data.enforceNoDataAvail(); !st.isOk()) {
98       _aidl_ret_status = st.writeToParcel(_aidl_reply);
99       break;
100     }
101     ::android::binder::Status _aidl_status(onStorageLoadingProgressChanged(in_storageId, in_progress));
102   }
103   break;
104   default:
105   {
106     _aidl_ret_status = ::android::BBinder::onTransact(_aidl_code, _aidl_data, _aidl_reply, _aidl_flags);
107   }
108   break;
109   }
110   if (_aidl_ret_status == ::android::UNEXPECTED_NULL) {
111     _aidl_ret_status = ::android::binder::Status::fromExceptionCode(::android::binder::Status::EX_NULL_POINTER).writeOverParcel(_aidl_reply);
112   }
113   return _aidl_ret_status;
114 }
115 
116 }  // namespace incremental
117 }  // namespace os
118 }  // namespace android
119