1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation --structured --version 2 --hash notfrozen -t --stability vintf --min_sdk_version 33 --previous_api_dir=hardware/interfaces/bluetooth/ranging/aidl/aidl_api/android.hardware.bluetooth.ranging/1 --previous_hash d257bb74ef61a4cbb5854f4663604dd491b4a7bf --ninja -d out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/staging/android/hardware/bluetooth/ranging/IBluetoothChannelSoundingSessionCallback.cpp.d -h out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/staging -Nhardware/interfaces/bluetooth/ranging/aidl hardware/interfaces/bluetooth/ranging/aidl/android/hardware/bluetooth/ranging/IBluetoothChannelSoundingSessionCallback.aidl
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 #pragma once
10 
11 #include <cstdint>
12 #include <memory>
13 #include <optional>
14 #include <string>
15 #include <vector>
16 #include <android/binder_interface_utils.h>
17 #include <aidl/android/hardware/bluetooth/ranging/RangingResult.h>
18 #include <aidl/android/hardware/bluetooth/ranging/Reason.h>
19 #ifdef BINDER_STABILITY_SUPPORT
20 #include <android/binder_stability.h>
21 #endif  // BINDER_STABILITY_SUPPORT
22 
23 namespace aidl::android::hardware::bluetooth::ranging {
24 class RangingResult;
25 }  // namespace aidl::android::hardware::bluetooth::ranging
26 namespace aidl {
27 namespace android {
28 namespace hardware {
29 namespace bluetooth {
30 namespace ranging {
31 class IBluetoothChannelSoundingSessionCallbackDelegator;
32 
33 class IBluetoothChannelSoundingSessionCallback : public ::ndk::ICInterface {
34 public:
35   typedef IBluetoothChannelSoundingSessionCallbackDelegator DefaultDelegator;
36   static const char* descriptor;
37   IBluetoothChannelSoundingSessionCallback();
38   virtual ~IBluetoothChannelSoundingSessionCallback();
39 
40   static inline const int32_t version = true ? 1 : 2;
41   static inline const std::string hash = true ? "d257bb74ef61a4cbb5854f4663604dd491b4a7bf" : "notfrozen";
42   static constexpr uint32_t TRANSACTION_onOpened = FIRST_CALL_TRANSACTION + 0;
43   static constexpr uint32_t TRANSACTION_onOpenFailed = FIRST_CALL_TRANSACTION + 1;
44   static constexpr uint32_t TRANSACTION_onResult = FIRST_CALL_TRANSACTION + 2;
45   static constexpr uint32_t TRANSACTION_onClose = FIRST_CALL_TRANSACTION + 3;
46   static constexpr uint32_t TRANSACTION_onCloseFailed = FIRST_CALL_TRANSACTION + 4;
47 
48   static std::shared_ptr<IBluetoothChannelSoundingSessionCallback> fromBinder(const ::ndk::SpAIBinder& binder);
49   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IBluetoothChannelSoundingSessionCallback>& instance);
50   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IBluetoothChannelSoundingSessionCallback>* instance);
51   static bool setDefaultImpl(const std::shared_ptr<IBluetoothChannelSoundingSessionCallback>& impl);
52   static const std::shared_ptr<IBluetoothChannelSoundingSessionCallback>& getDefaultImpl();
53   virtual ::ndk::ScopedAStatus onOpened(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) = 0;
54   virtual ::ndk::ScopedAStatus onOpenFailed(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) = 0;
55   virtual ::ndk::ScopedAStatus onResult(const ::aidl::android::hardware::bluetooth::ranging::RangingResult& in_result) = 0;
56   virtual ::ndk::ScopedAStatus onClose(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) = 0;
57   virtual ::ndk::ScopedAStatus onCloseFailed(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) = 0;
58   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
59   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
60 private:
61   static std::shared_ptr<IBluetoothChannelSoundingSessionCallback> default_impl;
62 };
63 class IBluetoothChannelSoundingSessionCallbackDefault : public IBluetoothChannelSoundingSessionCallback {
64 public:
65   ::ndk::ScopedAStatus onOpened(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override;
66   ::ndk::ScopedAStatus onOpenFailed(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override;
67   ::ndk::ScopedAStatus onResult(const ::aidl::android::hardware::bluetooth::ranging::RangingResult& in_result) override;
68   ::ndk::ScopedAStatus onClose(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override;
69   ::ndk::ScopedAStatus onCloseFailed(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override;
70   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
71   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
72   ::ndk::SpAIBinder asBinder() override;
73   bool isRemote() override;
74 };
75 }  // namespace ranging
76 }  // namespace bluetooth
77 }  // namespace hardware
78 }  // namespace android
79 }  // namespace aidl
80