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 <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 media {
24 class IAidlBufferSourceDelegator;
25 
26 class IAidlBufferSource : public ::ndk::ICInterface {
27 public:
28   typedef IAidlBufferSourceDelegator DefaultDelegator;
29   static const char* descriptor;
30   IAidlBufferSource();
31   virtual ~IAidlBufferSource();
32 
33   static constexpr uint32_t TRANSACTION_onStart = FIRST_CALL_TRANSACTION + 0;
34   static constexpr uint32_t TRANSACTION_onStop = FIRST_CALL_TRANSACTION + 1;
35   static constexpr uint32_t TRANSACTION_onRelease = FIRST_CALL_TRANSACTION + 2;
36   static constexpr uint32_t TRANSACTION_onInputBufferAdded = FIRST_CALL_TRANSACTION + 3;
37   static constexpr uint32_t TRANSACTION_onInputBufferEmptied = FIRST_CALL_TRANSACTION + 4;
38 
39   static std::shared_ptr<IAidlBufferSource> fromBinder(const ::ndk::SpAIBinder& binder);
40   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IAidlBufferSource>& instance);
41   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IAidlBufferSource>* instance);
42   static bool setDefaultImpl(const std::shared_ptr<IAidlBufferSource>& impl);
43   static const std::shared_ptr<IAidlBufferSource>& getDefaultImpl();
44   virtual ::ndk::ScopedAStatus onStart() = 0;
45   virtual ::ndk::ScopedAStatus onStop() = 0;
46   virtual ::ndk::ScopedAStatus onRelease() = 0;
47   virtual ::ndk::ScopedAStatus onInputBufferAdded(int32_t in_bufferID) = 0;
48   virtual ::ndk::ScopedAStatus onInputBufferEmptied(int32_t in_bufferID, const ::ndk::ScopedFileDescriptor& in_fence) = 0;
49 private:
50   static std::shared_ptr<IAidlBufferSource> default_impl;
51 };
52 class IAidlBufferSourceDefault : public IAidlBufferSource {
53 public:
54   ::ndk::ScopedAStatus onStart() override;
55   ::ndk::ScopedAStatus onStop() override;
56   ::ndk::ScopedAStatus onRelease() override;
57   ::ndk::ScopedAStatus onInputBufferAdded(int32_t in_bufferID) override;
58   ::ndk::ScopedAStatus onInputBufferEmptied(int32_t in_bufferID, const ::ndk::ScopedFileDescriptor& in_fence) override;
59   ::ndk::SpAIBinder asBinder() override;
60   bool isRemote() override;
61 };
62 }  // namespace media
63 }  // namespace android
64 }  // namespace aidl
65