1 #ifndef ANDROID_HARDWARE_TESTS_BAZ_V1_0_BAZ_H 2 #define ANDROID_HARDWARE_TESTS_BAZ_V1_0_BAZ_H 3 4 #include <android/hardware/tests/baz/1.0/IBaz.h> 5 #include <hidl/MQDescriptor.h> 6 #include <hidl/Status.h> 7 8 namespace android { 9 namespace hardware { 10 namespace tests { 11 namespace baz { 12 namespace V1_0 { 13 namespace implementation { 14 15 // using ::android::hardware::tests::baz::V1_0::IBase; 16 using ::android::hardware::tests::baz::V1_0::IBaz; 17 using ::android::hardware::tests::baz::V1_0::IBazCallback; 18 using ::android::hidl::base::V1_0::DebugInfo; 19 using ::android::hidl::base::V1_0::IBase; 20 using ::android::hardware::hidl_array; 21 using ::android::hardware::hidl_memory; 22 using ::android::hardware::hidl_string; 23 using ::android::hardware::hidl_vec; 24 using ::android::hardware::Return; 25 using ::android::hardware::Void; 26 using ::android::sp; 27 28 struct Baz : public IBaz { 29 // Methods from ::android::hardware::tests::baz::V1_0::IBase follow. 30 Return<bool> isJava() override; 31 Return<void> someBaseMethod() override; 32 Return<bool> someBoolMethod(bool x) override; 33 Return<void> someBoolArrayMethod(const hidl_array<bool, 3>& x, 34 someBoolArrayMethod_cb _hidl_cb) override; 35 Return<void> someBoolVectorMethod(const hidl_vec<bool>& x, 36 someBoolVectorMethod_cb _hidl_cb) override; 37 Return<void> someOtherBaseMethod(const IBase::Foo& foo, 38 someOtherBaseMethod_cb _hidl_cb) override; 39 Return<void> someMethodWithFooArrays(const hidl_array<IBase::Foo, 2>& fooInput, 40 someMethodWithFooArrays_cb _hidl_cb) override; 41 Return<void> someMethodWithFooVectors(const hidl_vec<IBase::Foo>& fooInput, 42 someMethodWithFooVectors_cb _hidl_cb) override; 43 Return<void> someMethodWithVectorOfArray(const IBase::VectorOfArray& in, 44 someMethodWithVectorOfArray_cb _hidl_cb) override; 45 Return<void> someMethodTakingAVectorOfArray(const hidl_vec<hidl_array<uint8_t, 6>>& in, 46 someMethodTakingAVectorOfArray_cb _hidl_cb) override; 47 Return<void> transpose(const IBase::StringMatrix5x3& in, 48 transpose_cb _hidl_cb) override; 49 Return<void> transpose2(const hidl_array<hidl_string, 5, 3>& in, 50 transpose2_cb _hidl_cb) override; 51 Return<void> takeAMask(IBase::BitField bf, 52 uint8_t first, 53 const IBase::MyMask& second, 54 uint8_t third, 55 takeAMask_cb _hidl_cb) override; 56 57 Return<void> testArrays( 58 const IBase::LotsOfPrimitiveArrays &in, 59 testArrays_cb _hidl_cb) override; 60 61 Return<void> testByteVecs( 62 const hidl_vec<IBase::ByteOneDim> &in, 63 testByteVecs_cb _hidl_cb) override; 64 65 Return<void> testBooleanVecs( 66 const hidl_vec<IBase::BooleanOneDim> &in, 67 testBooleanVecs_cb _hidl_cb) override; 68 69 Return<void> testDoubleVecs( 70 const hidl_vec<IBase::DoubleOneDim> &in, 71 testDoubleVecs_cb _hidl_cb) override; 72 73 // Methods from ::android::hardware::tests::baz::V1_0::IBaz follow. 74 Return<void> doThis(float param) override; 75 Return<int32_t> doThatAndReturnSomething(int64_t param) override; 76 Return<double> doQuiteABit(int32_t a, int64_t b, float c, double d) override; 77 Return<void> doSomethingElse(const hidl_array<int32_t, 15>& param, 78 doSomethingElse_cb _hidl_cb) override; 79 Return<void> doStuffAndReturnAString(doStuffAndReturnAString_cb _hidl_cb) override; 80 Return<void> mapThisVector(const hidl_vec<int32_t>& param, mapThisVector_cb _hidl_cb) override; 81 Return<void> callMe(const sp<IBazCallback>& cb) override; 82 Return<void> callMeLater(const sp<IBazCallback>& cb) override; 83 Return<void> iAmFreeNow() override; 84 Return<void> dieNow() override; 85 Return<IBaz::SomeEnum> useAnEnum(IBaz::SomeEnum zzz) override; 86 Return<void> haveSomeStrings(const hidl_array<hidl_string, 3>& array, 87 haveSomeStrings_cb _hidl_cb) override; 88 Return<void> haveAStringVec(const hidl_vec<hidl_string>& vector, 89 haveAStringVec_cb _hidl_cb) override; 90 Return<void> repeatBitfieldVec(const hidl_vec<uint8_t>& vector, 91 repeatBitfieldVec_cb _hidl_cb) override; 92 Return<void> returnABunchOfStrings(returnABunchOfStrings_cb _hidl_cb) override; 93 Return<uint8_t> returnABitField() override; 94 Return<uint32_t> size(uint32_t size) override; 95 Return<void> getNestedStructs(getNestedStructs_cb _hidl_cb) override; 96 97 Return<void> haveSomeStructWithInterface(const StructWithInterface& swi, 98 haveSomeStructWithInterface_cb _hidl_cb) override; 99 // Methods from ::android::hidl::base::V1_0::IBase follow. 100 private: 101 sp<IBazCallback> mStoredCallback; 102 }; 103 104 extern "C" IBaz* HIDL_FETCH_IBaz(const char* name); 105 106 } // namespace implementation 107 } // namespace V1_0 108 } // namespace baz 109 } // namespace tests 110 } // namespace hardware 111 } // namespace android 112 113 #endif // ANDROID_HARDWARE_TESTS_BAZ_V1_0_BAZ_H 114