#ifndef ANDROID_HARDWARE_TESTS_BAR_V1_0_BAR_H #define ANDROID_HARDWARE_TESTS_BAR_V1_0_BAR_H #include #include #include namespace android { namespace hardware { namespace tests { namespace bar { namespace V1_0 { namespace implementation { using ::android::hardware::tests::bar::V1_0::IBar; 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 BitField = ::android::hardware::tests::foo::V1_0::IFoo::BitField; using MyMask = ::android::hardware::tests::foo::V1_0::IFoo::MyMask; struct Bar : public IBar { Bar(); // 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; // Methods from ::android::hardware::tests::bar::V1_0::IBar follow. Return thisIsNew() override; Return expectNullHandle(const hidl_handle& h, const Abc& xyz, expectNullHandle_cb _hidl_cb) override; Return takeAMask(BitField bf, uint8_t first, const MyMask& second, uint8_t third, takeAMask_cb _hidl_cb) override; Return> haveAInterface(const sp &in); private: sp mFoo; }; extern "C" IBar* HIDL_FETCH_IBar(const char* name); } // namespace implementation } // namespace V1_0 } // namespace bar } // namespace tests } // namespace hardware } // namespace android #endif // ANDROID_HARDWARE_TESTS_BAR_V1_0_BAR_H