#pragma once #include #include namespace android { namespace aidl { namespace tests { namespace nested { class BnNestedService : public ::android::BnInterface { public: static constexpr uint32_t TRANSACTION_flipStatus = ::android::IBinder::FIRST_CALL_TRANSACTION + 0; static constexpr uint32_t TRANSACTION_flipStatusWithCallback = ::android::IBinder::FIRST_CALL_TRANSACTION + 1; explicit BnNestedService(); ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override; }; // class BnNestedService class INestedServiceDelegator : public BnNestedService { public: explicit INestedServiceDelegator(::android::sp &impl) : _aidl_delegate(impl) {} ::android::binder::Status flipStatus(const ::android::aidl::tests::nested::ParcelableWithNested& p, ::android::aidl::tests::nested::INestedService::Result* _aidl_return) override { return _aidl_delegate->flipStatus(p, _aidl_return); } ::android::binder::Status flipStatusWithCallback(::android::aidl::tests::nested::ParcelableWithNested::Status status, const ::android::sp<::android::aidl::tests::nested::INestedService::ICallback>& cb) override { return _aidl_delegate->flipStatusWithCallback(status, cb); } private: ::android::sp _aidl_delegate; }; // class INestedServiceDelegator } // namespace nested } // namespace tests } // namespace aidl } // namespace android