2016-11-28 15:59:24 -08:00
|
|
|
#define LOG_TAG "hidl_test"
|
|
|
|
|
|
2016-10-06 13:50:49 -07:00
|
|
|
#include "Pointer.h"
|
2017-01-10 10:16:48 -08:00
|
|
|
|
|
|
|
|
#include <log/log.h>
|
2016-10-06 13:50:49 -07:00
|
|
|
|
|
|
|
|
namespace android {
|
|
|
|
|
namespace hardware {
|
|
|
|
|
namespace tests {
|
|
|
|
|
namespace pointer {
|
|
|
|
|
namespace V1_0 {
|
|
|
|
|
namespace implementation {
|
|
|
|
|
|
2016-11-28 15:59:24 -08:00
|
|
|
Return<int32_t> Pointer::getErrors() {
|
|
|
|
|
if(!errors.empty()) {
|
|
|
|
|
for(const auto& e : errors)
|
|
|
|
|
ALOGW("SERVER(Pointer) error: %s", e.c_str());
|
|
|
|
|
}
|
|
|
|
|
return errors.size();
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-06 13:50:49 -07:00
|
|
|
IPointer* HIDL_FETCH_IPointer(const char* /* name */) {
|
|
|
|
|
return new Pointer();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace implementation
|
|
|
|
|
} // namespace V1_0
|
|
|
|
|
} // namespace pointer
|
|
|
|
|
} // namespace tests
|
|
|
|
|
} // namespace hardware
|
|
|
|
|
} // namespace android
|