aboutsummaryrefslogtreecommitdiff
path: root/tests/golden_output/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/ICircular.h
blob: 5c45e97ec0aac4fca97d39876dbd92fa5a3f2019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once

#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include <android/binder_interface_utils.h>
#include <aidl/android/aidl/tests/ITestService.h>
#ifdef BINDER_STABILITY_SUPPORT
#include <android/binder_stability.h>
#endif  // BINDER_STABILITY_SUPPORT

namespace aidl::android::aidl::tests {
class ITestService;
}  // namespace aidl::android::aidl::tests
namespace aidl {
namespace android {
namespace aidl {
namespace tests {
class ICircularDelegator;

class ICircular : public ::ndk::ICInterface {
public:
  typedef ICircularDelegator DefaultDelegator;
  static const char* descriptor;
  ICircular();
  virtual ~ICircular();

  static constexpr uint32_t TRANSACTION_GetTestService = FIRST_CALL_TRANSACTION + 0;

  static std::shared_ptr<ICircular> fromBinder(const ::ndk::SpAIBinder& binder);
  static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<ICircular>& instance);
  static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<ICircular>* instance);
  static bool setDefaultImpl(const std::shared_ptr<ICircular>& impl);
  static const std::shared_ptr<ICircular>& getDefaultImpl();
  virtual ::ndk::ScopedAStatus GetTestService(std::shared_ptr<::aidl::android::aidl::tests::ITestService>* _aidl_return) = 0;
private:
  static std::shared_ptr<ICircular> default_impl;
};
class ICircularDefault : public ICircular {
public:
  ::ndk::ScopedAStatus GetTestService(std::shared_ptr<::aidl::android::aidl::tests::ITestService>* _aidl_return) override;
  ::ndk::SpAIBinder asBinder() override;
  bool isRemote() override;
};
}  // namespace tests
}  // namespace aidl
}  // namespace android
}  // namespace aidl