1 #define LOG_TAG "hidl_test"
2 
3 #include <log/log.h>
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.
doGrandparent()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.
doParent()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.
doChild()28 Return<void> Child::doChild()  {
29     ALOGI("SERVER(Bar) Child::doChild");
30     return Void();
31 }
32 
33 
HIDL_FETCH_IChild(const char *)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
44