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 -t --min_sdk_version 29 -pout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common_interface/6/preprocessed.aidl --ninja -d out/soong/.intermediates/frameworks/av/media/module/aidlpersistentsurface/graphicbuffersource-aidl-ndk-source/gen/staging/android/media/IAidlBufferSource.cpp.d -h out/soong/.intermediates/frameworks/av/media/module/aidlpersistentsurface/graphicbuffersource-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/frameworks/av/media/module/aidlpersistentsurface/graphicbuffersource-aidl-ndk-source/gen/staging -Iframeworks/native/aidl/gui -Iframeworks/base/core/java -Nframeworks/av/media/module/aidlpersistentsurface/aidl frameworks/av/media/module/aidlpersistentsurface/aidl/android/media/IAidlBufferSource.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 "aidl/android/media/IAidlBufferSource.h"
12 
13 #include <android/binder_ibinder.h>
14 #include <cassert>
15 
16 #ifndef __BIONIC__
17 #ifndef __assert2
18 #define __assert2(a,b,c,d) ((void)0)
19 #endif
20 #endif
21 
22 namespace aidl {
23 namespace android {
24 namespace media {
25 class BnAidlBufferSource : public ::ndk::BnCInterface<IAidlBufferSource> {
26 public:
27   BnAidlBufferSource();
28   virtual ~BnAidlBufferSource();
29 protected:
30   ::ndk::SpAIBinder createBinder() override;
31 private:
32 };
33 class IAidlBufferSourceDelegator : public BnAidlBufferSource {
34 public:
IAidlBufferSourceDelegator(const std::shared_ptr<IAidlBufferSource> & impl)35   explicit IAidlBufferSourceDelegator(const std::shared_ptr<IAidlBufferSource> &impl) : _impl(impl) {
36   }
37 
onStart()38   ::ndk::ScopedAStatus onStart() override {
39     return _impl->onStart();
40   }
onStop()41   ::ndk::ScopedAStatus onStop() override {
42     return _impl->onStop();
43   }
onRelease()44   ::ndk::ScopedAStatus onRelease() override {
45     return _impl->onRelease();
46   }
onInputBufferAdded(int32_t in_bufferID)47   ::ndk::ScopedAStatus onInputBufferAdded(int32_t in_bufferID) override {
48     return _impl->onInputBufferAdded(in_bufferID);
49   }
onInputBufferEmptied(int32_t in_bufferID,const::ndk::ScopedFileDescriptor & in_fence)50   ::ndk::ScopedAStatus onInputBufferEmptied(int32_t in_bufferID, const ::ndk::ScopedFileDescriptor& in_fence) override {
51     return _impl->onInputBufferEmptied(in_bufferID, in_fence);
52   }
53 protected:
54 private:
55   std::shared_ptr<IAidlBufferSource> _impl;
56 };
57 
58 }  // namespace media
59 }  // namespace android
60 }  // namespace aidl
61