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 30 --ninja -d out/soong/.intermediates/packages/modules/StatsD/aidl/statsd-aidl-ndk-source/gen/staging/android/os/IPullAtomCallback.cpp.d -h out/soong/.intermediates/packages/modules/StatsD/aidl/statsd-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/packages/modules/StatsD/aidl/statsd-aidl-ndk-source/gen/staging -Npackages/modules/StatsD/aidl packages/modules/StatsD/aidl/android/os/IPullAtomCallback.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/os/IPullAtomResultReceiver.h> 18 #ifdef BINDER_STABILITY_SUPPORT 19 #include <android/binder_stability.h> 20 #endif // BINDER_STABILITY_SUPPORT 21 22 namespace aidl::android::os { 23 class IPullAtomResultReceiver; 24 } // namespace aidl::android::os 25 namespace aidl { 26 namespace android { 27 namespace os { 28 class IPullAtomCallbackDelegator; 29 30 class IPullAtomCallback : public ::ndk::ICInterface { 31 public: 32 typedef IPullAtomCallbackDelegator DefaultDelegator; 33 static const char* descriptor; 34 IPullAtomCallback(); 35 virtual ~IPullAtomCallback(); 36 37 static constexpr uint32_t TRANSACTION_onPullAtom = FIRST_CALL_TRANSACTION + 0; 38 39 static std::shared_ptr<IPullAtomCallback> fromBinder(const ::ndk::SpAIBinder& binder); 40 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IPullAtomCallback>& instance); 41 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IPullAtomCallback>* instance); 42 static bool setDefaultImpl(const std::shared_ptr<IPullAtomCallback>& impl); 43 static const std::shared_ptr<IPullAtomCallback>& getDefaultImpl(); 44 virtual ::ndk::ScopedAStatus onPullAtom(int32_t in_atomTag, const std::shared_ptr<::aidl::android::os::IPullAtomResultReceiver>& in_resultReceiver) = 0; 45 private: 46 static std::shared_ptr<IPullAtomCallback> default_impl; 47 }; 48 class IPullAtomCallbackDefault : public IPullAtomCallback { 49 public: 50 ::ndk::ScopedAStatus onPullAtom(int32_t in_atomTag, const std::shared_ptr<::aidl::android::os::IPullAtomResultReceiver>& in_resultReceiver) override; 51 ::ndk::SpAIBinder asBinder() override; 52 bool isRemote() override; 53 }; 54 } // namespace os 55 } // namespace android 56 } // namespace aidl 57