1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 4 --hash 8a6cd86630181a4df6f20056259ec200ffe39209 -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/biometrics/common/aidl/android.hardware.biometrics.common-V4-ndk-source/gen/staging/android/hardware/biometrics/common/ICancellationSignal.cpp.d -h out/soong/.intermediates/hardware/interfaces/biometrics/common/aidl/android.hardware.biometrics.common-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/biometrics/common/aidl/android.hardware.biometrics.common-V4-ndk-source/gen/staging -Nhardware/interfaces/biometrics/common/aidl/aidl_api/android.hardware.biometrics.common/4 hardware/interfaces/biometrics/common/aidl/aidl_api/android.hardware.biometrics.common/4/android/hardware/biometrics/common/ICancellationSignal.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 biometrics {
25 namespace common {
26 class ICancellationSignalDelegator;
27 
28 class ICancellationSignal : public ::ndk::ICInterface {
29 public:
30   typedef ICancellationSignalDelegator DefaultDelegator;
31   static const char* descriptor;
32   ICancellationSignal();
33   virtual ~ICancellationSignal();
34 
35   static inline const int32_t version = 4;
36   static inline const std::string hash = "8a6cd86630181a4df6f20056259ec200ffe39209";
37   static constexpr uint32_t TRANSACTION_cancel = FIRST_CALL_TRANSACTION + 0;
38 
39   static std::shared_ptr<ICancellationSignal> fromBinder(const ::ndk::SpAIBinder& binder);
40   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<ICancellationSignal>& instance);
41   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<ICancellationSignal>* instance);
42   static bool setDefaultImpl(const std::shared_ptr<ICancellationSignal>& impl);
43   static const std::shared_ptr<ICancellationSignal>& getDefaultImpl();
44   virtual ::ndk::ScopedAStatus cancel() = 0;
45   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
46   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
47 private:
48   static std::shared_ptr<ICancellationSignal> default_impl;
49 };
50 class ICancellationSignalDefault : public ICancellationSignal {
51 public:
52   ::ndk::ScopedAStatus cancel() override;
53   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
54   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
55   ::ndk::SpAIBinder asBinder() override;
56   bool isRemote() override;
57 };
58 }  // namespace common
59 }  // namespace biometrics
60 }  // namespace hardware
61 }  // namespace android
62 }  // namespace aidl
63