| #ifndef HIDL_GENERATED_ANDROID_HARDWARE_AUDIO_V5_0_BPHWSTREAMIN_H |
| #define HIDL_GENERATED_ANDROID_HARDWARE_AUDIO_V5_0_BPHWSTREAMIN_H |
| |
| #include <hidl/HidlTransportSupport.h> |
| |
| #include <android/hardware/audio/5.0/IHwStreamIn.h> |
| |
| namespace android { |
| namespace hardware { |
| namespace audio { |
| namespace V5_0 { |
| |
| struct BpHwStreamIn : public ::android::hardware::BpInterface<IStreamIn>, public ::android::hardware::details::HidlInstrumentor { |
| explicit BpHwStreamIn(const ::android::sp<::android::hardware::IBinder> &_hidl_impl); |
| |
| /** |
| * The pure class is what this class wraps. |
| */ |
| typedef IStreamIn Pure; |
| |
| /** |
| * Type tag for use in template logic that indicates this is a 'proxy' class. |
| */ |
| typedef ::android::hardware::details::bphw_tag _hidl_tag; |
| |
| virtual bool isRemote() const override { return true; } |
| |
| void onLastStrongRef(const void* id) override; |
| |
| // Methods from ::android::hardware::audio::V5_0::IStreamIn follow. |
| static ::android::hardware::Return<void> _hidl_getAudioSource(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor, getAudioSource_cb _hidl_cb); |
| static ::android::hardware::Return<::android::hardware::audio::V5_0::Result> _hidl_setGain(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor, float gain); |
| static ::android::hardware::Return<void> _hidl_updateSinkMetadata(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor, const ::android::hardware::audio::common::V5_0::SinkMetadata& sinkMetadata); |
| static ::android::hardware::Return<void> _hidl_prepareForReading(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor, uint32_t frameSize, uint32_t framesCount, prepareForReading_cb _hidl_cb); |
| static ::android::hardware::Return<uint32_t> _hidl_getInputFramesLost(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor); |
| static ::android::hardware::Return<void> _hidl_getCapturePosition(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor, getCapturePosition_cb _hidl_cb); |
| static ::android::hardware::Return<void> _hidl_getActiveMicrophones(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor, getActiveMicrophones_cb _hidl_cb); |
| static ::android::hardware::Return<::android::hardware::audio::V5_0::Result> _hidl_setMicrophoneDirection(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor, ::android::hardware::audio::V5_0::MicrophoneDirection direction); |
| static ::android::hardware::Return<::android::hardware::audio::V5_0::Result> _hidl_setMicrophoneFieldDimension(::android::hardware::IInterface* _hidl_this, ::android::hardware::details::HidlInstrumentor *_hidl_this_instrumentor, float zoom); |
| |
| // Methods from ::android::hardware::audio::V5_0::IStream follow. |
| ::android::hardware::Return<uint64_t> getFrameSize() override; |
| ::android::hardware::Return<uint64_t> getFrameCount() override; |
| ::android::hardware::Return<uint64_t> getBufferSize() override; |
| ::android::hardware::Return<uint32_t> getSampleRate() override; |
| ::android::hardware::Return<void> getSupportedSampleRates(::android::hardware::audio::common::V5_0::AudioFormat format, getSupportedSampleRates_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setSampleRate(uint32_t sampleRateHz) override; |
| ::android::hardware::Return<::android::hardware::hidl_bitfield<::android::hardware::audio::common::V5_0::AudioChannelMask>> getChannelMask() override; |
| ::android::hardware::Return<void> getSupportedChannelMasks(::android::hardware::audio::common::V5_0::AudioFormat format, getSupportedChannelMasks_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setChannelMask(::android::hardware::hidl_bitfield<::android::hardware::audio::common::V5_0::AudioChannelMask> mask) override; |
| ::android::hardware::Return<::android::hardware::audio::common::V5_0::AudioFormat> getFormat() override; |
| ::android::hardware::Return<void> getSupportedFormats(getSupportedFormats_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setFormat(::android::hardware::audio::common::V5_0::AudioFormat format) override; |
| ::android::hardware::Return<void> getAudioProperties(getAudioProperties_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> addEffect(uint64_t effectId) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> removeEffect(uint64_t effectId) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> standby() override; |
| ::android::hardware::Return<void> getDevices(getDevices_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setDevices(const ::android::hardware::hidl_vec<::android::hardware::audio::common::V5_0::DeviceAddress>& devices) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setHwAvSync(uint32_t hwAvSync) override; |
| ::android::hardware::Return<void> getParameters(const ::android::hardware::hidl_vec<::android::hardware::audio::V5_0::ParameterValue>& context, const ::android::hardware::hidl_vec<::android::hardware::hidl_string>& keys, getParameters_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setParameters(const ::android::hardware::hidl_vec<::android::hardware::audio::V5_0::ParameterValue>& context, const ::android::hardware::hidl_vec<::android::hardware::audio::V5_0::ParameterValue>& parameters) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> start() override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> stop() override; |
| ::android::hardware::Return<void> createMmapBuffer(int32_t minSizeFrames, createMmapBuffer_cb _hidl_cb) override; |
| ::android::hardware::Return<void> getMmapPosition(getMmapPosition_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> close() override; |
| |
| // Methods from ::android::hardware::audio::V5_0::IStreamIn follow. |
| ::android::hardware::Return<void> getAudioSource(getAudioSource_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setGain(float gain) override; |
| ::android::hardware::Return<void> updateSinkMetadata(const ::android::hardware::audio::common::V5_0::SinkMetadata& sinkMetadata) override; |
| ::android::hardware::Return<void> prepareForReading(uint32_t frameSize, uint32_t framesCount, prepareForReading_cb _hidl_cb) override; |
| ::android::hardware::Return<uint32_t> getInputFramesLost() override; |
| ::android::hardware::Return<void> getCapturePosition(getCapturePosition_cb _hidl_cb) override; |
| ::android::hardware::Return<void> getActiveMicrophones(getActiveMicrophones_cb _hidl_cb) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setMicrophoneDirection(::android::hardware::audio::V5_0::MicrophoneDirection direction) override; |
| ::android::hardware::Return<::android::hardware::audio::V5_0::Result> setMicrophoneFieldDimension(float zoom) override; |
| |
| // Methods from ::android::hidl::base::V1_0::IBase follow. |
| ::android::hardware::Return<void> interfaceChain(interfaceChain_cb _hidl_cb) override; |
| ::android::hardware::Return<void> debug(const ::android::hardware::hidl_handle& fd, const ::android::hardware::hidl_vec<::android::hardware::hidl_string>& options) override; |
| ::android::hardware::Return<void> interfaceDescriptor(interfaceDescriptor_cb _hidl_cb) override; |
| ::android::hardware::Return<void> getHashChain(getHashChain_cb _hidl_cb) override; |
| ::android::hardware::Return<void> setHALInstrumentation() override; |
| ::android::hardware::Return<bool> linkToDeath(const ::android::sp<::android::hardware::hidl_death_recipient>& recipient, uint64_t cookie) override; |
| ::android::hardware::Return<void> ping() override; |
| ::android::hardware::Return<void> getDebugInfo(getDebugInfo_cb _hidl_cb) override; |
| ::android::hardware::Return<void> notifySyspropsChanged() override; |
| ::android::hardware::Return<bool> unlinkToDeath(const ::android::sp<::android::hardware::hidl_death_recipient>& recipient) override; |
| |
| private: |
| std::mutex _hidl_mMutex; |
| std::vector<::android::sp<::android::hardware::hidl_binder_death_recipient>> _hidl_mDeathRecipients; |
| }; |
| |
| } // namespace V5_0 |
| } // namespace audio |
| } // namespace hardware |
| } // namespace android |
| |
| #endif // HIDL_GENERATED_ANDROID_HARDWARE_AUDIO_V5_0_BPHWSTREAMIN_H |