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 "aidl/android/frameworks/sensorservice/IDirectReportChannel.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 frameworks {
25 namespace sensorservice {
26 class BnDirectReportChannel : public ::ndk::BnCInterface<IDirectReportChannel> {
27 public:
28   BnDirectReportChannel();
29   virtual ~BnDirectReportChannel();
30   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final;
31   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final;
32 protected:
33   ::ndk::SpAIBinder createBinder() override;
34 private:
35 };
36 class IDirectReportChannelDelegator : public BnDirectReportChannel {
37 public:
IDirectReportChannelDelegator(const std::shared_ptr<IDirectReportChannel> & impl)38   explicit IDirectReportChannelDelegator(const std::shared_ptr<IDirectReportChannel> &impl) : _impl(impl) {
39      int32_t _impl_ver = 0;
40      if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {;
41         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation.");
42      }
43      if (_impl_ver != IDirectReportChannel::version) {
44         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
45      }
46   }
47 
configure(int32_t in_sensorHandle,::aidl::android::hardware::sensors::ISensors::RateLevel in_rate,int32_t * _aidl_return)48   ::ndk::ScopedAStatus configure(int32_t in_sensorHandle, ::aidl::android::hardware::sensors::ISensors::RateLevel in_rate, int32_t* _aidl_return) override {
49     return _impl->configure(in_sensorHandle, in_rate, _aidl_return);
50   }
51 protected:
52 private:
53   std::shared_ptr<IDirectReportChannel> _impl;
54 };
55 
56 }  // namespace sensorservice
57 }  // namespace frameworks
58 }  // namespace android
59 }  // namespace aidl
60