#ifndef ANDROID_HARDWARE_TESTS_FOO_V1_0_FOO_H #define ANDROID_HARDWARE_TESTS_FOO_V1_0_FOO_H #include #include #include #include namespace android { namespace hardware { namespace tests { namespace foo { namespace V1_0 { namespace implementation { using ::android::hardware::tests::foo::V1_0::Abc; using ::android::hardware::tests::foo::V1_0::IFoo; using ::android::hardware::tests::foo::V1_0::IFooCallback; using ::android::hardware::tests::foo::V1_0::ISimple; using ::android::hardware::Return; using ::android::hardware::Void; using ::android::hardware::hidl_vec; using ::android::hardware::hidl_string; using ::android::sp; using ContainsUnion = ::android::hardware::tests::foo::V1_0::IFoo::ContainsUnion; using Discriminator = ::android::hardware::tests::foo::V1_0::IFoo::Discriminator; using Union = ::android::hardware::tests::foo::V1_0::IFoo::Union; struct Foo : public IFoo { // Methods from ::android::hardware::tests::foo::V1_0::IFoo follow. virtual Return convertToBoolIfSmall(Discriminator d, const hidl_vec& u, convertToBoolIfSmall_cb _hidl_cb) override; virtual Return doThis(float param) override; virtual Return doThatAndReturnSomething(int64_t param) override; virtual Return doQuiteABit(int32_t a, int64_t b, float c, double d) override; virtual Return doSomethingElse(const hidl_array& param, doSomethingElse_cb _hidl_cb) override; virtual Return doStuffAndReturnAString(doStuffAndReturnAString_cb _hidl_cb) override; virtual Return mapThisVector(const hidl_vec& param, mapThisVector_cb _hidl_cb) override; virtual Return callMe(const sp& cb) override; virtual Return useAnEnum(IFoo::SomeEnum zzz) override; virtual Return haveAGooberVec(const hidl_vec& param) override; virtual Return haveAGoober(const IFoo::Goober& g) override; virtual Return haveAGooberArray(const hidl_array& lots) override; virtual Return haveATypeFromAnotherFile(const Abc& def) override; virtual Return haveSomeStrings(const hidl_array& array, haveSomeStrings_cb _hidl_cb) override; virtual Return haveAStringVec(const hidl_vec& vector, haveAStringVec_cb _hidl_cb) override; virtual Return transposeMe(const hidl_array& in, transposeMe_cb _hidl_cb) override; virtual Return callingDrWho(const IFoo::MultiDimensional& in, callingDrWho_cb _hidl_cb) override; virtual Return transpose(const IFoo::StringMatrix5x3& in, transpose_cb _hidl_cb) override; virtual Return transpose2(const hidl_array& in, transpose2_cb _hidl_cb) override; virtual Return sendVec(const hidl_vec& data, sendVec_cb _hidl_cb) override; virtual Return sendVecVec(sendVecVec_cb _hidl_cb) override; virtual Return createMyHandle(createMyHandle_cb _hidl_cb) override; virtual Return createHandles(uint32_t size, createHandles_cb _hidl_cb) override; virtual Return closeHandles() override; virtual Return repeatWithFmq(const IFoo::WithFmq& withFmq, repeatWithFmq_cb _hidl_cb) override; Return haveAVectorOfInterfaces( const hidl_vec > &in, haveAVectorOfInterfaces_cb _hidl_cb) override; Return haveAVectorOfGenericInterfaces( const hidl_vec > &in, haveAVectorOfGenericInterfaces_cb _hidl_cb) override; Return echoNullInterface(const sp &cb, echoNullInterface_cb _hidl_cb) override; private: std::vector<::native_handle_t *> mHandles; }; extern "C" IFoo* HIDL_FETCH_IFoo(const char* name); } // namespace implementation } // namespace V1_0 } // namespace foo } // namespace tests } // namespace hardware } // namespace android #endif // ANDROID_HARDWARE_TESTS_FOO_V1_0_FOO_H