aboutsummaryrefslogtreecommitdiff
path: root/tests/golden_output/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/IDeprecated.h
blob: d00a1d45f02e9aaf62cfec19ac310f29bb39d725 (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
#pragma once

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

namespace aidl {
namespace android {
namespace aidl {
namespace tests {
class IDeprecatedDelegator;

class __attribute__((deprecated("test"))) IDeprecated : public ::ndk::ICInterface {
public:
  typedef IDeprecatedDelegator DefaultDelegator;
  static const char* descriptor;
  IDeprecated();
  virtual ~IDeprecated();


  static std::shared_ptr<IDeprecated> fromBinder(const ::ndk::SpAIBinder& binder);
  static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IDeprecated>& instance);
  static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IDeprecated>* instance);
  static bool setDefaultImpl(const std::shared_ptr<IDeprecated>& impl);
  static const std::shared_ptr<IDeprecated>& getDefaultImpl();
private:
  static std::shared_ptr<IDeprecated> default_impl;
};
class __attribute__((deprecated("test"))) IDeprecatedDefault : public IDeprecated {
public:
  ::ndk::SpAIBinder asBinder() override;
  bool isRemote() override;
};
}  // namespace tests
}  // namespace aidl
}  // namespace android
}  // namespace aidl