platform_hardware_interfaces/tests/pointer/1.0/default/Pointer.cpp
Mark Salyzyn a4842ace39 liblog: use log/log.h when utilizing ALOG macros
Test: compile
Bug: 30465923
Change-Id: I67046a75be057e7905570748a1ed6bfd03c0e1c8
2017-01-10 15:02:14 -08:00

31 lines
623 B
C++

#define LOG_TAG "hidl_test"
#include "Pointer.h"
#include <log/log.h>
namespace android {
namespace hardware {
namespace tests {
namespace pointer {
namespace V1_0 {
namespace implementation {
Return<int32_t> Pointer::getErrors() {
if(!errors.empty()) {
for(const auto& e : errors)
ALOGW("SERVER(Pointer) error: %s", e.c_str());
}
return errors.size();
}
IPointer* HIDL_FETCH_IPointer(const char* /* name */) {
return new Pointer();
}
} // namespace implementation
} // namespace V1_0
} // namespace pointer
} // namespace tests
} // namespace hardware
} // namespace android