blob: 66720b3c1f29b50674cab82df663bae79cfdd312 [file] [log] [blame]
Yifan Hongcc6ad7d2016-10-18 18:44:17 -07001#define LOG_TAG "hidl_test"
2#include <android-base/logging.h>
3
4#include "Child.h"
5
6namespace android {
7namespace hardware {
8namespace tests {
9namespace inheritance {
10namespace V1_0 {
11namespace implementation {
12
13// Methods from ::android::hardware::tests::inheritance::V1_0::IGrandparent follow.
14Return<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.
20Return<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.
27Return<void> Child::doChild() {
28 ALOGI("SERVER(Bar) Child::doChild");
29 return Void();
30}
31
32
33IChild* 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