Yifan Hong | 0c4c7a3 | 2016-11-28 15:59:24 -0800 | [diff] [blame] | 1 | #define LOG_TAG "hidl_test" |
| 2 | |
Yifan Hong | d5b5b2e | 2016-10-06 13:50:49 -0700 | [diff] [blame] | 3 | #include "Pointer.h" |
Mark Salyzyn | a4842ac | 2017-01-10 10:16:48 -0800 | [diff] [blame] | 4 | |
| 5 | #include <log/log.h> |
Yifan Hong | d5b5b2e | 2016-10-06 13:50:49 -0700 | [diff] [blame] | 6 | |
| 7 | namespace android { |
| 8 | namespace hardware { |
| 9 | namespace tests { |
| 10 | namespace pointer { |
| 11 | namespace V1_0 { |
| 12 | namespace implementation { |
| 13 | |
Yifan Hong | 0c4c7a3 | 2016-11-28 15:59:24 -0800 | [diff] [blame] | 14 | Return<int32_t> Pointer::getErrors() { |
| 15 | if(!errors.empty()) { |
| 16 | for(const auto& e : errors) |
| 17 | ALOGW("SERVER(Pointer) error: %s", e.c_str()); |
| 18 | } |
| 19 | return errors.size(); |
| 20 | } |
| 21 | |
Yifan Hong | d5b5b2e | 2016-10-06 13:50:49 -0700 | [diff] [blame] | 22 | IPointer* HIDL_FETCH_IPointer(const char* /* name */) { |
| 23 | return new Pointer(); |
| 24 | } |
| 25 | |
| 26 | } // namespace implementation |
| 27 | } // namespace V1_0 |
| 28 | } // namespace pointer |
| 29 | } // namespace tests |
| 30 | } // namespace hardware |
| 31 | } // namespace android |