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/IStreamCommon.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/IStreamCommon.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/audio/core/VendorParameter.h> 18 #include <aidl/android/hardware/audio/effect/IEffect.h> 19 #ifdef BINDER_STABILITY_SUPPORT 20 #include <android/binder_stability.h> 21 #endif // BINDER_STABILITY_SUPPORT 22 23 namespace aidl::android::hardware::audio::core { 24 class VendorParameter; 25 } // namespace aidl::android::hardware::audio::core 26 namespace aidl::android::hardware::audio::effect { 27 class IEffect; 28 } // namespace aidl::android::hardware::audio::effect 29 namespace aidl { 30 namespace android { 31 namespace hardware { 32 namespace audio { 33 namespace core { 34 class IStreamCommonDelegator; 35 36 class IStreamCommon : public ::ndk::ICInterface { 37 public: 38 typedef IStreamCommonDelegator DefaultDelegator; 39 static const char* descriptor; 40 IStreamCommon(); 41 virtual ~IStreamCommon(); 42 43 static inline const int32_t version = true ? 2 : 3; 44 static inline const std::string hash = true ? "003735b3fd3c94c53b02a6eb5e099731f7062610" : "notfrozen"; 45 static constexpr uint32_t TRANSACTION_close = FIRST_CALL_TRANSACTION + 0; 46 static constexpr uint32_t TRANSACTION_prepareToClose = FIRST_CALL_TRANSACTION + 1; 47 static constexpr uint32_t TRANSACTION_updateHwAvSyncId = FIRST_CALL_TRANSACTION + 2; 48 static constexpr uint32_t TRANSACTION_getVendorParameters = FIRST_CALL_TRANSACTION + 3; 49 static constexpr uint32_t TRANSACTION_setVendorParameters = FIRST_CALL_TRANSACTION + 4; 50 static constexpr uint32_t TRANSACTION_addEffect = FIRST_CALL_TRANSACTION + 5; 51 static constexpr uint32_t TRANSACTION_removeEffect = FIRST_CALL_TRANSACTION + 6; 52 53 static std::shared_ptr<IStreamCommon> fromBinder(const ::ndk::SpAIBinder& binder); 54 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IStreamCommon>& instance); 55 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IStreamCommon>* instance); 56 static bool setDefaultImpl(const std::shared_ptr<IStreamCommon>& impl); 57 static const std::shared_ptr<IStreamCommon>& getDefaultImpl(); 58 virtual ::ndk::ScopedAStatus close() = 0; 59 virtual ::ndk::ScopedAStatus prepareToClose() = 0; 60 virtual ::ndk::ScopedAStatus updateHwAvSyncId(int32_t in_hwAvSyncId) = 0; 61 virtual ::ndk::ScopedAStatus getVendorParameters(const std::vector<std::string>& in_ids, std::vector<::aidl::android::hardware::audio::core::VendorParameter>* _aidl_return) = 0; 62 virtual ::ndk::ScopedAStatus setVendorParameters(const std::vector<::aidl::android::hardware::audio::core::VendorParameter>& in_parameters, bool in_async) = 0; 63 virtual ::ndk::ScopedAStatus addEffect(const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect>& in_effect) = 0; 64 virtual ::ndk::ScopedAStatus removeEffect(const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect>& in_effect) = 0; 65 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 66 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 67 private: 68 static std::shared_ptr<IStreamCommon> default_impl; 69 }; 70 class IStreamCommonDefault : public IStreamCommon { 71 public: 72 ::ndk::ScopedAStatus close() override; 73 ::ndk::ScopedAStatus prepareToClose() override; 74 ::ndk::ScopedAStatus updateHwAvSyncId(int32_t in_hwAvSyncId) override; 75 ::ndk::ScopedAStatus getVendorParameters(const std::vector<std::string>& in_ids, std::vector<::aidl::android::hardware::audio::core::VendorParameter>* _aidl_return) override; 76 ::ndk::ScopedAStatus setVendorParameters(const std::vector<::aidl::android::hardware::audio::core::VendorParameter>& in_parameters, bool in_async) override; 77 ::ndk::ScopedAStatus addEffect(const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect>& in_effect) override; 78 ::ndk::ScopedAStatus removeEffect(const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect>& in_effect) override; 79 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 80 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 81 ::ndk::SpAIBinder asBinder() override; 82 bool isRemote() override; 83 }; 84 } // namespace core 85 } // namespace audio 86 } // namespace hardware 87 } // namespace android 88 } // namespace aidl 89