Steven Moreland | 33e87b8 | 2016-11-22 15:34:39 -0800 | [diff] [blame^] | 1 | #ifndef ANDROID_HARDWARE_TESTS_POINTER_V1_0_GRAPH_H |
| 2 | #define ANDROID_HARDWARE_TESTS_POINTER_V1_0_GRAPH_H |
Yifan Hong | d5b5b2e | 2016-10-06 13:50:49 -0700 | [diff] [blame] | 3 | |
| 4 | #include <android/hardware/tests/pointer/1.0/IGraph.h> |
| 5 | #include <hidl/Status.h> |
| 6 | |
| 7 | #include <hidl/MQDescriptor.h> |
| 8 | namespace android { |
| 9 | namespace hardware { |
| 10 | namespace tests { |
| 11 | namespace pointer { |
| 12 | namespace V1_0 { |
| 13 | namespace implementation { |
| 14 | |
| 15 | using ::android::hardware::tests::pointer::V1_0::IGraph; |
| 16 | using ::android::hardware::Return; |
| 17 | using ::android::hardware::Void; |
| 18 | using ::android::hardware::hidl_vec; |
| 19 | using ::android::hardware::hidl_string; |
| 20 | using ::android::sp; |
| 21 | |
| 22 | struct Graph : public IGraph { |
| 23 | // Methods from ::android::hardware::tests::pointer::V1_0::IGraph follow. |
| 24 | Return<void> passANode(const IGraph::Node& n) override; |
| 25 | Return<void> passAGraph(const IGraph::Graph& g) override; |
| 26 | Return<void> passTwoGraphs(::android::hardware::tests::pointer::V1_0::IGraph::Graph const* g1, ::android::hardware::tests::pointer::V1_0::IGraph::Graph const* g2) override; |
| 27 | Return<void> giveAGraph(giveAGraph_cb _hidl_cb) override; |
| 28 | Return<void> passAGamma(const IGraph::Gamma& c) override; |
| 29 | Return<void> passASimpleRef(::android::hardware::tests::pointer::V1_0::IGraph::Alpha const* a) override; |
| 30 | Return<void> passASimpleRefS(::android::hardware::tests::pointer::V1_0::IGraph::Theta const* s) override; |
| 31 | Return<void> giveASimpleRef(giveASimpleRef_cb _hidl_cb) override; |
| 32 | Return<int32_t> getErrors() override; |
| 33 | private: |
| 34 | std::vector<std::string> errors; |
| 35 | |
| 36 | }; |
| 37 | |
| 38 | extern "C" IGraph* HIDL_FETCH_IGraph(const char* name); |
| 39 | |
| 40 | } // namespace implementation |
| 41 | } // namespace V1_0 |
| 42 | } // namespace pointer |
| 43 | } // namespace tests |
| 44 | } // namespace hardware |
| 45 | } // namespace android |
| 46 | |
Steven Moreland | 33e87b8 | 2016-11-22 15:34:39 -0800 | [diff] [blame^] | 47 | #endif // ANDROID_HARDWARE_TESTS_POINTER_V1_0_GRAPH_H |