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 -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/4/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect_interface/3/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core.sounddose_interface/3/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.common_interface/4/preprocessed.aidl -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 --previous_api_dir=hardware/interfaces/audio/aidl/aidl_api/android.hardware.audio.core/2 --previous_hash 003735b3fd3c94c53b02a6eb5e099731f7062610 --ninja -d out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/staging/android/hardware/audio/core/IStreamCallback.cpp.d -h out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/staging -Nhardware/interfaces/audio/aidl hardware/interfaces/audio/aidl/android/hardware/audio/core/IStreamCallback.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 audio { 25 namespace core { 26 class IStreamCallbackDelegator; 27 28 class IStreamCallback : public ::ndk::ICInterface { 29 public: 30 typedef IStreamCallbackDelegator DefaultDelegator; 31 static const char* descriptor; 32 IStreamCallback(); 33 virtual ~IStreamCallback(); 34 35 static inline const int32_t version = true ? 2 : 3; 36 static inline const std::string hash = true ? "003735b3fd3c94c53b02a6eb5e099731f7062610" : "notfrozen"; 37 static constexpr uint32_t TRANSACTION_onTransferReady = FIRST_CALL_TRANSACTION + 0; 38 static constexpr uint32_t TRANSACTION_onError = FIRST_CALL_TRANSACTION + 1; 39 static constexpr uint32_t TRANSACTION_onDrainReady = FIRST_CALL_TRANSACTION + 2; 40 41 static std::shared_ptr<IStreamCallback> fromBinder(const ::ndk::SpAIBinder& binder); 42 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IStreamCallback>& instance); 43 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IStreamCallback>* instance); 44 static bool setDefaultImpl(const std::shared_ptr<IStreamCallback>& impl); 45 static const std::shared_ptr<IStreamCallback>& getDefaultImpl(); 46 virtual ::ndk::ScopedAStatus onTransferReady() = 0; 47 virtual ::ndk::ScopedAStatus onError() = 0; 48 virtual ::ndk::ScopedAStatus onDrainReady() = 0; 49 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 50 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 51 private: 52 static std::shared_ptr<IStreamCallback> default_impl; 53 }; 54 class IStreamCallbackDefault : public IStreamCallback { 55 public: 56 ::ndk::ScopedAStatus onTransferReady() override; 57 ::ndk::ScopedAStatus onError() override; 58 ::ndk::ScopedAStatus onDrainReady() override; 59 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 60 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 61 ::ndk::SpAIBinder asBinder() override; 62 bool isRemote() override; 63 }; 64 } // namespace core 65 } // namespace audio 66 } // namespace hardware 67 } // namespace android 68 } // namespace aidl 69