mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 23:35:08 +00:00
Test: hidl_test Test: `make hidl_test_java` compiles Change-Id: Ie9217b79e369f2a1e7a7c9ed02524b17e3fc8b7f
36 lines
818 B
C++
36 lines
818 B
C++
#define LOG_TAG "hidl_test"
|
|
#include <android-base/logging.h>
|
|
|
|
#include "Parent.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> Parent::doGrandparent() {
|
|
ALOGI("SERVER(Bar) Parent::doGrandparent");
|
|
return Void();
|
|
}
|
|
|
|
// Methods from ::android::hardware::tests::inheritance::V1_0::IParent follow.
|
|
Return<void> Parent::doParent() {
|
|
ALOGI("SERVER(Bar) Parent::doParent");
|
|
return Void();
|
|
}
|
|
|
|
|
|
IParent* HIDL_FETCH_IParent(const char* /* name */) {
|
|
return new Parent();
|
|
}
|
|
|
|
} // namespace implementation
|
|
} // namespace V1_0
|
|
} // namespace inheritance
|
|
} // namespace tests
|
|
} // namespace hardware
|
|
} // namespace android
|