1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 2 --hash c12818c51418fbfc76f1b81eba6678d75cf526c1 -t --stability vintf --min_sdk_version 29 -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/media/bufferpool/aidl/android.hardware.media.bufferpool2-V2-ndk-source/gen/staging/android/hardware/media/bufferpool2/IObserver.cpp.d -h out/soong/.intermediates/hardware/interfaces/media/bufferpool/aidl/android.hardware.media.bufferpool2-V2-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/media/bufferpool/aidl/android.hardware.media.bufferpool2-V2-ndk-source/gen/staging -Iframeworks/base/core/java -Nhardware/interfaces/media/bufferpool/aidl/aidl_api/android.hardware.media.bufferpool2/2 hardware/interfaces/media/bufferpool/aidl/aidl_api/android.hardware.media.bufferpool2/2/android/hardware/media/bufferpool2/IObserver.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 media { 25 namespace bufferpool2 { 26 class IObserverDelegator; 27 28 class IObserver : public ::ndk::ICInterface { 29 public: 30 typedef IObserverDelegator DefaultDelegator; 31 static const char* descriptor; 32 IObserver(); 33 virtual ~IObserver(); 34 35 static inline const int32_t version = 2; 36 static inline const std::string hash = "c12818c51418fbfc76f1b81eba6678d75cf526c1"; 37 static constexpr uint32_t TRANSACTION_onMessage = FIRST_CALL_TRANSACTION + 0; 38 39 static std::shared_ptr<IObserver> fromBinder(const ::ndk::SpAIBinder& binder); 40 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IObserver>& instance); 41 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IObserver>* instance); 42 static bool setDefaultImpl(const std::shared_ptr<IObserver>& impl); 43 static const std::shared_ptr<IObserver>& getDefaultImpl(); 44 virtual ::ndk::ScopedAStatus onMessage(int64_t in_connectionId, int32_t in_msgId) = 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<IObserver> default_impl; 49 }; 50 class IObserverDefault : public IObserver { 51 public: 52 ::ndk::ScopedAStatus onMessage(int64_t in_connectionId, int32_t in_msgId) 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 bufferpool2 59 } // namespace media 60 } // namespace hardware 61 } // namespace android 62 } // namespace aidl 63