blob: 1f93d5f41d390367a62fc6541d15c7da4b9d5a03 [file] [log] [blame]
#pragma once
#include <android/binder_interface_utils.h>
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#ifdef BINDER_STABILITY_SUPPORT
#include <android/binder_stability.h>
#endif // BINDER_STABILITY_SUPPORT
namespace aidl {
namespace android {
namespace aidl {
namespace tests {
class INewName : public ::ndk::ICInterface {
public:
static const char* descriptor;
INewName();
virtual ~INewName();
static constexpr uint32_t TRANSACTION_RealName = FIRST_CALL_TRANSACTION + 0;
static std::shared_ptr<INewName> fromBinder(const ::ndk::SpAIBinder& binder);
static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<INewName>& instance);
static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<INewName>* instance);
static bool setDefaultImpl(const std::shared_ptr<INewName>& impl);
static const std::shared_ptr<INewName>& getDefaultImpl();
virtual ::ndk::ScopedAStatus RealName(std::string* _aidl_return) = 0;
private:
static std::shared_ptr<INewName> default_impl;
};
class INewNameDefault : public INewName {
public:
::ndk::ScopedAStatus RealName(std::string* _aidl_return) override;
::ndk::SpAIBinder asBinder() override;
bool isRemote() override;
};
} // namespace tests
} // namespace aidl
} // namespace android
} // namespace aidl