1 #ifndef ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H 2 #define ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H 3 4 #include "Child.h" 5 #include <android/hardware/tests/inheritance/1.0/IFetcher.h> 6 #include <hidl/Status.h> 7 8 #include <hidl/MQDescriptor.h> 9 namespace android { 10 namespace hardware { 11 namespace tests { 12 namespace inheritance { 13 namespace V1_0 { 14 namespace implementation { 15 16 using ::android::hardware::tests::inheritance::V1_0::IFetcher; 17 using ::android::hardware::Return; 18 using ::android::hardware::Void; 19 using ::android::hardware::hidl_vec; 20 using ::android::hardware::hidl_string; 21 using ::android::sp; 22 23 struct Fetcher : public IFetcher { 24 25 Fetcher(); 26 27 // Methods from ::android::hardware::tests::inheritance::V1_0::IFetcher follow. 28 Return<sp<IGrandparent>> getGrandparent(bool sendRemote) override; 29 Return<sp<IParent>> getParent(bool sendRemote) override; 30 Return<sp<IChild>> getChild(bool sendRemote) override; 31 32 private: 33 sp<IChild> mPrecious; 34 }; 35 36 extern "C" IFetcher* HIDL_FETCH_IFetcher(const char* name); 37 38 } // namespace implementation 39 } // namespace V1_0 40 } // namespace inheritance 41 } // namespace tests 42 } // namespace hardware 43 } // namespace android 44 45 #endif // ANDROID_HARDWARE_TESTS_INHERITANCE_V1_0_FETCHER_H 46