Yifan Hong | cc6ad7d | 2016-10-18 18:44:17 -0700 | [diff] [blame] | 1 | #define LOG_TAG "hidl_test" |
Mark Salyzyn | a4842ac | 2017-01-10 10:16:48 -0800 | [diff] [blame] | 2 | |
| 3 | #include <log/log.h> |
Yifan Hong | cc6ad7d | 2016-10-18 18:44:17 -0700 | [diff] [blame] | 4 | |
| 5 | #include "Child.h" |
| 6 | |
| 7 | namespace android { |
| 8 | namespace hardware { |
| 9 | namespace tests { |
| 10 | namespace inheritance { |
| 11 | namespace V1_0 { |
| 12 | namespace implementation { |
| 13 | |
| 14 | // Methods from ::android::hardware::tests::inheritance::V1_0::IGrandparent follow. |
| 15 | Return<void> Child::doGrandparent() { |
| 16 | ALOGI("SERVER(Bar) Child::doGrandparent"); |
| 17 | return Void(); |
| 18 | } |
| 19 | |
| 20 | // Methods from ::android::hardware::tests::inheritance::V1_0::IParent follow. |
| 21 | Return<void> Child::doParent() { |
| 22 | ALOGI("SERVER(Bar) Child::doParent"); |
| 23 | return Void(); |
| 24 | } |
| 25 | |
| 26 | |
| 27 | // Methods from ::android::hardware::tests::inheritance::V1_0::IChild follow. |
| 28 | Return<void> Child::doChild() { |
| 29 | ALOGI("SERVER(Bar) Child::doChild"); |
| 30 | return Void(); |
| 31 | } |
| 32 | |
| 33 | |
| 34 | IChild* HIDL_FETCH_IChild(const char* /* name */) { |
| 35 | return new Child(); |
| 36 | } |
| 37 | |
| 38 | } // namespace implementation |
| 39 | } // namespace V1_0 |
| 40 | } // namespace inheritance |
| 41 | } // namespace tests |
| 42 | } // namespace hardware |
| 43 | } // namespace android |