1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash 514f08f7a595501066b94e5de878d240b4d49456 -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/sensors/aidl/android.hardware.sensors_interface/3/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl --ninja -d out/soong/.intermediates/frameworks/hardware/interfaces/sensorservice/aidl/android.frameworks.sensorservice-V1-ndk-source/gen/staging/android/frameworks/sensorservice/IDirectReportChannel.cpp.d -h out/soong/.intermediates/frameworks/hardware/interfaces/sensorservice/aidl/android.frameworks.sensorservice-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/frameworks/hardware/interfaces/sensorservice/aidl/android.frameworks.sensorservice-V1-ndk-source/gen/staging -Nframeworks/hardware/interfaces/sensorservice/aidl/aidl_api/android.frameworks.sensorservice/1 frameworks/hardware/interfaces/sensorservice/aidl/aidl_api/android.frameworks.sensorservice/1/android/frameworks/sensorservice/IDirectReportChannel.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/sensors/ISensors.h> 18 #ifdef BINDER_STABILITY_SUPPORT 19 #include <android/binder_stability.h> 20 #endif // BINDER_STABILITY_SUPPORT 21 22 namespace aidl { 23 namespace android { 24 namespace frameworks { 25 namespace sensorservice { 26 class IDirectReportChannelDelegator; 27 28 class IDirectReportChannel : public ::ndk::ICInterface { 29 public: 30 typedef IDirectReportChannelDelegator DefaultDelegator; 31 static const char* descriptor; 32 IDirectReportChannel(); 33 virtual ~IDirectReportChannel(); 34 35 static inline const int32_t version = 1; 36 static inline const std::string hash = "514f08f7a595501066b94e5de878d240b4d49456"; 37 static constexpr uint32_t TRANSACTION_configure = FIRST_CALL_TRANSACTION + 0; 38 39 static std::shared_ptr<IDirectReportChannel> fromBinder(const ::ndk::SpAIBinder& binder); 40 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IDirectReportChannel>& instance); 41 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IDirectReportChannel>* instance); 42 static bool setDefaultImpl(const std::shared_ptr<IDirectReportChannel>& impl); 43 static const std::shared_ptr<IDirectReportChannel>& getDefaultImpl(); 44 virtual ::ndk::ScopedAStatus configure(int32_t in_sensorHandle, ::aidl::android::hardware::sensors::ISensors::RateLevel in_rate, int32_t* _aidl_return) = 0; 45 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 46 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 47 private: 48 static std::shared_ptr<IDirectReportChannel> default_impl; 49 }; 50 class IDirectReportChannelDefault : public IDirectReportChannel { 51 public: 52 ::ndk::ScopedAStatus configure(int32_t in_sensorHandle, ::aidl::android::hardware::sensors::ISensors::RateLevel in_rate, int32_t* _aidl_return) override; 53 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 54 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 55 ::ndk::SpAIBinder asBinder() override; 56 bool isRemote() override; 57 }; 58 } // namespace sensorservice 59 } // namespace frameworks 60 } // namespace android 61 } // namespace aidl 62