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 3 --hash notfrozen -t --stability vintf --min_sdk_version current --previous_api_dir=hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/2 --previous_hash ea8742d6993e1a82917da38b9938e537aa7fcb54 --ninja -d out/soong/.intermediates/hardware/interfaces/vibrator/aidl/android.hardware.vibrator-V3-ndk-source/gen/staging/android/hardware/vibrator/IVibrationSession.cpp.d -h out/soong/.intermediates/hardware/interfaces/vibrator/aidl/android.hardware.vibrator-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/vibrator/aidl/android.hardware.vibrator-V3-ndk-source/gen/staging -Iframeworks/native/aidl/binder -Nhardware/interfaces/vibrator/aidl hardware/interfaces/vibrator/aidl/android/hardware/vibrator/IVibrationSession.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 #ifdef BINDER_STABILITY_SUPPORT
18 #include <android/binder_stability.h>
19 #endif  // BINDER_STABILITY_SUPPORT
20 
21 namespace aidl {
22 namespace android {
23 namespace hardware {
24 namespace vibrator {
25 class IVibrationSessionDelegator;
26 
27 class IVibrationSession : public ::ndk::ICInterface {
28 public:
29   typedef IVibrationSessionDelegator DefaultDelegator;
30   static const char* descriptor;
31   IVibrationSession();
32   virtual ~IVibrationSession();
33 
34   static inline const int32_t version = true ? 2 : 3;
35   static inline const std::string hash = true ? "ea8742d6993e1a82917da38b9938e537aa7fcb54" : "notfrozen";
36   static constexpr uint32_t TRANSACTION_close = FIRST_CALL_TRANSACTION + 0;
37   static constexpr uint32_t TRANSACTION_abort = FIRST_CALL_TRANSACTION + 1;
38 
39   static std::shared_ptr<IVibrationSession> fromBinder(const ::ndk::SpAIBinder& binder);
40   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IVibrationSession>& instance);
41   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IVibrationSession>* instance);
42   static bool setDefaultImpl(const std::shared_ptr<IVibrationSession>& impl);
43   static const std::shared_ptr<IVibrationSession>& getDefaultImpl();
44   virtual ::ndk::ScopedAStatus close() = 0;
45   virtual ::ndk::ScopedAStatus abort() = 0;
46   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
47   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
48 private:
49   static std::shared_ptr<IVibrationSession> default_impl;
50 };
51 class IVibrationSessionDefault : public IVibrationSession {
52 public:
53   ::ndk::ScopedAStatus close() override;
54   ::ndk::ScopedAStatus abort() override;
55   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
56   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
57   ::ndk::SpAIBinder asBinder() override;
58   bool isRemote() override;
59 };
60 }  // namespace vibrator
61 }  // namespace hardware
62 }  // namespace android
63 }  // namespace aidl
64