summaryrefslogtreecommitdiff
path: root/tests/inheritance/1.0/default/Child.cpp
blob: d4e82c06f8926906aae728fdb84e7ecfd75d779c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#define LOG_TAG "hidl_test"

#include <log/log.h>

#include "Child.h"

namespace android {
namespace hardware {
namespace tests {
namespace inheritance {
namespace V1_0 {
namespace implementation {

// Methods from ::android::hardware::tests::inheritance::V1_0::IGrandparent follow.
Return<void> Child::doGrandparent()  {
    ALOGI("SERVER(Bar) Child::doGrandparent");
    return Void();
}

// Methods from ::android::hardware::tests::inheritance::V1_0::IParent follow.
Return<void> Child::doParent()  {
    ALOGI("SERVER(Bar) Child::doParent");
    return Void();
}


// Methods from ::android::hardware::tests::inheritance::V1_0::IChild follow.
Return<void> Child::doChild()  {
    ALOGI("SERVER(Bar) Child::doChild");
    return Void();
}


IChild* HIDL_FETCH_IChild(const char* /* name */) {
    return new Child();
}

} // namespace implementation
}  // namespace V1_0
}  // namespace inheritance
}  // namespace tests
}  // namespace hardware
}  // namespace android