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