blob: fd6608cc477ecb17c5cdd86ab8d3ad0023fba56b [file] [log] [blame]
Yifan Hongcc6ad7d2016-10-18 18:44:17 -07001#define LOG_TAG "hidl_test"
Yifan Hong0c4c7a32016-11-28 15:59:24 -08002#include <android/log.h>
Yifan Hongcc6ad7d2016-10-18 18:44:17 -07003
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