blob: d4e82c06f8926906aae728fdb84e7ecfd75d779c [file] [log] [blame]
Yifan Hongcc6ad7d2016-10-18 18:44:17 -07001#define LOG_TAG "hidl_test"
Mark Salyzyna4842ac2017-01-10 10:16:48 -08002
3#include <log/log.h>
Yifan Hongcc6ad7d2016-10-18 18:44:17 -07004
5#include "Child.h"
6
7namespace android {
8namespace hardware {
9namespace tests {
10namespace inheritance {
11namespace V1_0 {
12namespace implementation {
13
14// Methods from ::android::hardware::tests::inheritance::V1_0::IGrandparent follow.
15Return<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.
21Return<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.
28Return<void> Child::doChild() {
29 ALOGI("SERVER(Bar) Child::doChild");
30 return Void();
31}
32
33
34IChild* 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